← CSC 111 Introduction to Computer Science
Computer Architecture and Data Representation
Notes
Overview of Computing Systems
Computer science is fundamentally the study of computation, automation, and information processing. A computer system consists of both physical hardware and abstract software components designed to accept raw input, manipulate it using programmed instructions, and produce meaningful output. At the center of modern computing lies the Von Neumann architecture, which defines a system composed of a Central Processing Unit, main memory, and input and output mechanisms. The Central Processing Unit is divided into the Arithmetic Logic Unit, which carries out mathematical calculations and logical comparisons, and the Control Unit, which fetches instructions from memory, decodes them, and coordinates hardware activities.
Data Representation Principles
All digital computers process information using electrical signals characterized by two discrete states, commonly represented as binary digits or bits: zero and one. Groups of eight bits form a single byte, which serves as the fundamental unit of addressable memory. Text characters are mapped to binary integers using standardized encoding schemes such as ASCII and Unicode, allowing human-readable scripts to be stored efficiently. Numerical values can be represented in binary, octal, or hexadecimal formats. Hexadecimal is particularly valuable in computing because it simplifies long strings of binary numbers into compact forms, where a single hexadecimal digit represents four binary bits or a nibble. Secondary storage holds data persistently using magnetic, optical, or solid-state media, while primary storage provides volatile, high-speed access for active programs.
Practical example
Consider an automated transaction processing terminal deployed at an agribusiness cooperative in Eldoret, Uasin Gishu County. The terminal records maize deliveries from local farmers and saves the farmer ID, bag count, and payout per bag. Suppose a farmer delivers 13 bags of maize. The integer value 13 must be stored in the device's volatile memory byte during execution.
To represent the decimal value 13 in an 8-bit memory register, the system performs successive division by two or decomposes the number into powers of two. The powers of two are 128, 64, 32, 16, 8, 4, 2, and 1. We observe that 13 equals 8 plus 4 plus 1. Therefore, the binary representation within an 8-bit byte is 00001101.
When writing system logs to check storage integrity, the embedded operating system converts this byte into hexadecimal. Splitting 00001101 into two nibbles yields 0000, which is 0 in hexadecimal, and 1101, which represents decimal 13, mapped to the letter D. The terminal logs the transaction bag count as hexadecimal 0x0D, demonstrating how raw hardware binary translates into readable low-level machine registers.
Quiz
1. What is the 8-bit binary representation of the decimal integer 13?
2. How many binary bits are represented by a single hexadecimal digit?
3. Which component of the Central Processing Unit is primarily responsible for directing data flow and decoding instructions?
Sign in to submit and securely grade your quiz.