Indexing Flashcards

1
Q

search key

A

attribute (or set of attributes) that are used to look up
records in a file

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

index entry

A

consists of the pair (search-key, pointer to data with the value stored in the search key)

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

index file

A

the file that consists of records of index entries

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

access types

A

the types of access that are supported efficiently

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

access time

A

the time it takes to find a particular data item

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

insertion time

A

the time it takes to insert a new data item

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

deletion time

A

the time it takes to delete a data item

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

ordered indices

A

based on a sorted ordering of the values

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

hash indices

A

based on a uniform distribution of values across a range
of buckets using a hash function

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

clustering index (primary index)

A

the index whose
search key also defines the sequential order of the file

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

non-clustering index (secondary index)

A

the index whose search key specifies an order different from the sequential order of the file (must be dense)

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

dense index

A

one index record appears for every search-
key value
- faster to locate a record
- takes more space

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

sparse index

A

an index entry appears for only some of the
search-key values (locate data by finding the index entry with the largest search-key value that is less than or equal to the
search-key value we are looking for and scanning from there)
- slower to locate a record
- takes less space

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