Week 4: Binary Search Trees Flashcards
What is a dictionary / map?
What is an ordered dictionary/map?
What is a total order?
What methods are in an ordered dictionary ADT?
What is a search table?
What are the time complexities of the following methods for a search table using a sorted array:
get()
put(k,data)
remove(k)
smallest()
largest()
predecessor()
successor()
What is the hash table implementation of a search table? What are the time complexities of the following methods:
get
put
remove
smallest
largest
predecessor
successor
What is a binary search tree?
Where is the information stored in a binary search tree?
Internal nodes
An inorder traversal of a BST visits keys in what order?
Increasing order
What is the basis of the smallest() operator for BST’s? What is the algorithm? What is the time complexity?
What is the basis of the get() operator for BST’s? What is the algorithm? What is the time complexity?
What is the basis of the put() operator? What is the algorithm? Time complexity?
What is the basis of the remove operator?
What is the algorithm for the remove method? Time complexity?