Suppose we have some trees of the following forms:
We want to place these trees in a linear fashion in a way such that the last node has the minimum distance to the first node. For instance, if we have the following trees:
Then an optimal placement will be like the following:
The minimum distance between the first node and the last node (which could be called "the makespan") is 5.
Note that we can stretch an edge, but we can't make an oblique edge straight or change its direction. The nodes have to be placed in a maximum of two rows (Like the trees themselves).
What would be the optimal placement strategy? We have all the trees upfront (this is an offline problem).
Motivation: I was trying to find an optimal schedule for a jobshop problem with two machines in presence of some form of recirculation. My modeling led to this problem.