Hashing and Indexing Flashcards

1
Q

The three major categories of
file organizations are

A

1) Sequential
2) Indexing
3) Hashing

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

What are sequential index files?

A

Sequential index files maintain keys in sorted order, allowing for efficient retrieval through sequential access.

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

What is Indexed?

A

Records are stored sequentially or nonsequentially
and an index is used to keep track of where the records are
stored.

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

What is Hashing?

A

The address of each record is determined using an algorithm that converts a
primary key value into a record address.

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

Primary Index

A

A Primary Index is an index structure defined on the ordering key field (the field that is used to physically order records on disk).

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

Clustering Index

A

When the ordering field is not a key field (i.e not unique) a clustering index is used. They are always sparse.

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

Secondary Index

A

Secondary Index: An index structure defined on a non-ordering field.

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

Sparse Index

A

Index records are not created for very search key.

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

What is static hashing?

A

The hash function always computes the same address for the search key value provided.

Number of data buckets remains constant.

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

Dense Index

A

An index is created for every record

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