Mantissa and Exponent Polished Notes A2
Mantissa and Exponent Polished Notes A2
a mathematical formula used to perform a calculation on the key field of the record, the
result of the calculation gives the address where the record should be found
Write a record
chooses a suitable number and divides this number by the value in the key field
Remainder from this division then identifies the address in the file for storage of the
record
Suitable numbers: prime numbers of a similar size to the expected size of the file
the address of the location to read from is calculated using the hashing algorithm and
the key field of the record stored there is read
But before using that record, the key field must be checked against the original key
field to ensure that they match
If key fields does not match, then the following records needs to be read until a
match is found (open hash) or the overflow area needs to be searched for a match
(closed hash)
A binary number written in the form M x 2^E (where M is the Mantissa and E is the
exponent)
the exponent = the power of 2 that the mantissa (fractional part) is raised to in a
floating-point number
Computer Science 6
Convert binary floating-point into denary and vice versa
Computer Science 7
Computer Science 8
Computer Science 9
Computer Science 10
Normalise floating-point numbers
Computer Science 11
A method to improve the precision of binary floating-point numbers: positive numbers
should be in the format 0.1 and negative numbers in the format 1.0
Positive Number
The bits in Mantissa are shifted to the left until we arrive at 0.1; for each left, the
exponent is reduced by 1
Negative Number
The bits
bis in the mantissa are shifted until we arrive at 1.0; again, the exponent must be
changed to reflect the number of shifts
The accuracy of a number can be increased by increasing the number of bits used in the
Mantissa
Computer Science 12
The range of numbers can be increased by increasing the number of bits used in the
exponent
Accuracy and range will always be a trade-off between Mantissa and Exponent size
Computer Science 13
Show understanding that binary representation can give rise to rounding errors
Overflow Error
If a calculation produces a number which exceeds the maximum possible value that
can be stored in the Mantissa and Exponent, an Overflow error will be produced
This could occur when trying to divide by a very small number or even 0
Underflow Error
When dividing by a very large number this can lead to a result which is less than the
smallest number that can be stored
One of the issues of suing normalised binary floating-point numbers is the inability to store
the number 0
Computer Science 14
This is because the Mantissa must be 0.1 or 1.0 which does not allow for a 0 value
a set of rules governing communication across a network: the rules are agreed by both sender
and recipient
all data is sent and received using the same rules and format
Show understanding of how protocol implementation can be viewed as a stack, where each
layer has its own functionality
The layers are numbered and sit one above each other, and can therefore be thought
of as a stack
The output from one layer provides the input for the next layer
Each layer interacts only with the layer directly above/below it, and at the bottom of
the stack
The Physical layer transmit data between the source and destination devices
uses a set of protocols for transmission of data transport control protocol with internet
protocol
TCP
IP
Computer Science 15