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

PPTX
Introduction to Competitive programming
PPT
An introduction to Competitive Programming
PPTX
Competitive Programming Guide
PPT
Lect 3-4 Zaheer Abbas
PPT
Pintu ram
PPTX
Architecture Algorithm Definition
DOC
Introduction to-programming
PDF
Algorithm Pseudo
Introduction to Competitive programming
An introduction to Competitive Programming
Competitive Programming Guide
Lect 3-4 Zaheer Abbas
Pintu ram
Architecture Algorithm Definition
Introduction to-programming
Algorithm Pseudo

Similar to Algorithm n problem solving x (20)

PDF
19IS402_LP1_LM_22-23.pdf
PPT
PPT slides - MACHINE PERCEPTION LABORATORY
PDF
Lecture one for introducing to c programming for first Year
PDF
complexity analysis.pdf
PPTX
Algorithm itabq
PPSX
CC-112-Lec.1.ppsx
PPT
UNIT-1-PPTS-DAA_INTRODUCTION_TO_DAA_GH.ppt
PPTX
what is Algorithm? how to solve a problem by using algorithm.pptx
PPTX
UNIT-1.pptx
PDF
Algorithms notes 2 tutorials duniya
PPT
UNIT 1- Design Analysis of algorithms and its working
PPT
UNIT-1-PPTS-DAA INTRO WITH DIVIDE AND CONQUER
PPTX
2-Algorithms and Complexity analysis.pptx
PDF
ProgFund_Lecture7_Programming_Algorithm.pdf
PPTX
Design and analysis of algorithms Module-I.pptx
PPTX
Algorithm (Basic Algorithm Presentation).pptx
PPT
UNIT-1-PPTS-DAA.ppt
PPT
UNIT-1-PPTS-DAA.ppt
PPT
Introduction to Design Algorithm And Analysis.ppt
PPTX
Chp-1 DAA (2).pptx design analysis and algoritham presentation
19IS402_LP1_LM_22-23.pdf
PPT slides - MACHINE PERCEPTION LABORATORY
Lecture one for introducing to c programming for first Year
complexity analysis.pdf
Algorithm itabq
CC-112-Lec.1.ppsx
UNIT-1-PPTS-DAA_INTRODUCTION_TO_DAA_GH.ppt
what is Algorithm? how to solve a problem by using algorithm.pptx
UNIT-1.pptx
Algorithms notes 2 tutorials duniya
UNIT 1- Design Analysis of algorithms and its working
UNIT-1-PPTS-DAA INTRO WITH DIVIDE AND CONQUER
2-Algorithms and Complexity analysis.pptx
ProgFund_Lecture7_Programming_Algorithm.pdf
Design and analysis of algorithms Module-I.pptx
Algorithm (Basic Algorithm Presentation).pptx
UNIT-1-PPTS-DAA.ppt
UNIT-1-PPTS-DAA.ppt
Introduction to Design Algorithm And Analysis.ppt
Chp-1 DAA (2).pptx design analysis and algoritham presentation
Ad

More from laraibali21 (20)

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

Recently uploaded (20)

DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
Empowerment Technology for Senior High School Guide
PDF
Complications of Minimal Access-Surgery.pdf
PDF
English Textual Question & Ans (12th Class).pdf
PDF
Race Reva University – Shaping Future Leaders in Artificial Intelligence
PDF
Literature_Review_methods_ BRACU_MKT426 course material
PPTX
Climate Change and Its Global Impact.pptx
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PPTX
DRUGS USED FOR HORMONAL DISORDER, SUPPLIMENTATION, CONTRACEPTION, & MEDICAL T...
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
semiconductor packaging in vlsi design fab
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PPTX
Module on health assessment of CHN. pptx
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
LEARNERS WITH ADDITIONAL NEEDS ProfEd Topic
Cambridge-Practice-Tests-for-IELTS-12.docx
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
Empowerment Technology for Senior High School Guide
Complications of Minimal Access-Surgery.pdf
English Textual Question & Ans (12th Class).pdf
Race Reva University – Shaping Future Leaders in Artificial Intelligence
Literature_Review_methods_ BRACU_MKT426 course material
Climate Change and Its Global Impact.pptx
Core Concepts of Personalized Learning and Virtual Learning Environments
DRUGS USED FOR HORMONAL DISORDER, SUPPLIMENTATION, CONTRACEPTION, & MEDICAL T...
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
semiconductor packaging in vlsi design fab
Unit 4 Computer Architecture Multicore Processor.pptx
AI-driven educational solutions for real-life interventions in the Philippine...
FORM 1 BIOLOGY MIND MAPS and their schemes
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
B.Sc. DS Unit 2 Software Engineering.pptx
Module on health assessment of CHN. pptx
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
LEARNERS WITH ADDITIONAL NEEDS ProfEd Topic

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!