SlideShare a Scribd company logo
mmmmmmm
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
mmmmmmm
 Given a list, find a specific element in the 
list 
We will see two types 
 Linear search 
 Binary search
mmmmmmm
mmmmmmm
 Given a list, put it into some order 
We will see Three types 
 Bubble sort 
 Selection sort 
 Quick sort
mmmmmmm
mmmmmmm
mmmmmmm
 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

PPTX
Architecture Algorithm Definition
PPT
32 algorithm-types
PPT
35 algorithm-types
PPT
Backtacking
PPT
Greedy algorithm
PPT
Do You Have a Hit List?
PPTX
Introduction to Machine Learning
Architecture Algorithm Definition
32 algorithm-types
35 algorithm-types
Backtacking
Greedy algorithm
Do You Have a Hit List?
Introduction to Machine Learning

What's hot (11)

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

Viewers also liked (20)

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

Similar to mmmmmmm (20)

PPT
Types of Algorithms.ppt
PPSX
Ic lecture6 architecture and algo
PPTX
Algorithm.pptx
PPTX
CH-1.1 Introduction (1).pptx
PPTX
algorithm design.pptx
PPTX
DAA UNIT 3
PDF
Disign and Analysis for algorithm in computer science and technology
PPTX
"A short and knowledgeable concept about Algorithm "
PPTX
algo classification.pptx
PPT
Algorithm Design Presentation
DOCX
Algorithm - A set of rules for solving operations
PDF
DAA INTRO.pdf of design analysis algorithms
PPTX
Algorithm paradigms
PPTX
CHAPTER 5.pptx of the following of our discussion
PPTX
esign and Analysis of Algorithms Presentation.pptx
PPTX
ML Lec 1 (1).pptx
PPSX
Design and Analysis of Algorithms ppt by K. Adi
PDF
Algo Strategies and explaination ppt.pdf
PPTX
Elements of dynamic programming
PPTX
problem solving and algorithm development
Types of Algorithms.ppt
Ic lecture6 architecture and algo
Algorithm.pptx
CH-1.1 Introduction (1).pptx
algorithm design.pptx
DAA UNIT 3
Disign and Analysis for algorithm in computer science and technology
"A short and knowledgeable concept about Algorithm "
algo classification.pptx
Algorithm Design Presentation
Algorithm - A set of rules for solving operations
DAA INTRO.pdf of design analysis algorithms
Algorithm paradigms
CHAPTER 5.pptx of the following of our discussion
esign and Analysis of Algorithms Presentation.pptx
ML Lec 1 (1).pptx
Design and Analysis of Algorithms ppt by K. Adi
Algo Strategies and explaination ppt.pdf
Elements of dynamic programming
problem solving and algorithm development

More from Kawsar Ahmed (6)

PPTX
Computer virus
PPTX
System software is creating a modern world
PPTX
Flow chart
PPTX
Computer Networking
PPTX
Application software
PPT
Computer security
Computer virus
System software is creating a modern world
Flow chart
Computer Networking
Application software
Computer security

mmmmmmm

  • 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
  • 9.  Given a list, find a specific element in the list We will see two types  Linear search  Binary search
  • 12.  Given a list, put it into some order We will see Three types  Bubble sort  Selection sort  Quick sort
  • 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