Ask Question
21 December, 01:29

Because an AVL tree is a binary search tree, the search algorithm for an AVL tree is the same as the search algorithm for a binary search tree.

True

False

+2
Answers (1)
  1. 21 December, 03:55
    0
    True, Yes the search algorithm for AVL tree and the binary search tree are same.

    Because in both trees, of a certain a node, the smaller elements reside in the left sub-tree and the larger elements reside in the right sub-tree.

    Explanation:

    So while searching an element in the AVL tree we start the search from the root node.

    We compare the element to be searched with the root node.

    if (element < root node), then move in left and compare with it's left child.

    else move in right and compare with it's right child.

    Similarly in next phase move accordingly as in the binary search tree.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Because an AVL tree is a binary search tree, the search algorithm for an AVL tree is the same as the search algorithm for a binary search ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers