Introduction to Computer Data Representation introduces readers to the representation of data within computers. Starting from basic principles of number representation in computers, the book covers the representation of both integer and floating point numbers, and characters or text. It comprehensively explains the main techniques of computer arithmetic and logical manipulation. A computer uses a fixed number of bits to represent a piece of data which could be a number, a character, image, sound, and video. Data representation is the method used internally to represent data in a computer. Let us see how various types of data can be represented in computer memory.
•Data
Refers to the symbols that represent people, events, things, and ideas. Data can be a name, a number, the colors in a photograph, or the notes in a musical composition. Data are represented as letters, numbers, sounds and pictures on your computer, but the computer sees it as a number. Even the computer’s own instructions are numbers.
•Data Representation refers to the methods used to represent information stored in a computer. Computers store lots of different types of information: discrete information like numbers and letters, or continuous information like sounds and images. They use numeric codes to represent that data. The information is stored in a series of zeroes and ones known as binary code. Data is transmitted within a computer by electrical signals that are either on or off. On = 1, off =0.
Computers can't understand letters (or base 10 numbers) so any letters typed into a computer need to be converted into binary code. This is usually done using the ASCII (pronounced ask-ee) format which stands for American Standard Code for Information Interchange. Each letter is assigned a number which is then converted to binary.
For example, consider the following sentence: I love WOU. This sentence may look like a string of alphabetic characters to you, but on a computer it looks like a string of ones and zeros
The 0s and 1s used to represent digital data are referred to as binary digits —from this term we get the word bit that stands for binary digit.
•A bit is a 0 or 1 used in the digital representation of data.
•A digital file, usually referred to simply as a file, is a named collection of data that exits on a storage medium, such as a hard disk, CD, DVD, or flash drive.
Number systems are the technique to represent numbers in the computer system architecture, every value that you are saving or getting into/from computer memory has a defined number system.
1.Binary number system
2.Octal number system
3.Decimal number system
4.Hexadecimal number system
Some of the reasons why data representation is important:
1. Efficient Storage (Ex. Image Compression)
2. Data Processing (Ex. Network Routing, Web Search Engines, etc.)
3. Data Transmission (Ex. Video Streaming)
4. Data Security (Ex. Encryption, Access Control Lists, etc)
Data representation plays a crucial role in various fields and applications, including:
Computing and Programming: Data representation is fundamental in computer science and programming. Computers use binary representation (0s and 1s) to store and process data. Different data types (integers, floating-point numbers, characters) have specific representations in memory.
Communication: Data representation is essential in data transmission over networks. It ensures that data can be efficiently encoded and decoded, preventing data loss or corruption during transmission.
Databases: Databases store and organize data, often using structured data representations such as tables. Different data types (e.g., text, numbers, dates) are used to represent information in a structured way.
Graphics and Multimedia: Images, audio, and video data are represented using various formats, such as JPEG for images and MP3 for audio. Efficient data representations are crucial for high-quality multimedia.