encyclopegia.org

Interval scheduling

Interval scheduling is a class of problems in computer science, particularly in the area of algorithm design.[src] The problems consider a set of tasks.[src] Each task is represented by an interval describing the time in which it needs to be processed by some machine (or, equivalently, scheduled on some resource).[src] For instance, task A might run from 2:00 to 5:00, task B might run from 4:00 to 10:00 and task C might run from 9:00 to 11:00.[src] A subset of intervals is compatible if no two intervals overlap on the machine/resource.[src] For example, the subset {A,C} is compatible, as is the subset {B}; but neither {A,B} nor {B,C} are compatible subsets, because the corresponding intervals within each subset overlap.[src] The interval scheduling maximization problem (ISMP) is to find a largest compatible set, i.e., a set of non-overlapping intervals of maximum size.[src] The goal here is to execute as many tasks as possible, that is, to maximize the throughput.[src] It is equivalent to finding a maximum independent set in an interval graph.[src] A generalization of the problem considers k>1 machines/resources.[src] Here the goal is to find k compatible subsets whose union is the largest.[src] In an upgraded version of the problem, the intervals are partitioned into groups.…[src]

Interval scheduling is a class of problems in computer science, particularly in the area of algorithm design.[src] The problems consider a set of tasks.[src] Each task is represented by an interval describing the time in which it needs to be processed by some machine (or, equivalently, scheduled on some resource).[src] For instance, task A might run from 2:00 to 5:00, task B might run from 4:00 to 10:00 and task C might run from 9:00 to 11:00.[src] A subset of intervals is compatible if no two intervals overlap on the machine/resource.[src] For example, the subset {A,C} is compatible, as is the subset {B}; but neither {A,B} nor {B,C} are compatible subsets, because the corresponding intervals within each subset overlap.[src] The interval scheduling maximization problem (ISMP) is to find a largest compatible set, i.e., a set of non-overlapping intervals of maximum size.[src] The goal here is to execute as many tasks as possible, that is, to maximize the throughput.[src] It is equivalent to finding a maximum independent set in an interval graph.[src] A generalization of the problem considers k>1 machines/resources.[src] Here the goal is to find k compatible subsets whose union is the largest.[src] In an upgraded version of the problem, the intervals are partitioned into groups.[src] A subset of intervals is compatible if no two intervals overlap, and moreover, no two intervals belong to the same group (i.e., the subset contains at most a single representative of each group).[src] Each group of intervals corresponds to a single task, and represents several alternative intervals in which it can be executed.[src] The group interval scheduling decision problem (GISDP) is to decide whether there exists a compatible set in which all groups are represented.[src] The goal here is to execute a single representative task from each group.[src] GISDPk is a restricted version of GISDP in which the number of intervals in each group is at most k.[src] The group interval scheduling maximization problem (GISMP) is to find a largest compatible set - a set of non-overlapping representatives of maximum size.[src] The goal here is to execute a representative task from as many groups as possible.[src] GISMPk is a restricted version of GISMP in which the number of intervals in each group is at most k.[src] This problem is often called JISPk, where J stands for Job.[src] GISMP is the most general problem; the other two problems can be seen as special cases of it: ISMP is the special case in which each task belongs to its own group (i.e.[src] it is equal to GISMP1).[src] GISDP is the problem of deciding whether the maximum exactly equals the number of groups.[src] All these problems can be generalized by adding a weight for each interval, representing the profit from executing the task in that interval.[src] Then, the goal is to maximize the total weight.[src] All these problems are special cases of single-machine scheduling, since they assume that all tasks must run on a single processor.[src] Single-machine scheduling is a special case of optimal job scheduling.[src] ==Single-Interval Scheduling Maximization== Single-interval scheduling refers to creating an interval schedule in which no intervals overlap.[src] Assuming the vectors are sorted from earliest to latest finish time, the following pseudocode determines the maximum weight of a single-interval schedule in Θ(n) time: // The vectors are already sorted from earliest to latest finish time.[src] int v[numOfVectors + 1]; // list of interval vectors int w[numOfVectors + 1]; // w[j] is the weight for v[j].[src] int p[numOfVectors + 1]; // p[j] is the # of vectors that end before v[j] begins.[src] int M[numOfVectors + 1]; int finalSchedule[]; // v[0] does not exist, and the first interval vector is assigned to v[1].[src] w[0] = 0; p[0] = 0; M[0] = 0; // The following code determines the value of M for each vector.[src] // The maximum weight of the schedule is equal to M[numOfVectors].[src] for (int i = 1; i = M[j - 1]){ prepend(v[j], finalSchedule); // prepends v[j] to schedule.[src] schedule(p[j]); } else { schedule(j - 1); } } Here, we input our final vector (where j=9 in this example) into our schedule function from the code block above.[src] We perform the actions in the table below until j is set to 0, at which point, we only include into our final schedule the encountered intervals which met the w[j]+M[p[j]] \ge M[j-1] requirement.[src] This final schedule is the schedule with the maximum weight.[src] ==Group Interval Scheduling Decision== Let X = \{x_1, x_2, \dots, x_p\} be a set of Boolean variables.[src] Let C = \{c_1, c_2, \dots, c_q\} be a set of clauses over X such that (1) each clause in C has at most three literals and (2) each variable is restricted to appear once or twice positively and once negatively overall in C.[src] Decide whether there is an assignment to variables of X such that each clause in C has at least one true literal.[src] Given an instance of this satisfiability problem, construct the following instance of GISDP.[src] All intervals have a length of 3, so it is sufficient to represent each interval by its starting time: For every variable x_i (for ), create a group with two intervals: one starting at 50i-10 (representing the assignment x_i = \mathrm{false} ) and another starting at 50i+10 (representing the assignment x_i = \mathrm{true} ).[src] For every clause c_j (for ), create a group with the following intervals: For every variable x_i that appears positively for the first time in C an interval starting at 50i-12 .[src] For every variable x_i that appears positively for the second time in C an interval starting at 50i-8 .[src] Note that both these intervals intersect the interval 50i-10 , associated with x_i = \mathrm{false} .[src] For every variable x_i that appears negatively - an interval starting at 50i+8 .[src] This interval intersects the interval 50i+10 associated with x_i=\text{true} .[src] Note that there is no overlap between intervals in groups associated with different clauses.[src] This is ensured since a variable appears at most twice positively and once negatively.[src] The constructed GISDP has a feasible solution (i.e.[src] a scheduling in which each group is represented), if and only if the given set of boolean clauses has a satisfying assignment.[src] Hence GISDP3 is NP-complete, and so is GISDPk for every k\geq 3 .[src] ==Group Interval Scheduling Maximization== Moreover, GISMPk is MaxSNP-complete, i.e., it does not have a PTAS unless P=NP.[src] This can be proved by showing an approximation-preserving reduction from MAX 3-SAT-3 to GISMP2.[src] Using the technique of Linear programming relaxation, it is possible to approximate the optimal scheduling with slightly better approximation factors.[src] The approximation ratio of the first such algorithm is asymptotically 2 when k is large, but when k=2 the algorithm achieves an approximation ratio of 5/3.[src] The approximation factor for arbitrary k was later improved to 1.582.[src] ==Related problems== An interval scheduling problem can be described by an intersection graph, where each vertex is an interval, and there is an edge between two vertices if and only if their intervals overlap.[src] In this representation, the interval scheduling problem is equivalent to finding the maximum independent set in this intersection graph.[src] Finding a maximum independent set is NP-hard in general graphs, but it can be done in polynomial time in the special case of intersection graphs (ISMP).[src] A group-interval scheduling problem (GISMPk) can be described by a similar interval-intersection graph, with additional edges between each two intervals of the same group, i.e., this is the edge union of an interval graph and a graph consisting of n disjoint cliques of size k.[src] ==Variations== An important class of scheduling algorithms is the class of dynamic priority algorithms.[src] When none of the intervals overlap the optimum solution is trivial.[src] The optimum for the non-weighted version can found with the earliest deadline first scheduling.[src] Weighted interval scheduling is a generalization where a value is assigned to each executed task and the goal is to maximize the total value.[src] The solution need not be unique.[src] The interval scheduling problem is 1-dimensional – only the time dimension is relevant.[src] The Maximum disjoint set problem is a generalization to 2 or more dimensions.[src] This generalization, too, is NP-complete.[src] Another variation is resource allocation, in which a set of intervals s are scheduled using resources k such that k is minimized.[src] That is, all the intervals must be scheduled, but the objective is to minimize the usage of resources.[src] Another variation is when there are m processors instead of a single processor.[src] I.e., m different tasks can run in parallel.[src] See identical-machines scheduling.[src] Single-machine scheduling is also a very similar problem.[src] ==Sources==[src]

90 sentences · 90 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Interval scheduling." encyclopegia.org, 2025, https://encyclopegia.org/wiki/interval-scheduling. Accessed 28 November 2026.

Chicago

"Interval scheduling." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/interval-scheduling.

APA

encyclopegia.org. (2025). Interval scheduling. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/interval-scheduling

Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Interval

stub · references available

anticipatory scheduling

stub · references available

fair-share scheduling

stub · references available

Guard interval

stub · references available

Minimum Interval Takeoff

stub · references available

binomial proportion confidence interval

stub · references available

job-shop scheduling

stub · references available

Meta-scheduling

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1321258022 · 0.5 · snapshot enwiki-001321258022

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.