Number systems

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/50

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

51 Terms

1
New cards

What is a bit

A binary digit.

2
New cards

What is a byte?

A group of 8 bits

3
New cards

What is binary?

Number system that uses 0 and 1

4
New cards

What is the general notation to represent a number in a specific number system

Nᵣ = number N using radix r (aka base r - the number of possible digit values).

5
New cards

Give an algorithm to convert binary to decimal

knowt flashcard image
6
New cards

Give an algorithm to convert to decimal to binary

knowt flashcard image
7
New cards

Give an algorithm to convert binary fractional number to decimal

knowt flashcard image
8
New cards

How to add in binary?

knowt flashcard image
9
New cards

What are the 3 ways to represents negative number

  • Sign/magnitude: invert just the sign bit.

  • 1's complement: invert all bits.

  • 2's complement: invert all bits, then add one.

(The left most bit still indicates sign)

10
New cards

What advantage does 2’s complement have over 1’s complement?

Easy to do arithmetic with it

11
New cards

How to do binary substraction?

knowt flashcard image
12
New cards

Who introduced the system to allocate a certain amount of memory to represent floating point number?

IEEE 754

13
New cards

What is the issue with fixed point numbers?

Fixed point numbers have very limited range (determined by bit length)

14
New cards

What are the two parts of a floating point number?

  • Mantissa: the number multiplying the base

  • Exponent: the power

15
New cards

What is a significand?

The significand is the part of the mantissa after the decimal point

<p>The significand is the part of the mantissa after the decimal point</p>
16
New cards

What is the difference between fixed point number and floating point number

knowt flashcard image
17
New cards

What is the issue with Floating Point Range?

Large range, but limited accuracy (truncation errors)

18
New cards

How to normalise a floating point?

knowt flashcard image
19
New cards

What you have to do before storing a floating point number?

Normalise it

20
New cards

How to represent a binary floating point number?

knowt flashcard image
21
New cards

What are the issues that IEEE 754 standard format solved?

knowt flashcard image
22
New cards

What is the standard format for single and double floating point formats

  • Sign bit (1 bit)

  • Exponent (8 bits for single, 11 bits for double)

  • Significand (23 bits for single, 52 bits for double)

  • The leading 1 is implied so not stored.

23
New cards

What are the ranges for single and double floating point numbers?

knowt flashcard image
24
New cards

What is the exponent is biased

knowt flashcard image
25
New cards

How to represent a binary floating point number in IEEE 754 format

(-1)S (1 + significand) * 2exponent - bias

<p>(-1)S  (1 + significand) * 2exponent - bias</p>
26
New cards

What are the exponent and significant of 0?

Exponent and significand are 0 (exponent is 0, we underflow)

27
New cards

What are the exponent and significant of infinity?

  • Exponent 1111...1111 & significand = 0.

  • The above also have -ve variants (e.g. -∞ < -0 == 0 < ∞).

28
New cards

What are the exponent and significant of NaN (Not a number)?

  • Exponent 1111...1111 & significand != 0.

  • NaN is not equal to any other number, not even itself (ie. NaN == NaN -> False).

29
New cards

What is overflow?

Overflow means that values have grown too large for the representation, much in the same way that you can overflow integers

30
New cards

What is underflow?

Underflow is a less serious problem because is just denotes a loss of precision, which is guaranteed to be closely approximated by zero.

31
New cards

What is exponent overflow?

Exponent Overflow Exponent bigger than max permissible size; may be set to “infinity”

32
New cards

How to do addition/subtraction with floating point number

  • Normalise

  • Match to larger exponent

  • Add

  • Normalise

33
New cards

What is exponent underflow?

Exponent Underflow → Negative exponent, smaller than minimum size; may be set to zero.

34
New cards

What is significand underflow?

Significand Underflow → Alignment may cause loss of significant digits

35
New cards

What is significant overflow?

Significand Overflow → Addition may cause carry overflow; realign significands.

36
New cards

How does ASCII store characters?

7 bits for standard characters, but stored in a byte (8 bits). [First]

37
New cards

How does Unicode store characters?

21 bits with variable length encoding between 1 and 4 bytes

38
New cards

How does EBCDIC store characters?

(9-bit)

39
New cards

How are characters represented?

Characters are represented as "character sets."

40
New cards

What are different protocols that represents characters?

  • ASCII

  • Unicode

  • EBCDIC

41
New cards

What is Boolean Algebra?

Boolean Algebra: Algebra with operations that use and yield only two discrete states ( True and False )

42
New cards

What is the symbol logic gate symbol for and?

knowt flashcard image
43
New cards

What is the symbol logic gate symbol for or?

knowt flashcard image
44
New cards

What is the symbol logic gate symbol for NAND?

knowt flashcard image
45
New cards

What is the symbol logic gate symbol for NOR?

knowt flashcard image
46
New cards

What is the symbol logic gate symbol for NOT?

knowt flashcard image
47
New cards

What is the symbol logic gate symbol for XOR?

knowt flashcard image
48
New cards

Who formalized the Boolean Algebra?

George Boole

49
New cards

Give truth table for AND, OR, Not A, Not B, NAND, NOR and XOR

knowt flashcard image
50
New cards

What are the Algebraic Identities

knowt flashcard image
51
New cards

What is NOT known as?

Unary operator