WJEC A-Level Computer Science 601-5345-3
Hardware: Architecture, Memory and Storage
Networks and Data Transmission
Logic Gates and Boolean Algebra
Data Representation and Data Types
Data Structures
Organisation of Data: Files and Records
Database Systems
The Operating System
Algorithms and Programs
Principles of Programming
Systems Analysis
Software Engineering and Program Construction
Types of Software System
Practical Programming
Data Security and Integrity
Computing, Society and the Law
Advanced Data Structures and Logic
Recursion, Sorting and Searching
Programming Paradigms and Translators
System Design and Human-Computer Interaction
Software Engineering Tools and Professional Practice
Advanced Architecture and Assembly Language
Communication Networks and File Organisation
Number Representation and Floating Point
Databases and Distributed Systems
Operating System Management
Software Systems and Applications
Data Security, Cryptography and Attack
Communication Networks and File Organisation
Hashing algorithms
- 3 things to know
- A2 Unit 4
Overview
Hashing algorithm, in the context of file organisation, purpose of hashing and folding method.
What you need to know
Answer each one before you reveal it.
What is a hashing algorithm, in the context of file organisation?
Give a simple hashing algorithm.
Questions from this subtopic
Each one with the model answer underneath.
- 1
What is a hashing algorithm, in the context of file organisation?
Model answer
A calculation that converts a record's key into the address at which the record is stored.
- 2
What is the purpose of hashing?
Model answer
To locate a record in one access, without searching the file or reading an index.
- 3
Give a simple hashing algorithm.
Model answer
Divide the key by the number of available addresses and take the remainder, which is the modulo or division method.
- 4
Apply the modulo method with 1,000 addresses to the key 45,682.
Model answer
45,682 modulo 1,000 gives 682, so the record is stored at address 682.
- 5
Describe the folding method.
Model answer
The key is split into parts of equal length, the parts are added together, and the address is taken from the result.
- 6
Describe the mid-square method.
Model answer
The key is squared and a group of digits is taken from the middle of the result as the address.
Other ways to work this
The same content, four other ways.
What is inside Levo
Six ways to work the same material.
Every question in Communication Networks and File Organisation, on a schedule.
Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.