|
|
|
|
|
by saurik
3639 days ago
|
|
This still smells NP Hard. I mean, in practice for simple dependencies it is probably quite tractable, but this is a combinatorial optimization problem that seems pretty similar to an online modification to Job Shop Scheduling, where the material requirements map loosely to machine-task pairings that would be unblocked by orders, acting to make the problem more complex, not easier. |
|
We're done and found a topological order in O(|V| + |E|).