FlashKeepers

Computer Science · College · College and University

Data Structures, Unit 7: Hash Tables

Data Structures, unit: Hash Tables. Core concepts, terminology, and worked-example cues a college student meets for this unit, building on prior units without repeating them. Front: a term, concept, or short problem cue. Back: the definition, explanation, or answer.

About this set

38 basic cards for College Computer Science. Set 7 of 10 in Data Structures. It opens with "What is a hash table?" and "What is a hash function?". Study it alongside the other College sets below.

38 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is a hash table?
Show answerA data structure that maps keys to values using a hash function for fast lookup
What is a hash function?
Show answerA function that converts a key into an index (or bucket) in the underlying array
What is the average time complexity of insertion, deletion, and lookup in a well-implemented hash table?
Show answerO(1)
What is a hash collision?
Show answerWhen two different keys hash to the same index
What is chaining, as a collision resolution technique?
Show answerStoring multiple key-value pairs at the same index using a linked list or similar structure
What is open addressing, as a collision resolution technique?
Show answerFinding another open slot in the array when a collision occurs, rather than chaining
What is linear probing?
Show answerAn open addressing technique that checks the next slot sequentially until an empty one is found
What is quadratic probing?
Show answerAn open addressing technique that checks slots at increasing quadratic intervals to reduce clustering
What is double hashing?
Show answerAn open addressing technique using a second hash function to determine the probe sequence
What is the load factor of a hash table?
Show answerThe ratio of the number of stored elements to the table's total capacity
What happens when a hash table's load factor gets too high?
Show answerPerformance degrades due to more frequent collisions, often triggering a resize (rehashing)
What is rehashing?
Show answerCreating a new, larger hash table and reinserting all existing elements when the load factor grows too high
What makes a good hash function?
Show answerIt distributes keys uniformly across the table and is fast to compute
What is a hash set?
Show answerA hash table variant that stores only keys (no associated values), used for fast membership testing
What is the worst-case time complexity of a hash table operation, if many collisions occur?
Show answerO(n)

23 more cards in the app

Study this set free