subject

The Knights of Ni have asked Roger the Shrubber
to build them a shrubbery maze, somewhat like the famous one at
Hampton Court in England. The maze is to be made on an n by n square
grid, by placing shrubbery to make certain edges impassible, but leaving
a path from the boundary to a goal point on the inside. (See the example
below.) Their conditions are:

— Every boundary edge but one must be shrubbery.
— Every square of the grid must have at least one shrubbery edge.
— The graph made by the shrubbery edges must be a tree (connected, no cycles).

A correct but suboptimal algorithm to search the Hampton Court maze has
long been known: Put your right hand into the shrubbery at the right of the
entrance, then walk forward while keeping your right hand on the shrubbery.

(a) Prove that this RIGHT-HAND-RULE will cause you to walk through every
square of any maze meeting the Knights’ conditions.

(b) For each of the Knights’ three conditions, give an example of a maze that
fails that condition, meets the other two, and is not solved by the right-hand rule.

(c) The DUAL GRAPH of such a maze has a node in the center of each grid
square, and an edge between the centers of any two adjacent squares unless
travel between then is blocked (see the diagram below). Show that for any maze
meeting the Knights’ conditions, there exists a depth-first search of the dual
graph that visits every square of the grid, using the same route as the tour of
the maze given by the right-hand rule.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
You have been supporting csm tech publishing's windows server 2016 server network for over a year. the office has two windows server 2016 servers running active directory and a number of other roles. management has informed you that a small sales office is opening in the same building three floors up. the sales manager wants to install a sales application on a server located in the sales office. this server will have limited physical security because there's no special room dedicated for it, which means it will be accessible to non-it personnel and visitors. you're considering installing windows server 2016 server core on the new server because accessing its console regularly probably won't be necessary, and this server will be managed from one of the other csm tech publishing servers. what are the benefits and drawbacks of using server core for this branch office? what are some things you should do to set up this server management environment?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
The gene form of a trait is called a(n) 
Answers: 2
You know the right answer?
The Knights of Ni have asked Roger the Shrubber
to build them a shrubbery maze, somewhat like...
Questions
question
Mathematics, 18.02.2020 06:05
question
Mathematics, 18.02.2020 06:07
question
Mathematics, 18.02.2020 06:07
Questions on the website: 13722363