Continue with your mobile number
In a balanced BST, keys are arranged such that for any node, the left subtree contains keys smaller than the node, and the right subtree contains keys larger than the node. This structure allows Binary Search to perform efficiently, as it eliminates half the search space with each comparison, achieving a time complexity of O(logn). The minimal comparisons and logical traversal make Binary Search optimal for balanced trees. Why Other Options are Incorrect: 1. Linear Search: Linear search checks each node one by one, resulting in O(n) complexity, making it highly inefficient for large datasets. 2. Depth-First Search: DFS explores nodes depth-wise, which is not directly suitable for searching in a sorted structure like BST. 3. Breadth-First Search: BFS examines nodes level-wise, increasing overhead compared to Binary Search in BST. 4. Exponential Search: This method is better suited for arrays rather than tree structures, especially when data sizes are unknown or unbounded.
A set of keywords, symbols and a system of rules for constructing statements by which human can communicate the instructions to be executed by a compute...
Errors in computer programmes are called :
The ERNET stands for
What is the key characteristic of a real-time operating system?
__________ contains permanent data and gets updated during the processing of transactions.
Which type of user interface used by operating systems?
Which of the following is a widely used open-source operating system?
Who provides the interface to access the services of the operating system?
Which of the following key is an example of Toggle key?
Which of the following is a text file that a Web browser stores on a user’s machine?