# Expert Answers

1. Consider the following graph:

a. Complete this table by finding the degree of each vertex, and identify whether it is even or odd:

b. What is the order of the graph?

c. Construct the 10 x 10 adjacency matrix for the graph.

2. The graph below illustrates a switching network. The weights represent the delay times, in nanoseconds, travelled by a data packet between destinations, represented by the vertices.

a. Complete the following table by finding the shortest distance and the path for that distance from vertex A to the other vertices:

b. What is the shortest distance between A and J and the path for that distance?

3. The following graph represents a portion of the subway system of a city. The vertices on the graph correspond to subway stations, and the edges correspond to the rails. Your job is to write a program for a cleaning car to efficiently clean this portion of the subway system.

b. Using Euler’s theorem, explain why it is possible to pass through all of the stations by traversing every rail only once.

c. Using Fleury’s algorithm, provide an optimal path to clean all the rails by passing through them only once.

d. Is it possible to find an optimal path described in question 3-b that starts on any station? Explain your answer.

e. Is it possible to find an optimal path described in question 3-b that starts and ends at the same station? Explain why or why not.

f. Find a Hamiltonian path in the graph.

g. Find a Hamiltonian circuit that will allow the engineer to inspect all of the servers. How much will the cost be for his trips?

h. Is there another Hamiltonian circuit that will allow the engineer to inspect all of the servers other than your answer in question 4-b? If so, calculate the cost.

i. What is the height of the tree?

j. What is the height of vertex H?

k. Write the preorder traversal representation of the tree.

l. Write the array representation of the tree by completing the following table:

a. Complete this table by finding the degree of each vertex, and identify whether it is even or odd:

b. What is the order of the graph?

c. Construct the 10 x 10 adjacency matrix for the graph.

2. The graph below illustrates a switching network. The weights represent the delay times, in nanoseconds, travelled by a data packet between destinations, represented by the vertices.

a. Complete the following table by finding the shortest distance and the path for that distance from vertex A to the other vertices:

b. What is the shortest distance between A and J and the path for that distance?

3. The following graph represents a portion of the subway system of a city. The vertices on the graph correspond to subway stations, and the edges correspond to the rails. Your job is to write a program for a cleaning car to efficiently clean this portion of the subway system.

b. Using Euler’s theorem, explain why it is possible to pass through all of the stations by traversing every rail only once.

c. Using Fleury’s algorithm, provide an optimal path to clean all the rails by passing through them only once.

d. Is it possible to find an optimal path described in question 3-b that starts on any station? Explain your answer.

e. Is it possible to find an optimal path described in question 3-b that starts and ends at the same station? Explain why or why not.

f. Find a Hamiltonian path in the graph.

g. Find a Hamiltonian circuit that will allow the engineer to inspect all of the servers. How much will the cost be for his trips?

h. Is there another Hamiltonian circuit that will allow the engineer to inspect all of the servers other than your answer in question 4-b? If so, calculate the cost.

i. What is the height of the tree?

j. What is the height of vertex H?

k. Write the preorder traversal representation of the tree.

l. Write the array representation of the tree by completing the following table:

You'll get a 358.8KB .DOCX file.