Question
Which searching algorithm is most suitable for a
balanced binary search tree (BST) when the goal is minimal comparison?Solution
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.
Under process costing, which of the following is considered as normal loss?
Which of the following financial statements shows a company's assets, liabilities, and equity at a specific point in time?
If a company uses LIFO inventory method in falling price environment (prices decreasing), then:
In the CAPM model, the expected return is expressed as:
E(R)=Rf+β(Rm−Rf)
Here, what does the risk-free rate (Rₓ) represent or compens...
Which of the following is an example of an intangible asset?
The work of one clerk is automatically check by another clerk is called _________.
Which type of budget is prepared for a range of activity levels rather than a single level?
A company purchases goods worth ₹10 lakh + 18% GST, uses 70% for taxable supplies and 30% for exempt supplies. Calculate eligible ITC.
As per Union Budget 2025-26, what is the new asset monetization plan target for 2025-30?
An interface that communicates with other tiers in a three-tier architecture structure is known as ________.