U13.2 data representation Flashcards

1
Q

file organization

A

refers to the way data is stored in a file

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

serial file organization

A
  • data is stored in chronological order
  • easy to append data to the end of the file
  • allows the data to be read in order of when they were taken
  • no KEY FIELDS need to be added
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

when is serial used

A
  • when chronological order matters
  • appending records
  • small file, so easy to search
  • when re-organizing as re-sorting is not required
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

sequential file organization

A
  • a method of file organization in which files are stored with ordered records
  • records are stored in the order of the key fields
  • new records are inserted into their correct position
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

when is sequential used

A
  • when there are unique fields, so it can be used for indexing
  • when it needs to be sorted in an order
  • batch processing (processing of transaction in a group)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

random file organization

A
  • record location is calculated
  • using a hashing algorithm on a key field
  • speed of data access is increased
  • can be used as lookup file
  • if a record cannot be stored
  • then subsequent location is searched (closed hash)
  • or an overflow area is searched (open hash - chaining)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

hashing algorithm

A

a mathematical function to find a hash key to access data

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

bucketing (closed hashing)

A

a method to deal with hashing collisions in which another empty space is found

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

chaining (open hashing)

A

a method to deal with hashing collisions in which linked lists are used to find the location in ROM

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

rehashing (closed hashing)

A

a method to deal with hashing collisions in which another algorithm is used

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

how is sequential access used

A
  • earliest reading/data is accessed first
  • each successive reading is read
  • until final reading is accessed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

random file

A
  • can be read/write at the same time
  • contains a collection of data
  • normally as records of a fixed length
  • can be thought of as having a file pointer that can be moved to any location or address of the file
  • record at that location can then be read or written
How well did you know this?
1
Not at all
2
3
4
5
Perfectly