文件名称:WorkAssignment
- 所属分类:
- 数值算法/人工智能
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 347kb
- 下载次数:
- 0次
- 提 供 者:
- 张*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
acm算法设计
设有n件工作分配给n个人。将工作i 分配给第j 个人所需的费用为Cij。试设计一个算法,为每一个人都分配1 件不同的工作,并使总费用达到最小。
设计一个算法,对于给定的工作费用,计算最佳工作分配方案,使总费用达到最小。
输入:第一行有1 个正整数n (1≤n≤30)。接下来的n行,每行n个数,表示工作费用。
输出:最小总费用。
例输入:
3
10 2 3
2 3 4
3 4 5
例输出:9-acm algorithm design with n pieces of work assigned to the n individuals. I will be allocated to the work of the first j for the cost of personal Cij. Try to design an algorithm for each individual a different allocation of effort and minimize the total cost. To design an algorithm for a given cost of the work to calculate the best distribution of work to minimize the total cost. Input: the first line there is a positive integer n (1 ≤ n ≤ 30). N the next line, n the number of each line, the cost of that work. Output: the minimum total cost. Cases of type: 31,023,234,345 cases output: 9
设有n件工作分配给n个人。将工作i 分配给第j 个人所需的费用为Cij。试设计一个算法,为每一个人都分配1 件不同的工作,并使总费用达到最小。
设计一个算法,对于给定的工作费用,计算最佳工作分配方案,使总费用达到最小。
输入:第一行有1 个正整数n (1≤n≤30)。接下来的n行,每行n个数,表示工作费用。
输出:最小总费用。
例输入:
3
10 2 3
2 3 4
3 4 5
例输出:9-acm algorithm design with n pieces of work assigned to the n individuals. I will be allocated to the work of the first j for the cost of personal Cij. Try to design an algorithm for each individual a different allocation of effort and minimize the total cost. To design an algorithm for a given cost of the work to calculate the best distribution of work to minimize the total cost. Input: the first line there is a positive integer n (1 ≤ n ≤ 30). N the next line, n the number of each line, the cost of that work. Output: the minimum total cost. Cases of type: 31,023,234,345 cases output: 9
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Work Assignment
...............\Debug
...............\.....\StdAfx.obj
...............\.....\vc60.idb
...............\.....\vc60.pdb
...............\.....\Work Assignment.exe
...............\.....\Work Assignment.ilk
...............\.....\Work Assignment.obj
...............\.....\Work Assignment.pch
...............\.....\Work Assignment.pdb
...............\ReadMe.txt
...............\StdAfx.cpp
...............\StdAfx.h
...............\Work Assignment.cpp
...............\Work Assignment.dsp
...............\Work Assignment.dsw
...............\Work Assignment.ncb
...............\Work Assignment.opt
...............\Work Assignment.plg
...............\Debug
...............\.....\StdAfx.obj
...............\.....\vc60.idb
...............\.....\vc60.pdb
...............\.....\Work Assignment.exe
...............\.....\Work Assignment.ilk
...............\.....\Work Assignment.obj
...............\.....\Work Assignment.pch
...............\.....\Work Assignment.pdb
...............\ReadMe.txt
...............\StdAfx.cpp
...............\StdAfx.h
...............\Work Assignment.cpp
...............\Work Assignment.dsp
...............\Work Assignment.dsw
...............\Work Assignment.ncb
...............\Work Assignment.opt
...............\Work Assignment.plg