{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Greedy-new-handouts-2

# Greedy-new-handouts-2 - Merge Sort 2:42 PM The Greedy...

This preview shows pages 1–3. Sign up to view the full content.

Merge Sort 2/20/2006 2:42 PM 1 The Greedy Method 1 The Greedy Method The Greedy Method 2 Outline and Reading The Greedy Method Technique (§5.1) Fractional Knapsack Problem (§5.1.1) Task Scheduling (§5.1.2) Minimum Spanning Trees (§7.3) [future lecture]

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Merge Sort 2/20/2006 2:42 PM 2 The Greedy Method 3 The Greedy Method Technique The greedy method is a general algorithm design paradigm, built on the following elements: configurations : different choices, collections, or values to find objective function : a score assigned to configurations, which we want to either maximize or minimize It works best when applied to problems with the greedy-choice property: a globally-optimal solution can always be found by a series of local improvements from a starting configuration. The Greedy Method 4 Making Change Problem: A dollar amount to reach and a collection of coin amounts to use to get there. Configuration: A dollar amount yet to return to a customer plus the coins already returned Objective function: Minimize number of coins returned.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern