5.6 Representing images, sound and other data Flashcards

1
Q

what are the main difference between analogue and digital data? ( a lot of information with 3 separate points)

A

Analogue data is continuous, there are no limits to the values that the data can take. Digital data is discrete meaning that it can only take particular values.

An analogue signal can take any values and can change as frequently as required whereas a digital signal must always take one of a specified range of values and can only change value at specified intervals.

The trace of a digital signals value against time is characterised by sharp edges and vertical drops as the signal changes value. While analogue signals tend to be smooth curves, they can sometimes feature sharp peaks.

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

How do you convert sound digital to analogue?

A

When converting from digital to analogue a device called a digital to analogue converter (DAC) is used. This device reads a bit pattern representing an analogue signal and outputs an alternating, analogue, electrical current.

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

How do you convert sound analogue to digital?

A

The computer uses an analogue to digital converter (ADC) to convert analogue to a digital bit pattern. the device works by taking a reading of an analogue signal at regular intervals and recording the value in a process called sampling. Samples are taken at a specific frequency, given in hertz, which determines the number of samples taken per second. This is usually a high number as greater sampling frequencies result in a better reproduction of the analogue signal. Once the value if the analogue signal has been recorded it can be stored digitally as a bit pattern.

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

How do bitmap graphics work?

A

An image is broken down into pixels each of which has a binary value assigned to it.

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

What is the resolution of an image?

A

A resolution of an image is often expressed as a number of dots per square inch in an image where a dot is a pixel. Resolution can also refer to the number of pixels in an image.

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

what is colour depth, how can it be calculated?

A

Colour depth is the number of bits assigned to a pixel in an image is called its colour depth. It can be calculated by 2^n n being the amount of bits used

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

how do you calculate the storage required to represent a bitmap image?

A

Multiple the number of pixels (width * height) by the colour depth + metadata.

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

what are some typical examples of metadata?

A

Width, height, date created and colour depth

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

How do vector graphics work?

A

Vector graphics represent images using geometric objects and shapes such as rectangles circle and lines. The properties of each geometric object or shape in the image are stored in a list.

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

What’s the advantages and disadvantages of using vector graphics over bitmap images?

A

Because vector graphics uses shapes they can be scaled without losing quality unlike bitmap images.

Vector graphics are well suited to simple images which use shapes, like company logos however bitmap images are much better for storing photographs

Vector graphics frequently use less storage space than bitmapped graphics as information is stored for each shape rather than for every single pixel in an image.

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

what is sample resolution, what are the positives and negatives of a higher sample resolution?

A

the number of bits allocated to each sample is referred to as the sample resolution. Higher sample resolutions result in greater audio quality but also increased file size.

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

How do you calculate the size of a sound sample?

A

Multiplying the duration of the sample in seconds by the sampling rate in hertz and the sample resolution.

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

True or false there is metadata in an audio file?

A

True

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

What is the Nyquist theorem?

A

The Nyquist theorem states that the sampling rate of a digital audio file must be at least twice the frequency of the sound. if the sampling rate is below this, the sound may not be accurately represented.

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

What is MIDI?

A

MIDI stands for Musical instrument digital interface. It is used with musical instruments which can be connected to computers. Rather than storing samples of sound, MIDI stores sound as a series of event messages, each of which represent an event in a piece of music.

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

In MIDI what do the event messages contain?

A

the duration of a note, The instrument with which a note is played, how loud a note is, if a note should be sustained

17
Q

what are the advantages and disadvantages of MIDI?

A

It allows for easy manipulation of music without loss of quality.
The instruments on which notes sound can be changed.
Notes can be transposed
Duration of notes can be altered.
MIDI files are often smaller in size than sampled audio files and it is lossless.

MIDI can’t be used for storing speech and sometimes results in a less realistic sound than sample recordings.

18
Q

Why are files compressed?

A

Files are compressed in order to reduce their size and smaller flies can be transferred faster between storage devices or over the internet.

19
Q

What is lossy compression?

A

Lossy compression is when information is lost in the process of reducing the files size.

20
Q

what is lossless compression and the 2 methods?

A

Lossless compression is when there is no loss of information. the file size can be reduced without a decrease of quality.
This can be RLE or dictionary based methods.

21
Q

How does run length encoding (RLE) work?

A

RLE reduces the size of a file by removing repeated information and replacing it with one occurrence of the repeated information followed by the number of times it is to be repeated?

22
Q

How do dictionary-based methods work?

A

A dictionary containing repeated data is appended to the file.

23
Q

in order for dictionary-based methods to work what must present?

A

A dictionary has to be present in a file. This will increase the size of the file.

24
Q

When do dictionary-based methods and RLE work best?

A

They are most effective on files that contain a lot of repeated data

25
Q

What are the advantages and disadvantages of lossy compression compared to lossless compression?

A

Information is lost in lossy but not lossless.

Quality is reduced in lossy but not lossless

There is no limit of compression in lossy but there is a limit to lossless

26
Q

what is encryption?

A

Encryption is the process of scrambling data so that it cannot be understood if intercepted in order to keep it secure during transmission.

27
Q

Describe what is meant by plain text and cypher text?

A

Unencrypted information is referred to as plaintext and encrypted information is called cypher text.

28
Q

What is a cipher?

A

A cipher is a type of encryption method

29
Q

How do caesar ciphers work?

A

caesar ciphers encrypt information by replacing characters. One character is always replaced by the same character. There are 2 types of caesar ciphers. Shift ciphers and substitution ciphers.

30
Q

How do shift ciphers work?

A

When encrypting using a shift cypher, all of the letters in the alphabet are shifted by the same amount. The amount by which the characters are shifted forms the key.

31
Q

How do substitution ciphers work?

A

Substitution ciphers are when letters are randomly replaced.

32
Q

Why aren’t caesar ciphers secure?

A

they can be easily cracked because the frequency at which each character occurs can provide a clue as to which letter has been replaced with which. Once one character has been discovered a shift cipher can be completely crackers as the key can be found.

33
Q

What does a one-time pad cipher mean, giving an example?

A

A one-time pad cipher means that each key should only ever be used once. For example the vernam cipher.

34
Q

How does the Vernam cipher work?

A

Align the characters of the plaintext and the key. Then convert each character to binary. After apply a logical XOR operation to the two bit patterns. Finally convert the result back to a character.

35
Q

Why is the vernam cipher so secure?

A

Since the key used with the vernam cipher is chosen at random the cipher text is also random and so the cipher is considered completely secure. It is the only cipher that is mathematically proven to be completely secure.

36
Q

What is computational security?

A

The worth of all ciphers ever devised is based on computational security. In theory every cryptographic algorithm except for vernam cipher can be broken, given enough cipher text and time.