After this class, you should be able to:
23
with p(i) = i + 3
after the following sequence of operations are complete. Also give the number of hash table entries searched for each of the following operations. Use the function f1
defined in class, for the hashing. insert("abcd"), insert("dbcd"), search("decd"), insert("abdc"), insert("bbcd"), insert("dabc"), insert("decd"), delete("abdc"), search("dabc"), search("abdc")
.
23
after the following sequence of operations are complete. Also give the number of hash table entries searched for each of the following operations. Use the function f1
defined in class, for the hashing. insert("abcd"), insert("dbcd"), search("decd"), insert("abdc"), insert("bbcd"), insert("dabc"), insert("decd"), delete("abdc"), search("dabc"), search("abdc")
.
n/T
exceeds 0.5
. Show that the amortized time complexity for n
insertions is O(n)
.