4.5: section 3: data representation: number, binary and information coding systems Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what are natural numbers and their set letter

A

all positive whole numbers including 0 used for counting

N={0,1,2,3}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are in integers and their set letter

A

any positive or negative whole number

Z={…-2,-1,0,1,2,3}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are rational number and their set letter

A

values expressed as fractions or ratios
Q={…2/1,2/2,2/3,2/4…}
Q={…2.1,0.6,0.5}]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are real numbers

A

numbers that are rational or irrational and are used for measurement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are ordinal numbers

A

not real or natural numbers and are used to show position

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are irrational numbers

A

a number that cannot be written as a fraction

I = { pi }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what type of numbers are used for counting

A

natural numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what type of numbers are used for measurement

A

real numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what are base 10 numbers

A

decimal numbers which are all represented with a selection of 10 digits
0,1,2,3,4,5,6,7,8,9

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what are base 2 numbers

A

binary numbers which are all represented with a selection of 2 digits
1,0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what are base 16

A

hexadecimal numbers which are all represented using a selection of 16 characters
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

why is hexadecimal used

A

hexadecimal is used as a shorthand for binary as it makes it easier to write and remember without making as many mistakes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is a bit

what is a byte

A

a bit is a single binary value

a byte is a set of 8 binary values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what are the binary units

A
kilo, k - 10^3
kibi, Ki -2^10
mega, M - 10^6
mebi, Mi -2^20
giga, G - 10^9
gibi, Gi -2^30
tera, T - 10^12
tebi, Ti -2^40
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is the difference between signed and unsigned binary

A
  • unsigned binary can only be used to represent positive decimal numbers
  • signed binary is used to represent both positive and negative binary numbers with coding schemes like twos complement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what are some rules of binary addition

A

0+0=0
1+0=1
1+1 =10
1+1+1=11

17
Q

how is binary subtraction completed

A

one of the binary numbers is translated using twos compliment and then added to the other binary number

18
Q

how is binary multiplication completed

A

the binary number is shifted by the amount of spaces necessary

19
Q

what is an absolute error

A

the difference between the target number and the closest rounded number that can be represented

20
Q

what is a relative error

A

the absolute error divided by the target number as a percentage

21
Q

compare the range provided by fixed point and floating point binary

A

fixed: depends on the position of the binary point
the more digits to the left the greater the range but the lower the precision

floating: can easily represent large numbers and small fractions. more bits used for the exponent means increased range

22
Q

compare the precision provided by fixed point and floating point binary

A

fixed: depends on the position of the binary point
the more digits to the right the greater the precision but the lower the range

floating:more bits for the mantissa means increased precision

23
Q

compare the calculation speed needed for fixed point and floating point binary

A

fixed: simpler to calculate so the processing speed tends to be faster
floating: point has to be moved first which make sit longer to be processed and calculated

24
Q

why are binary numbers normalised

A

as there are multiple ways of representing a single integer in binary binary numbers are normalised so there is only one representation for each digit.

negative numbers start with 10

positive numbers start with 01