Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are all scheduling problems NP-Hard?

I know there are some scheduling problems out there that are NP-hard/NP-complete ... however, none of them are stated in such a way to show this situation is also NP.

If you have a set of tasks constrained to a startAfter, startBy, and duration all trying to use a single resource ... can you resolve a schedule or identify that it cannot be resolved without an exhaustive search?

If the answer is "sorry pal, but this is NP-complete" what would be the best heuristic(s?) to use and are there ways to decrease the time it takes to a) resolve a schedule and b) to identify an unresolvable schedule.

I've implemented (in prolog) a basic conflict resolution goal through recursion that implements a "smallest window first" heuristic. This actually finds solutions rather quickly, but is exceptionally slow at finding invalid schedules. Is there a way to overcome this?

Yay for compound questions!

like image 230
Reed Debaets Avatar asked Jan 29 '10 14:01

Reed Debaets


People also ask

Is scheduling an NP-hard problem?

Sometimes people use terms ”NP-hard” and ”NP-complete” as if they are synonyms (usually to mean ”hard”), but this is not quite correct: a problem can easily be NP-hard without being NP-complete. So, the scheduling, where the output is the optimal set of schedule, would be NP-hard, but not NP-complete.

Is Job scheduling NP-complete?

The scheduling problem with release times and deadlines on the set of job lengths P(S) = {p, q} is NP-complete. This implies that the problem is strongly NP-complete, because we reduce all instances of an NP-complete problem in polynomial time and with polynomial size output to an instance with fixed p and q.

What are NP-hard problems?

A problem is NP-hard if an algorithm for solving it can be translated into one for solving any NP-problem (nondeterministic polynomial time) problem. NP-hard therefore means "at least as hard as any NP-problem," although it might, in fact, be harder.


1 Answers

The hardest part of most scheduling problems in real life is getting hold of a reliability and complete set of constraints. If we take the example of creating a university timetable:

  • Professor A will not get up in the morning, he is on a lot of committees, but no-one will tell the timetable office about this sort of constraint
  • Department 1 needs the timetable by the start of term, however, Department 2 that uses the same rooms is unwilling to decide on the courses that will be run until after all the students have arrived
  • Etc

Then you need a schedule system that can cope with changes, so when one constraint is changed at the last minute you don’t have to change the complete timetable.

All of the above is normally ignored in research papers about scheduling systems. As to NP completeness of a given scheduling problem, in real life you don’t care as even if it is not NP complete you are unlikely to even be able to define what the “best solution” is, so good enough is good enough.

See http://www.asap.cs.nott.ac.uk/watt/resources/university.html for a list of papers that may help get you started; there are still many PHDs to be had in scheduling software.

like image 50
Ian Ringrose Avatar answered Sep 28 '22 07:09

Ian Ringrose