返回卡包市场

Yr2 Hash Tables

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 8内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (8 张)

#1
正面 (问题)

What is a hash table?

背面 (解答)

Where data is stored is determined by hashing said data to produce the number corresponding to a memory location based

#2
正面 (问题)

What is the theoretical speed of a hash table search?

背面 (解答)

O(1)

#3
正面 (问题)

What is a big issue with hash tables?

背面 (解答)

Collisions - collisions are where two pieces of data produce the same memory location when hashed

#4
正面 (问题)

What are the two solutions to hash table collisions?

背面 (解答)

• Overflow (best solution) • Storing in the next memory location

#5
正面 (问题)

How can overflow be used to solve a hash table collision?

背面 (解答)

Using a linked list store both pieces of data in the same memory location and refer to them using pointers when needed.

#6
正面 (问题)

What issues are there with using overflow to solve a hash table collision?

背面 (解答)

The memory location may be unable to store both pieces of data if they are too large

#7
正面 (问题)

What problems are there with storing data int he next memory location in order to solve hash table collisions?

背面 (解答)

It increases the chance of collisions in the future

#8
正面 (问题)

What is a dictionary?

背面 (解答)

A data structure that maps items to other specified values