Housekeeping before the main topic: an erratum about last lecture's van Emde Boas / y-fast trie space bounds.
The claimed result
- Last lecture covered van Emde Boas trees and y-fast tries; both reach the same query bound (
0:00). - For vEB trees the suggestion was: replace the arrays with hash tables to get
O(n)space instead ofO(u)space (0:18). - This is exactly CLRS Exercise 20-1, part (f) — prove that hash tables in place of arrays yield linear space (
0:18).
The error
- What was presented in class is CLRS's intended solution, but it contains a subtle error (
0:39). - It is not merely a flawed argument: the construction genuinely does not achieve
O(n)space — it is slightly worse (0:56). - Assigned as a problem-set problem: the exact wrong sentence will be identified, and students must explain why it is wrong and fix it (
0:56).