Hashing Concepts

Hashing Concepts

Assessment

Flashcard

Computers

University

Hard

Created by

Teguh Adiwibawa

FREE Resource

Student preview

quiz-placeholder

38 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the goal of hashing?

Back

To perform inserts, deletes, and finds in constant average time.

2.

FLASHCARD QUESTION

Front

What are the main topics covered in hashing?

Back

Hash table, hash function, collisions.

3.

FLASHCARD QUESTION

Front

What are the two main methods of collision handling in hashing?

Back

Separate chaining and open addressing.

4.

FLASHCARD QUESTION

Front

What is the load factor in hashing?

Back

The load factor is a measure of how full the hash table is allowed to get before its capacity is automatically increased.

5.

FLASHCARD QUESTION

Front

What is the average time complexity for searching in a hash table?

Back

O(1) on average, but can degrade to O(n) in the worst case.

6.

FLASHCARD QUESTION

Front

What is a hash function?

Back

A function that maps keys into positions in a hash table.

7.

FLASHCARD QUESTION

Front

What is a collision in hashing?

Back

A collision occurs when two keys map to the same location in the hash table.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?