Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is a search tree?
Think about how data is organized for quick retrieval.
Define a min heap.
Consider how this structure allows easy access to the smallest element.
What is the main characteristic of a min heap?
Think about where you'd find the minimum value in a collection.
True or False: A binary search tree can have duplicate values.
Recall the property of how elements are organized in a BST.
Construct a binary search tree from the numbers 10, 15, 5, 3, 12. Then perform both insert and delete operations, documenting changes to the tree at each step.
Visualize each insertion and deletion to see how it affects the tree’s structure.
You are given an unordered list of times [16:00, 16:30, 15:30, 15:45]. Design a search tree. How would you perform an in-order traversal and what would the outcome be?
Remember to always begin with the smallest value on the left when constructing your tree.
4 more questions in this section. Enroll free to practise them all.
Enroll free