Data Representation
Information can be in any form such as text, numbers, images, audio, and video.
1. Text
-
Text is represented as a bit pattern.
-
The number of bits in a pattern depends on the number of symbols in that language.
-
Code is the set of bit patterns designed to represent text symbols.
ASCII (American Standard Code for Information Interchange)
-
Developed by ANSI (American National Standards Institute).
-
Uses 7 bits for each symbol.
Extended ASCII
-
To make the size 1 byte (8 bits), an extra 0 is added to the left of the ASCII bit patterns.
-
This does not change the value of the pattern.
Unicode
-
Used to represent symbols or text in any language.
-
Uses 32 bits to represent characters.
ISO (International Organization for Standardization)
-
Designed a 32-bit pattern.
-
Can represent up to 4,294,967,296 symbols.
2. Numbers
-
Represented using bit patterns.
-
Instead of ASCII, numbers are directly converted to binary.
3. Images
-
Represented by bit patterns.
-
An image is divided into a matrix of pixels (smallest element of an image).
-
Each pixel is assigned a bit pattern.
-
The size and value of the pattern depend on the image.
4. Audio
-
Audio refers to the recording or broadcasting of sound or music.
-
It is continuous, not discrete like text, numbers, or images.
5. Video
-
Video refers to the recording or broadcasting of pictures or movies.
-
It can be:
-
A continuous entity (like live streaming).
-
A combination of images (frames in a video).
-
0 Comment to "Data representation"
Post a Comment
Note: Only a member of this blog may post a comment.