SlideShare a Scribd company logo
    Greedy Algorithm
PRESENTED BY:
Mehul Gadhiya
2
Actually greeddy algorithms is not a algorithms
but its a one of the techniqe or method of
designing any algorithms.
It is a method by which you “may” have optimum
solution of your problem.
There are so many algorithms which are using
greddy technique for optimization.
What is Greedy algorithm?????What is Greedy algorithm?????
1.)Divide your problem in smaller object as
much as you can.
2.)Go for optimimum solution for that
problem.
3.)Do this process recursively.
What Greedy algorithmWhat Greedy algorithm
says????????says????????
Every optimum solution will give you more
positive effect on optimum solution.
4
GreedyGreedy
Algorithm.........................Algorithm.........................
....Let's illustrate it by
example..................
U= # of objects of problem
X= # of object choosen from U.
X ≤ U (X subset of U)
Ex:- Shifting of stuff of a house.
5
GreedyGreedy
Algorithm.........................Algorithm.........................
....
Greedy technique use in problem of changing in
cash............
Shopping------------> .₹ 247
Cash to counter person---> .₹ 1000
Change-------------> .₹ 753
Domains:--
From 500,100,50,10,5<----note
5,3,2,1<--------coin
500x1=500 100x2=200 50x1=50 2x1=2 1x1=1
Total 4 note and 3 coin
6
GreedyGreedy
Algorithm.........................Algorithm.........................
....
Greedy technique use in problem of changing in
cash............
Solution is Depend on domains......Solution is Depend on domains............
250,150,30<------note
1,3,10<-----coin
250 x 2=500
150 x 1=150
30 x 3=90
3 x 3=3
Total 6 note and 3 coin
7
GreedyGreedy
Algorithm.........................Algorithm.........................
....
TASK SCHEDULING.........
# task is N ,so as per regular techniqe we
decide that we must have a N machine...
Example:-
8
GreedyGreedy
Algorithm.........................Algorithm.........................
....
TASK SCHEDULING.........
2.)recursive it......
3.)Task can be completed using minimum
machine
---> again it deoends on
domains............
9
Example of finding a ball which has more weight
than out of 100 balls (We have also solved in
R.S.Agrewal)
GreedyGreedy
Algorithm.....................Algorithm.....................
............
THANK YOUTHANK YOU

More Related Content

PPTX
Greedy method class 11
PPTX
Greedy algorithms
PPTX
Greedy method
PPTX
Dynamic programming
PPT
PDF
Daa chapter 1
PPTX
Elements of dynamic programming
PPTX
Daa unit 1
Greedy method class 11
Greedy algorithms
Greedy method
Dynamic programming
Daa chapter 1
Elements of dynamic programming
Daa unit 1

What's hot (18)

PPTX
Dynamic Programming
PPTX
Randomized algorithm min cut problem and its solution using karger's algorithm
PDF
Design & Analysis of Algorithms Lecture Notes
PPTX
Randomized Algorithm- Advanced Algorithm
DOCX
Data Structures and Algorithms
DOCX
Mb0048 operations research (1)
PPTX
Linear Programming Problem
PDF
ADA complete notes
PPT
Kk20503 1 introduction
PPTX
Notion of an algorithm
PPTX
Graphical RepresentationLinear programming
PDF
Algorithm basics
PPT
Dynamic programming 2
PPT
8.1 alogorithm & prolem solving
PPTX
Algorithm Introduction
PDF
Lecture 2 role of algorithms in computing
PPSX
Ds03 algorithms jyoti lakhani
PPT
Problem solving
Dynamic Programming
Randomized algorithm min cut problem and its solution using karger's algorithm
Design & Analysis of Algorithms Lecture Notes
Randomized Algorithm- Advanced Algorithm
Data Structures and Algorithms
Mb0048 operations research (1)
Linear Programming Problem
ADA complete notes
Kk20503 1 introduction
Notion of an algorithm
Graphical RepresentationLinear programming
Algorithm basics
Dynamic programming 2
8.1 alogorithm & prolem solving
Algorithm Introduction
Lecture 2 role of algorithms in computing
Ds03 algorithms jyoti lakhani
Problem solving
Ad

Viewers also liked (20)

PPTX
Application of greedy method
PPT
Greedy
PPT
Greedymethod
PPTX
Greedy Algorithms
PPTX
Greedy algorithm
PDF
05. greedy method
PPT
Greedy method1
PDF
Algorithm chapter 9
PPTX
Lec 11 general greedy and fractional
PPTX
Ms nikita greedy agorithm
PDF
12 Greeddy Method
PDF
Jumping Into Java Then!
PDF
[ACM-ICPC] Greedy Algorithm
PPT
Chap04alg
PPTX
7 searching injava-binary
PPT
Lecture#9
PPTX
Algorithm Design and Complexity - Course 5
PPT
4 greedy methodnew
PPTX
Greedyalgorithm
PPTX
Sorting and searching arrays binary search algorithm
Application of greedy method
Greedy
Greedymethod
Greedy Algorithms
Greedy algorithm
05. greedy method
Greedy method1
Algorithm chapter 9
Lec 11 general greedy and fractional
Ms nikita greedy agorithm
12 Greeddy Method
Jumping Into Java Then!
[ACM-ICPC] Greedy Algorithm
Chap04alg
7 searching injava-binary
Lecture#9
Algorithm Design and Complexity - Course 5
4 greedy methodnew
Greedyalgorithm
Sorting and searching arrays binary search algorithm
Ad

Similar to Greedy Algoritham (20)

PDF
02 greedy, d&c, binary search
PPT
csce411-set7.ppt
PPT
csce411-Design and Analysis of Algorithm
PPTX
Algorithm paradigms
PPTX
1. Solving a Problem With a Computer.pptx
DOCX
Algorithm - A set of rules for solving operations
PDF
Randomized Algorithm
PPTX
Introduction to the Greedy Algorithms - primer
PPTX
Algorithm.pptx
PPTX
Digital Notes on Problem Solving for Advanced level .pptx
PDF
1.1 the introduction of design and analysis of algorithm
PPTX
Introduction-to-Divide-and-Conquer_(1).pptx
PPTX
Intro to Pseudocode and Algorithms | Problem Solving in Computer Science
PDF
DAA INTRO.pdf of design analysis algorithms
PPTX
Dynamic programming, Branch and bound algorithm & Greedy algorithms
DOCX
Applications of Rationalizability and Iterated DominanceEcon 4.docx
DOCX
Applications of Rationalizability and Iterated DominanceEcon 4.docx
PDF
3 solving problems
PDF
Algorithmic Thinking_ Basics for Gen Z and Gen Alpha.pdf
02 greedy, d&c, binary search
csce411-set7.ppt
csce411-Design and Analysis of Algorithm
Algorithm paradigms
1. Solving a Problem With a Computer.pptx
Algorithm - A set of rules for solving operations
Randomized Algorithm
Introduction to the Greedy Algorithms - primer
Algorithm.pptx
Digital Notes on Problem Solving for Advanced level .pptx
1.1 the introduction of design and analysis of algorithm
Introduction-to-Divide-and-Conquer_(1).pptx
Intro to Pseudocode and Algorithms | Problem Solving in Computer Science
DAA INTRO.pdf of design analysis algorithms
Dynamic programming, Branch and bound algorithm & Greedy algorithms
Applications of Rationalizability and Iterated DominanceEcon 4.docx
Applications of Rationalizability and Iterated DominanceEcon 4.docx
3 solving problems
Algorithmic Thinking_ Basics for Gen Z and Gen Alpha.pdf

Recently uploaded (20)

PPTX
additive manufacturing of ss316l using mig welding
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Construction Project Organization Group 2.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Well-logging-methods_new................
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
OOP with Java - Java Introduction (Basics)
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
web development for engineering and engineering
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Digital Logic Computer Design lecture notes
PPTX
Geodesy 1.pptx...............................................
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
additive manufacturing of ss316l using mig welding
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Construction Project Organization Group 2.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Well-logging-methods_new................
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Internet of Things (IOT) - A guide to understanding
OOP with Java - Java Introduction (Basics)
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Foundation to blockchain - A guide to Blockchain Tech
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
web development for engineering and engineering
UNIT-1 - COAL BASED THERMAL POWER PLANTS
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Embodied AI: Ushering in the Next Era of Intelligent Systems
Digital Logic Computer Design lecture notes
Geodesy 1.pptx...............................................
Operating System & Kernel Study Guide-1 - converted.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx

Greedy Algoritham