A Polynomial-Time Algorithm for Three-Machine Unit-Job SchedulingResearch Paper
Motivation
A set of unit-length jobs with precedence constraints is to be run on a fixed number of identical machines so that all jobs finish as early as possible. For two machines this was solved in 1969–1972; for a number of machines given as part of the input the problem is NP-complete (Ullman, 1975). Whether the problem is polynomial-time solvable for three machines, written , is problem OPEN8 in the appendix of Garey and Johnson's 1979 book and is one of the best-known open questions on the complexity of scheduling.
Timeline
- 1969–1971. Fujii, Kasami and Ninomiya solve the two-processor case by matching (doi:10.1137/0117070, erratum doi:10.1137/0120018).
- 1972. Coffman and Graham give an optimal list-scheduling algorithm for two processors (doi:10.1007/BF00288685).
- 1975. Ullman proves NP-completeness when the number of machines is part of the input (doi:10.1016/S0022-0000(75)80008-0).
- 1979. Garey and Johnson list the fixed-three-machine problem as OPEN8; Graham, Lawler, Lenstra and Rinnooy Kan introduce the standard notation (doi:10.1016/S0167-5060(08)70356-X).
- 1983. Garey, Johnson, Tarjan and Yannakakis give a linear-time algorithm on three processors for opposing forests (doi:10.1137/0604011).
- 1984. Dolev and Warmuth give an algorithm for precedence graphs of height (doi:10.1016/0196-6774(84)90039-7).
- 2016–2022. Approximation schemes for fixed machine counts: Levey and Rothvoß via LP hierarchies (doi:10.1145/2897518.2897532), Garg's quasi-PTAS (doi:10.4230/LIPIcs.ICALP.2018.59), Li (doi:10.1137/1.9781611976465.178), Das and Wiese (doi:10.4230/LIPIcs.ESA.2022.40).
- 2025. Nederlof, Swennenhuis and Węgrzycki give an exact algorithm in time for three machines (doi:10.1137/1.9781611978322.16).
The source of this mission, an OpenAI preprint dated September 24, 2026, claims a deterministic polynomial-time algorithm.
Setting
The input is a directed acyclic graph on , , given as an explicit list of arcs, and optionally an integer deadline with . A feasible schedule with makespan at most is a map
such that each value is taken at most three times (three machines) and for every arc (precedence). Slot means execution during . There are no release dates, communication delays or other resources. The input length is the length of the binary encoding of the graph and deadline.
Formalization targets
Goal: Theorem 1.1
There is a single deterministic multitape Turing machine and a constant such that, on every such input of length , halts within
steps and
- without a deadline, outputs a feasible schedule of minimum makespan;
- with a deadline , outputs "infeasible" exactly when no feasible schedule with makespan at most exists, and otherwise outputs one.
The exponent is the one stated in the paper and is not optimized; the content of the theorem is that a fixed polynomial bound exists. The Lean statement OAI.ThreeMachine.main_theorem is open on the platform.
Significance
The theorem resolves the polynomial-time side of Garey and Johnson's OPEN8: unit-job makespan scheduling with arbitrary precedence constraints on three identical machines lies in P. Previous exact algorithms were either restricted to special precedence structures (forests, bounded height) or subexponential, and approximation schemes did not decide the optimum. The structural statement behind the algorithm, that feasible schedules admit recursive decompositions whose interval job sets have descriptions of bounded size, may be of independent use for other fixed-machine scheduling problems. No practical running time is claimed.
The result is claimed in an OpenAI preprint; it has not been peer reviewed and no machine-checked proof exists. A formal proof would also certify the running-time analysis in an explicit machine model, which is rarely done for algorithmic results of this size.
Difficulty
Removing selected slots from a feasible schedule leaves gaps that can be rescheduled independently, which suggests a recursive search over the job sets of gaps. The obstacle is their number: naming a gap by its two boundary triples does not determine its job set, and intersecting descriptions inherited from ancestors can make the descriptions grow without bound along a recursion of linear depth. The subexponential decomposition of Nederlof–Swennenhuis–Węgrzycki controls the number of subproblems only up to ; a polynomial bound needs every subproblem to have a global description of constant size.
Formalization scope
Instance nis a list of arcs onFin n;acyclicforbids aRelation.TransGencycle. Jobs areFin n(shifted to in the encoding).Feasible G T τ: slots in , at most three jobs per slot, strict precedence.CorrectOutputdistinguishes the optimization mode (none) and the decision mode (some T).- The machine model is a custom multitape Turing machine
Machine k q goverFin (g+3)with tapes; input on tape 0 encoded byencodeInput(self-delimiting binary numbers), output read from tape 0 after halting. The time bound is with the encoded length. - The quantifiers are ordered so that the machine and constant are fixed before the instance (uniformity).
A complete development needs the combinatorics of the decomposition (separators and bounded global descriptions), a dynamic program over polynomially many descriptions, and its implementation and time analysis on the given Turing machine model. Contributions formalizing the purely combinatorial structure theorem, independently of the machine model, are welcome.
Selected references
- OpenAI, A Polynomial-Time Algorithm for Three-Machine Unit-Job Scheduling, preprint, September 24, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/A-polynomial-time-algorithm-for-three-machine-unit-job-scheduling-September-24-2026/paper.pdf
- M. R. Garey, D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman, 1979.
- E. G. Coffman Jr., R. L. Graham, Optimal scheduling for two-processor systems, Acta Inform., 1972. https://doi.org/10.1007/BF00288685
- J. D. Ullman, NP-complete scheduling problems, J. Comput. System Sci., 1975. https://doi.org/10.1016/S0022-0000(75)80008-0
- D. Dolev, M. K. Warmuth, Scheduling precedence graphs of bounded height, J. Algorithms, 1984. https://doi.org/10.1016/0196-6774(84)90039-7
- J. Nederlof, C. M. F. Swennenhuis, K. Węgrzycki, A subexponential time algorithm for makespan scheduling of unit jobs with precedence constraints, SODA 2025. https://doi.org/10.1137/1.9781611978322.16
- E. Levey, T. Rothvoß, A -approximation for makespan scheduling with precedence constraints using LP hierarchies, STOC 2016. https://doi.org/10.1145/2897518.2897532