Graphs and Trees

Anonymous
timer Asked: Jan 26th, 2019
account_balance_wallet $25

Question Description

Complete the following in a paper of 1–2 pages:

  1. Consider the following graph:
    1. Complete this table by finding the degree of each vertex, and identify whether it is even or odd:
    VertexDegreeEven/Odd
    A
    B
    C
    D
    E
    F
    G
    H
    1. What is the order of the graph?
    2. 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.
    1. Complete the following table by finding the shortest distance and the path for that distance from vertex A to the other vertices:
    VertexShortest Distance from APath from A
    B
    C
    D
    E
    F
    G
    H
    I
    1. 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.
    1. Using Euler’s theorem, explain why it is possible to pass through all of the stations by traversing every rail only once.
    2. Using Fleury’s algorithm, provide an optimal path to clean all the rails by passing through them only once.
    3. Is it possible to find an optimal path described in question 3-b that starts on any station? Explain your answer.
    4. 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.
  4. A network engineer lives in City A, and his job is to inspect his company’s servers in various cities. The graph below shows the cost (in U.S. dollars) of travelling between each city that he has to visit.
    1. Find a Hamiltonian path in the graph.
    2. Find a Hamiltonian circuit that will allow the engineer to inspect all of the servers. How much will the cost be for his trips?
    3. 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.
  5. Consider the following binary tree:
    1. What is the height of the tree?
    2. What is the height of vertex H?
    3. Write the preorder traversal representation of the tree.
    4. Write the array representation of the tree by completing the following table:
Vertex
Left Child
Right Child
A


B


C


D


E


G


H


I


J


K


L


M


N


O


P


Q


R


S


T



Tutor Answer

ProfessorMarko
School: University of Virginia

Here you go.

Complete the following in a paper of 1–2 pages:
1. Consider the following graph:

a. Complete this table by finding the degree of each vertex, and identify whether it is
even or odd:
Vertex
A
B
C
D
E
F
G
H

Degree
4
3
3
3
5
2
2
1

Even/Odd
Even
Odd
Odd
Odd
Odd
Even
Even
Odd

b. What is the order of the graph?
The order of a graph is the number of its vertices
So order = 8

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

A
B

A B C D E F
0 1 0 0 1 1
1 0 1 0 1 0

G H Ci Ha
0 0 1 0
0 0 0 0

C
D
E
F
G
H
Ci
Ha

0
0
1
1
0
0
1
0

1
0
1
0
0
0
0
0

0
1
0
0
0
0
0
1

1
0
1
0
0
0
0
1

0
1
0
1
1
0
0
0

0
0
1
0
0
0
0
0

0
0
1
0
0
1
0
0

0
0
0
0
1
0
0
0

0
0
0
0
0
0
0
0

1
1
0
0
0
0
0
0

2. The graph below illustrates a ...

flag Report DMCA
Review

Anonymous
Goes above and beyond expectations !

Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors