A robot can move around a 10 x 10 gray grid and paint black or white squares.一个机器人可以在一个 10×10 的灰色网格上移动,并将方格涂成黑色或白色。

The robot can only move up, down, left, or right, and one square at a time.这个机器人只能向上、向下、向左或向右移动,每次只能移动一格。
An experiment to produce some interesting patterns was performed:进行了一项实验以生成一些有趣的图案:
- Some black dots and white dots are placed randomly on the grid.一些黑色的点和白色的点被随意地放置在网格上。
- The robot is programmed to move from left to right across the top row, then right to left across the second row, then left to right across the third row, and so on. This way it snakes across all 100 cells of the grid.这个机器人被设定为先从左向右移动穿过最上面一行,然后从右向左移动穿过第二行,接着从左向右移动穿过第三行,依此类推。这样它就能蜿蜒穿过整个网格的 100 个单元格。
- Different programs are run to see what patterns can be made by the robot.运行不同的程序,看看机器人能做出什么样的图案。
Programs: 程序:
A. The cells are painted the color of the nearest dot to the robot. If there is a tie, no color is painted.A. 单元格会被涂成离机器人最近的点的颜色。如果距离相同,则不涂色。
B. The cells are painted the color of the furthest dot from the robot. If there is a tie, no color is painted.B. 单元格会被涂成离机器人最远的那个点的颜色。如果出现平局,则不涂色。
C. The cells are painted the color of the last dot it passes over.C. 单元格会被涂成它最后经过的那个点的颜色。
D. The robot looks at all the cells it could go to in two moves or less, from its current position. It paints this cell the color of the most common color dot it "sees" in these cells. If there is a tie, or there are no dots in these cells, no color is painted.D. 机器人从其当前所在位置查看两步或两步以内能够到达的所有单元格。它将这些单元格涂成在这些单元格中“看到”的最常见颜色的点的颜色。如果出现平局,或者这些单元格中没有点,则不涂色。
Task:任务:
Given the positions of the randomly placed dots, shown above, match the patterns to the programs the robot followed.根据上图中随机放置的点的位置,将图案与机器人遵循的程序相匹配。
(Press 'Save' when you are finished.)(完成后请按“保存”。)

Explanation 解释
Answer: 答案:

Explanation: 解释:
There are various ways of solving this task. The most laborious would be to to step through every cell and decide waht colour they should be. Then compare your patterns with those given.解决此任务的方法多种多样。最费力的一种是逐个检查每个单元格,并决定它们应该是什么颜色。然后将你的图案与给出的图案进行比较。
A speedier pattern would be to identify the easiest program to follow,. That is C. It is quick to identify that this must produce the bottom pattern.更快捷的方法是找出最容易遵循的程序,那就是 C。很快就能确定这必然产生最下面的图案。
The three patterns left all contain a different coloured top left cell so now we can apply the rules for each program for just this cell to find out what colour they should be.剩下的三种模式左上角的单元格颜色各不相同,所以现在我们可以针对每个程序仅就这个单元格应用规则,以确定它们应该是什么颜色。
When you are thinking like this, and finding the minimum amount of information required to solve a problem while ignoring other information, you are using the computational thinking skill Abstraction.当你这样思考时,在解决问题时寻找所需的最少信息而忽略其他信息,你就是在运用计算思维技能中的抽象能力。
点击右侧文字,可获得更多在线练习题资源:>>> Bebras在线水平测试
Bebras新赛季备赛已开启,扫码领取Bebras真题资料⇓
欢迎咨询【Bebras专业辅导课程】


(Bebras每日一练部分展示)
