文件名称:1_3
-
所属分类:
- 标签属性:
- 上传时间:2014-04-16
-
文件大小:824byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
2014微软编程之美初赛第三题格格取数自己写的一个解法
其中matrix类用来保存全局信息,node类为各点信息,并实现加入点和删除点的函数
算法大致思路:
1、取出每行最小元素,并选择
2、看是否有列任未有元素,结合该列元素与前面同行元素的差值选择
3、使用删除函数看是否有点可以删除-2014 Microsoft programming preliminaries third title of the United States to take the princess wrote a number of solution
Which matrix class used to store global information, node class for each point of information, and to achieve the point of adding and deleting function point
Algorithms general idea:
1, remove the smallest element in each row and choose
2, to see if there is either no element of the column, the column elements and combining elements of the difference between the front-friendly selection
3, use the delete function to see if little can be deleted
其中matrix类用来保存全局信息,node类为各点信息,并实现加入点和删除点的函数
算法大致思路:
1、取出每行最小元素,并选择
2、看是否有列任未有元素,结合该列元素与前面同行元素的差值选择
3、使用删除函数看是否有点可以删除-2014 Microsoft programming preliminaries third title of the United States to take the princess wrote a number of solution
Which matrix class used to store global information, node class for each point of information, and to achieve the point of adding and deleting function point
Algorithms general idea:
1, remove the smallest element in each row and choose
2, to see if there is either no element of the column, the column elements and combining elements of the difference between the front-friendly selection
3, use the delete function to see if little can be deleted
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1_3.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.