lect12 - Lecture 12 Greedy Strategy Exchange Property For...

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

View Full Document Right Arrow Icon
Lecture 12 Greedy Strategy
Background image of page 1

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

View Full DocumentRight Arrow Icon
Exchange Property For some problems without matroid structure, the greedy strategy may also work for obtaining optimal sultions. An significant observation is that those successful cases usually connecting to certain (simple) exchange property.
Background image of page 2
Activity Selection Problem
Background image of page 3

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

View Full DocumentRight Arrow Icon
Mathematical Model . ) , [ ) , [ : ping nonoverlap y. cardinalit the maximize to intervals ping nonoverlap of subset a find ), , [ ),. .., , [ ), , [ intervals of set a Given 2 2 1 1 = j j i i n n f s f s f s f s f s
Background image of page 4
Exchange Property solution. maximum in the interval 1st with the ) , [ exchange always can we , ) , [ interval ithout solution w maximum a In . Suppose 1 1 1 1 2 1 f s f s f f f n
Background image of page 5

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

View Full DocumentRight Arrow Icon
Greedy Algorithm . return )}; , {[ then in interval any with overlap not does ) , [ if do to 1 for ; . Sort 2 1 S f s S S S f s n i S f f f i i i i n
Background image of page 6
}. ) , [ ) , [ | ) , {[ set for solution optimal an is )} , {[ * ) 2 ( . * solution
Background image of page 7

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

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

Page1 / 22

lect12 - Lecture 12 Greedy Strategy Exchange Property For...

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

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