Lecture 6 Flashcards

1
Q

What is a pointer?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two operations of dynamic sets?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an array?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the costs of operations of sorted/unsorted arrays?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a stack?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a queue?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a (singly/doubly) linked list?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the costs of operations for linked lists?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a hash table? What is the main idea?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When can we used direct addressing for hash table? How does direct addressing work?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the runtime of a hash table with direct addressing for the different operations?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the disadvantage of direct addressing hash table?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a hash function?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a collision in a hash table? How can this be solved?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is chaining?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the runtimes for operations of a hash table when using chaining?

A
17
Q

What is the worst case runtime for search in a hash table using chaining?

A
18
Q

What is universal hashing?

A
19
Q

What is the definition of the universal hash function?

A
20
Q

What is the expected runtime for universal hashing with chaining? How is it calculated?

A
21
Q

What is a well-known universal hash function?

A