Back Edit Import Questions Delete

6a Binary Search Trees

In Systematic Program Design

Questions

New Question Start Quiz
What is (list "a" "b" "c") shorthand for conceptually?
Multiple choice
What is the difference between (cons "a" L1) and (list "a" L1)?
Multiple choice
What does append do?
Multiple choice
Why does sorting a linked list not by itself enable fast binary search?
Multiple choice
What is the BST invariant for the left subtree?
Multiple choice
What is the BST invariant for the right subtree?
Multiple choice
Why can a properly formed BST not contain the same key twice?
Multiple choice
What does false represent in the BST data definition?
Multiple choice
Why does the general BST template contain two natural recursive calls?
Multiple choice
When lookup-key finds the target equal to the current node key, what should it do?
Multiple choice
When the target key is smaller than the current node key, where should lookup continue?
Multiple choice
Why can BST lookup ignore one whole subtree at each step?
Multiple choice
What average search scale does a reasonably balanced BST aim for?
Multiple choice
Which test coverage is especially important for lookup on a tree with both children?
Multiple choice
If a numeric lookup cond already has =, <, and > cases, when should a final else normally run?
Multiple choice

Quiz Sessions

No quiz sessions yet.