How to practice concept:hash-tables

Attempt a question, record the concept and assumptions, then check the available answer. Rework mistakes after revising the relevant concepts. Topic tags can overlap; review the question context.

Questions 1–3 of 3. Imported answers require independent review unless marked reviewed.

Topic practice 3 questionsPage 1 of 1

Question 18

Open question
daMCQ1 markNeeds review
Consider a hash table of size 10 with indices

, with the hash function

where linear probing is used to handle collisions. The hash table is initially empty and the following sequence of keys is inserted into the hash table: 1, 4, 5, 6, 14, 15. The indices where the keys 14 and 15 are stored are, respectively
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 16

Open question
DAMCQ1 markNeeds review
Match the items in Column 1 with the items in Column 2 in the following table:
Column 1: (p) First In First Out; (q) Lookup Operation; (r) Last In First Out.
Column 2: (i) Stacks; (ii) Queues; (iii) Hash Tables
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 21

Open question
DAMCQ1 markNeeds review
Consider performing uniform hashing on an open address hash table with load factor

, where

elements are stored in the table with

slots. The expected number of probes in unsuccessful search is at most

. Inserting an element in this hash table requires at most _____ probes, on average.
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer