0% found this document useful (0 votes)
13 views49 pages

Lec1 Introduction

The document outlines the course CS 101 - Introduction to Computing at IIT Guwahati for January-April 2025, detailing the syllabus, instructors, and assessment methods. It covers fundamental computing concepts, programming in C, computer architecture, and the evolution of computers. Additionally, it includes information on course logistics such as sections, timings, and reference materials.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views49 pages

Lec1 Introduction

The document outlines the course CS 101 - Introduction to Computing at IIT Guwahati for January-April 2025, detailing the syllabus, instructors, and assessment methods. It covers fundamental computing concepts, programming in C, computer architecture, and the evolution of computers. Additionally, it includes information on course logistics such as sections, timings, and reference materials.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 49

Introduction to Computing (CS 101)

[January-April 2025]

Sushanta Karmakar, Arijit Sur, S Ranbir Singh & Pinaki Mitra


Department of Computer Science & Engineering
Indian Institute of Technology Guwahati
1/10/2025 Introduction to Computing (CS 101) 1
Outline
• CS101 - Introduction to Computing [L-T-P-C: 3-0-0-6]

• Instructors for Pre-Mid Sem Part

• Sushanta Karmakar (Div. 2, 4) & Arijit Sur (Div. 1, 3)

• Two exams: Mid semester (50%), End semester(50%)

• Biometric attendance policy (As per academic section)

1/10/2025 Introduction to Computing (CS 101) 2


Instructors and TAs (Pre MID Semester)
Divisions Branches
I ME, CE, ENERGY
II BT, ECE, EEE
III CSE, MC, EPH
IV CL, CST, DSAI, DD

Instructor Section/Slot Room Lead TA


Arijit Sur Sec. 1 (FN)- D Slot L2 Alik Pramanik ([email protected])
Sushanta Karmakar Sec. 2 (FN)- D Slot L4 Sonal Kumar ([email protected])
Arijit Sur Sec. 3 (AN)- D1 Slot L2 Alik Pramanik ([email protected])
Sushanta Karmakar Sec. 4 (AN)- D1 Slot L4 Sonal Kumar ([email protected])

Section 1 &2:
D Slots: Monday (11 AM-11.55 AM) Thursday (9 AM-9.55 AM) Friday (10 AM- 10.55 AM)

Section 3 & 4:
D1 Slots: Monday (2 PM-2.55 PM) Thursday (4 PM-4.55 PM) Friday (3 PM- 3.55 PM)
1/10/2025 Introduction to Computing (CS 101) 3
Syllabus
• Pre-MID Semester
– Introduction: The von Neumann architecture, machine language,
assembly language, high level programming languages, compiler,
interpreter, loader, linker, text editors, operating systems, flowchart;

– Basic features of programming (Using C):data types, variables, operators,


expressions, statements, control structures, functions; Advanced
programming features: arrays and pointers (introduction)

• Post MID Semester


– Pointers, recursion, records (structures), memory management, files,
input/output, standard library functions, programming tools, testing and
debugging; Fundamental operations on data: insert, delete, search,
traverse and modify;

– Fundamental data structures: arrays, stacks, queues, linked lists;


Searching and sorting: linear search, binary search, insertion-sort,
bubble-sort, selection-sort, radix-sort, counting-sort; Introduction to
object-oriented programming
1/10/2025 Introduction to Computing (CS 101) 4
Text/Reference Books

• Fundamentals of Computers, E Balaguruswamy, TMH

• Fundamentals of Computers, V. Rajaraman, PHI

• B Kernighan and D Ritchie, The C Programming Language,


2/e, Prentice Hall of India

• Let Us C, Yashavant Kanetkar, BPB Publication

1/10/2025 Introduction to Computing (CS 101) 5


What is a Computer

• A computer is an electronic machine that takes


input from the user, processes the given input
and generates output in the form of useful
information.

1/10/2025 The
Introduction to Computing (CS components
101) of computer 6
Devices in a typical computer
• Central Processing Unit (CPU): It is the processor of the computer that is
responsible for controlling and executing instructions in the computer. It is
considered as the most significant component of the computer. It is the
“brain” of the computer.

• Video Display Unit (VDU): It is a screen, which displays information in


visual form, after receiving the video signals from the computer.

• Keyboard and Mouse: These are the input devices, which are used by the
computer, for receiving input from the user.

1/10/2025 Introduction to Computing (CS 101) 7


Input to a computer

• Data: the raw details that need to be processed to


generate some useful information.

• Programs: the set of instructions that can be executed


by the computer in sequential or non-sequential
manner.

• User reply: the input provided by the user in response


to a question asked by the computer.

1/10/2025 Introduction to Computing (CS 101) 8


Task of Computer

• The computer takes programs (what and how to do) and data
(on what to process) from users and generates output (some
useful information) as per user’s requirements.

• A hypothetical example: Add 2, 2


– Program (instruction): Add; data: 2, 2
– Intended Output: 4

1/10/2025 Introduction to Computing (CS 101) 9


Program (Multiple Instructions)

#include <stdio.h>
int main() {
int number1, number2, sum;
printf("Enter two integers: ");
scanf("%d %d", &number1, &number2);
// calculate the sum
sum = number1 + number2;
printf("%d + %d = %d", number1, number2, sum);
return 0;
}

1/10/2025 Introduction to Computing (CS 101) 10


1/10/2025 Introduction to Computing (CS 101) 11
Basic Blocks of Computing System

1/10/2025 Introduction to Computing (CS 101) 12


Program Execution: Layered Architecture
temp = v[k];
High Level Language v[k] = v[k+1];
Program
v[k+1] = temp;
Compiler
lw $15, 0($2)
Assembly Language
Program lw $16, 4($2)
sw $16, 0($2)
Assembler + sw $15, 4($2)
Linker + Loader
0000 1001 1100 0110 1010 1111 0101 1000
Machine Language 1010 1111 0101 1000 0000 1001 1100 0110
Program 1100 0110 1010 1111 0101 1000 0000 1001
0101 1000 0000 1001 1100 0110 1010 1111

Machine Interpretation

Control Signal Specification


ALUOP[0:3] <= InstReg[9:11] & MASK
°
°
1/10/2025 Introduction to Computing (CS 101) 13
A Computer System

User
• Hardware
• Software Application Software

– System software System Software


– Application Software
• User Hardware

1/10/2025 Introduction to Computing (CS 101) 14


Software
• Software is set of programs (which are step by
step instructions) telling the computer how to
process data.

• Software needs to be installed on a computer,


usually from a CD.

• Softwares can be divided into two groups:


- System SW
- Application SW

1/10/2025 Introduction to Computing (CS 101) 15


Software (Contd.)
System Software
• It controls the overall operation of the system.

• It is stored in the computer's memory and


instructs the computer to load, store, and execute
an application.

• Examples: Operating System (OS), Assemblers,


loaders, linkers etc.

1/10/2025 Introduction to Computing (CS 101) 16


Software (Contd.)
Application Software
• They are Software written to perform specific
tasks.

• The basic types of application software are:


word processing, database, spreadsheet,
desktop publishing, and communication.
Examples: MSOffice, Oracle, Visual Studio etc

1/10/2025 Introduction to Computing (CS 101) 17


Computer Hardware

• Microprocessor
• Memory (RAM)
• Storage Devices
• Input Devices
• Output Devices

1/10/2025 Introduction to Computing (CS 101) 18


A Look Inside in CPU

power
supply CD-ROM
drive

floppy
drive
cards
hard
drive

motherboard
1/10/2025 Introduction to Computing (CS 101) 19
A Look Inside ..

• Identify all the major components:


– Power Supply
– Motherboard
– Memory
– Card Slots
– Cards (sound, video, network)
– CPU, heatsink and fan
– Drives (floppy, hard and CD-ROM)

1/10/2025 Introduction to Computing (CS 101) 20


A Look Inside ..

RAM
BANK

Card Slots (ISA & PCI) CPU, Fan, Heatsink


1/10/2025 Introduction to Computing (CS 101) 21
What these components do?
• Power Supply – supplies power to all the circuitry
and devices.

• Motherboard – acts as a manager for everything


on the computer – connects all the other
components together.

• Processor – Central Processing Unit – this does all


the work of computing.
1/10/2025 Introduction to Computing (CS 101) 22
What these components do?
• RAM – Random Access Memory – holds data
and program instructions that the computer is
currently using.

• Hard Drive – holds all of the information that


needs to be stored between uses of the
computer.

• Floppy and CD-ROM drives – allow you to give


data to the computer and take data away from
the computer.
1/10/2025 Introduction to Computing (CS 101) 23
What these components do?
• Card Slots –Allows other components to be added to the
computer.

• Video card –Does all of the processing necessary to get


stuff looking nice on screen, quickly.

• Sound card –Allows sounds from HD or CD-ROM to


be played.

• Network Card –allows computer to talk to other


computers over a wire.

1/10/2025 Introduction to Computing (CS 101) 24


Power Supply

SMPS – Switch Mode Power Supply


Switching Transistors

Outputs + 5V, -5V, +12 V, -12 V

Usually, SMPS comes with the CPU Cabinet.

1/10/2025 Introduction to Computing (CS 101) 25


Motherboard

1/10/2025 Introduction to Computing (CS 101) 26


Microprocessor
CU
• A Single Chip
ALU

Memory
Registers

Examples: Intel Family – Intel Core (i3, i5, i7, i9)


AMD -- AMD Ryzen 3, 5, 7, 1000
IBM -- Power Series, RAD Series, IBM Telum

1/10/2025 Introduction to Computing (CS 101) 27


RAM

1/10/2025 Introduction to Computing (CS 101) 28


Hard Drive

We won’t remove this.

1/10/2025 Introduction to Computing (CS 101) 29


Ribbon Cables

polarized

1/10/2025 Introduction to Computing (CS 101) 30


Video Card

1/10/2025 Introduction to Computing (CS 101) 31


Sound Card

1/10/2025 Introduction to Computing (CS 101) 32


1/10/2025 Introduction to Computing (CS 101) 33
Architecture of Computing System

Application

Operating
System

Compiler Firmware
Instruction Set
Architecture
Instr. Set Proc. I/O system

Datapath & Control

Digital Design
Circuit Design
Layout

1/10/2025 Introduction to Computing (CS 101) 34


Advantages of Using Computers
• Speed: Computers can carry out instructions in less than a
millionth of a second.

• Accuracy : Computers can do the calculations without errors


and very accurately.

• Diligence : Computers are capable of performing any task


given to them repetitively.

• Storage Capacity : Computers can store large volume of


data and information on magnetic media.

1/10/2025 Introduction to Computing (CS 101) 35


Generations of Computers

Charles Babbage: Father of Computer

He invented mechanical computer in 19th Century

1/10/2025 Introduction to Computing (CS 101) 36


FIRST GENERATION,
1951 – 1958: The Vacuum Tube

The first generation of computers, characterized by vacuum tubes,


started in 1951 with the creation of - UNIVAC (Universal Automatic
Computer) – a tabulating machine which won the contest for the
fastest machine which could count the US 1890 census.

VACUUM TUBES – electronic tubes about the size of light bulbs.

1/10/2025 Introduction to Computing (CS 101) 37


Disadvantages:

• They generate more heat causing many


problems in temperature regulation and climate
control.

• Tubes were subject to frequent burn-out.

1/10/2025 Introduction to Computing (CS 101) 38


SECOND GENERATION,
1959 – 1964: The Transistor
• The year 1959 marked the invention of transistors, which characterized the
second generation of computers.

• TRANSISTOR – was a three-legged component which shrunk the size of the


first generation computers. Occupied only 1/100th of the space occupied by a
vacuum tube.

• More reliable, had greater computational speed, required no warm-up time


and consumed far less electricity.

1/10/2025 Introduction to Computing (CS 101) 39


THIRD GENERATION,
1965 – 1970: The Integrated Circuit
• Third generation computers arose in 1965 with the invention of
smaller electronic circuits called integrated circuits (IC’S)

• INTEGRATED CIRCUITS – are square silicon chips


containing circuitry that can perform the functions of hundreds
of transistors.

1/10/2025 Introduction to Computing (CS 101) 40


Advantages:

• RELIABILITY – Unlike vacuum tubes, silicon will


not break down easily. It is very seldom that you will
have to replace it.

• LOW COST – Silicon chips are relatively cheap


because of their small size and availability in the
market. It also consumes less electricity.

1/10/2025 Introduction to Computing (CS 101) 41


FOURTH GENERATION,
1971 – present: The Microprocessor
• Marked by the use of microprocessor

• MICROPROCESSOR – is a silicon chip that contains the CPU –


part of the computer where all processing takes place.

• 4004 chip – was the first microprocessor introduced by Intel


Corporation.

1/10/2025 Introduction to Computing (CS 101) 42


Classification of Computers

• Supercomputers
• Mainframe computers
• Minicomputers
• Microcomputers

1/10/2025 Introduction to Computing (CS 101) 43


Page 11
Supercomputers
Generally have multi-processors
Huge capacity and speed
Used for
Weather Forecasting
Railway reservation
System etc.

1/10/2025 Introduction to Computing (CS 101) 44


Page 11
Mainframe Computers

• Very power full, large general purpose computers ,


capable of great processing speeds and data storage.

• Used for complex calculation on a large dataset


mostly in Banking sector, solving complex research
problems etc.

1/10/2025 Introduction to Computing (CS 101) 45


Page 11
Minicomputers

• Scaled Down version of Mainframes


• Used by medium-size companies
• Eg. PDP ii, VAX 7500 etc.

1/10/2025
CE06_PP01-46 Introduction to Computing (CS 101)
Page 11
Microcomputers

• Small Sizes and improved cost-effectiveness


• Least powerful
• Widely used in Home, Educational Institution
etc.

1/10/2025
CE06_PP01-47 Introduction to Computing (CS 101)
Page 11
Types of Microcomputers

• Desktop
• Notebook or laptop
• Tablet PC
• Handheld Devices etc

Desktop Notebook Handheld Tablet PC

1/10/2025
CE06_PP01-48 Introduction to Computing (CS 101)
Page 11
1/10/2025 Introduction to Computing (CS 101) 49

You might also like