2.3.1 Data Storage & Compression (B01) Flashcards

(13 cards)

1
Q

bit (b)

A

(short for binary digit) is the smallest unit of data in a computer. A bit has a single binary value, either 0 or 1.

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

byte (B)

A

8 bits

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

nibble

A

4 bits / half a byte

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

bit rate

A

number of bits transmitted (usually per second)

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

kibibyte

A

2^10 bytes (1024)

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

the hierarchy of bytes

A

kibi, mebi, gibi, tebi

(kennard, miss jones, gib, truck)

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

A typical book has about 459 000 characters. Your eReader has half a mebibyte of space left on it. Will a typical book fit in the remaining space? Assume 1 character = 1 byte

A

459 000 chars = 459 000 bytes
1 MiB =1024 ×1024 bytes
459 000 chars = (459 000)/(1024 × 1024) mebibytes
This is approx. 0.438 MiB, so the book will fit.

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

compression

A

reducing large file sizes by repackaging/removing some data

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

lossy compression (what, how effective, examples)

A

permanently deletes data
- can reduce up to 90%
- but can never be reconstructed to its original state

for audio files this is removing frequencies outside out of human hearing range

eg JPEG (images), MP3 (sound)

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

lossless compression (what, how effective, examples)

A

retains the exact meaning of the original data
done by identifying and removing redundant data (eg if words are used more than once, a lookup table is created and they are converted to tokens pointing to their place in the table)
- can reduce by around 50%
- means file can be reconstructed to original state when decompressed

eg PNG (images), FLAC (audio). ZIP (archiving)

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