Hashing, Hash Tables and Map (ADT)

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

This flashcard set covers key concepts related to hashing, hash tables, and the Map abstract data type as discussed in the lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

Map (ADT)

An abstract data type that stores key-value (k,v) pairs without duplicate keys.

2
New cards

Hashing

The process of mapping a set of items of any size to a fixed-size set of values using a hash function.

3
New cards

Hash Function

A function that converts an input (or 'key') into a numerical value that represents a location in a hash table.

4
New cards

Collision

Occurs when two keys hash to the same index in a hash table, leading to potential data loss unless handled correctly.

5
New cards

Closed Addressing (Chaining)

A collision resolution method where each bucket contains a linked list of elements that hash to the same index.

6
New cards

Open Addressing

A collision resolution method where all elements are stored directly in the hash table with probing to find empty slots.

7
New cards

Linear Probing

A method in open addressing for resolving collisions by checking subsequent slots in the array until an empty slot is found.

8
New cards

Resizing

The process of increasing the size of the hash table to accommodate more entries, typically triggered when a certain load factor is reached.

9
New cards

Load Factor

A measure of how full the hash table is, defined as the number of occupied buckets divided by the total number of buckets.

10
New cards

Good Hash Function

A hash function that distributes keys uniformly across the hash table, minimizing collisions.