Week 2 - Data Communication (Cont.)
Week 2 - Data Communication (Cont.)
Data Representation
2
Motivations
Efficient way to share resources
Cost – less expensive
Accessibility – easier
Efficient way to exchange information
Time – faster
Size – bigger
Correctness – more accurate
3
Data Communication: Definition
Data Communication:
Transfer of data from one device to another via
some form of transmission medium.
4
Data Communication
Hi, Hi,
how how
are are
you? you?
Computer User
01010001 01010001
5
Components in Communication
1 Message
Hi, how are you?
5 Protocol
2 Sender 3 Receiver
4 Medium
6
Data Representation
Numbers
8/16/32 bit integers
floating point 150
2
Text
ASCII, Unicode
Images 255
• Number
• Text
• Image
• Audio
• Video
101101001001000010010001000
RED
100001011010101010101111000
101010101010001010011111001
Is there anybody
there, said the
010100101010101010101010011
traveller, 100110010101111010100101010
knocking on the 001010101001010010100101000
100011
Data Representation
Therefore:
• T4 is 2 Bytes long
• Technology is 10 Bytes long
• Design and Communications Graphics is 34 Bytes
long (the 3 spaces count)
Data Representation
In the ASCII table, the bit sequences (codes) are listed in
Binary and each code is named according to its Decimal value:
0101010000110100
T4
Data Representation
A more complex image is shown below and the grid and map of
Bits is clearly visible:
Analogue signal
Time
Sampling rate
Data Representation
A video is a collection of frames; each frame is a picture with the same or
different dimensions. All the frames/ images are displayed continuously, one after the
other, to show a video in movement. To represent a video, The computer will analyze
data about the video like:
• FPS (Frames per second)
• Duration of the video
• Image resolution (Number of pixels Horizontally X Vertically)
• Bit depth (Number of bits required to represent a pixel -> number of colors)
A video is mostly combined with an audio component, like a film or a video game.
File extensions: .mp4, .MOV, .AVI, etc.