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, 21.06.2019 14:30
Asoftware program that includes tools for entering, editing, and formatting text and graphics is called a word processing program. true or false?
Answers: 1
question
Computers and Technology, 22.06.2019 16:10
Drag each label to the correct location on the imagelist the do’s and don’ts of safeguarding your password.keep yourself loggedin when you leave your computer.don’t write your password down and leave it whereothers can find it.share your password with your friends.each time you visit a website,retain the cookies on your computer.use a long password with mixed characters.
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
In cell h5 enter a formula that will calculate the percentage of attendees that went to the altamonte springs job fair in 2018.
Answers: 1
You know the right answer?
The Knights of Ni have asked Roger the Shrubber
to build them a shrubbery maze, somewhat like...
Questions
question
English, 23.03.2020 20:56
question
Mathematics, 23.03.2020 20:57
question
Mathematics, 23.03.2020 20:57
question
Mathematics, 23.03.2020 20:57
question
Mathematics, 23.03.2020 20:57
Questions on the website: 13722361