You are on page 1of 19

INTRODUCTION TO

COMPUTER
CSE 1105: Introduction to Computer

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 1
WHAT MAKES A
COMPUTER A
COMPUTER?

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 2
LET’S DIG A BIT DEEPER

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 3
More
Application abstract
s

Programmi
ng
Softwar
Languages
e
Operating
Systems

Architecture

Computer Hardwar
Component e
s

Circuits Less
abstract
Transistors
15/2/2022 MINHAJUL@CSE.UIU.AC.BD 4
APPLICATIONS
Any program you run on your computer
฀Google Chrome, Microsoft Word, Microsoft PowerPoint

.exe (Windows) or .app (Mac) file


You can use it without knowing how it works behind the scenes (abstraction)
Programs are written in code, the next layer of abstraction

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 5
CODE
A series of instructions
Each instruction is an operation
Computer follows each instruction, one after another
A program contains millions of instructions!

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 6
STRENGTHS AND
WEAKNESSES OF A
COMPUTER
Strengths
฀Very fast (billions of operations per second)
฀Very accurate

Weaknesses
฀Literal
฀Only simple operations (addition, comparison etc.)
฀No insight

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 7
FROM CODE TO HARDWARE
Every instruction in a code is converted into a sequence of 1’s and 0’s, so
that the hardware can understand it
Why do hardware understands only 0 and 1?

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 8
CHIPS
Transistor – vital electronic building block
A transistor is an electronic switch
฀Has two states – on and off

A single chip may contain billions of


transistors
Examples: CPU, RAM etc.

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 9
TRANSISTORS

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 10
THE BINARY NUMBER SYSTEM
A transistor is an electronic switch
฀Has two states – on (1) and off (0)

This is why a computer understands the language of 1’s and 0’s only
฀Binary number system
฀Two digits – 0 and 1
฀Every binary digit is also known as a bit
฀How many numbers can we store with 1 bit? 2 bits? 10 bits?

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 11
BYTES
Single bits are not that useful
Usually 8 bits are grouped together into bytes
฀Optimized to handle bytes instead of bits

Byt
e

Bi
t
15/2/2022 MINHAJUL@CSE.UIU.AC.BD 12
LOTS OF BYTES
1 kilobyte (kB) = 1024 bytes
1 megabyte (MB) = 1024 kB
฀Used to measure audio and image sizes

1 gigabyte (GB) = 1024 MB


฀Used to measure video sizes and storage capacity

1 terabyte (TB) = 1024 GB


฀Used to measure storage capacity

Why 1024? Why not 1000?

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 13
THREE MAJOR COMPONENTS
OF A COMPUTER
CPU
RAM
Storage

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 14
CPU
Central Processing Unit
The brain of the computer
Follows the instructions in the code
Processor speed 2.4 GHz =
capability to execute 2.4 billion
operations per second

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 15
RAM
Random Access Memory
Temporary, working storage of code and data
Examples
฀Open an image in Photoshop = image data loaded in RAM
฀Adding two numbers in a calculator = manipulating bytes in
RAM
฀Open a browser = the code of the browser gets loaded in
RAM

Non-persistent – data gone if power turned off


Faster – Can retrieve the value of any byte in a few
nanoseconds
15/2/2022 MINHAJUL@CSE.UIU.AC.BD 16
STORAGE

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 17
STORAGE
Persistent storage of data and code
฀Bytes are preserved even when not powered

Hard disk: Stores bytes as a magnetic pattern on a spinning disk


SSD: Solid State Drive
Portable disks: CD, DVD, Bluray (optical, now deprecated)
Portable storage: Flash drives/pendrive

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 18
MOTHERBOARD
The backbone of a computer
All components are connected to it
Provides data path between
components

15/2/2022 MINHAJUL@CSE.UIU.AC.BD 19

You might also like