Data Structures Part 1 Flashcards
Serial File
A serial file is one where the records are read in the order in which they are written. New records are added to the end of an existing file.
Sequential file
A sequential file is a serial file where the records are in order of the key field. The key field uniquely identifies a record. An example of a sequential file is a sorted transaction file.
Mask
A mask can be used to select particular bits.
ASCII
A common way of using 7 (or 8) bits to represent characters.
Binary Number
A number in base 2 using just the digits 0 and 1.
Bit
Binary Digit - the smallest unit of storage - a single 1 or 0.
Collision
In a hash file a collision occurs when the hash functions gives the same record position for two records.
Direct Access File
A file where any record can be accessed without having access it’s preceding records.
Exponent
The storage of position of the point in a floating point number.
File
A collection of records stored on backing store (tape/disk).
File processing
performing an operation (e.g. update) on each record in a file.
File update
The process of changing the contents of a file.
Fixed Point
A way of representing a whole number and a faction where the number of bits allocated to each is fixed.
Floating Point
A way of representing a whole number and fraction where the position of the point is stored separately.
Fully indexed file
A direct access file where every record has an entry in the index.
Hash File
A file where a calculation is applied to a key field value in order to give the position of the record in a direct access file. Usually modding by the amount of records.
Hash function
The calculation that is used to convert a key field value into a position in a file.
Hexadecimal
A substitution that replaces a group of 4 bits by a single character 0..9,A,B,C,D,E,F. Used to make binary number easier for humans to understand.
Index File
A direct access file where the key fields and the location of the records are stored in an index (usually held in RAM for fast searching).
Main memory
The fast memory used for holding data that is being processed and programs that are being executed.
Overflow
The attempt to store a number that is too large.
Normalising (numbers)
With floating point numbers making sure the mantissa is between 0.5 and 1 (to ensure the greatest accuracy).
Mantissa
The storage of the digits in a floating point number
Exponent
The storage of position of the point in a floating point number.
Random Access File
A file where a record can be accessed directly using the key which corresponds to the position in the file.
Range
The highest and lowest values that can be represented.
Rehash
The process of restructuring a hash file so that it can hold more records.
Relational files
Two or more files where a field of one file (foreign key) refers to a key field of a record in a different file.