Chapter 1
Chapter 1
CO6. To use arrays, pointers and structures to formulate algorithms and programs.
CO7. To apply programming to solve matrix addition and multiplication problems and
searching and sorting problems.
CO8. To apply programming to solve simple numerical method problems, namely root
finding of function, differentiation of function and simple integration.
Mapping of CO’s with Department
PO’s
CO6. To use arrays, pointers, and PO1: Apply knowledge of mathematics, science,
structures to formulate algorithms and engineering.
and programs. PO11: Use modern engineering tools for practice.
• Arithmetic and Logic Unit (ALU): The ALU, as its name suggests performs
mathematical calculations and takes logical decisions. Arithmetic calculations
include addition, subtraction, multiplication and division. Logical decisions
involve the comparison of two data items to see which one is larger or smaller or
equal.
• Arithmetic Logical Unit is the main component of the CPU
• It is the fundamental building block of the CPU.
• Arithmetic and Logical Unit is a digital circuit that is used to perform arithmetic
and logical operations.
CPU: Control Unit
• Control Unit: The Control unit coordinates and controls the data flow in
and out of the CPU, and also controls all the operations of ALU, memory
registers and also input/output units.
• It is also responsible for carrying out all the instructions stored in the
program.
• It decodes the fetched instruction, interprets it and sends control signals
to input/output devices until the required operation is done properly by
ALU and memory.
• The Control Unit is a component of the central processing unit of a
computer that directs the operation of the processor.
• It instructs the computer’s memory, arithmetic and logic unit, and input
and output devices on how to respond to the processor’s instructions.
• In order to execute the instructions, the components of a computer
receive signals from the control unit.
CPU: MEMORY
1. Magnetic Tapes: Magnetic tape is a long, narrow strip of plastic film with a thin,
magnetic coating on it that is used for magnetic recording. Bits are recorded on tape
as magnetic patches called RECORDS that run along many tracks. Typically, 7 or 9
bits are recorded concurrently. Each track has one read/write head, which allows data
to be recorded and read as a sequence of characters. It can be stopped, started moving
forward or backward, or rewound.
2. Magnetic Disks: A magnetic disk is a circular metal or a plastic plate and these
plates are coated with magnetic material. The disc is used on both sides. Bits are
stored in magnetized surfaces in locations called tracks that run in concentric rings.
Sectors are typically used to break tracks into pieces.
3. Optical Disks: It’s a laser-based storage medium that can be written to and read. It
is reasonably priced and has a long lifespan. The optical disc can be taken out of the
MEMORY: Secondary
Memory
Types of Optical Disks
CDs or Compact Disks are optically readable media. CDs are the
replacement for the phonograph disc. The main material of the CD is
plastic. The shape of the plastic is circular and one side of the circular
plastic is coated with the reflecting metal coating, usually aluminum.
DVDs- DVD stands for Digital versatile disk. DVD is a digital optical
disc storage format. DVDs can also be known as “Digital video disc”.
DVD technology allows for the storage of a large amount of data using
digital technology. DVDs can store up to 17 gigabytes, compared to the
storage capacity of a compact disc (CD). DVD-Video became the
dominant form of home video distribution in Japan when it first went on
sale in 1995. It is a highly compact disc. This disc can store enough data
for about 17GB.
MEMORY: Cache Memory
• Cache memory is a small, high-speed storage area in a computer. The
cache is a smaller and faster memory that stores copies of the data from
frequently used main memory locations. There are various independent
caches in a CPU, which store instructions and data.
• The most important use of cache memory is that it is used to reduce the
average time to access data from the main memory.
• The concept of cache works because there exists locality of reference
(the same items or nearby items are more likely to be accessed next) in
processes.
• By storing this information closer to the CPU, cache memory helps
speed up the overall processing time. Cache memory is much faster than
the main memory (RAM). When the CPU needs data, it first checks the
cache. If the data is there, the CPU can access it quickly. If not, it must
fetch the data from the slower main memory.
Output Devices
Less interactive for the users. More interactive for the users.