Question
Consider a Binary Search Tree (BST) with the following
values inserted in sequence: 45, 32, 50, 15, 40, 47, 60. What will be the in-order traversal of this BST after all insertions?Solution
In-order traversal of a BST processes nodes in an ascending order because it visits the left subtree first, then the root, and finally the right subtree. After inserting the values in the specified order into the BST, performing an in-order traversal yields the nodes in the correct ascending order: 15, 32, 40, 45, 47, 50, 60. The traversal algorithm guarantees that every node’s left subtree is smaller, and the right subtree is larger, which ensures a sorted sequence. Why other options are wrong: B) This is the reverse order of an in-order traversal, visiting the largest element first. C) This option shows a pre-order traversal, which visits the root node first before the subtrees. D) This sequence incorrectly mixes elements from the left and right subtrees, violating the order property. E) This option represents a reverse post-order traversal, starting with the deepest right-side elements.
A sum of ₹20,000 is invested at an annual interest rate of 10% compounded half-yearly. What will be the total amount after 2 years?
Divide Rs. 2,440 into two parts such that the first part after 10 years is equal to the second part after 8 years, compound interest being 20% per annum...
Find the compound interest on Rs. 4000 at 10% per annum for 2 years, compounded annually.
What is the compound interest in a sum of 7500 for 12/5 years at 20% p.a., interest compounded yearly (nearest to an integer)?
Raj and Simran each invested a sum of ₹10,000 for three years at 25% compound interest per annum. However, while for Raj the interest was compounded a...
A sum of money was invested at 10% p.a. compound interest (compounded annually), and it amounted to Rs. 6050 at the end of 2 year...
Find the compound interest on Rs. 8000 at 12% per annum for 2 years (compounded annually).
A person invested ₹15000 in a scheme for 3 years at 8% compound interest, compounded annually. After 3 years, the person decided to withdraw the amoun...
Find the compound interest on Rs. 5000 at 8% per annum for 2 years, compounded annually.