文件名称:dituzhese
- 所属分类:
- 压缩解压
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 405kb
- 下载次数:
- 0次
- 提 供 者:
- 杜*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
地图着色把地图上的每个城市抽象为一个点,并给每个城市编号,,相邻的城市之间用直线连接。据此做出邻接矩阵,若第i个城市与第j个城市相邻,则metro[i][j]=1,否则metro[i][j]=0。
算法:按照编号从小到大的顺序检查每个城市,对每个城市从1到4使用4种颜色着色,若当前颜色可用(即不与相邻城市颜色相同),则着色;否则测试下一种颜色。
-Map coloring to each city on the map as a point of abstraction, and to every city number, adjacent lines to connect between cities. Accordingly to make adjacency matrix, if the section i and section j cities adjacent cities, the metro [i] [j] = 1, otherwise the metro [i] [j] = 0. Algorithm: In accordance with the code sequence from small to large checks every city, every city on 1-4 from the use of four kinds of color shading, color can be used if the current (ie not with the same colors as the neighboring cities), then coloring Otherwise, the next test colors.
算法:按照编号从小到大的顺序检查每个城市,对每个城市从1到4使用4种颜色着色,若当前颜色可用(即不与相邻城市颜色相同),则着色;否则测试下一种颜色。
-Map coloring to each city on the map as a point of abstraction, and to every city number, adjacent lines to connect between cities. Accordingly to make adjacency matrix, if the section i and section j cities adjacent cities, the metro [i] [j] = 1, otherwise the metro [i] [j] = 0. Algorithm: In accordance with the code sequence from small to large checks every city, every city on 1-4 from the use of four kinds of color shading, color can be used if the current (ie not with the same colors as the neighboring cities), then coloring Otherwise, the next test colors.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建文件夹
..........\5地图染色
..........\.........\5地图染色.vcproj
..........\.........\core.cpp
..........\.........\core.h
..........\.........\Debug
..........\.........\res
..........\.........\...\地图着色.rc2
..........\.........\resource.h
..........\.........\stdafx.cpp
..........\.........\stdafx.h
..........\.........\地图着色.aps
..........\.........\地图着色.cpp
..........\.........\地图着色.h
..........\.........\地图着色.rc
..........\.........\地图着色Dlg.cpp
..........\.........\地图着色Dlg.dsp
..........\.........\地图着色Dlg.dsw
..........\.........\地图着色Dlg.h
..........\.........\地图着色Dlg.ncb
..........\.........\地图着色Dlg.opt
..........\.........\地图着色Dlg.plg
..........\地图着色.exe
..........\5地图染色
..........\.........\5地图染色.vcproj
..........\.........\core.cpp
..........\.........\core.h
..........\.........\Debug
..........\.........\res
..........\.........\...\地图着色.rc2
..........\.........\resource.h
..........\.........\stdafx.cpp
..........\.........\stdafx.h
..........\.........\地图着色.aps
..........\.........\地图着色.cpp
..........\.........\地图着色.h
..........\.........\地图着色.rc
..........\.........\地图着色Dlg.cpp
..........\.........\地图着色Dlg.dsp
..........\.........\地图着色Dlg.dsw
..........\.........\地图着色Dlg.h
..........\.........\地图着色Dlg.ncb
..........\.........\地图着色Dlg.opt
..........\.........\地图着色Dlg.plg
..........\地图着色.exe