Please read the new rule regarding the restriction on the use of AI tools. ×

Weighted interval scheduling on k machines

Revision en3, by pzajec, 2015-12-10 19:22:50

The following problem was given as an assingment in Introduction to algorithms course:

You are given n intervals on real line (integer coordinates) and you have to choose a subset M such that at most k intervals from this subset pairwise intersect (intersection at endpoints doesn't count). Weight wi of the interval [si, ei] is defined as ei - si. The goal is to find a subset M with maximal sum of interval weights.

I am aware of a solution of a more general problem, where weights of intervals can be arbitrary. But since this problem was presented at Introduction of algorithms course I guess there has to be a simpler solution for this more specific case.

Any hints would be very appreciated. :)

Tags algorithms, interval scheduling

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English pzajec 2015-12-14 11:44:22 101
en4 English pzajec 2015-12-12 15:23:40 893 Tiny change: 'ights.\n\nUPD:\n\nAnd s' -
en3 English pzajec 2015-12-10 19:22:50 2
en2 English pzajec 2015-12-10 18:01:50 3 Tiny change: 'eights of an intervals' -> 'eights of intervals'
en1 English pzajec 2015-12-10 18:00:23 940 Initial revision (published)