- There are
n
jobs each consisting of two parts:a
andb
. - There are two people:
- person
A
is completing parta
of each job (one at a time), and - person
B
is completing partb
of each job (also one at a time).
- person
- Constraint: part
a
of each job must be completed before partb
- We are given for each
i
:a[i]
: the time that it takes to complete parta
of jobi
; and,- similarly,
b[i]
for partb
of jobi
.
The problem is to find an algorithm to determine
- an order such that the total time to complete all jobs is minimized.
Note: A
and B
are able to work in parallel.
My question is: how can we solve this problem? And, what is a good reference to learn to solve similar scheduling problems?