0% found this document useful (0 votes)
18 views4 pages

Understanding Binary and Denary Systems

Partial notes for IGCSE CS chapter 1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views4 pages

Understanding Binary and Denary Systems

Partial notes for IGCSE CS chapter 1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Binary and Number Systems:

1. Binary System:
o Binary is a base-2 number system using digits 0 and 1.
o Computers use binary because they work with transistors that can be on (1)
or off (0), making binary an efficient representation for data.

2. Denary System:
o Denary is a base-10 system, commonly used by humans, with digits ranging
from 0 to 9.

3. Conversions:
o Binary to Denary: Convert binary values (e.g., 101 in binary) into their
decimal (denary) equivalent. (Draw a table)
o Denary to Binary: Convert decimal numbers (e.g., 5 in decimal) into binary.
(Successive division of 2)
o Hexadecimal to Binary: Convert hex values (e.g., A in hexadecimal) to
binary. (Use tables and convert)
o Binary to Hexadecimal: Convert binary numbers (e.g., 101 in binary) to hex.
(Divide in chunks, each with 4 binary digits, then use table).
o Denary to Hexadecimal: Convert decimal values into hex.
o Hexadecimal to Denary: Convert hex values into decimal. (Successive
division with 16 or first convert to binary, then to hexa).
o Examples provided for each conversion type with correct solutions. (Multiply
with powers of 16)

4. Negative Numbers in Binary:


o We discussed two's complement for representing negative numbers in binary,
such as for -36 and -123. First convert denary to positive. Then convert to
binary. Then switch 1 and 0. Then add 1.

5. Addition with Binary:

 0+0 = 0, 0+1 = 1, 1+1 = 10, 1+1+1 = 11

Data Transmission and Networking:


1. MAC Address:
o A unique 12-digit hexadecimal address assigned to hardware, used for
identifying devices on a network.
o Fixed to hardware, it's used for local communication between devices within
the same network.

2. IP Address:
o An IP (Internet Protocol) address identifies devices on a network and allows
them to communicate. It is typically assigned temporarily and can change
over time.

3. Data Packets:
o Data is split into small chunks (packets) to be sent across the network,
improving efficiency and reducing congestion.
o Each packet contains header information (destination address, data length)
and payload (the actual data).
o We also have trailer that detects errors, and ensures data accuracy.

4. Packet switching: data is broken down into packets, each packet could take a
different route, at each stage in the transmission, there are nodes that contain a router

Compression:

1. Lossy Compression:
o Lossy compression reduces file size by permanently removing data (e.g.,
JPEG, MP3, MPEG).
o The benefit is greater compression and faster loading times, but the
drawback is loss of data and quality.

2. Lossless Compression:
o Lossless compression reduces file size without losing any data, making it
reversible (e.g., PNG, GIF, ZIP).
o It does not degrade quality, but the compression ratio is typically lower than
lossy compression.

Audio and Image Data:


1. Sampling Rate:
o Sampling rate refers to the number of samples per second taken from an
audio signal to represent its amplitude. Measured in Hertz (Hz), a higher
sampling rate means better audio quality but larger file size.

2. Sampling Resolution:
o Sampling resolution refers to the number of bits used for each sample. Higher
resolution means more accurate representation of the sound, but it increases
the file size.

3. Colour Depth:
o Colour depth is the number of bits used to represent the colour of each pixel in
an image.
o Higher colour depth means more colours are possible, resulting in richer
image quality, but it also increases file size.

4. Resolution:
o Resolution refers to the number of pixels in an image. Higher resolution
improves image quality by capturing more detail but also increases the file
size.

General File Size and Storage Calculations:

1. Image File Size:


o We discussed how to calculate the file size for images based on resolution,
colour depth, and compression type.
o File size = Colour depth * pixel height * pixel width

2. Sound File Size:


o We looked at how to calculate the size of a sound file based on sampling rate,
sample resolution, and duration.
o File size = Sampling rate * time(s) * sampling resolution (bit depth)

Steps for sampling:


Calculate amplitude of sound wave at set time intervals. This gives approximate
representation of sound wave. Finally, each sample is encoded as a series of binary digits.

Common questions

Powered by AI

Higher sampling rates and resolutions capture more detail in audio signals, improving fidelity but increasing file size and storage requirements. Conversely, lower rates and resolutions reduce file size, suitable for limited storage environments, but sacrifice audio quality. The trade-off is crucial depending on the audio's intended use and available resources .

Using a higher sampling rate results in better audio quality as it captures more samples per second, closely representing the original sound wave. Similarly, a higher sampling resolution leads to a more accurate representation of sound amplitude, enhancing audio fidelity. However, both increase the file size, requiring more storage and potentially greater processing power .

MAC addresses provide unique hardware identifiers to interfaces, enabling local device communication within the same network. They are static and hardware-fixed. IP addresses, conversely, are used to identify devices over broader networks for routing of communications. They are dynamic and can change, allowing devices to communicate over the internet or other large networks .

Packet switching enhances transmission efficiency by breaking data into smaller packets, allowing each packet to take different paths to the destination. This increases the use of available network paths, reduces congestion, and eliminates dependency on a single communications line, making the network more robust and efficient .

To convert a negative decimal number to binary using two's complement: first, convert the absolute value of the number to binary. Next, invert all bits (change 0s to 1s and 1s to 0s). Finally, add 1 to the least significant bit. This sequence results in the two's complement representation of the negative number .

Binary addition differs from decimal addition in the way it carries over values. For binary, 1+1 equals 10, requiring a carry to the next column, while in decimal addition, carryover usually occurs when exceeding 9. This impacts computational procedures by simplifying hardware design, as machines use binary logic, but requires more steps in more complex arithmetic operations compared to decimal addition .

The binary system is efficient for data representation in computers because it uses only two states, 0 and 1, which correspond directly to the on and off states of a transistor. This simplicity enables reliable and easy manipulation of data at a hardware level .

Understanding hexadecimal conversions simplifies operations with binary numbers because a single hex digit represents four binary digits, reducing the length of binary representations and thus simplifying binary arithmetic and memory addressing tasks. This enhanced readability and efficiency is valuable in programming and computing tasks .

High color depth allows for richer and more diverse color representation in digital images, enhancing image realism and detail. However, it also leads to larger file sizes, impacting storage and load times, which can be disadvantageous in environments with limited bandwidth or storage capacity .

Lossy compression reduces file size by permanently removing some data, leading to a loss in quality (e.g., in JPEG, MP3). It provides greater compression ratios and faster loading times but at the cost of data integrity. Conversely, lossless compression reduces file size without any data loss, maintaining quality and allowing full data recovery (e.g., PNG, ZIP), but it generally achieves a lower compression ratio compared to lossy compression .

You might also like