Data Compression Flashcards

1
Q

Why do we compress files? (2)

A

-less storage space
-less network transition time

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

Differentiate between the two types of data compression and give an example of each

A

-Lossless: no data is lost, the file just becomes smaller. ex) pkzip
-Lossy: data may be lost ex) Jpeg, MP3

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

What are the 2 techniques of data compression, and are they lossy or lossless?

A

-both lossless
-Huffman (binary trees with characters as leaves, branches represent encoding)
-code dictionary (short, fixed code words)

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

How many bits does each character occupy?

A

8 bits = 1 byte

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

In huffman coding, the branches represent __, while the nodes leaves represent___.

A

encoding, characters

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

what are pixels?

A

Tiny dots of white, black, or colour arranged on screen

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

What are bit-mapped graphics/ raster graphics?

A

simple maps showing where pixels should go

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

What is resolution?

A

Number of pixels in total per square inch

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

vector/object-oriented graphics are?

A

images represented by geometrical formulas

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

Differentiate between JPeg and GIF compression

A

JPEG: complex, pictures, 24 bit (millions of colours), divides and processes images in 8x8 groups, quality factor, lossy

GIF: simple, cartoons, 8 bits (256 colours), map each colour to letter lossless

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

PNG

A

-replacement for GIF
-24 bit
-no printing, only transferring images via internet

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

Complex audio

A

-remove imperceptible sounds
-remove quiet sounds competing with loud

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

simple audio

A

-decrease sample bit depth or rate

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

What is an audio file determined by?

A

-sample rate (HZ)
-bit resolution
-time (s)
-channels (1= mono, 2= stereo)

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