#include<algorithm>
//为贪心算法问题
//大伙用的都是johnson的算法,简称为双机调度算法
#include<iostream>
#include<cstring>
#include<string>
using namespace std;
const int maxn = 5000;
int a[maxn];
int b[maxn];
int order[maxn];
struct c {
int belong, time, id;
};//双机调度算法非常暴力,我们只要将物品分好类,就看看他是前一步的时间短还是后一步的时间短,若是前者那么我们就将他归为A类
//后者我们就归为B类
c point[maxn];
bool
加工生产调度
最新推荐文章于 2025-01-07 21:02:06 发布