CC2203-Les15Greedy-for-viewing

CC2203-Les15Greedy-for-viewing - 15-1/22Lesson 15: The...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 15-1/22Lesson 15: The Greedy MethodOptimization ProblemA problem in which some function (called the optimization or objective function) is to be optimized (usually minimized or maximized) subject to some constraints.15-2/22Feasible And Optimal SolutionsA feasible solution is a solution that satisfies the constraints.An optimal solution is a feasible solution that optimizes the objective/optimization function.15-3/22Greedy Method• Solve problem by making a sequence of decisions.• Decisions are made one by one in some order.• Each decision is made using a greedy criterion.• A decision, once made, is (usually) not changed later.• Greedy method gives a good heuristic.15-4/22Shortest Path Problems• Directed weighted graph.• Path length is sum of weights of edges on path.• The vertex at which the path begins is the source vertex.• The vertex at which the path ends is the destination vertex.15-5/22ExampleA path from 1 to 7.1234567261678103144453117Path length is 14.15-6/22ExampleAnother path from 1 to 7....
View Full Document

This note was uploaded on 08/18/2011 for the course COMP 3868 taught by Professor Keithchan during the Summer '97 term at Hong Kong Polytechnic University.

Page1 / 22

CC2203-Les15Greedy-for-viewing - 15-1/22Lesson 15: The...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online