Unit One -Introduction to Computer Science(Updated)
Unit One -Introduction to Computer Science(Updated)
Credit value: 4
School: NAHPI
Course Instructors
1
COURSE OUTLINE
2
UNIT 1: COMPUTER FUNDAMENTALS AND DATA REPRESENTATION (Digital
Number Systems)
Objectives
3
1. COMPUTER FUNDAMENTALS
1.1 INTRODUCTION
The word “computer” comes from the word “compute”, which means, “to calculate”. Hence,
people usually use a computer to be a calculating device that can perform arithmetic operations at
high speed. In fact, the original objective for inventing a computer was to create a fast calculating
machine. However, more than 80% of work done by computers today is of non-mathematical or
non-numerical nature. Hence, to define computer merely as a calculating device is to ignore over
80% of its functions.
More accurately, we can define a computer as a device that operates upon data. Data can be
anything like bio-data, hence computer is used for short listing candidates for recruiting; marks
obtained by students in when used for preparing results; details (name, age, sex, etc.) of passengers
when used for or railway reservations: or number of different parameters when used for solving
scientific problems, etc.
Computer is a very fast device. It is capable of performing calculation of very large amount of
data. The computer has units of speed in microsecond, nanosecond, and even the picosecond.
It can perform millions of calculations in a few seconds as compared to man who will spend many
months to perform the same task.
1.2.2 Accuracy
In addition to being very fast, computers are very accurate. The calculations are 100% error free.
Computers perform all jobs with 100% accuracy provided that the input is correct.
4
A computer has much more storage capacity than human beings. It can store large amount of data
and It can store any type of data such as images, videos, text, audio, etc.
1.2.4 Diligence
Unlike human beings, a computer is free from monotony, tiredness, and lack of concentration.
It can work continuously without any error and boredom. It can perform repeated tasks with the
same speed and accuracy.
1.2.5 Versatility
This machine can be used to solve the problems related to various fields. At one instance, it may
be solving a complex scientific problem and the very next moment it may be playing a card game.
1.2.6 Reliability
A computer is a reliable machine. Modern electronic components have long lives. Computers are
designed to make maintenance easy.
1.2.7 Automation
The present Computer System has evolved after centuries of efforts from different intellectuals
who contributed their works during different periods of time. Abacus is (most likely) considered
as the earlier counting device. Let us now read about the innovators who contributed immensely
in the development of a computer system.
John Napier
5
Napier was a Scottish mathematician who invented logarithms. Further, Napier also invented a
computing device, which consisted of sticks with numbers imprinted on them. Napier named sticks
‘bones,’ as they were made up of bones.
Blaise Pascal
Pascal was a French mathematician who invented a machine based on gear wheels, which helped
greatly in calculation.
Charles Babbage
Charles Babbage, a nineteenth century Professor at Cambridge University, is considered the father
of modern digital computers. He had employed a group of clerks for preparing mathematical and
statistical tables. Babbage had to spend several hours checking these tables because even utmost
care and precautions could not eliminate human errors. Soon he became dissatisfied and
exasperated with this type of monotonous job. As a result, he started thinking about building a
machine that could compute tables guaranteed to be error-free. In this process, Babbage designed
a “Difference Engine” in the year 1822 that could produce reliable tables. In 1842, Babbage came
out with his new idea of a completely automatic Analytical Engine for performing basic arithmetic
functions for any mathematical problem at an average speed of 60 additions per minute.
Unfortunately, he was unable to produce a working model of this machine because the precision
engineering required to manufacture the machine was not available during that period. However,
his efforts established a number of principles that are fundamental to the design of any digital
computer.
Lovelace was an English mathematician, who researched on Babbage’s work. She has given the
concept that ‘computers can be programmed’. Her work helped a great deal in the advancement of
computer system.
John Atanstoff
6
With the assistance of Berry, John Atanstoff developed the Atanstoff Berry Computer (more
popular as ABC) in 1937. It marked the beginning of the development of electronic digital
computer.
In 1947, John Mauchly and Eckart developed the first large scale Electronic Digital Computer. It
was called the Electronic Numerical Integrator and Calculator (ENIAC).
Maurice V. Wilkes
In 1949, Wilkes (at Cambridge University) designed Electronic Delay Storage Automatic
Calculator (EDSAC). It was the first computer that started its operating system on the stored
program concept.
The development of computer systems is normally discussed as the development over different
generations. With the succession of different generations, came the advancement in computer
technology.
Let us now discuss the development in Computer Technology over the different generations.
The period 1940 to 1956, roughly considered as the First Generation of Computer. These machines
used thousands of vacuum tubes. A vacuum tube was a fragile glass device, which used filaments
as a source of electronics and could control and amplify electronic signals. It was the only high-
speed electronic switching device available in those days. These vacuum tubes computer could
perform computations in milliseconds.
The memory of these computers used electromagnetic relays, and all data and instructions were
fed into the system from punched cards. The instructions were written in machine and assembly
languages because high-level programming languages were introduced much later. Since machine
and assembly languages are very difficult to work with, only a few specialists understood how to
program these early computers.
7
The first generation computers worked on binary-coded concept (i.e., language of 0-1). Examples:
Second-generation computers used the technology of transistors rather than bulky vacuum tubes.
Another feature was the core storage. A transistor may be a device composed of semiconductor
material that amplifies a sign or opens or closes a circuit.
Transistors were invented in Bell Labs. The use of transistors made it possible to perform
powerfully and with due speed. It reduced the dimensions and price and thankfully the warmth
too, which was generated by vacuum tubes. Central Processing Unit (CPU), memory,
programming language and input, and output units also came into force within the
second generation.
Programming language was shifted from low level to high level programming languages and
made programming comparatively a simple task for programmers. Languages used for
programming during this era were FORTRAN (1956), ALGOL (1958), and COBOL (1959).
8
In comparison to the first generation, the size of second generation was smaller and the computing
time taken by the computers of the second generation was lesser.
Examples of second generation computers: PDP-8, IBM1400 series, IBM 7090 and 7094,
UNIVAC 1107, CDC 3600 etc
During the third generation, technology envisaged a shift from huge transistors to integrated
circuits, also referred to as IC. Here a variety of transistors were placed on silicon chips, called
semiconductors. The most feature of this era’s computer was the speed and reliability. IC was
made from silicon and also called silicon chips.
A single IC, has many transistors, registers, and capacitors built on one thin slice of silicon. The
value size was reduced and memory space and dealing efficiency were increased during this
generation. Minicomputers find their shape during this era.
9
In comparison to the computers of the second generation, the size of the computers of the third
generation was smaller and the computing time taken by the computers of the third generation was
lesser.
Examples of third generation computers; IBM 360, IBM 370, PDP-11, NCR 395, B6500,
UNIVAC 1108, etc.
In 1971 First microprocessors were used, with large scale of integrated (LSI) circuits built on
one chip called microprocessors. The most advantage of this technology is that one
microprocessor can contain all the circuits required to perform arithmetic, logic, and control
functions on one chip.
The computers using microchips were called microcomputers. This generation provided the even
smaller size of computers, with larger capacities. That’s not enough, then Very Large Scale
Integrated (VLSI) circuits replaced LSI circuits. The Intel 4004 chip, developed in 1971, located
all the components of the pc from the central processing unit and memory to input/ output
controls on one chip and allowed the dimensions to reduce drastically.
10
computers and computer networks came into being within the fourth generation. Examples of
fourth generation; IBM PC, STAR 1000, APPLE II, Apple Macintosh, Alter 8800, etc.
The technology behind the fifth generation of computers is AI. It allows computers to behave like
humans. It is often seen in programs like voice recognition, area of medicines, and entertainment.
Within the field of games playing also it’s shown remarkable performance where computers are
capable of beating human competitors.
The speed is highest, size is the smallest and area of use has remarkably increased within the fifth
generation computers. Though not a hundred percent, AI has been achieved to date but keeping in
sight the present developments, it is often said that this dream also will become a reality very soon.
Some of the popular advanced technologies of the fifth generation include Artificial intelligence,
Quantum computation, Nanotechnology, Parallel processing, etc.
11
1.5 COMPONENTS OF A COMPUTER
• Input unit
• Central Processing Unit (ALU and Control Unit)
• Output Unit
• Storage unit
A computer can process data, pictures, sound and graphics. They can solve highly complicated
12
problems quickly and accurately.
Computers need to receive data and instruction in order to solve any problem. Therefore, we need
to input the data and instructions into the computers. The input unit consists of one or more input
devices. Keyboard is the one of the most commonly used input devices. All the input devices
perform the following functions:
Devices under this unit are usually referred to as input devices. An input device is any peripheral
(piece of computer hardware equipment to provide data and control signals to an information
processing system such as a computer or other information appliance).
Input devices Translate data from form that humans understand to one that the computer can work
with. Most common are keyboard and mouse
13
It controls all other units in the computer. The control unit instructs the input unit, where to store the data
after receiving it from the user. It controls the flow of data and instructions from the storage unit to ALU.
It also controls the flow of results from the ALU to the storage unit. The control unit is generally referred
as the central nervous system of the computer that control and synchronizes its working
Registers: Stores the data that is to be executed next, "very fast storage area".
The output unit of a computer provides the information and results of a computation to outside
world. Printers, Visual Display Unit (VDU) are the commonly used output devices.
An output device is any piece of computer hardware equipment used to communicate the results
of data processing carried out by an information processing system (such as a computer) which
converts the electronically generated information into human readable form.
14
Note: Basic types of monitors are Cathode Ray Tube (CRT), Liquid Crystal Displays (LCD). And
light-emitting diode (LED).
Printer types: Laser Printer. Ink Jet Printer. Dot Matrix Printer
The storage unit of the computer holds data and instructions that are entered through the input unit,
before they are processed. It preserves the intermediate and final results before these are sent to
the output devices. It also saves the data for the later use. The various storage devices of a computer
system are divided into two categories:
1) Primary Storage
When you’re working on a file on your computer, it will temporarily store data in your RAM.
RAM allows you to perform everyday tasks like opening applications, loading webpages, editing
a document or playing games. It also allows you to jump from one task to another without losing
your progress. In essence, the larger the RAM of your computer, the smoother and quicker it is
for you to multitask.
RAM is a volatile memory, meaning it cannot hold onto information once the system turns off.
For example, if you copy a block of text, restart your computer, and then attempt to paste that
block of text into a document, you’ll find that your computer has forgotten the copied text. This
is because it was only stored temporarily in your RAM.
15
RAM makes it possible for a computer to access data in a random order, and thus reads and writes
much faster than a computer’s secondary storage.
The cost of the primary storage is more compared to the secondary storage. Therefore, most
computers have limited primary storage capacity.
2) Secondary Storage
In addition to RAM, every computer also has another storage drive that’s used for storing
information on a long-term basis. This is secondary storage. Any file you create or download saves
to the computer’s secondary storage. There are two types of storage device used as secondary
storage in computers: HDD and SSD. While HDDs are the more traditional of the two, SSDs are
fast overtaking HDD as the preferred tech for secondary storage.
Secondary storage devices are often removable, so you can replace or upgrade your computer’s
storage, or move your storage drive to a different computer. There are notable exceptions, like
MacBooks, which don’t offer removable storage.
The hard disk drive (HDD) is the original hard drive. These are magnetic storage devices that
have been around since the 1950s, though they’ve evolved over time.
A hard disk drive is comprised of a stack of spinning metal disks known as platters. Each spinning
disk has trillions of tiny fragments that can be magnetized in order to represent bits (1s and 0s in
binary code). An actuator arm with a read/write head scans the spinning platters and magnetizes
fragments in order to write digital information onto the HDD, or detects magnetic charges to read
information from it. HDDs are used for TV recorders, servers, and laptop and PC storage.
Solid-state drives emerged far more recently, in the ‘90s. SSDs don’t rely on magnets and disks,
instead they use a type of flash memory called NAND. In an SSD, semiconductors store
information by changing the electrical current of circuits contained within the drive. This means
that unlike HDDs, SSDs don’t require moving parts to operate.
Because of this, SSDs not only work faster and smoother than HDDs (HDDs take longer to gather
information due to the mechanical nature of their platters and heads), they also generally last
16
longer than HDDs (with so many intricate moving parts, HDDs are vulnerable to damage and
wear).
Outside of newer PCs and high-end laptops, you can find SSDs in smartphones, tablets, and
sometimes video cameras.
Secondary storage is used like an archive. It stores several programs, documents, data bases etc.
The programs that you run on the computer are first transferred to the primary memory before it
is actually run. Whenever the results are saved, again they get stored in the secondary memory.
The secondary memory is slower and cheaper than the primary memory.
17