Data Representation - SSS 1 Lesson Note
DATA REPRESENTATION
Class: SSS 1
Term: First Term
Week: 10
Topic: Data Representation
Duration: 80 Minutes (Double Period)
LEARNING OBJECTIVES
By the end of the lesson, students should be able to:
- Explain the meaning of data representation in a computer system.
- Define a bit and a byte.
- Explain how text is represented using character codes.
- Describe ASCII and state its common uses.
- Explain Unicode and why it is important for representing characters from different writing systems.
- Explain how digital images are represented using pixels and binary data.
- Explain how sound is converted into digital form.
- Differentiate between text, image and sound representation.
1. INTRODUCTION TO DATA REPRESENTATION
Computers process and store information electronically. Although users work with letters, numbers, pictures, sounds and videos, a computer ultimately represents digital information using binary values.
Digital devices represent information using combinations of 0 and 1. These two values are known as binary digits.
2. BITS AND BYTES
2.1 Bit
A bit is the smallest basic unit of digital information. The word bit is derived from binary digit.
A bit can have one of two possible values:
- 0
- 1
Binary values are used because digital electronic systems can represent two distinct states.
2.2 Byte
A byte is a group of eight bits.
Bytes are commonly used as a basic unit for describing the storage requirements of data.
2.3 Larger Units of Digital Storage
| Unit | Common Meaning |
|---|---|
| Bit | A single binary digit, 0 or 1. |
| Byte | 8 bits. |
| Kilobyte (KB) | Approximately 1,000 bytes in decimal storage measurements. |
| Megabyte (MB) | Approximately 1,000 KB. |
| Gigabyte (GB) | Approximately 1,000 MB. |
| Terabyte (TB) | Approximately 1,000 GB. |
3. REPRESENTATION OF TEXT
Computers need a way to represent letters, numbers, punctuation marks and other characters. Character encoding systems assign numerical codes to characters.
For example, the letter A is assigned a particular numerical code in character encoding systems. The computer stores and processes that code in binary form.
Character → Character Code → Binary Representation
4. ASCII
ASCII stands for American Standard Code for Information Interchange.
ASCII is a character encoding standard originally developed for representing common English letters, numbers, punctuation marks and control characters in digital systems.
4.1 ASCII Representation
Standard ASCII uses 7 bits and provides codes for 128 characters. These include uppercase and lowercase English letters, digits, punctuation marks and control characters.
| Character | Decimal ASCII Code |
|---|---|
| A | 65 |
| B | 66 |
| a | 97 |
| b | 98 |
| 0 | 48 |
| 1 | 49 |
The numerical code is ultimately stored and processed in binary form by the computer.
5. UNICODE
Unicode is a character encoding standard designed to provide a consistent way of representing characters from many languages and writing systems.
Unlike the original ASCII set, which focuses mainly on common English characters and symbols, Unicode supports a much wider range of characters.
This makes Unicode important for international communication and for digital systems that need to display and process different languages.
5.1 Importance of Unicode
- Supports characters from many languages.
- Supports a wide range of symbols.
- Allows text from different writing systems to be represented digitally.
- Supports international websites, applications and digital documents.
- Helps reduce problems caused by incompatible character encodings.
6. ASCII AND UNICODE COMPARISON
| Feature | ASCII | Unicode |
|---|---|---|
| Purpose | Represents a relatively small set of common characters. | Represents a very large range of characters from many writing systems. |
| Character coverage | Limited compared with Unicode. | Much broader. |
| Original standard | Standard ASCII uses 7 bits. | Uses several encoding forms, including UTF-8, UTF-16 and UTF-32. |
| Common use | English-oriented text and many basic computer systems. | Modern multilingual computing and digital communication. |
7. REPRESENTATION OF IMAGES
Digital images are represented using tiny picture elements called pixels.
Each pixel contains information about its colour or brightness. The computer stores this information as numerical data.
7.1 Image Resolution
Resolution refers to the amount of detail that can be represented in an image. It is commonly described using the number of pixels across the width and height of the image.
For example, an image with a resolution of 1920 × 1080 contains 1920 pixels across and 1080 pixels down.
7.2 Colour Representation
Colour images are commonly represented using combinations of colour components. One widely used model is RGB, which stands for:
- R – Red
- G – Green
- B – Blue
Different combinations and intensities of these components can represent a wide range of colours.
7.3 Image File Size
The amount of data required to store an image depends on factors such as its dimensions, colour depth and compression method.
8. REPRESENTATION OF SOUND
Sound is naturally an analogue phenomenon. Computers, however, process digital data. Therefore, sound must be converted from analogue form into digital data before a computer can store and process it digitally.
8.1 Sampling
Sampling is the process of measuring the amplitude of a sound wave at regular intervals.
Each measurement is converted into a numerical value that can be represented digitally.
8.2 Sample Rate
The sample rate is the number of samples taken per second. It is usually measured in hertz (Hz) or kilohertz (kHz).
For example, a sample rate of 44.1 kHz means that 44,100 samples are taken per second.
8.3 Bit Depth
Bit depth refers to the number of bits used to represent each audio sample.
A higher bit depth allows more possible numerical values to represent the amplitude of each sample and can provide greater potential detail in the digital recording.
8.4 Digital Audio File Size
The amount of storage required for digital audio is influenced by factors such as:
- Sample rate
- Bit depth
- Number of audio channels
- Duration of the recording
- Compression method
9. TEXT, IMAGE AND SOUND REPRESENTATION
| Data Type | How It Is Represented | Important Concepts |
|---|---|---|
| Text | Characters are assigned numerical codes and stored digitally. | ASCII, Unicode, character encoding |
| Image | Images are represented using pixels and numerical colour/brightness information. | Pixels, resolution, colour depth, RGB |
| Sound | Sound waves are sampled and converted into numerical values. | Sampling, sample rate, bit depth |
10. IMPORTANCE OF DATA REPRESENTATION
Data representation is important because it allows different forms of information to be stored, processed and transmitted by digital devices.
Its importance includes:
- Allows computers to process different types of data.
- Makes it possible to store information digitally.
- Supports communication between digital devices.
- Allows text to be displayed in different languages.
- Allows images to be stored and displayed.
- Allows sound to be recorded, stored and played digitally.
- Provides a common way for digital systems to process information.
11. CLASS ACTIVITY
Activity 1: Convert the decimal values 5, 10 and 15 into binary.
Activity 2: Students should identify the difference between ASCII and Unicode.
Activity 3: Students should identify the pixels, resolution and colour information involved in a digital image.
Activity 4: Students should explain what happens when a microphone records a sound for storage on a computer.
12. SUMMARY
Data representation is the way digital systems encode, store and process information. Computers represent digital information using binary values made up of 0s and 1s.
A bit is a single binary digit, while a byte consists of eight bits. Text is represented using character encoding systems such as ASCII and Unicode. ASCII provides a relatively limited set of characters, while Unicode supports a much wider range of characters and writing systems.
Digital images are represented using pixels and numerical colour information. Digital sound is produced by sampling analogue sound waves and converting the samples into numerical data. Sample rate and bit depth are important characteristics of digital audio.
13. EVALUATION
- What is data representation?
- Define a bit and a byte.
- How many bits make one byte?
- What does ASCII stand for?
- State two differences between ASCII and Unicode.
- Why is Unicode important in modern digital communication?
- What is a pixel?
- Explain how digital images are represented in a computer.
- What is sampling in digital sound?
- State three factors that can affect the size of a digital audio file.
14. ASSIGNMENT
- Explain the meaning of data representation and describe why it is important in digital technology.
- Define bit and byte and explain the relationship between them.
- Explain ASCII and Unicode and state three differences between them.
- Explain how a digital image is represented using pixels.
- Explain how analogue sound is converted into digital form.
- Explain the meaning of sample rate and bit depth in digital audio.
Comments
Post a Comment