Save
Chapter 13
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Yusuf Berker
Visit profile
Cards (58)
What is
the
simplest method of file organisation?
Serial file organisation
View source
Why are serial files primarily used as transaction files?
To record
transactions
in the order they occur
View source
How are new records added in a serial file?
Appended
to the end of the file
View source
What is the key difference between a sequential file and a serial file?
Sequential files are ordered based on a
key field
View source
What is the primary key used for in sequential files?
To order the
records
in the file
View source
Why are sequential files ideal for master files and batch processing applications?
Because they have a high
file hit rate
View source
What is the main characteristic of random file organisation?
Records
are stored in random order
View source
How is the location of a record determined in a random file?
By a
mapping function
using the
record key
View source
What are the two methods of file access?
Sequential access
and
direct access
View source
Why is sequential access efficient for files with a high hit rate?
Because nearly every
record
is used when the program is run
View source
What is required to use direct access in a sequential file?
An index of all the
key fields
View source
What is the purpose of a hashing algorithm in random file organisation?
To calculate the address of the file location for a
record
View source
What is a collision in hashing algorithms?
When two
records
try to use the same
file location
View source
What are the two ways to deal with collisions in hashing algorithms?
Open hash
and
closed hash
View source
If a file has space for 2000 records and the key field value is 3024, what address would a hashing algorithm using modulo 2000 give?
1024
View source
Why must the key field be checked when reading a record using direct access?
To ensure it matches the
original key field
View source
What are the characteristics of a good hashing function?
Quick to
calculate
Covers the complete range of the
address space
Gives an
even distribution
Does not generate addresses that
cluster
View source
What are the steps to read a record using direct access with a hashing algorithm?
Calculate the address using the hashing algorithm
Read the
key field
at the calculated address
Check if the key field matches the original key
If no match, search the next records or
overflow area
View source
What are the differences between serial, sequential, and random file organisation?
Serial
: Records stored in order of
creation
, unordered
Sequential
: Records stored in a logical sequence based on a
key field
Random
: Records stored in random order with a
mapping function
View source
What are the advantages and disadvantages of sequential access?
Advantages:
Efficient for
high hit rate files
Simple to implement
Disadvantages:
Inefficient for
low hit rate files
Requires searching from the start
View source
What are the advantages and disadvantages of direct access?
Advantages:
Quick access to specific records
Efficient for low hit rate files
Disadvantages:
Requires additional
indexing
or
hashing
Potential for
collisions
in hashing
View source
What are the differences between open hash and closed hash collision resolution?
Open hash: Store the record in the next free space
Closed hash: Store the record in an
overflow
area
View source
What are the typical applications of serial, sequential, and random file organisation?
Serial
: Transaction files (e.g.,
customer
meter readings)
Sequential
:
Master files
and
batch processing
(e.g., payroll systems)
Random
: Direct access applications (e.g., updating a single customer record)
View source
What are the key considerations when selecting a file organisation method?
Frequency of access
(
hit rate
)
Need for
ordered records
Requirement for direct access
Size of the file
View source
What are the key considerations when selecting a file access method?
Frequency of access
(
hit rate
)
Need for
direct access
to specific records
Efficiency of searching
and updating records
View source
What are the key considerations when designing a hashing algorithm?
Speed of
calculation
Coverage of the
address space
Even distribution of addresses
Minimization of
collisions
View source
What are the key considerations when dealing with collisions in hashing algorithms?
Method of collision resolution (
open hash
or
closed hash
)
Efficiency
of searching for the correct record
Impact on
overall performance
View source
What are the key considerations when implementing direct access in sequential files?
Maintenance of an
index
of
key fields
Efficiency of searching the index
Impact on
overall performance
View source
What are the key considerations when implementing direct access in random files?
Design of the
hashing algorithm
Efficiency of
calculating the address
Impact of
collisions
on performance
View source
What are the key considerations when implementing sequential access in serial files?
Efficiency
of searching from the start
Impact of
file size
on performance
Need for
ordered records
View source
What are the key considerations when implementing sequential access in sequential files?
Efficiency of
searching
based on
key field
Impact of file size on
performance
Need for
ordered records
View source
What are the key considerations when implementing random access in random files?
Design of the
hashing algorithm
Efficiency of
calculating the address
Impact of
collisions
on performance
View source
What are the key considerations when implementing random access in sequential files?
Maintenance of an index of
key fields
Efficiency of searching the index
Impact on
overall performance
View source
What are the key considerations when implementing hashing algorithms in random files?
Speed of calculation
Coverage of the
address space
Even distribution of addresses
Minimization of
collisions
View source
What are the key considerations when implementing hashing algorithms in sequential files?
Maintenance of an
index of key fields
Efficiency of searching the index
Impact on
overall performance
View source
What are the key considerations when implementing hashing algorithms in serial files?
Efficiency
of searching from the start
Impact of
file size
on performance
Need for ordered records
View source
What are the key considerations when implementing hashing algorithms in random files?
Design of the hashing algorithm
Efficiency of calculating the
address
Impact of
collisions
on performance
View source
What are the key considerations when implementing hashing algorithms in sequential files?
Maintenance of an
index
of
key fields
Efficiency
of searching the index
Impact on
overall performance
View source
What are the key considerations when implementing hashing algorithms in serial files?
Efficiency
of searching from the start
Impact of
file size
on performance
Need for ordered records
View source
What are the key considerations when implementing hashing algorithms in random files?
Design of the hashing algorithm
Efficiency of calculating the
address
Impact of
collisions
on performance
View source
See all 58 cards
See similar decks
Chapter 7
75 cards
chapter 20
99 cards
Chapter 6 Matrices
33 cards
Chapter 4
English > A Room With A View > Varieties in Language and Literature
20 cards
british history chapter 9
27 cards
Chapter 3
CHEM 100 - Chapter 1
27 cards
Chapter 1
48 cards
chapter 3
51 cards
CW: Chapter 8
22 cards
Chapter 8
English Literature > The Great Gatsby
39 cards
Chapter 13
BIO > BIO PAPER 2 > Topic 5
33 cards
Chapter 6
BIO > BIO PAPER 1 > Topic 3
27 cards
Chapter 1
Britain 1930-1997
17 cards
Chapter 3
BIO > BIO PAPER 1 > Topic 2
51 cards
Chapter 19
BIO > BIO PAPER 2 > Topic 7
19 cards
chapter summaries
The Odyssey flashcards
77 cards
Chapter 18
BIO > BIO PAPER 2 > Topic 7
17 cards
Chapter 4
BIO > BIO PAPER 1 > Topic 2
16 cards
chapter one
handmaids
5 cards
Chapter 22
Cold War
70 cards
Chapter Reviews
English Lit > The Great Gatsby
3 cards