Question SOLVED: Using c++, use a 4×4 maze(for ex this as input

$30.00

Category:

Description

Question SOLVED: Using c++, use a 4×4 maze(for ex this as input

Using c++, use a 4×4 maze(for ex this as input:

THE NUMBER OF ROOMS
DOORS LISTED IN ORDER: NORTH, EAST, SOUTH, WEST FOR EACH ROOM: 0 = NO DOORS

0 = 0100
1 = 0111
2 = 0111
3 = 0001
4 = 0100
5 = 1011
6 = 1010
7 = 0010
8 = 0110
9 = 1001
10 = 1100
11 = 1001
12 = 1100
13 = 0101
14 = 0101
15 = 0001 ),

Create 3 functions,

1st function uses an adjacency linked list to represent the graph

2nd fuction Prints out vertices (room numbers) on the shortest entry-exit path.

3rd fuction Prints out all verticies (room numbers) on all possible entry-exit path


error: Content is protected !!