how to construct a binary search tree for given :Thu, mon, sat, wed, fri, tue
Answers
Answered by
6
Answer:
The left subtree of a node contains only nodes with keys lesser than the node’s key.
The right subtree of a node contains only nodes with keys greater than the node’s key.
The left and right subtree each must also be a binary search tree.
There must be no duplicate nodes.
200px-Binary_search_tree.svg
The above properties of Binary Search Tree provide an ordering among keys so that the operations like search, minimum and maximum can be done fast. If there is no ordering, then we may have to compare every key to search a given key.
Explanation:
i hope it's help you
please mark me brainlist
Similar questions