SlideShare a Scribd company logo
Algorithm (Basic Algorithm Presentation).pptx
TOPIC
ALGORITHM
Computational Thinking
 Computational thinking means thinking or solving problems like a computer
scientist.
 There are four key techniques to computational thinking:
 Decomposition
 Pattern Recognition
 Abstraction
 Algorithm
Computational Thinking
 Pattern recognition:
 Looking for similarities among and within problems.
 Abstraction:
 Focusing on the important information only, ignoring irrelevant detail.
Decomposition
 The process of breaking down a complex problem into smaller, simple and
easy to manage parts.
 We do many tasks on a daily without even thinking about or decomposing
them, such as getting ready to school, finishing school work
 Breaking the problem down into smaller parts means that each smaller
problem can be examined in more detail.
What is Algorithm?
 An algorithm is a process or set of rules to be followed in calculations or other
problem-solving operations, especially by a computer.
 It is a set of rules to obtain the expected output from the given input.

 An algorithm is simply a set of steps used to complete a specific task
Algorithm Around Us
 Algorithms are everywhere around us.
 We humans follow and perform daily tasks in the form of algorithms without
knowing that they are algorithms.
 One of the most obvious examples of an algorithm is a recipe. It’s a finite list of
instructions used to perform a task.
 Example: making tea, cross the road
Algorithm in Computer Science
 Algorithm are one of the four cornerstones of computational thinking.
 Algorithmic programming is all about writing a set of rules with a finite number
of steps that instruct the computer how to perform a task.
 A computer program is essentially an algorithm that tells the computer what
specific steps to execute, in what specific order, in order to carry out a
specific task.
Algorithm in Computer Science
 An algorithm are written using a particular syntax, depending on the
programming language being used.
Algorithm in Computer Science
 Find the product of two numbers.
 Find the number 1.
 Find the number 2.
 What is operator?
 Where to store the result?
Algorithm in Computer Science
 Find the product of two numbers.
 Enter number 1
 Store number 1 in x
 Enter number 2
 Store number 2 in y
 Multiple x & y
 Store result in z (z=x*y)
 Display number
Note: now these instructions can be easily translated into computer program
What is Computer Program?
 In computer program, a sequence of instructions is given to computer to solve a
specific problem.
 Computer programs consist of a series of instructions to tell a computer exactly what to
do and how to do it.
 Programing:
 Programing is writing computer code to create a program, in order to solve a
problem.
 Code:
 Code is the process of translating an algorithm into a programming language.
Algorithm in Computer Science
 Solve: 8+9*7+2(9-3)
 Write a computer program that ensures that everyone who is under 15 years
of age will get discount.
Algorithm
 Algorithm:
 Find out how old the person is
 If the person is younger than 15 then say “You are eligible for a discount
ticket”
 Otherwise, say “you are not eligible for a discount ticket”
Program
 Program in syntax based language:
age = int(input(“How old are you”))
If age < 15:
print(“You are eligible for discount”)
else:
print(“you are not eligible for discount”)
Write a program that can find the sum of three numbers and
print the results
Write a program that can find the sum of three numbers and
print the results
‫!شکریہ‬
‫کا۔۔۔‬ ‫توجہ‬ ‫کی‬ ‫آپ‬
Ad

Recommended

what is Algorithm? how to solve a problem by using algorithm.pptx
what is Algorithm? how to solve a problem by using algorithm.pptx
MunawarAbbas36
 
AOA Week 01.ppt
AOA Week 01.ppt
INAM352782
 
Programming in C - Problem Solving using C
Programming in C - Problem Solving using C
PoovizhiP1
 
Chapter one
Chapter one
mihiretu kassaye
 
Lecture 2 role of algorithms in computing
Lecture 2 role of algorithms in computing
jayavignesh86
 
Problem Solving Techniques notes for Unit 1
Problem Solving Techniques notes for Unit 1
SATHYABAMAMADHANKUMA
 
CC-112-Lec.1.ppsx
CC-112-Lec.1.ppsx
Aamir Shahzad
 
Algorithms and problem solving.pptx
Algorithms and problem solving.pptx
aikomo1
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
rajkumar1631010038
 
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
HarshJha34
 
6th Grade Intro to Algorithms & Programming.pptx
6th Grade Intro to Algorithms & Programming.pptx
Melanie Wood
 
Program concep sequential statements
Program concep sequential statements
ankurkhanna
 
PPT slides - MACHINE PERCEPTION LABORATORY
PPT slides - MACHINE PERCEPTION LABORATORY
butest
 
UNIT-1.pptx python for engineering first year students
UNIT-1.pptx python for engineering first year students
SabarigiriVason
 
ProgFund_Lecture7_Programming_Algorithm.pdf
ProgFund_Lecture7_Programming_Algorithm.pdf
lailoesakhan
 
Design and Analysis of Algorithm ppt for unit one
Design and Analysis of Algorithm ppt for unit one
ssuserb7c8b8
 
Programs_Problem_Solving_Algorithms.ppt
Programs_Problem_Solving_Algorithms.ppt
malik681299
 
s-INTRODUCTION TO PROBLEM SOLVING PPT.pptx
s-INTRODUCTION TO PROBLEM SOLVING PPT.pptx
ShamithRai
 
Csci101 lect00 introduction
Csci101 lect00 introduction
Elsayed Hemayed
 
Unit 2 CPR.pptxaccSSzzCSDVVSVZVZSVVSDVDDSDDS
Unit 2 CPR.pptxaccSSzzCSDVVSVZVZSVVSDVDDSDDS
jbadgujar730
 
Algorithm - A set of rules for solving operations
Algorithm - A set of rules for solving operations
Kumari99
 
CP4151 Advanced data structures and algorithms
CP4151 Advanced data structures and algorithms
Sheba41
 
L01 intro-daa - ppt1
L01 intro-daa - ppt1
sankaran L
 
Basics of Algorithm Unit 1 part 1 algorithm
Basics of Algorithm Unit 1 part 1 algorithm
JIMS LAJPAT NAGAR
 
Problem Solving and Algorithm Design in Computer Science
Problem Solving and Algorithm Design in Computer Science
RaviRaval36
 
part_1 (1).ppt
part_1 (1).ppt
lekha572836
 
problem solving and algorithm development
problem solving and algorithm development
jessicajames100
 
l01-intro (3).ppt
l01-intro (3).ppt
ssuser15a62a
 
Exploring Forms of Business Organization: A Complete Guide
Exploring Forms of Business Organization: A Complete Guide
Ismail Hussain
 
Understanding the Basics of Entrepreneurship
Understanding the Basics of Entrepreneurship
Ismail Hussain
 

More Related Content

Similar to Algorithm (Basic Algorithm Presentation).pptx (20)

Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
rajkumar1631010038
 
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
HarshJha34
 
6th Grade Intro to Algorithms & Programming.pptx
6th Grade Intro to Algorithms & Programming.pptx
Melanie Wood
 
Program concep sequential statements
Program concep sequential statements
ankurkhanna
 
PPT slides - MACHINE PERCEPTION LABORATORY
PPT slides - MACHINE PERCEPTION LABORATORY
butest
 
UNIT-1.pptx python for engineering first year students
UNIT-1.pptx python for engineering first year students
SabarigiriVason
 
ProgFund_Lecture7_Programming_Algorithm.pdf
ProgFund_Lecture7_Programming_Algorithm.pdf
lailoesakhan
 
Design and Analysis of Algorithm ppt for unit one
Design and Analysis of Algorithm ppt for unit one
ssuserb7c8b8
 
Programs_Problem_Solving_Algorithms.ppt
Programs_Problem_Solving_Algorithms.ppt
malik681299
 
s-INTRODUCTION TO PROBLEM SOLVING PPT.pptx
s-INTRODUCTION TO PROBLEM SOLVING PPT.pptx
ShamithRai
 
Csci101 lect00 introduction
Csci101 lect00 introduction
Elsayed Hemayed
 
Unit 2 CPR.pptxaccSSzzCSDVVSVZVZSVVSDVDDSDDS
Unit 2 CPR.pptxaccSSzzCSDVVSVZVZSVVSDVDDSDDS
jbadgujar730
 
Algorithm - A set of rules for solving operations
Algorithm - A set of rules for solving operations
Kumari99
 
CP4151 Advanced data structures and algorithms
CP4151 Advanced data structures and algorithms
Sheba41
 
L01 intro-daa - ppt1
L01 intro-daa - ppt1
sankaran L
 
Basics of Algorithm Unit 1 part 1 algorithm
Basics of Algorithm Unit 1 part 1 algorithm
JIMS LAJPAT NAGAR
 
Problem Solving and Algorithm Design in Computer Science
Problem Solving and Algorithm Design in Computer Science
RaviRaval36
 
part_1 (1).ppt
part_1 (1).ppt
lekha572836
 
problem solving and algorithm development
problem solving and algorithm development
jessicajames100
 
l01-intro (3).ppt
l01-intro (3).ppt
ssuser15a62a
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
rajkumar1631010038
 
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
HarshJha34
 
6th Grade Intro to Algorithms & Programming.pptx
6th Grade Intro to Algorithms & Programming.pptx
Melanie Wood
 
Program concep sequential statements
Program concep sequential statements
ankurkhanna
 
PPT slides - MACHINE PERCEPTION LABORATORY
PPT slides - MACHINE PERCEPTION LABORATORY
butest
 
UNIT-1.pptx python for engineering first year students
UNIT-1.pptx python for engineering first year students
SabarigiriVason
 
ProgFund_Lecture7_Programming_Algorithm.pdf
ProgFund_Lecture7_Programming_Algorithm.pdf
lailoesakhan
 
Design and Analysis of Algorithm ppt for unit one
Design and Analysis of Algorithm ppt for unit one
ssuserb7c8b8
 
Programs_Problem_Solving_Algorithms.ppt
Programs_Problem_Solving_Algorithms.ppt
malik681299
 
s-INTRODUCTION TO PROBLEM SOLVING PPT.pptx
s-INTRODUCTION TO PROBLEM SOLVING PPT.pptx
ShamithRai
 
Csci101 lect00 introduction
Csci101 lect00 introduction
Elsayed Hemayed
 
Unit 2 CPR.pptxaccSSzzCSDVVSVZVZSVVSDVDDSDDS
Unit 2 CPR.pptxaccSSzzCSDVVSVZVZSVVSDVDDSDDS
jbadgujar730
 
Algorithm - A set of rules for solving operations
Algorithm - A set of rules for solving operations
Kumari99
 
CP4151 Advanced data structures and algorithms
CP4151 Advanced data structures and algorithms
Sheba41
 
L01 intro-daa - ppt1
L01 intro-daa - ppt1
sankaran L
 
Basics of Algorithm Unit 1 part 1 algorithm
Basics of Algorithm Unit 1 part 1 algorithm
JIMS LAJPAT NAGAR
 
Problem Solving and Algorithm Design in Computer Science
Problem Solving and Algorithm Design in Computer Science
RaviRaval36
 
problem solving and algorithm development
problem solving and algorithm development
jessicajames100
 

More from Ismail Hussain (10)

Exploring Forms of Business Organization: A Complete Guide
Exploring Forms of Business Organization: A Complete Guide
Ismail Hussain
 
Understanding the Basics of Entrepreneurship
Understanding the Basics of Entrepreneurship
Ismail Hussain
 
Understanding Logical Structures: Sequence, Selection, and Repetition
Understanding Logical Structures: Sequence, Selection, and Repetition
Ismail Hussain
 
Logical Structures
Logical Structures
Ismail Hussain
 
Computer Vision Presentation
Computer Vision Presentation
Ismail Hussain
 
Understanding Artificial Intelligence: Concepts, Applications, and Future Trends
Understanding Artificial Intelligence: Concepts, Applications, and Future Trends
Ismail Hussain
 
Branding Strategy in Marketing
Branding Strategy in Marketing
Ismail Hussain
 
Software Testing Technique in Software Engineering
Software Testing Technique in Software Engineering
Ismail Hussain
 
Understanding Real GDP: Measurement, Importance, and Economic Impacts
Understanding Real GDP: Measurement, Importance, and Economic Impacts
Ismail Hussain
 
Generation of computer
Generation of computer
Ismail Hussain
 
Exploring Forms of Business Organization: A Complete Guide
Exploring Forms of Business Organization: A Complete Guide
Ismail Hussain
 
Understanding the Basics of Entrepreneurship
Understanding the Basics of Entrepreneurship
Ismail Hussain
 
Understanding Logical Structures: Sequence, Selection, and Repetition
Understanding Logical Structures: Sequence, Selection, and Repetition
Ismail Hussain
 
Computer Vision Presentation
Computer Vision Presentation
Ismail Hussain
 
Understanding Artificial Intelligence: Concepts, Applications, and Future Trends
Understanding Artificial Intelligence: Concepts, Applications, and Future Trends
Ismail Hussain
 
Branding Strategy in Marketing
Branding Strategy in Marketing
Ismail Hussain
 
Software Testing Technique in Software Engineering
Software Testing Technique in Software Engineering
Ismail Hussain
 
Understanding Real GDP: Measurement, Importance, and Economic Impacts
Understanding Real GDP: Measurement, Importance, and Economic Impacts
Ismail Hussain
 
Generation of computer
Generation of computer
Ismail Hussain
 
Ad

Recently uploaded (20)

IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
LDMMIA Yoga S10 Free Workshop Grad Level
LDMMIA Yoga S10 Free Workshop Grad Level
LDM & Mia eStudios
 
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
Belicia R.S
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
Battle of Bookworms 2025 - U25 Literature Quiz by Pragya
Battle of Bookworms 2025 - U25 Literature Quiz by Pragya
Pragya - UEM Kolkata Quiz Club
 
NSUMD_M1 Library Orientation_June 11, 2025.pptx
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
Publishing Your Memoir with Brooke Warner
Publishing Your Memoir with Brooke Warner
Brooke Warner
 
LDMMIA Practitioner Student Reiki Yoga S2 Video PDF Without Yogi Goddess
LDMMIA Practitioner Student Reiki Yoga S2 Video PDF Without Yogi Goddess
LDM & Mia eStudios
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
2025 June Year 9 Presentation: Subject selection.pptx
2025 June Year 9 Presentation: Subject selection.pptx
mansk2
 
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
Kweku Zurek
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
Communicable Diseases and National Health Programs – Unit 9 | B.Sc Nursing 5t...
Communicable Diseases and National Health Programs – Unit 9 | B.Sc Nursing 5t...
RAKESH SAJJAN
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
 
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
LDMMIA Yoga S10 Free Workshop Grad Level
LDMMIA Yoga S10 Free Workshop Grad Level
LDM & Mia eStudios
 
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
Belicia R.S
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
Battle of Bookworms 2025 - U25 Literature Quiz by Pragya
Battle of Bookworms 2025 - U25 Literature Quiz by Pragya
Pragya - UEM Kolkata Quiz Club
 
NSUMD_M1 Library Orientation_June 11, 2025.pptx
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
Publishing Your Memoir with Brooke Warner
Publishing Your Memoir with Brooke Warner
Brooke Warner
 
LDMMIA Practitioner Student Reiki Yoga S2 Video PDF Without Yogi Goddess
LDMMIA Practitioner Student Reiki Yoga S2 Video PDF Without Yogi Goddess
LDM & Mia eStudios
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
2025 June Year 9 Presentation: Subject selection.pptx
2025 June Year 9 Presentation: Subject selection.pptx
mansk2
 
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
Kweku Zurek
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
Communicable Diseases and National Health Programs – Unit 9 | B.Sc Nursing 5t...
Communicable Diseases and National Health Programs – Unit 9 | B.Sc Nursing 5t...
RAKESH SAJJAN
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
 
Ad

Algorithm (Basic Algorithm Presentation).pptx

  • 3. Computational Thinking  Computational thinking means thinking or solving problems like a computer scientist.  There are four key techniques to computational thinking:  Decomposition  Pattern Recognition  Abstraction  Algorithm
  • 4. Computational Thinking  Pattern recognition:  Looking for similarities among and within problems.  Abstraction:  Focusing on the important information only, ignoring irrelevant detail.
  • 5. Decomposition  The process of breaking down a complex problem into smaller, simple and easy to manage parts.  We do many tasks on a daily without even thinking about or decomposing them, such as getting ready to school, finishing school work  Breaking the problem down into smaller parts means that each smaller problem can be examined in more detail.
  • 6. What is Algorithm?  An algorithm is a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.  It is a set of rules to obtain the expected output from the given input.   An algorithm is simply a set of steps used to complete a specific task
  • 7. Algorithm Around Us  Algorithms are everywhere around us.  We humans follow and perform daily tasks in the form of algorithms without knowing that they are algorithms.  One of the most obvious examples of an algorithm is a recipe. It’s a finite list of instructions used to perform a task.  Example: making tea, cross the road
  • 8. Algorithm in Computer Science  Algorithm are one of the four cornerstones of computational thinking.  Algorithmic programming is all about writing a set of rules with a finite number of steps that instruct the computer how to perform a task.  A computer program is essentially an algorithm that tells the computer what specific steps to execute, in what specific order, in order to carry out a specific task.
  • 9. Algorithm in Computer Science  An algorithm are written using a particular syntax, depending on the programming language being used.
  • 10. Algorithm in Computer Science  Find the product of two numbers.  Find the number 1.  Find the number 2.  What is operator?  Where to store the result?
  • 11. Algorithm in Computer Science  Find the product of two numbers.  Enter number 1  Store number 1 in x  Enter number 2  Store number 2 in y  Multiple x & y  Store result in z (z=x*y)  Display number Note: now these instructions can be easily translated into computer program
  • 12. What is Computer Program?  In computer program, a sequence of instructions is given to computer to solve a specific problem.  Computer programs consist of a series of instructions to tell a computer exactly what to do and how to do it.  Programing:  Programing is writing computer code to create a program, in order to solve a problem.  Code:  Code is the process of translating an algorithm into a programming language.
  • 13. Algorithm in Computer Science  Solve: 8+9*7+2(9-3)  Write a computer program that ensures that everyone who is under 15 years of age will get discount.
  • 14. Algorithm  Algorithm:  Find out how old the person is  If the person is younger than 15 then say “You are eligible for a discount ticket”  Otherwise, say “you are not eligible for a discount ticket”
  • 15. Program  Program in syntax based language: age = int(input(“How old are you”)) If age < 15: print(“You are eligible for discount”) else: print(“you are not eligible for discount”)
  • 16. Write a program that can find the sum of three numbers and print the results
  • 17. Write a program that can find the sum of three numbers and print the results