Professional Documents
Culture Documents
Notes CS A2
Notes CS A2
Advantages
- No need to resort data when adding new records
- Small files require less processing
- New records can be easily added
- Suited to batch processing
Sequential - stores records one after another in a given order (in order of their key fields)
- Normally used when storing records in master files.
Advantages
- Simple file design
- Very efficient when most records are to be processed
- Eg. payrolls, utility bills
- Efficient if data has natural order
- Can be stored in an inexpensive device i.e. magnetic tapes
Disadvantages
- Entire file must be processed to search a single record
- Transactions must be pre sorted
- Processing is slow
Direct / random - records stored in any available position, the location of any record in the
file is determined by using a hashing algorithm on the key field of the record.
Hashing algorithm - mathematical formula used to perform a calculation on the key field of
the record
Advantages
- Used when fast access to data is required
- No need to search through all the records
- Suited to real - time processing
Chapter 14
Function of csma/cd
Functions of ip
Tasks to ensure transport layer that the incoming data is downloaded correctly
Protocols and uses
Http
Ftp
Bit torrent
Star topology
Chapter 15
Chapter 16
What is interrupt
Steps carried out by interrupt handler when interrupt is received and serviced
Program vs process
Virtual machine tasks
Chapter 17
Chapter 18