SlideShare une entreprise Scribd logo
1  sur  20
CS 332: Algorithms Greedy Algorithms
Review: Dynamic Programming ,[object Object],[object Object]
Review: Optimal Substructure of LCS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Review: Structure of Subproblems ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Memoization ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Review: Dynamic Programming ,[object Object],[object Object],[object Object],[object Object],[object Object]
Review: Dynamic Programming ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Greedy Algorithms ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Activity-Selection Problem ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Activity-Selection ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],1 2 3 4 5 6
Activity Selection:  Optimal Substructure  ,[object Object],[object Object],[object Object],[object Object],[object Object]
Activity Selection: Repeated Subproblems ,[object Object],S 1  A? S’ 2  A? S-{1} 2  A? S-{1,2} S’’ S’-{2} S’’ yes no no no yes yes
Greedy Choice Property ,[object Object],[object Object],[object Object],[object Object],[object Object]
Activity Selection: A Greedy Algorithm ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Minimum Spanning Tree Revisited ,[object Object],[object Object],[object Object],[object Object]
Review: The Knapsack Problem ,[object Object],[object Object]
Review: The Knapsack Problem ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Review: The Knapsack Problem  And Optimal Substructure ,[object Object],[object Object],[object Object],[object Object]
Solving The Knapsack Problem ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Knapsack Problem:  Greedy Vs. Dynamic ,[object Object],[object Object],[object Object]

Contenu connexe

En vedette

Curriculum Vitae
Curriculum VitaeCurriculum Vitae
Curriculum Vitae
myrela 01
 

En vedette (12)

Time Management skills
Time Management skills Time Management skills
Time Management skills
 
Pharma selling challenges
Pharma selling challenges Pharma selling challenges
Pharma selling challenges
 
Communication Skills
Communication Skills Communication Skills
Communication Skills
 
Islamic Asset Allocation - Risk and Reward
Islamic Asset Allocation - Risk and RewardIslamic Asset Allocation - Risk and Reward
Islamic Asset Allocation - Risk and Reward
 
Real Estate Investing - Real Value
Real Estate Investing - Real ValueReal Estate Investing - Real Value
Real Estate Investing - Real Value
 
Frisbeemanagement. How better insight in the potential of your organisation, ...
Frisbeemanagement. How better insight in the potential of your organisation, ...Frisbeemanagement. How better insight in the potential of your organisation, ...
Frisbeemanagement. How better insight in the potential of your organisation, ...
 
Sme Unified Credit Rating
Sme   Unified Credit RatingSme   Unified Credit Rating
Sme Unified Credit Rating
 
Cultural Due Diligence
Cultural Due DiligenceCultural Due Diligence
Cultural Due Diligence
 
Brand Strategy Development
Brand Strategy DevelopmentBrand Strategy Development
Brand Strategy Development
 
Curriculum Vitae
Curriculum VitaeCurriculum Vitae
Curriculum Vitae
 
Safo bo
Safo boSafo bo
Safo bo
 
Benkhadibonrotllo Galeria
Benkhadibonrotllo GaleriaBenkhadibonrotllo Galeria
Benkhadibonrotllo Galeria
 

Similaire à Lecture34

lecture 27
lecture 27lecture 27
lecture 27
sajinsc
 
Mastering Greedy Algorithms: Optimizing Solutions for Efficiency"
Mastering Greedy Algorithms: Optimizing Solutions for Efficiency"Mastering Greedy Algorithms: Optimizing Solutions for Efficiency"
Mastering Greedy Algorithms: Optimizing Solutions for Efficiency"
22bcs058
 
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.pptParallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
dakccse
 

Similaire à Lecture34 (20)

lecture 27
lecture 27lecture 27
lecture 27
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
Analysis and Design of Algorithms notes
Analysis and Design of Algorithms  notesAnalysis and Design of Algorithms  notes
Analysis and Design of Algorithms notes
 
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal'sGreedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
 
Greedy
GreedyGreedy
Greedy
 
Algorithms Design Patterns
Algorithms Design PatternsAlgorithms Design Patterns
Algorithms Design Patterns
 
Greedy1.ppt
Greedy1.pptGreedy1.ppt
Greedy1.ppt
 
DynamicProgramming.pptx
DynamicProgramming.pptxDynamicProgramming.pptx
DynamicProgramming.pptx
 
Mastering Greedy Algorithms: Optimizing Solutions for Efficiency"
Mastering Greedy Algorithms: Optimizing Solutions for Efficiency"Mastering Greedy Algorithms: Optimizing Solutions for Efficiency"
Mastering Greedy Algorithms: Optimizing Solutions for Efficiency"
 
Ms nikita greedy agorithm
Ms nikita greedy agorithmMs nikita greedy agorithm
Ms nikita greedy agorithm
 
Optimization problems
Optimization problemsOptimization problems
Optimization problems
 
Greedy method1
Greedy method1Greedy method1
Greedy method1
 
Fractional Knapsack Problem
Fractional Knapsack ProblemFractional Knapsack Problem
Fractional Knapsack Problem
 
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.pptParallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
 
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.pptParallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
 
Data Analysis and Algorithms Lecture 1: Introduction
 Data Analysis and Algorithms Lecture 1: Introduction Data Analysis and Algorithms Lecture 1: Introduction
Data Analysis and Algorithms Lecture 1: Introduction
 
Greedy Algorithms WITH Activity Selection Problem.ppt
Greedy Algorithms WITH Activity Selection Problem.pptGreedy Algorithms WITH Activity Selection Problem.ppt
Greedy Algorithms WITH Activity Selection Problem.ppt
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and Examples
 
Back tracking
Back trackingBack tracking
Back tracking
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Lecture34

  • 1. CS 332: Algorithms Greedy Algorithms
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.