1.

In hash tables, how many traversal of links does a successful search require?(a) 1+⅄(b) 1+⅄^2(c) 1+ (⅄/2)(d) ⅄^3My query is from Hash Tables topic in portion Hash Tables of Data Structures & Algorithms II had been asked this question by my school principal while I was bunking the class.

Answer»

Right option is (C) 1+ (⅄/2)

EXPLANATION: A successful search REQUIRES about 1+ (⅄/2) links to be TRAVERSED. There is a GUARANTEE that at least one link must be traversed.



Discussion

No Comment Found

Related InterviewSolutions