1/57
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Natural numbers
all positive integers, including 0
symbol → N
used for counting
Integer numbers
all positive and negative integers
symbol → Z
Rational numbers
set of numbers that can be written as fractions
symbol → Q
Irrational numbers
set of numbers that cannot be written as a fraction
e.g. root 2 or pi
Real numbers
set of all possible real world quantities
symbol → R
used for measurement
Ordinal numbers
when objects are placed in an order
e.g. 1st, 2nd, 3rd
Number bases
decimal → base 10, subscript 6710
binary → base 2, subscript 100110112
hexadecimal → base 16, subscript AE16
why is hexadecimal used
as a shorthand for binary
easier for humans to read and error check
e.g. colours
bit
fundamental unit of information
either 0 or 1
byte
8 bits
how many values can be represented by n bits
2n, e.g. 23=8, can represent 8 different values
Kibi
210 → Ki
Mebi
220 → Mi
Gibi
230 → Gi
Tebi
240 → Ti
Kilo
103 → k
Mega
106 → M
Giga
109 → G
Tera
1012 → T
what is signed binary
when the most significant bit is used as a placeholder for sign rather than a value, 0=+ and 1=-
minimum and maximum number of bits for unsigned binary
minimum → 0
maximum → 2n-1
two’s complement
most significant bit represent -2n-1 e.g. 10002=8
range from -2n-1 to 2n-1-1
fixed point binary
binary point fixed between a set number of bits
e.g. 0000.0000
not as precise
greater speed of calculation
only when data is known to be within a certain range
Floating point binary
binary point can float between number of bits
mantissa and exponent
lower speed of calculation
more memory to store mantissa
greater precision
for greater range of values
mantissa
represents value with decimal after first bit
exponent
represents position of point to convert to actual value
why might fixed/floating point binary be inaccurate
for a real number to be represented exactly by the binary number system it must be capable of being represented by a binary fraction in the given number of bits
some cannot every be represented exactly, e.g. 0.110
Absolute error
difference between the actual number and the binary value
e.g. 1/3 accurately would be 0.01(recursively), if rep by 4 bits, 0.0101=5/16, absolute error 16/48-15/48=1/16
Relative error
percentage difference between the actual number and binary value
using 1/3 and 4 bits = 5/16 divided by 1/3=15/16
Why are floating point numbers normalised
to store a greater range of values, reduces need for repeated binary values
what is normalised binary
starts with 10 or 01
uses two’s complement floating point binary
how to normalise floating point binary
convert into fixed point
adjust exponent accordingly
if number starts with >one 1, cut them off (will be added when converted)
underflow
not enough bits available to represent a number therefore would cut off the least significant bit
e.g. 0.00001 with only 5 bits would be 0.0000
overflow
significant when using signed binary as if you were to add 127 and 1 using 8 bits, answer would be -128 hence overflow has occurred
differentiation between character code, decimal digit and pure binary representation
Character code representation (like ASCII) treats digits as symbols (e.g. 5 is 53 in ASCII), while pure binary representation directly converts the digit's value (5 becomes 101 in binary)
ASCII
way of representing characters with seven bits; later extended to eight
Unicode
16 to 32 bits, created to represent more languages and symbols, now have more storage
why error check
bits can change erroneously due to interference, need to verify
Parity bits
additional bit used to check that the other bits transmitted are likely to be correct, very efficient
odd or even parity, used to ensure that total number of 1s in each byte (inc. parity) equals an odd or even number e.g. 01010010 → odd parity
Disadvantage:
if there are two 1’s in an even parity, 4 bits being transmitted would not cause error and if error occurs, need to retransmit data
Majority voting
data transmitted multiple times, most commonly occurring value taken to be correct
corrects error - no need for retransmission but volume of data being transmitted increased(takes longer hence less efficient)
checksum
algorithm applied to data to determine checksum, e.g. modulo to return division remainder
value appended to original in binary (put on end)
recipient removes checksum and applies same algorithm to ensure this matches (efficient when algorithm is not complex)
cannot correct the error, must retransmit
check digit
type of checksum where only single digit added to transmitted data
reduces number of different algorithms that could be used, reduces variety of errors that can be detected - efficient
how can bit patterns be used to represent images/sound
images can be stored using the images height and width in pixels with the colour depth
sound can be stored as digital samples of the original sound.
analogue data
continuous and has no limits
analogue signal
can take any values
changes frequency as required
digital data
discrete, represents particular values
digital signal
takes range of values
changes frequency at specific intervals
ADC
Analogue to Digital Converter
samples the data (takes readings at regular intervals and records frequency)
frequency → no. samples/second, increased better but uses more space as increased number of bits
used with analogue sensors
e.g. temperature sensors or microphones
DAC
Digital to Analogue Converter
reads bit pattern representation of analogue signal and outputs alternating, analogue, electrical current
mostly for audio, e.g. speakers
How are bitmaps represented
image broken into pixels, each of which have a binary value assigned
resolution
number of dots per inch, where a dot is a pixel
colour depth
number of bits stored for each pixel
size in pixels
width of image in pixels x height of image in pixels
storage requirements for bitmapped images ignoring metadata
storage requirements = size in pixels x colour depth
typical metadata
width
height
colour depth
date created
how vector graphics represent images
uses list of objects containing the properties of each geometric object/shape
typical vector properties of objects, e.g. rectangle
width
height
position
fill
colour