SlideShare a Scribd company logo
COMPUTER
ONLINE
CLASS X
CHAPTER 1
PROBLEM SOLVING
AND ALGORITHM
DESIGNING
Outline
– Algorithm
– What is an algorithm?
– How are mathematical statements and algorithms
related?
– What do algorithms have to do with computers?
– Pseudo Code
– What is pseudocode?
– Writing pseudocode
– Pseudo Code vs Algorithm
What is an algorithm?
–An algorithm is a finite, explicit step-by-step procedure for solving a specific problem
or accomplishing a specific goal.
–We frequently talk about algorithms in mathematical terms, and many algorithms are
expressed using notation borrowed from mathematics, but algorithms aren't
necessarily mathematical in the operations performed, or in the results produced.
– In general, an effective algorithm has these characteristics:
– Explicit, complete, and precise initial conditions;
– A finite, complete, unbroken
– Explicit, complete, and precise terminal (stopping) conditions
WATCH A TUTORIAL
https://youtu.be/jaQzQC3ADQU
How are mathematical statements
and algorithms related?
5(𝐹− 32) = 9
𝐶
– First, convert expression into a form that expresses C as a function of F:
C=5/9 * (F – 32)
– Now it's a straightforward task to write an algorithm (based on the standard
order
of arithmetic operations) to convert from Fahrenheit to Celsius.
– Start with a given temperature in degrees Fahrenheit.
– Subtract 32 from the value used in step # 1.
– Multiply the result of step # 2 by 5.
– Divide the result of step # 3 by 9.
– The result of step # 4 is the temperature in degrees Celsius.
What do algorithms have to do
with computers?
– Computer programming consists, in large part, of creating unambiguous, step-by-step
procedures for the computer to follow, to produce specific results. In other words, we
might say that computer programming is almost all about algorithms.
– In many respects, computers are electronic idiot savants: they can perform amazing
feats of calculation and memory, but without our help, they're almost totally
incompetent when it comes to applying those abilities to practical problems.
– Want to compute the sine of an angle? How about computing the natural logarithm of a
number? These tasks are easy for a computer –, in most modern computers, these
operations are built into the CPU itself.
– But if you want to plot the graph of y=sin x on the screen, or balance your cheque
book, or compute the area of the region 1≤x≤100,0≤y≤1/x, the computer is helpless –
until someone writes algorithms to accomplish these tasks, and “teaches” them to the
computer.
Pseudo Code vs Algorithm
HOME WORK
DO
Q1: Describe the steps involved
in problem solving.
THANK YOU MEET YOU
NEXT CLASS!

More Related Content

Similar to Algorithm n problem solving x (20)

PPTX
Programming preparation_stepping Algorithm
leneinterno
 
PPTX
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab36
 
PPTX
Algorithm (Basic Algorithm Presentation).pptx
Ismail Hussain
 
PPTX
Algorithm itabq
mckennadglyn
 
PPTX
Unit 1 c programming language Tut and notes
achiver792
 
PPT
AOA Week 01.ppt
INAM352782
 
PDF
Basics of Algorithm Unit 1 part 1 algorithm
JIMS LAJPAT NAGAR
 
PPTX
Design and Analysis of Algorithm ppt for unit one
ssuserb7c8b8
 
PPTX
s-INTRODUCTION TO PROBLEM SOLVING PPT.pptx
ShamithRai
 
PPTX
Csci101 lect00 introduction
Elsayed Hemayed
 
PPTX
Computers_as_Problem_Solving_Tools sdklfj
vaibhavdtambe2003
 
PPTX
Computers_as_Problem_Solving_Tools for computer
vaibhavdtambe2003
 
PPTX
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
PPSX
Small Basic Calculator Apps lesson
Edujetage
 
PPTX
Algorithms and problem solving.pptx
aikomo1
 
PPT
Pemrograman komputer 1 (algoritma)
jayamartha
 
PPT
Problem Solving Techniques notes for Unit 1
SATHYABAMAMADHANKUMA
 
PDF
19IS402_LP1_LM_22-23.pdf
GOWTHAMR721887
 
PPT
Problem solving
hamza239523
 
PPT
Problem Solving and Algorithm Design in Computer Science
RaviRaval36
 
Programming preparation_stepping Algorithm
leneinterno
 
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab36
 
Algorithm (Basic Algorithm Presentation).pptx
Ismail Hussain
 
Algorithm itabq
mckennadglyn
 
Unit 1 c programming language Tut and notes
achiver792
 
AOA Week 01.ppt
INAM352782
 
Basics of Algorithm Unit 1 part 1 algorithm
JIMS LAJPAT NAGAR
 
Design and Analysis of Algorithm ppt for unit one
ssuserb7c8b8
 
s-INTRODUCTION TO PROBLEM SOLVING PPT.pptx
ShamithRai
 
Csci101 lect00 introduction
Elsayed Hemayed
 
Computers_as_Problem_Solving_Tools sdklfj
vaibhavdtambe2003
 
Computers_as_Problem_Solving_Tools for computer
vaibhavdtambe2003
 
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
Small Basic Calculator Apps lesson
Edujetage
 
Algorithms and problem solving.pptx
aikomo1
 
Pemrograman komputer 1 (algoritma)
jayamartha
 
Problem Solving Techniques notes for Unit 1
SATHYABAMAMADHANKUMA
 
19IS402_LP1_LM_22-23.pdf
GOWTHAMR721887
 
Problem solving
hamza239523
 
Problem Solving and Algorithm Design in Computer Science
RaviRaval36
 

More from laraibali21 (20)

PPTX
Computer software
laraibali21
 
PPTX
MSW LOGO PRIMITIVES
laraibali21
 
PPTX
More feature of MS POWER POINT
laraibali21
 
PPTX
INTRODUCTION TO MS EXCEL 2010
laraibali21
 
PPTX
ADVANCE ALGORITM AND FLOW CHARTS
laraibali21
 
PPTX
MS PAINT
laraibali21
 
PPTX
Input and output devices
laraibali21
 
PPTX
Introduction to MS Windows 7
laraibali21
 
PPTX
Parts of computer
laraibali21
 
PPTX
Computer around us
laraibali21
 
PPTX
Characteristic of computer
laraibali21
 
PPTX
Hyperlink
laraibali21
 
PPTX
INTERNET
laraibali21
 
PPTX
Insert a HYPERLINK
laraibali21
 
PPTX
More on QBASIC
laraibali21
 
PPTX
HTML (presentation)
laraibali21
 
PPTX
ELECTRONIC MAIL
laraibali21
 
PPTX
MS PAINT (START AND CLOSE )
laraibali21
 
PPTX
GRADE 3
laraibali21
 
PPTX
COMPUTER BASIC PARTS
laraibali21
 
Computer software
laraibali21
 
MSW LOGO PRIMITIVES
laraibali21
 
More feature of MS POWER POINT
laraibali21
 
INTRODUCTION TO MS EXCEL 2010
laraibali21
 
ADVANCE ALGORITM AND FLOW CHARTS
laraibali21
 
MS PAINT
laraibali21
 
Input and output devices
laraibali21
 
Introduction to MS Windows 7
laraibali21
 
Parts of computer
laraibali21
 
Computer around us
laraibali21
 
Characteristic of computer
laraibali21
 
Hyperlink
laraibali21
 
INTERNET
laraibali21
 
Insert a HYPERLINK
laraibali21
 
More on QBASIC
laraibali21
 
HTML (presentation)
laraibali21
 
ELECTRONIC MAIL
laraibali21
 
MS PAINT (START AND CLOSE )
laraibali21
 
GRADE 3
laraibali21
 
COMPUTER BASIC PARTS
laraibali21
 
Ad

Recently uploaded (20)

PDF
Quiz Night Live May 2025 - Intra Pragya Online General Quiz
Pragya - UEM Kolkata Quiz Club
 
PPTX
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
PDF
CAD25 Gbadago and Fafa Presentation Revised-Aston Business School, UK.pdf
Kweku Zurek
 
PPTX
week 1-2.pptx yueojerjdeiwmwjsweuwikwswiewjrwiwkw
rebznelz
 
PDF
Our Guide to the July 2025 USPS® Rate Change
Postal Advocate Inc.
 
PPTX
SYMPATHOMIMETICS[ADRENERGIC AGONISTS] pptx
saip95568
 
PPTX
How to Create & Manage Stages in Odoo 18 Helpdesk
Celine George
 
PPTX
Ward Management: Patient Care, Personnel, Equipment, and Environment.pptx
PRADEEP ABOTHU
 
PPTX
Practice Gardens and Polytechnic Education: Utilizing Nature in 1950s’ Hu...
Lajos Somogyvári
 
PPTX
How to Add a Custom Button in Odoo 18 POS Screen
Celine George
 
PPTX
Parsing HTML read and write operations and OS Module.pptx
Ramakrishna Reddy Bijjam
 
PDF
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
 
PPTX
The Gift of the Magi by O Henry-A Story of True Love, Sacrifice, and Selfless...
Beena E S
 
PDF
Nanotechnology and Functional Foods Effective Delivery of Bioactive Ingredien...
rmswlwcxai8321
 
PPTX
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
PDF
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
PDF
DIGESTION OF CARBOHYDRATES ,PROTEINS AND LIPIDS
raviralanaresh2
 
PDF
Cooperative wireless communications 1st Edition Yan Zhang
jsphyftmkb123
 
PPTX
Urban Hierarchy and Service Provisions.pptx
Islamic University of Bangladesh
 
PPTX
How Physics Enhances Our Quality of Life.pptx
AngeliqueTolentinoDe
 
Quiz Night Live May 2025 - Intra Pragya Online General Quiz
Pragya - UEM Kolkata Quiz Club
 
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
CAD25 Gbadago and Fafa Presentation Revised-Aston Business School, UK.pdf
Kweku Zurek
 
week 1-2.pptx yueojerjdeiwmwjsweuwikwswiewjrwiwkw
rebznelz
 
Our Guide to the July 2025 USPS® Rate Change
Postal Advocate Inc.
 
SYMPATHOMIMETICS[ADRENERGIC AGONISTS] pptx
saip95568
 
How to Create & Manage Stages in Odoo 18 Helpdesk
Celine George
 
Ward Management: Patient Care, Personnel, Equipment, and Environment.pptx
PRADEEP ABOTHU
 
Practice Gardens and Polytechnic Education: Utilizing Nature in 1950s’ Hu...
Lajos Somogyvári
 
How to Add a Custom Button in Odoo 18 POS Screen
Celine George
 
Parsing HTML read and write operations and OS Module.pptx
Ramakrishna Reddy Bijjam
 
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
 
The Gift of the Magi by O Henry-A Story of True Love, Sacrifice, and Selfless...
Beena E S
 
Nanotechnology and Functional Foods Effective Delivery of Bioactive Ingredien...
rmswlwcxai8321
 
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
DIGESTION OF CARBOHYDRATES ,PROTEINS AND LIPIDS
raviralanaresh2
 
Cooperative wireless communications 1st Edition Yan Zhang
jsphyftmkb123
 
Urban Hierarchy and Service Provisions.pptx
Islamic University of Bangladesh
 
How Physics Enhances Our Quality of Life.pptx
AngeliqueTolentinoDe
 
Ad

Algorithm n problem solving x

  • 2. CHAPTER 1 PROBLEM SOLVING AND ALGORITHM DESIGNING
  • 3. Outline – Algorithm – What is an algorithm? – How are mathematical statements and algorithms related? – What do algorithms have to do with computers? – Pseudo Code – What is pseudocode? – Writing pseudocode – Pseudo Code vs Algorithm
  • 4. What is an algorithm? –An algorithm is a finite, explicit step-by-step procedure for solving a specific problem or accomplishing a specific goal. –We frequently talk about algorithms in mathematical terms, and many algorithms are expressed using notation borrowed from mathematics, but algorithms aren't necessarily mathematical in the operations performed, or in the results produced. – In general, an effective algorithm has these characteristics: – Explicit, complete, and precise initial conditions; – A finite, complete, unbroken – Explicit, complete, and precise terminal (stopping) conditions
  • 6. How are mathematical statements and algorithms related? 5(𝐹− 32) = 9 𝐶 – First, convert expression into a form that expresses C as a function of F: C=5/9 * (F – 32) – Now it's a straightforward task to write an algorithm (based on the standard order of arithmetic operations) to convert from Fahrenheit to Celsius. – Start with a given temperature in degrees Fahrenheit. – Subtract 32 from the value used in step # 1. – Multiply the result of step # 2 by 5. – Divide the result of step # 3 by 9. – The result of step # 4 is the temperature in degrees Celsius.
  • 7. What do algorithms have to do with computers? – Computer programming consists, in large part, of creating unambiguous, step-by-step procedures for the computer to follow, to produce specific results. In other words, we might say that computer programming is almost all about algorithms. – In many respects, computers are electronic idiot savants: they can perform amazing feats of calculation and memory, but without our help, they're almost totally incompetent when it comes to applying those abilities to practical problems. – Want to compute the sine of an angle? How about computing the natural logarithm of a number? These tasks are easy for a computer –, in most modern computers, these operations are built into the CPU itself. – But if you want to plot the graph of y=sin x on the screen, or balance your cheque book, or compute the area of the region 1≤x≤100,0≤y≤1/x, the computer is helpless – until someone writes algorithms to accomplish these tasks, and “teaches” them to the computer.
  • 8. Pseudo Code vs Algorithm
  • 9. HOME WORK DO Q1: Describe the steps involved in problem solving.
  • 10. THANK YOU MEET YOU NEXT CLASS!