1 / 83

Robbing a House with Greedy Algorithms

Robbing a House with Greedy Algorithms. Casey O’Brien. Knapsack Problem. Your Knapsack Max Weight: 10 pounds. Goal: Maximize total value Constraint: Total weight cannot exceed 10 pounds. Play The Robber!. Final Knapsack: Final Value: $14. Play The Robber!. Final Knapsack:

leanna
Télécharger la présentation

Robbing a House with Greedy Algorithms

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Robbing a House withGreedy Algorithms Casey O’Brien

  2. Knapsack Problem

  3. Your Knapsack Max Weight: 10 pounds

  4. Goal: Maximize total value Constraint: Total weight cannot exceed 10 pounds

  5. Play The Robber!

  6. Final Knapsack: Final Value: $14

  7. Play The Robber!

  8. Final Knapsack: Final Value: $19

  9. Final Knapsack: Final Value: $16

  10. Final Knapsack: Final Value: $14

  11. Final Knapsack: Final Value: $20

  12. Final Knapsack: Final Value: $17

  13. Final Knapsack: Final Value: $15

  14. Final Knapsack: Final Value: $18

  15. Greedy Algorithms

  16. Greedy by Largest Value

  17. Final Knapsack: Final Value: $19

More Related