Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:30, baeethtsadia
Asoftware company hired ray, a college graduate to work in their development team. ray is assigned to work in the coding phase of a project. what happens during the coding phase of a software development project? a. the customer receives a working model of the software. b. developers convert the program design into code. c. developers gather requirements directly from the stakeholders. d. testing teams check the product for quality.
Answers: 1
image
Computers and Technology, 23.06.2019 10:00, thezbell
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
image
Computers and Technology, 23.06.2019 11:30, magicalpenguin48
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
image
Computers and Technology, 24.06.2019 12:50, opgbadwolf5
When is it most apprpriate for a development team to change the definition of done
Answers: 1
Do you know the correct answer?
The Knights of Ni have asked Roger the Shrubber
to build them a shrubbery maze, somewhat like...

Questions in other subjects: