任務分配問題(回溯算法)

要求把n項任務分配給n個人,每個人完成每項任務的成本不同,要求分配成本最小的最優分配方案。 代碼: #include <iostream> #define N 205 using namespace std;   int c[N][N]; int x[N]; int BestM[N]; int n; int Bmin=999999999;   int sum(int k) {     int te
相關文章
相關標籤/搜索