L1 Introduction
L1 Introduction
Problem Solving
Introduction
• Input/output devices
Buses - transfer data between components within a computer system, such as
between the CPU and main memory
Fundamental hardware components
Operating Systems—Bridging Software and Hardware
10
About Algorithm
Recipe of a tea Algorithm Looks like:
● Machine friendly
● Difficult to understand
(probably will have to learn
everything about
processors/CPUs)
● Not portable
● More time to write
Programming Languages
• Add two numbers:
• Load the number from memory location 2001 into the CPU
• Load the number from memory location 2002 into the CPU
• Add the two numbers in the CPU
• Store the result in location 2003
• In reality, these low-level instructions are represented in binary (1’s and 0’s)
• High-level language -> c = a + b
• This needs to be translated into machine language that the computer can
execute.
• Compilers convert programs written in a high-level language into the
machine language of some computer.
21
Program Translation
• A central processing unit (CPU) is designed to interpret and execute a specific set of
instructions represented in binary form (i.e., 1s and 0s) called machine code.
• Computers do not understand what a program is meant to do, they only follow the
instructions given
Different Approaches to Problem Solving
The four pillars of computational thinking
1. Decomposition
2. Pattern recognition
3. Abstraction
4. Algorithms
Decomposition
•Computational problem solving does not simply involve the act of computer programming
Thank You!
Thought for the day:
“Use your freedom in a manner that benefits society.”
~~~AMMA~~~