对于加工顺序相同的两个或两个以上作业在两台机器上的加工排序,称之为:n个作业两台机床的作业排序问题,经典的启发式排序方法为Johnson规则。
其目的是最小化Makespan。
讨论版里有大佬详细推导。。。
资料:
https://wenku.baidu.com/view/28dd298751e79b89680226cc.html
这就是个套板子的题目了。。
#include <bits/stdc++.h>
using namespace std;
struct node
{
int a,b;
};
vector<node> p,s;
int cmpp(const node& a, const node& b)
{
return a.a < b.a;