Multiple-choice questions written from each lecture. Pick an answer to see why it is right and the moment it comes from.
0/8 correct · 0 of 8 answered
Why can't an algorithm be faster than O(log n) in the restricted model of computation described?
In the comparison‑based decision tree model, what does the number of leaves represent?
What is the basic idea behind using an array indexed by a key’s value for faster lookup?
Why must the universe size U be less than 2^W for direct‑address tables to work in constant time?
Why are linked lists unsuitable for the bucket array in a hash table?
What does the division method hash function h(k) = k mod M do?
In a universal hash family h_{a,b}(k) = ((a·k + b) mod p) mod m, how are the parameters a and b chosen?
For two distinct keys i and j, what is the probability that they collide under a universal hash function with m buckets?