# note06 - Outline 1 Greedy Algorithms Elements of Greedy...

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

Outline 1 Greedy Algorithms 2 Elements of Greedy Algorithms 3 Greedy Choice Property for Kruskal’s Algorithm 4 0/1 Knapsack Problem 5 Activity Selection Problem 6 Scheduling All Intervals c Xin He (University at Buffalo) CSE 431/531 Algorithm Analysis and Design 1 / 49

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

View Full Document
Greedy Algorithms Greedy algorithms is another useful way for solving optimization problems. c Xin He (University at Buffalo) CSE 431/531 Algorithm Analysis and Design 2 / 49
Greedy Algorithms Greedy algorithms is another useful way for solving optimization problems. Optimization Problems For the given input, we are seeking solutions that must satisfy certain conditions. c Xin He (University at Buffalo) CSE 431/531 Algorithm Analysis and Design 2 / 49

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

View Full Document
Greedy Algorithms Greedy algorithms is another useful way for solving optimization problems. Optimization Problems For the given input, we are seeking solutions that must satisfy certain conditions. These solutions are called feasible solutions . (In general, there are many feasible solutions.) c Xin He (University at Buffalo) CSE 431/531 Algorithm Analysis and Design 2 / 49
Greedy Algorithms Greedy algorithms is another useful way for solving optimization problems. Optimization Problems For the given input, we are seeking solutions that must satisfy certain conditions. These solutions are called feasible solutions . (In general, there are many feasible solutions.) We have an optimization measure defined for each feasible solution. c Xin He (University at Buffalo) CSE 431/531 Algorithm Analysis and Design 2 / 49

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

View Full Document
Greedy Algorithms Greedy algorithms is another useful way for solving optimization problems. Optimization Problems For the given input, we are seeking solutions that must satisfy certain conditions. These solutions are called feasible solutions . (In general, there are many feasible solutions.) We have an optimization measure defined for each feasible solution. We are looking for a feasible solution that optimizes (either maximum or minimum) the optimization measure. c Xin He (University at Buffalo) CSE 431/531 Algorithm Analysis and Design 2 / 49
Examples Matrix Chain Product Problem A feasible solution is any valid parenthesization of an n -term chain. c Xin He (University at Buffalo) CSE 431/531 Algorithm Analysis and Design 3 / 49

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

View Full Document
Examples Matrix Chain Product Problem A feasible solution is any valid parenthesization of an n -term chain. The optimization measure is the total number of scalar multiplications for the parenthesization. c Xin He (University at Buffalo) CSE 431/531 Algorithm Analysis and Design 3 / 49
Examples Matrix Chain Product Problem A feasible solution is any valid parenthesization of an n -term chain. The optimization measure is the total number of scalar multiplications for the parenthesization. Goal: Minimize the the total number of scalar multiplications.

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

View Full Document
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