Text, Sound and Images Quick Revision

Character Sets and Text Representation

  • A character set is a defined list of characters recognized and processed by computer hardware and software, enabling computers to interpret and store human-readable text.
  • Computers represent characters numerically using binary encoding schemes.
  • Primary standard character sets include standard ASCII, Extended ASCII, and Unicode.

Standard ASCII (American Standard Code for Information Interchange)

  • Architecture and Capacity:
    • Standard ASCII uses a 77-bit binary encoding system.
    • It can represent a total of 128128 unique characters.
    • Character codes range from 00 to 127127 in denary, corresponding to 0000 to 7F7\text{F} in hexadecimal notation.
  • Encoded Character Types:
    • Letters: Uppercase (A–Z\text{A}–\text{Z}) and lowercase (a–z\text{a}–\text{z}).
    • Digits: Numerical characters (0–90–9).
    • Punctuation marks and special characters.
    • Control characters: Non-printable command codes located from code 00 to code 3131 (for example, carriage return and line feed).
  • Case Conversion Mechanism:
    • Uppercase and lowercase representations of characters differ by exactly one specific bit position.
    • The 6th6^{\text{th}} bit toggles between 11 and 00 when converting between lowercase and uppercase.
    • This structural property enables binary-level case conversion operations to be performed efficiently.
  • Grouped and Sequential Storage:
    • Alphanumeric character blocks (such as a–z\text{a}–\text{z} and 0–90–9) are allocated in continuous sequential numerical order.
    • Sequential ordering significantly optimizes the speed of algorithmic sorting and textual processing.

Extended ASCII

  • Architecture and Expansion:
    • Extended ASCII increases the character code length to 88 bits.
    • An 88-bit structure supports 256256 unique characters.
    • Code values range from 00 to 255255 in denary, corresponding to 0000 to FF\text{FF} in hexadecimal notation.
    • It appends an additional 128128 character positions (spanning codes 128128 to 255255) beyond standard ASCII.
  • Included Symbols and Functional Use:
    • Accommodates non-English Latin alphabet characters and accents (such as n~\tilde{\text{n}} and eˊ\acute{\text{e}}).
    • Incorporates specialized graphical characters and mathematical/special symbols.
  • Key Advantages:
    • Simple and computationally efficient.
    • Requires minimal digital storage space (11 byte per character).
    • Straightforward to implement across computing systems.
    • Maintains full backwards compatibility with legacy hardware and older software architectures.
    • Well-suited for straightforward English text processing.
  • Key Disadvantages:
    • Highly limited character capacity (256256 characters maximum).
    • Lacks support for non-Latin and complex international writing scripts.
    • Cannot accommodate modern digital symbols, glyphs, or emojis.
    • Outdated for modern international computing and cross-border digital communication.
    • Inadequate for globalized, modern software applications.

Unicode

  • Features and Scope:
    • Developed as a comprehensive, modern character set capable of representing all written languages across the globe.
    • Maintains full backwards compatibility with ASCII by matching the first 128128 Unicode code points identically with the ASCII character set.
    • Utilizes encoding lengths of 1616 bits or more.
    • Capable of representing in excess of 65,00065{,}000 characters, extending into hundreds of thousands of symbols, historic scripts, and emojis.
    • Universally adopted across modern operating systems, web pages, internet protocols, and database management systems.
  • Key Advantages:
    • Provides multilingual support for diverse global languages within a single unified standard.
    • Substantially larger character capacity than legacy standards.
    • Established as the global standard across disparate computing platforms and hardware architectures.
    • Robust handling of non-standard symbols, mathematical notations, and graphical emojis.
    • Seamless backwards compatibility with base ASCII systems.
  • Key Disadvantages:
    • Imposes larger storage overhead per character compared to 77-bit and 88-bit legacy encodings.
    • Computationally more complex to parse, decode, and process.
    • Can introduce compatibility hurdles when interfacing with legacy or constrained hardware systems.
    • Can create performance overhead in data-intensive storage or transmission tasks.
    • Introduces potential implementation complexity due to multiple underlying encoding formats (such as UTF-8, UTF-16, and UTF-32).

Bitmap Images and Visual Representation

  • Foundational Structure:
    • A bitmap image is composed of an array of discrete picture elements termed pixels.
    • Pixels are organized in a two-dimensional (2D2\text{D}) matrix or grid.
    • Every single pixel is represented internally by a binary sequence that defines its visual appearance.
  • Colour Depth and Bit Allocations:
    • Colour depth specifies the exact number of binary bits allocated to represent the colour of each individual pixel.
    • 11 bit per pixel yields 22 possible colour states (21=22^1 = 2): binary 00 designates black, while binary 11 designates white.
    • 22 bits per pixel yields 44 possible colour states (22=42^2 = 4).
    • 33 bits per pixel yields 88 possible colour states (23=82^3 = 8).
    • 88-bit colour depth yields 256256 possible colour states (28=2562^8 = 256).
    • 2424-bit colour depth yields over 1616 million possible colour states (224=16,777,2162^{24} = 16{,}777{,}216 colours), often referred to as true colour.
  • Image Resolution:
    • Defined as the total count of pixels spanning an image, calculated as width multiplied by height:     Image Resolution=Width×Height\text{Image Resolution} = \text{Width} \times \text{Height}
    • Representative calculation: An image measuring 40964096 pixels wide by 30723072 pixels high yields a resolution of:     4096×3072=12,582,912 pixels4096 \times 3072 = 12{,}582{,}912\,\text{pixels}
    • Visual fidelity relationship: Elevated resolution provides greater visual detail and clarity; reduced resolution degrades detail but decreases file size.

High Resolution and Colour Depth Impacts

  • Direct Technical Effects:
    • Higher resolutions generate a higher overall pixel count across the image grid.
    • Higher colour depths allocate a higher quantity of binary bits to every pixel.
    • The compounding of increased pixel count and bit depth causes a substantial increase in overall image file size.
  • Operational Drawbacks:
    • Expanded file sizes demand significantly greater secondary storage capacity.
    • Storage media can hold fewer total image files.
    • Image transmission over networks suffers from slower download, upload, and transfer speeds.

File Storage Architecture for Digital Images

  • Step-by-Step Internal Representation:
    • An image file is assembled from a finite collection of pixels.
    • Each individual pixel stores exactly one colour value.
    • The entire image possesses fixed spatial dimensions defined as a set quantity of pixels wide by pixels high.
    • Every specific colour in the image’s palette corresponds to a unique numerical colour code and binary representation.
    • The computer stores the binary colour value of each pixel sequentially in memory and on disk.
  • Image Metadata Requirements:
    • Image files contain embedded metadata that informs software how to unpack, render, and display the stored visual data.
    • Metadata parameters explicitly specify image properties, primarily resolution dimensions and colour depth.

Fundamentals of Sound and Digitization

  • Physical Properties of Sound:
    • Sound propagates physically through air as mechanical vibrations.
    • Human auditory structures detect these pressure fluctuations and interpret them as audible sound.
    • A sound wave is defined by three fundamental physical characteristics:
    • Frequency: The rate at which the sound wave vibrates, which dictates pitch.
    • Wavelength: The physical spatial distance separating consecutive wave peaks.
    • Amplitude: The physical height or intensity of the sound wave, which dictates loudness.
  • Analogue Nature of Acoustic Signals:
    • Natural sound waves are continuous, analogue physical phenomena.
    • Digital computer processors cannot natively process or store continuous analogue signals.
    • Sound must undergo digital sampling to convert continuous acoustic waves into discrete binary records.
  • Analogue-to-Digital Conversion (ADC) Process:
    • Conversion requires dedicated Analogue to Digital Converter (ADC) hardware.
    • The ADC measures the amplitude of the analogue sound wave at strictly timed, regular intervals.
    • Each measured amplitude level is quantized and stored as an approximate binary numerical value.

Audio Sampling Metrics: Sampling Rate and Sampling Resolution

  • Sampling Rate:
    • Represents the total count of amplitude samples recorded per second during audio capture.
    • Measured in Hertz (Hz\text{Hz}).
    • Standard audio benchmark: 44,100 Hz44{,}100\,\text{Hz} corresponds to 44,100 samples per second44{,}100\,\text{samples per second}.
  • Sampling Resolution (Bit Depth):
    • Represents the total number of binary bits allocated to record the amplitude of each individual sample.
    • Higher bit depth provides finer measurement gradations, yielding a more precise representation of wave amplitude.
  • Audio Fidelity Relationship:
    • Increasing either the sampling rate or the sampling bit depth produces a digital waveform that more closely mimics the original physical analogue sound wave.
  • Benefits of High Sampling Rates and High Bit Depths:
    • Superior perceived audio reproduction and sound quality.
    • Expanded dynamic range, enabling capture of subtle acoustic variations from quietest to loudest tones.
    • Marked reduction in quantization error and distortion, providing accurate audio reproduction.
  • Drawbacks of High Sampling Rates and High Bit Depths:
    • Exponentially larger audio file sizes.
    • Extended network transmission, streaming, and download durations.
    • Increased processing overhead on computer processors and elevated secondary storage consumption.

Technical Definitions Reference Guide

  • ASCII Code: A standardized character set designed to represent all characters found on a standard keyboard alongside functional control codes.
  • Character Set: A complete list of characters that have been defined by computer hardware and software, necessary for computer architectures to comprehend human-readable characters.
  • Unicode: A universal character set engineered to represent all the languages of the world, whose initial 128128 characters are entirely identical to the standard ASCII code.
  • Sampling Resolution: The specific number of bits utilized to represent the amplitude of a sound wave in digital sound recording; universally referred to as bit depth.
  • Bit Depth: The total number of bits assigned to encode the smallest individual data unit within a sound file.
  • Colour Depth: The total number of bits assigned to encode and represent the colour value of an individual pixel.
  • Sampling Rate: The total number of discrete sound samples captured per second during digital sound recording.
  • Bitmap Image: A graphic image constructed from an organized matrix of discrete pixels.
  • Pixel: Derived from the phrase "picture element"; represents the smallest indivisible visual element used to construct an image on an electronic display.
  • Image Resolution: The dimensional count of pixels along the X-Y coordinates of an image, illustrated by an example dimension of 4096×3192 pixels4096 \times 3192\,\text{pixels}.
  • Pixelated (Image): The visual degradation occurring when zooming into a bitmap image, where the density of pixels relative to viewing size is diminished to such an extent that individual constituent pixel blocks become visible.
  • Pixel Density: The quantitative measurement of individual pixels packed within a single square inch of display surface.