Fundamentals of Programming III: Data Structures

0.0(0)
studied byStudied by 0 people
0.0(0)
linked notesView linked note
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts and terminology related to hash tables as discussed in the lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

Hash Table

A data structure that maps keys to values, also called associative arrays.

2
New cards

Bucket

An element location in the hash table.

3
New cards

Hashing

The process of converting a key to a valid index.

4
New cards

Load Factor

The number of items divided by the number of buckets in a hash table.

5
New cards

Collision

Occurs when two keys hash to the same bucket.

6
New cards

Chaining

A collision handling strategy where each bucket holds a linked list of entries.

7
New cards

Linear Probing

A collision resolution method where we step through buckets one by one.

8
New cards

Quadratic Probing

A probing method where the step size increases quadratically to reduce clustering.

9
New cards

Double Hashing

A probing sequence that uses a second hash function to determine the step size.

10
New cards

Perfect Hash Function

A hash function that maps each key uniquely without collisions.

11
New cards

ESS (Empty Since Start)

Indicates that no element has ever been stored at a particular location.

12
New cards

EAR (Empty After Removal)

Indicates that a location was once occupied but is now empty.

13
New cards

Collision Handling Strategy

Techniques used to resolve collisions in hash tables, such as chaining and open addressing.

14
New cards

Resize

The process of creating a new hash table when the current one is full.

15
New cards

Common Hash Function

Functions used in a hash table to determine the index for a given key, such as division and multiplication methods.

16
New cards

Runtime Complexity for Insertions (Chaining)

Expected time O(1 + α) where α is the load factor.

17
New cards

Clustering

Occurs when multiple keys in a hash table occupy adjacent buckets, hindering performance.

18
New cards

Threshold

A value that must be exceeded for an action to be triggered in hash tables.