To prove that the scheduling problem you've described is NP-complete in the strong sense, we need to reduce a known strongly NP-complete problem to it in polynomial time. The 3-PARTITION problem is a suitable candidate for this.
First, let's define the 3-PARTITION problem: Given a multiset of integers A = {a1, a2, ..., a3m} where each ai satisfies B/4 < ai < B/2 for some integer B, and the sum of all elements in A is mB, can A be partitioned into m disjoint subsets A1, A2, ..., Am such that the sum of the numbers in each subset is exactly B?
Here's how we can use the 3-PARTITION problem to show that the scheduling problem is strongly NP-complete:
Reduction from 3-PARTITION to the scheduling problem:
- Let A = {a1, a2, ..., a3m} be an instance of the 3-PARTITION problem, where each ai satisfies B/4 < ai < B/2, and the sum of all ai is mB.
- Construct an instance of the scheduling problem with n = 3m tasks, where each task i corresponds to an element ai in A.
- For each task i, set the length ℓi = ai, the release time ri = 0, and the deadline di = B.
This construction is done in polynomial time with respect to the size of A, since we are creating one task per element in A, and the tasks' lengths, release times, and deadlines are directly based on the values of the elements in A.
Proof that the reduction is correct:
(<=) If there is a solution to the 3-PARTITION problem, then there is a feasible schedule for the tasks. We can schedule the tasks corresponding to each subset Ai in the interval [kB, (k+1)B) for k = 0, 1, ..., m-1. Since the sum of lengths in each subset is exactly B and all tasks have a release time of 0 and a deadline of B, all tasks can be completed within their allotted time intervals without overlapping.
(=>) If there is a feasible schedule for the tasks, then there is a solution to the 3-PARTITION problem. Since all tasks must be completed by time mB and each has a length that is greater than B/4, no interval of length B can contain more than three tasks. Therefore