Question: Consider an initially empty hash-table of size M and hash function h(k) = k mod M. In the worst case, what is the time complexity

Consider an initially empty hash-table of size M and hash function h(k) = k mod M. In the worst case, what is the time complexity (Big-Oh notation) to insert n keys into the table if separate chaining (unordered linked list) is used to resolve collisions (with re-hashing)? On log n) O(n) O(log n) O O(n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
