Data Representation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are natural numbers?

A

Set of numbers containing all positive whole numbers and zero.

Used to count hoe many of an item you have

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

What are integer numbers?

A

Set of whole numbers positive and negative, including zero

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

What are rarional numbers?

A

Can have fractional part, positive negative and zero. Can be written as fraction or decimal

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

What are irational numbers?

A

Cannot be weitten as a fraction

Pi, squared, cubed etc

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

What are real numbers?

A

All possible real world quantities - everything

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

What are ordinal numbers?

A

Integers used to describe numerical positions of objects in relation to others.

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

What type of numbers would be used for counting and for measuring

A

Counting - natural

Measuring - real

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

What is Character code?

A

Decimal digit used to represent a character - A - Z represented by 1 - 26

If used by a computer, binary representstion would be used.

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

What is ASCII

A

American Standard Code for Information Interchange.

Introduced 1963, uses 7 bits to represent 128 diff characters including alphabet and some symbols

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

What is Unicode?

A

Introduced 1991 and allows wide range of alphabets. Uses between 8 and 48 bits (1 - 6 bytes) per character - larger variety than ASCII

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

What are parity bits?

A

Singke bit added to transmission that can be used to check for errors. Value is calculated from transmitted data

Parity check occurs when data recirved - if value of bit correlates to correct type of parity bit, transmission is treated as correct. Othereise, retransmitted.

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

What are the two types of parity bit?

A

Odd and even parity

Even - value chosen, make total number of 1’s equal.

Odd - adds parity bit to make data odd.

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

What is the major issue with parity bits?

A

If even number of bits are chamged, no error will be detected.

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

What is majority voting?

A

Each bit is transmitted multiple times - most commonly occuring value is taken to be correct.

When error occurs - majority doesn’t detect error, just corrects it. - no need for retransmission

Volume of data transmitted (timsed by 5) - major downside.

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

What are checksums?

A

Involves addition to a value determined by data itself

Algorithm used to determine value of checksum based on transmitted data - simple modulo function works.
- repeated by recipient. If it does not match, data is retransmitted

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

What are check digits?

A

Type of checksum where only a single digit added to data
reduces no. algoritms used to calculate value of check digit - reduces variety of errors method can detect.

17
Q

What is the difference between analogue and digital?

A

Analogue - continuous with no limits
Digital - discrete, only particulsr values can be taken

Trace of analogue graph - smooth, curves eith sharp peaks
Trace of digital graphs - sharp edges, vertical drops.

18
Q

Explain analogue / digital conversion.

A

DAC - device reads bit pattern and outputs alternating analogue eletrical current.
Most common use - audio signal -> analogue signal

ADC - convert analogue to digital bit pattern. Takes reading at regular intervals (sampling)
- frequency of sample = hertz - smaples /s
Higher sample rate, better reproduction of signal.

19
Q

What is resolution of an image?

A

Number of dots per square inch (dot = pixel).
- can also refer to number of pixels in an image.

20
Q

What is colour depth?

A

Number of bits assigned to a pixel.
2^how many bits assigned.

21
Q

How do you calculate storage required for bitmap images?

A

Number of pixes (height x width) × colour depth

22
Q

What are vector graphics?

A

Images represented by geometric objects and shapes. Properties of vector stored in list.

23
Q

Vector graphics vs bitmapped images

A

Vector:
- scaled without loosing quality
- well suited to logos, not photos
- use less storage - stored information for shape, not pixel.

24
Q

What is the sampling rate?

A

Number of samples per second (hertz)

25
Q

What is sample resolution?

A

Number of bits allocated to each sample.
Higher sample resolution, higher file size.

26
Q

How do you work out size of sample?

A

Duration of sample (s) x sample rate x sample resolution

27
Q

What is Nyquist Theorem

A

Sampling rate of audio must be atleast twice the frequency of the sound.

28
Q

What is MIDI

A

Musical Instrument Digital Interface

Stores sound as series of event messge. Series of instructions to replicate a piece of music

29
Q

What are the event messages in MIDI?

A
  • duration of note
  • instrument of note played
  • volume
  • if note should be sustained
30
Q

What are the advantages of MIDI?

A

Easy manipulation, no loss of quality. Instruments easily changed, notes can be transposed and duration changed.
File size much smaller, and lossless.

Can’t store voices and sometimes sounds synthetic.

31
Q

Compare lossy to lossless

A

Lossy - reduction in quality and information. No limit to how much it can be compressed.

Lossless - no information or quality loss. Limited to how much it can be compressed.

32
Q

What is Run Length Encoding (RLE)?

A

Reduces file size by removing replicated information into one occurrence.

1,2,3,3,3,4,5,5,6 -> 1,2,3(3),4,5(2),6

Replaces repeated bit patterns with one pixel value and number of repetitons.

33
Q

What is dictionary-based methods.

A

Dictionary containing repeated data is appended to file. Birmap image -> dictionary of the row, not individual pixel.

34
Q

What is encryption?

A

Scrambling data to make it unreadable if intercepted. Unencrypted text - plaintext. Encrypted - cyphertext.

35
Q

How do ceasar ciphers work?

A

Encrypt data by replacing characters. Two types: shift and substitution ciphers.