Organisation And Structure Of Data Flashcards

1
Q

File Headers

A

Store data within a file, about the file.

.txt in windows has no info. Jpeg files describe how an image should be displayed

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

Fixed Length fields and records
2 points
Advantages & Disadvantages
Example

A

• same length
• some fields may be ‘padded out’ with spaces to make it the right length
Advantage
• Fast access because the location of each record can be quickly calculated.
• Quck to process all data
Disadvantage
•Usually larger files, need more storage space and are slower to transfer (load/save/transmit down network)
Eg
Information retrieval system
Train time-table program

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

Variable Length Files
1 point
Ad & Dis
Eg

A

• One or more fields can be differing length
• have terminator byte at end of each field and record
Ad
•Less storage space
• Faster to transmit /load/save
Dis
• Processing will be slower as each start and end point of each field needs to be calculated
Eg
•where download speed would be an issue
Sending list of customer details between 2 company offices

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

Serial File

A

Records stored one after another in no particular order

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

Sequential File

A

Records stored one after another and accessed in a key sequence order
Eg register ordered by surname

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

Indexed sequential

A

Records stored in key order

Index allows data to be accessed directly

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

Random Access

A

Hashing algorithm is used on a key field to calculate the location for the record in the file

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

Random access file

A

Consist of fixed length records ordered by their relative address
• can be read in sequential order
• accessed using the relative key. ( represents the location of the record relative to the start address)
• records inserted using relative key. Relative address calculated using relative key
Ad
• fastest access to records
Dis
•if intermediate records are missing, they will occupy space

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

Linear probing

For dealing with person with the same last name as exsisting record.

A

Next available space is used to store the record of person with the same last name

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

Daisy Chaining

A

Put record in same memory loaction with a pointer that points to the next person

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

Good hashing algorithm

A
  • produces unique values
  • wide spread of values
  • fast calculation
  • collisions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How hashing algorithm deletes records

A

Logically not physically

Pointers the point to the part of the disk are removed.

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

how hashing algorithm updates records

A

Calculate location of Harry’s

overwrite file in situ

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