Indexing Flashcards

1
Q

Index

A

A data structure to speed up retrieval of information.

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

Clustering

A

Data is rearranged to speed up searching. Not a true index.

Good for ranges.

Only one table allowed. Requires constant re-arranges.

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

Hash

A

Associate a key with a hash function.

Worst-case perf is constant time

Good for equality tests

Not good for ranged tests

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

Tree

A

Stores the key in a tree

Good for range tests

Bad for equality tests

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

B-Tree

A

A type of self-balancing tree. Left to right increasing order

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

Costs of indices

A

Larger space.
Time to create index.
Time to update index

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