SlideShare a Scribd company logo
Nabia Rahman Farjana Sarmin 
Name of 
Group 
Members 
MD. Osman Goni Sumayea Musarat
 An algorithm is a procedure or formula for 
solving a problem. 
 Derives from the mathematician, Mohammed 
ibn-Musa al-Khwarizmi. 
 Al-Khwarizmi's work is the likely source for the 
word algebra as well.
 In mathematics and computer science, an 
algorithm is a step-by-step procedure for 
calculations. 
 Algorithms are used for calculation, data 
processing, and automated reasoning. 
 A program is one type of algorithm 
 All programs are algorithms 
Not all algorithms are programs!
 Using a similar problem-solving approach 
can be grouped together 
 The purpose is not to be able to classify an 
algorithm as one type or another, but to 
highlight the various ways in which a 
problem can be attacked.
• Simple recursive algorithms 
• Backtracking algorithms 
• Divide and conquer algorithms 
• Dynamic programming algorithms 
• Greedy algorithms 
• Branch and bound algorithms 
• Brute force algorithms 
• Randomized algorithms
A simple recursive algorithm: 
 Solves the base cases directly 
 Recurs with a simpler sub problem 
 Does some extra work to convert the 
solution to the simpler sub problem into a 
solution to the given problem 
 I call these “simple” because several of the 
other algorithm types are inherently recursive
 Given a list, find a specific element in the 
list 
We will see two types 
 Linear search 
 Binary search
 Given a list, put it into some order 
We will see Three types 
 Bubble sort 
 Selection sort 
 Quick sort
 In computer science, divide and conquer is an 
important algorithm design paradigm based 
on multi-branched recursion. 
 It works by recursively breaking down a 
problem into two or more sub-problems.
 It is a method for solving complex problems by 
breaking them down into simpler sub 
problems.
 It is a general algorithm for finding optimal 
solutions of various optimization problems. 
 A branch-and-bound algorithm consists of a 
systematic calculation of all candidate 
solutions.
A brute force algorithm simply tries all 
possibilities until a satisfactory solution is 
found 
- Such an algorithm can be: 
Optimizing 
- Example: Finding the best path for a 
travelling salesman 
Satisfying 
- Example: Finding a travelling salesman 
path that is within 10% of optimal
 A randomized algorithm uses a random 
number at least once during the computation 
to make a decision 
 Example: In Quicksort, using a random 
number to choose a pivot 
 Example: Trying to factor a large prime by 
choosing random numbers as possible 
divisors
mmmmmmm

More Related Content

What's hot

Integer sequence learning using Python
Integer sequence learning using PythonInteger sequence learning using Python
Integer sequence learning using Python
Rushikesh Kinhalkar
 
Supervised Machine Learning Techniques
Supervised Machine Learning TechniquesSupervised Machine Learning Techniques
Supervised Machine Learning Techniques
Tara ram Goyal
 
Lesson 11 1
Lesson 11  1Lesson 11  1
Lesson 11 1
nabanita123
 
Merge sort data structures
Merge sort data structuresMerge sort data structures
Merge sort data structures
chauhankapil
 
Applied Artificial Intelligence Unit 2 Semester 3 MSc IT Part 2 Mumbai Univer...
Applied Artificial Intelligence Unit 2 Semester 3 MSc IT Part 2 Mumbai Univer...Applied Artificial Intelligence Unit 2 Semester 3 MSc IT Part 2 Mumbai Univer...
Applied Artificial Intelligence Unit 2 Semester 3 MSc IT Part 2 Mumbai Univer...
Madhav Mishra
 
Topic 1.4: Randomized Algorithms
Topic 1.4: Randomized AlgorithmsTopic 1.4: Randomized Algorithms
Topic 1.4: Randomized Algorithms
KM Bappi
 
Syllabus ms
Syllabus msSyllabus ms
Syllabus ms
bikram ...
 
Lecture 1-cs648
Lecture 1-cs648Lecture 1-cs648
Lecture 1-cs648
Anshul Yadav
 
1 introduction to problem solving and programming
1 introduction to problem solving and programming1 introduction to problem solving and programming
1 introduction to problem solving and programming
Rheigh Henley Calderon
 
SPSF01 - Algorithm
SPSF01 - AlgorithmSPSF01 - Algorithm
SPSF01 - Algorithm
Syeilendra Pramuditya
 
Bca3020– data base management system(dbms)
Bca3020– data base management system(dbms)Bca3020– data base management system(dbms)
Bca3020– data base management system(dbms)
smumbahelp
 

What's hot (11)

Integer sequence learning using Python
Integer sequence learning using PythonInteger sequence learning using Python
Integer sequence learning using Python
 
Supervised Machine Learning Techniques
Supervised Machine Learning TechniquesSupervised Machine Learning Techniques
Supervised Machine Learning Techniques
 
Lesson 11 1
Lesson 11  1Lesson 11  1
Lesson 11 1
 
Merge sort data structures
Merge sort data structuresMerge sort data structures
Merge sort data structures
 
Applied Artificial Intelligence Unit 2 Semester 3 MSc IT Part 2 Mumbai Univer...
Applied Artificial Intelligence Unit 2 Semester 3 MSc IT Part 2 Mumbai Univer...Applied Artificial Intelligence Unit 2 Semester 3 MSc IT Part 2 Mumbai Univer...
Applied Artificial Intelligence Unit 2 Semester 3 MSc IT Part 2 Mumbai Univer...
 
Topic 1.4: Randomized Algorithms
Topic 1.4: Randomized AlgorithmsTopic 1.4: Randomized Algorithms
Topic 1.4: Randomized Algorithms
 
Syllabus ms
Syllabus msSyllabus ms
Syllabus ms
 
Lecture 1-cs648
Lecture 1-cs648Lecture 1-cs648
Lecture 1-cs648
 
1 introduction to problem solving and programming
1 introduction to problem solving and programming1 introduction to problem solving and programming
1 introduction to problem solving and programming
 
SPSF01 - Algorithm
SPSF01 - AlgorithmSPSF01 - Algorithm
SPSF01 - Algorithm
 
Bca3020– data base management system(dbms)
Bca3020– data base management system(dbms)Bca3020– data base management system(dbms)
Bca3020– data base management system(dbms)
 

Viewers also liked

法雅客攝影馬拉松記錄
法雅客攝影馬拉松記錄法雅客攝影馬拉松記錄
法雅客攝影馬拉松記錄
Po-ru Lee
 
The Health Benefits of Indian Food
The Health Benefits of Indian FoodThe Health Benefits of Indian Food
The Health Benefits of Indian Food
oddjoker3810
 
Lou lou moose
Lou lou mooseLou lou moose
Lou lou moose
kinderstars
 
Special senses
Special  sensesSpecial  senses
Special senses
stanralph
 
Cognitive dissonance is a Good thing
Cognitive dissonance is a Good thingCognitive dissonance is a Good thing
Cognitive dissonance is a Good thing
Aditya Gupta
 
Shapes shapes-everywhere
Shapes shapes-everywhereShapes shapes-everywhere
Shapes shapes-everywhere
kinderstars
 
Canon職能分享-李博儒
Canon職能分享-李博儒Canon職能分享-李博儒
Canon職能分享-李博儒
Po-ru Lee
 
Jenny jaguar
Jenny  jaguarJenny  jaguar
Jenny jaguar
kinderstars
 
Responses
ResponsesResponses
Responses
Aditya Gupta
 
Infographie passage au cloud
Infographie passage au cloudInfographie passage au cloud
Infographie passage au cloud
AtoutDSI
 
Angely flores
Angely floresAngely flores
Angely flores
Flores Angely
 
Farley fox
Farley foxFarley fox
Farley fox
kinderstars
 
Sonicwall
Sonicwall Sonicwall
Sonicwall
emarin13
 
Crazy camel
Crazy camelCrazy camel
Crazy camel
kinderstars
 
Bet365 review
Bet365 review Bet365 review
Bet365 review
mafsmafs
 
e-bulletin-November2010
e-bulletin-November2010e-bulletin-November2010
e-bulletin-November2010
Vivek kaser
 
Old joe crow
Old joe crowOld joe crow
Old joe crow
kinderstars
 
為你而讀_國家記憶
為你而讀_國家記憶為你而讀_國家記憶
為你而讀_國家記憶
Po-ru Lee
 
Endocrine system 1
Endocrine system 1Endocrine system 1
Endocrine system 1
stanralph
 
IE Admission Essay Question- A (UN Secretary)
IE Admission Essay  Question- A (UN Secretary) IE Admission Essay  Question- A (UN Secretary)
IE Admission Essay Question- A (UN Secretary)
Aman Tripathi
 

Viewers also liked (20)

法雅客攝影馬拉松記錄
法雅客攝影馬拉松記錄法雅客攝影馬拉松記錄
法雅客攝影馬拉松記錄
 
The Health Benefits of Indian Food
The Health Benefits of Indian FoodThe Health Benefits of Indian Food
The Health Benefits of Indian Food
 
Lou lou moose
Lou lou mooseLou lou moose
Lou lou moose
 
Special senses
Special  sensesSpecial  senses
Special senses
 
Cognitive dissonance is a Good thing
Cognitive dissonance is a Good thingCognitive dissonance is a Good thing
Cognitive dissonance is a Good thing
 
Shapes shapes-everywhere
Shapes shapes-everywhereShapes shapes-everywhere
Shapes shapes-everywhere
 
Canon職能分享-李博儒
Canon職能分享-李博儒Canon職能分享-李博儒
Canon職能分享-李博儒
 
Jenny jaguar
Jenny  jaguarJenny  jaguar
Jenny jaguar
 
Responses
ResponsesResponses
Responses
 
Infographie passage au cloud
Infographie passage au cloudInfographie passage au cloud
Infographie passage au cloud
 
Angely flores
Angely floresAngely flores
Angely flores
 
Farley fox
Farley foxFarley fox
Farley fox
 
Sonicwall
Sonicwall Sonicwall
Sonicwall
 
Crazy camel
Crazy camelCrazy camel
Crazy camel
 
Bet365 review
Bet365 review Bet365 review
Bet365 review
 
e-bulletin-November2010
e-bulletin-November2010e-bulletin-November2010
e-bulletin-November2010
 
Old joe crow
Old joe crowOld joe crow
Old joe crow
 
為你而讀_國家記憶
為你而讀_國家記憶為你而讀_國家記憶
為你而讀_國家記憶
 
Endocrine system 1
Endocrine system 1Endocrine system 1
Endocrine system 1
 
IE Admission Essay Question- A (UN Secretary)
IE Admission Essay  Question- A (UN Secretary) IE Admission Essay  Question- A (UN Secretary)
IE Admission Essay Question- A (UN Secretary)
 

Similar to mmmmmmm

Types of Algorithms.ppt
Types of Algorithms.pptTypes of Algorithms.ppt
Types of Algorithms.ppt
ALIZAIB KHAN
 
Ic lecture6 architecture and algo
Ic lecture6 architecture and algoIc lecture6 architecture and algo
Ic lecture6 architecture and algo
AttaullahRahimoon
 
Algorithm.pptx
Algorithm.pptxAlgorithm.pptx
Algorithm.pptx
DipayanSadhu1
 
CH-1.1 Introduction (1).pptx
CH-1.1 Introduction (1).pptxCH-1.1 Introduction (1).pptx
CH-1.1 Introduction (1).pptx
satvikkushwaha1
 
algorithm design.pptx
algorithm design.pptxalgorithm design.pptx
algorithm design.pptx
ssuserd11e4a
 
DAA UNIT 3
DAA UNIT 3DAA UNIT 3
DAA UNIT 3
SURBHI SAROHA
 
"A short and knowledgeable concept about Algorithm "
"A short and knowledgeable concept about Algorithm ""A short and knowledgeable concept about Algorithm "
"A short and knowledgeable concept about Algorithm "
CHANDAN KUMAR
 
algo classification.pptx
algo classification.pptxalgo classification.pptx
algo classification.pptx
ShivaniSharma335055
 
Algorithm Design Presentation
Algorithm Design PresentationAlgorithm Design Presentation
Algorithm Design Presentation
Kawsar Ahmed
 
Algorithm paradigms
Algorithm paradigmsAlgorithm paradigms
Algorithm paradigms
suresh5c2
 
ML Lec 1 (1).pptx
ML Lec 1 (1).pptxML Lec 1 (1).pptx
ML Lec 1 (1).pptx
MuhammadTalha278665
 
Elements of dynamic programming
Elements of dynamic programmingElements of dynamic programming
Elements of dynamic programming
Tafhim Islam
 
2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdf2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdf
ishan743441
 
Algorithm and Complexity-Lesson 1.pptx
Algorithm and Complexity-Lesson 1.pptxAlgorithm and Complexity-Lesson 1.pptx
Algorithm and Complexity-Lesson 1.pptx
Apasra R
 
Cuckoo Search: Recent Advances and Applications
Cuckoo Search: Recent Advances and ApplicationsCuckoo Search: Recent Advances and Applications
Cuckoo Search: Recent Advances and Applications
Xin-She Yang
 
Machine learning
Machine learningMachine learning
Machine learning
Chamundeswari Puvvada
 
Algo_Lecture01.pptx
Algo_Lecture01.pptxAlgo_Lecture01.pptx
Algo_Lecture01.pptx
ShaistaRiaz4
 
35-algorithm-types.ppt
35-algorithm-types.ppt35-algorithm-types.ppt
35-algorithm-types.ppt
HarikumarRajandran1
 
algorithm-types.ppt
algorithm-types.pptalgorithm-types.ppt
algorithm-types.ppt
TusharSharma759024
 
35 algorithm-types
35 algorithm-types35 algorithm-types
35 algorithm-types
ashish bansal
 

Similar to mmmmmmm (20)

Types of Algorithms.ppt
Types of Algorithms.pptTypes of Algorithms.ppt
Types of Algorithms.ppt
 
Ic lecture6 architecture and algo
Ic lecture6 architecture and algoIc lecture6 architecture and algo
Ic lecture6 architecture and algo
 
Algorithm.pptx
Algorithm.pptxAlgorithm.pptx
Algorithm.pptx
 
CH-1.1 Introduction (1).pptx
CH-1.1 Introduction (1).pptxCH-1.1 Introduction (1).pptx
CH-1.1 Introduction (1).pptx
 
algorithm design.pptx
algorithm design.pptxalgorithm design.pptx
algorithm design.pptx
 
DAA UNIT 3
DAA UNIT 3DAA UNIT 3
DAA UNIT 3
 
"A short and knowledgeable concept about Algorithm "
"A short and knowledgeable concept about Algorithm ""A short and knowledgeable concept about Algorithm "
"A short and knowledgeable concept about Algorithm "
 
algo classification.pptx
algo classification.pptxalgo classification.pptx
algo classification.pptx
 
Algorithm Design Presentation
Algorithm Design PresentationAlgorithm Design Presentation
Algorithm Design Presentation
 
Algorithm paradigms
Algorithm paradigmsAlgorithm paradigms
Algorithm paradigms
 
ML Lec 1 (1).pptx
ML Lec 1 (1).pptxML Lec 1 (1).pptx
ML Lec 1 (1).pptx
 
Elements of dynamic programming
Elements of dynamic programmingElements of dynamic programming
Elements of dynamic programming
 
2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdf2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdf
 
Algorithm and Complexity-Lesson 1.pptx
Algorithm and Complexity-Lesson 1.pptxAlgorithm and Complexity-Lesson 1.pptx
Algorithm and Complexity-Lesson 1.pptx
 
Cuckoo Search: Recent Advances and Applications
Cuckoo Search: Recent Advances and ApplicationsCuckoo Search: Recent Advances and Applications
Cuckoo Search: Recent Advances and Applications
 
Machine learning
Machine learningMachine learning
Machine learning
 
Algo_Lecture01.pptx
Algo_Lecture01.pptxAlgo_Lecture01.pptx
Algo_Lecture01.pptx
 
35-algorithm-types.ppt
35-algorithm-types.ppt35-algorithm-types.ppt
35-algorithm-types.ppt
 
algorithm-types.ppt
algorithm-types.pptalgorithm-types.ppt
algorithm-types.ppt
 
35 algorithm-types
35 algorithm-types35 algorithm-types
35 algorithm-types
 

More from Kawsar Ahmed

Computer virus
 Computer virus Computer virus
Computer virus
Kawsar Ahmed
 
System software is creating a modern world
System software is creating a modern world System software is creating a modern world
System software is creating a modern world
Kawsar Ahmed
 
Flow chart
Flow chartFlow chart
Flow chart
Kawsar Ahmed
 
Computer Networking
Computer NetworkingComputer Networking
Computer Networking
Kawsar Ahmed
 
Application software
Application softwareApplication software
Application software
Kawsar Ahmed
 
Computer security
Computer securityComputer security
Computer security
Kawsar Ahmed
 

More from Kawsar Ahmed (6)

Computer virus
 Computer virus Computer virus
Computer virus
 
System software is creating a modern world
System software is creating a modern world System software is creating a modern world
System software is creating a modern world
 
Flow chart
Flow chartFlow chart
Flow chart
 
Computer Networking
Computer NetworkingComputer Networking
Computer Networking
 
Application software
Application softwareApplication software
Application software
 
Computer security
Computer securityComputer security
Computer security
 

mmmmmmm

  • 1.
  • 2. Nabia Rahman Farjana Sarmin Name of Group Members MD. Osman Goni Sumayea Musarat
  • 3.  An algorithm is a procedure or formula for solving a problem.  Derives from the mathematician, Mohammed ibn-Musa al-Khwarizmi.  Al-Khwarizmi's work is the likely source for the word algebra as well.
  • 4.  In mathematics and computer science, an algorithm is a step-by-step procedure for calculations.  Algorithms are used for calculation, data processing, and automated reasoning.  A program is one type of algorithm  All programs are algorithms Not all algorithms are programs!
  • 5.  Using a similar problem-solving approach can be grouped together  The purpose is not to be able to classify an algorithm as one type or another, but to highlight the various ways in which a problem can be attacked.
  • 6. • Simple recursive algorithms • Backtracking algorithms • Divide and conquer algorithms • Dynamic programming algorithms • Greedy algorithms • Branch and bound algorithms • Brute force algorithms • Randomized algorithms
  • 7. A simple recursive algorithm:  Solves the base cases directly  Recurs with a simpler sub problem  Does some extra work to convert the solution to the simpler sub problem into a solution to the given problem  I call these “simple” because several of the other algorithm types are inherently recursive
  • 8.
  • 9.  Given a list, find a specific element in the list We will see two types  Linear search  Binary search
  • 10.
  • 11.
  • 12.  Given a list, put it into some order We will see Three types  Bubble sort  Selection sort  Quick sort
  • 13.
  • 14.
  • 15.
  • 16.  In computer science, divide and conquer is an important algorithm design paradigm based on multi-branched recursion.  It works by recursively breaking down a problem into two or more sub-problems.
  • 17.  It is a method for solving complex problems by breaking them down into simpler sub problems.
  • 18.  It is a general algorithm for finding optimal solutions of various optimization problems.  A branch-and-bound algorithm consists of a systematic calculation of all candidate solutions.
  • 19. A brute force algorithm simply tries all possibilities until a satisfactory solution is found - Such an algorithm can be: Optimizing - Example: Finding the best path for a travelling salesman Satisfying - Example: Finding a travelling salesman path that is within 10% of optimal
  • 20.  A randomized algorithm uses a random number at least once during the computation to make a decision  Example: In Quicksort, using a random number to choose a pivot  Example: Trying to factor a large prime by choosing random numbers as possible divisors