Question
2-4 (“two-four”) trees are equivalent to these self-balancing binary search trees, which store one extra bit of data in each node. For 10 points each:
[10m] Name these trees that can flip that bit during an insertion or deletion to maintain their invariants.
ANSWER: red–black trees [reject “black–red trees”]
[10h] Robert Sedgewick claims that this implementation of red–black trees is simple to code since its condition on red edges reduces the number of cases to consider for insert and delete. However, this implementation’s detractors say that its asymmetry requires more cases to be considered and more rotations to be performed.
ANSWER: left-leaning red–black tree [or LLRB tree; reject “left” or “leaning”]
[10e] Balanced binary search trees guarantee this time complexity for search, insert, and delete. The average case of binary search has this time complexity because each step divides the search space in half.
ANSWER: big O of log n [or log time or logarithmic time; or big O of log base-2 n; or big O of the base-2 logarithm of n; or big O of log 2 of n; accept answers that use a different base in place of 2]
<Other Science>
Summary
2024 ACF Nationals | 2024-04-21 | Y | 21 | 14.29 | 81% | 62% | 0% |
Data
Waterloo | Chicago D | 10 | 0 | 10 | 20 |
Chicago C | Claremont Colleges | 0 | 0 | 10 | 10 |
McGill | Columbia A | 0 | 0 | 10 | 10 |
Columbia B | North Carolina B | 10 | 0 | 10 | 20 |
Michigan | Cornell A | 0 | 0 | 0 | 0 |
Duke | Chicago B | 0 | 0 | 0 | 0 |
Georgia Tech | Arizona State | 10 | 0 | 10 | 20 |
Harvard | NYU | 0 | 0 | 0 | 0 |
Indiana | Toronto A | 10 | 0 | 10 | 20 |
Iowa State | Florida | 10 | 0 | 10 | 20 |
Brown | Minnesota A | 10 | 0 | 10 | 20 |
Berkeley B | North Carolina A | 10 | 0 | 10 | 20 |
Northwestern | Truman State | 10 | 0 | 10 | 20 |
Maryland | Purdue | 10 | 0 | 10 | 20 |
Texas | South Carolina | 0 | 0 | 10 | 10 |
Berkeley A | Toronto B | 10 | 0 | 10 | 20 |
Kentucky | Virginia | 0 | 0 | 10 | 10 |
Johns Hopkins | WUSTL A | 10 | 0 | 10 | 20 |
Chicago A | WUSTL B | 10 | 0 | 10 | 20 |
Yale A | Cornell B | 0 | 0 | 0 | 0 |
Stanford | Yale B | 10 | 0 | 10 | 20 |