Data Representation Flashcards

Week 2, 4 (19 cards)

1
Q

equation for range of possible numbers

A

R = B^k
- where R = range, B = base, K = number of digits

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

what is binary coded decimal

A
  • unsigned integer
  • intergeres are stored as decimal numbers
  • each decimal digit is stored as its 4 - bit binary equivalent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

2 ways of representing signed integers

A
  1. sign-magnitude
  2. two’s complement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what does the mantissa impact

A

range

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

what does the exponent impact

A

accuracy/precision

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

what is the IEEE Standard 754

A
  • developed to facilitate the portability of programs
  • uses BCD or DPP to represent significand (mantissa)
  • signs for special values
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how is text represented

A
  • represent characters as strings of bits
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is a character set

A

a list of characters where each character in the set is enumerated
- ASCII, Unicode, UTF-8

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

name the 3 types of image formats

A
  1. rasters
  2. HDTV
  3. vector
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is a raster and how does it represent an image

A
  • aka bitmap
  • each pixel is an n-bit string which encodes its colour
  • rasterisation = converting a vector graphic to a raster image
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is a HDTV and how does it represent images

A
  • 1920 x 1080 pixels
  • 24 bits per pixel
  • total size = approx 6.2 MB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is vector format and hoe does it represent images

A
  • image created from geometric shapes
  • only need to store data for points & lines/curves between them
  • smaller size than raster images
  • lossless compression
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

name the 3 colour models

A
  1. RGB
  2. HSV
  3. CMYK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is the RGB colour model and how does it represent colour

A
  • bits represent how much of each colour is needed
  • expressed as a triplet of values
  • # RRGGBB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is the HSV colour model and how does it represent colour

A
  • represents colour as a cylinder
  • hue = angle
  • saturation = deeper colours at the edge
  • value = height
  • used in image & video editing software
17
Q

what is the CMYK colour model & how does it represent colour

A
  • cyan, magenta & yellow
  • subtracts light colours
  • used in printers
  • can be expressed as a tuple
18
Q

how are images captured

A
  • by sampling
  • no. of samples = resolution
    - expressed as pixels per inch (PPI)
19
Q

how are videos and animation captured

A
  • series of still images
  • image = frame
  • number of frames per second defines how seamless the sequence seems
  • depending on frame resolution and fps, this may require a lot of space to store