1.

What is direct addressing?(a) Distinct array position for every possible key(b) Fewer array positions than keys(c) Fewer keys than array positions(d) Distinct array positions for keys based on priorityQuestion is from Direct Addressing Tables in division Hash Tables of Data Structures & Algorithms IThis question was posed to me during an interview.

Answer» RIGHT option is (a) Distinct array position for every possible KEY

For explanation: Direct ADDRESSING is possible only when we can afford to ALLOCATE an array that has ONE position for every possible key.


Discussion

No Comment Found

Related InterviewSolutions