1.4 Data types, data structures and algorithms

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

1/28

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.

29 Terms

1
New cards

Truth tables

Show all the possible outcomes for a particular operation.

2
New cards

K-maps

Every group in a K-map must be a rectangle and a power of 2 (1,2,4,8 etc). An element can be in more than one group; this can also provide better precision.

3
New cards

Logic gates:

4
New cards

undefined

Negates input.

5
New cards

undefined

If both inputs are true, the statement is true.

6
New cards

undefined

If one input is true, the statement is true.

7
New cards

undefined

Same as OR, but if both inputs are true, the statement is false.

8
New cards

undefined

Negates OR.

9
New cards

undefined

Negates AND.

10
New cards

Simplifying circuits:

11
New cards

undefined

12
New cards

undefined

13
New cards

undefined

14
New cards

undefined

15
New cards

undefined

16
New cards

Unsigned integers:

17
New cards

undefined

Have column headings as powers of 10.

18
New cards

undefined

Have column headings as powers of 2.

19
New cards

undefined

Have column headings as powers of 16 (0-9, A-F).

20
New cards

Adders:

21
New cards

undefined

2 bits added.

22
New cards

undefined

3 bits added, taking in a carry.

23
New cards

Sign and magnitude

Unsigned binary cannot represent negative numbers. In S+M, the MSB represents a negative sign.

24
New cards

2's Complement

Replaces the MSB with a negative value. In a byte, this would be -128 instead of 128.

25
New cards

Adding negative numbers

Using two's complement, add the numbers together with a negative version.

26
New cards

Floating point

Express a number in floating point format.

27
New cards

Precision

Refers to how many significant figures a number has.

28
New cards

Accuracy

Refers to how correct a number is.

29
New cards

Adding floating point numbers

Make the exponents the same, then add the mantissas. Ignore overflow if carry in and out are the same with 2's complement.