-
陈列馆问题:
1.问题描述
世界名画陈列馆有m*n个陈列室组成。为了防止名画被盗,需要在陈列室设置警卫机器人哨位,每算法个警卫机器人除了监视它所在的陈列...
陈列馆问题:
1.问题描述
世界名画陈列馆有m*n个陈列室组成。为了防止名画被盗,需要在陈列室设置警卫机器人哨位,每算法个警卫机器人除了监视它所在的陈列室之外,还可以监视与它所在的陈列室相邻的上,下,左,右4个陈列室。
2.要求
试要求,设计一个安排警卫机器人哨位的算法,使得名画陈列馆的每个陈列室都在警卫机器人监视之下,切所用的警卫机器人数目最少。
3.结果输出
将计算的警卫机器人数及其最佳哨位安排输出到文件output.txt。文件的第1行是警卫机器人数;接下来的m行中每行n个数,0表示无哨位,1表示哨位。-Gallery problem:
1. Problem Description
Painting gallery in the world there are m* n composed of a showroom. In order to prevent the paintings stolen, you need to set the security robot sentinel showroom, each algorithm is a security robot in addition to monitor it in the showroom, you can also watch it in the showroom with the adjacent upper and lower, left, Right 4 showrooms.
2. Demand
Test requirements, design an arrangement guard robot sentinel algorithm, making paintings in each gallery showroom are under the surveillance of the security robot, cutting the number of robots used by security guards at least.
3. The resulting output
Will calculate the number of security robots and the best sentinel ar
- 2022-06-27 18:30:39下载
- 积分:1
-
The use of VTK painting filled with a red five
使用VTK画红色五角星 并填充采用分段填充的方法,利用数学公式精确计算坐标-The use of VTK painting filled with a red five-pointed star and the sub-fill method, using mathematical formulas accurately calculate the coordinates
- 2022-08-03 18:38:53下载
- 积分:1
-
MODBUS server vb例子
用vb写的modbuus例子,实现modbus 1-4号功能。数组显示。excel表格导入导出等功能。
- 2022-03-28 18:53:05下载
- 积分:1
-
闹钟提醒程序,主要用OnTimer进行控制.
闹钟提醒程序,主要用OnTimer进行控制.-Alarm clock to remind the procedure, the main control OnTimer.
- 2022-08-22 05:56:17下载
- 积分:1
-
LabVIEW制作的计算器
labview制作的计算器。能够实现基本的功能-labview production calculator
- 2023-08-28 19:30:03下载
- 积分:1
-
8个字的点阵显示,可以向左移动,有非常简便的算法!
8个字的点阵显示,可以向左移动,有非常简便的算法!-eight-character dot-matrix display that can be left Mobile, a very simple algorithm!
- 2022-03-05 15:50:24下载
- 积分:1
-
For generating wind speed model in ARMA
For generating wind speed model in ARMA
- 2022-06-16 09:39:25下载
- 积分:1
-
数据结构。表用于创建线性和线性规模的圣..
数据结构第一次实验。用来创建线性表和求取线性表的第i个元素。-data structure first experiment. Table used to create linear and linear scale struck the first i elements.
- 2022-07-27 21:37:37下载
- 积分:1
-
雷迪的信噪比估计算法。运行交织文件第一比运行估计文件…
reddy snr estimator. run the interleaver file first than run the estimator file and get the results.
- 2022-03-13 04:48:30下载
- 积分:1
-
c语言版贪吃蛇,想要的就快来下载把,
这是早期作品,很有收藏价值...
c语言版贪吃蛇,想要的就快来下载把,
这是早期作品,很有收藏价值-c language version of Snake, want to hurry download put on, it is early works, great value to the collection!
- 2022-01-22 07:31:33下载
- 积分:1