文件名称:trans
介绍说明--下载内容来自于网络,使用问题请自行百度
给定两个 4×4 方格矩阵组成的图形 A 和 B ,每个方格的颜色为黑色或白色。图形 A 和图形 B 的黑白方块总数相等。
通过交换相邻方格的颜色。试设计一个算法,计算最少需要多少步变换,才能将图形 A 变换为图形 B -Given two matrices 4 × 4 grid graph A and B, the color of each box is black or white. A graphic black and white box and graphics B equal to the total. Through the exchange of the color of the adjacent square. Try to design an algorithm to calculate how many steps need to transform at least, to transform the graphic A graphic B
通过交换相邻方格的颜色。试设计一个算法,计算最少需要多少步变换,才能将图形 A 变换为图形 B -Given two matrices 4 × 4 grid graph A and B, the color of each box is black or white. A graphic black and white box and graphics B equal to the total. Through the exchange of the color of the adjacent square. Try to design an algorithm to calculate how many steps need to transform at least, to transform the graphic A graphic B
(系统自动生成,下载前可以参看下载内容)
下载文件列表
trans.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.