Podcast
Questions and Answers
What is the time complexity of the overall search in a Binary Search Tree (BST)?
What is the time complexity of the overall search in a Binary Search Tree (BST)?
In the context of the sorted map ADT, which methods use the search as a subroutine?
In the context of the sorted map ADT, which methods use the search as a subroutine?
What is the maximum number of positions that TreeSearch is called on for a path in a BST?
What is the maximum number of positions that TreeSearch is called on for a path in a BST?
What does the TreeSearch algorithm return if the key is not found?
What does the TreeSearch algorithm return if the key is not found?
Signup and view all the answers
In the example of searching for key 4 in a BST, which positions are visited in the search?
In the example of searching for key 4 in a BST, which positions are visited in the search?
Signup and view all the answers