+ All Categories
Home > Documents > The Amazing Maze Questions - University of North Carolina...

The Amazing Maze Questions - University of North Carolina...

Date post: 23-Sep-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
8
The Amazing Maze Questions
Transcript
Page 1: The Amazing Maze Questions - University of North Carolina ...people.uncw.edu/tagliarinig/Courses/380/F2017... · The Amazing Maze Questions. Question 1 1a.) For a connected graph

The Amazing Maze Questions

Page 2: The Amazing Maze Questions - University of North Carolina ...people.uncw.edu/tagliarinig/Courses/380/F2017... · The Amazing Maze Questions. Question 1 1a.) For a connected graph

Question 11a.) For a connected graph that is a spanning tree with V vertices, how many edges are in the graph?

1b.) Why are algorithms that produce spanning trees useful for making “perfect” mazes?

Response:

a.) A connected graph that is a spanning tree has V - 1 edges.

b.) An algorithm that makes a spanning tree guarantees that there will be no cycles in the maze.

2

Page 3: The Amazing Maze Questions - University of North Carolina ...people.uncw.edu/tagliarinig/Courses/380/F2017... · The Amazing Maze Questions. Question 1 1a.) For a connected graph

Question 22. Which algorithm(s) is/are the most memory efficient?

Response: Sidewinder and Ellers because the storage size needed is proportional to the row size since they make the maze row by row, and once a row is finished it is no longer needed.

3

Page 4: The Amazing Maze Questions - University of North Carolina ...people.uncw.edu/tagliarinig/Courses/380/F2017... · The Amazing Maze Questions. Question 1 1a.) For a connected graph

Question 33. Give an example of a Greedy Algorithm.

Response: Kruskal’s Algorithm

4

Page 5: The Amazing Maze Questions - University of North Carolina ...people.uncw.edu/tagliarinig/Courses/380/F2017... · The Amazing Maze Questions. Question 1 1a.) For a connected graph

Question 44. Give an example of an algorithm that can be implemented using a depth first search.

Response: Eller’s algorithm

5

Page 6: The Amazing Maze Questions - University of North Carolina ...people.uncw.edu/tagliarinig/Courses/380/F2017... · The Amazing Maze Questions. Question 1 1a.) For a connected graph

Question 55. Map this maze to a graph:

6

Page 7: The Amazing Maze Questions - University of North Carolina ...people.uncw.edu/tagliarinig/Courses/380/F2017... · The Amazing Maze Questions. Question 1 1a.) For a connected graph

Question 5 Response

7

Page 8: The Amazing Maze Questions - University of North Carolina ...people.uncw.edu/tagliarinig/Courses/380/F2017... · The Amazing Maze Questions. Question 1 1a.) For a connected graph

Question 66. If you wanted to trap your enemy in a maze what kind of maze would you generate?

Wilson’s!!!!!!!!

8


Recommended