A collection of n key-value pairs (k,m) in which k is a positive integer number in a
Fantastic news! We've Found the answer you've been seeking!
Question:
A collection of n key-value pairs (k,m) in which k is a positive integer number in a range [0,N-1] for small enough N. Assume that we may have multiple values for the same keys.
a) if m is a positive number in a range [0,M-1] for some small enough integer M, design a lookup table for storing these items such that the time complexity of search, insert and delete are constant.
b) if m is an arbitrary integer number, design a lookup table for storing these items such that the time complexity of search is log n.
Related Book For
Engineering Mechanics Statics & Dynamics
ISBN: 9780134895154
15th Edition
Authors: Russell C. Hibbeler
Posted Date: