Preview

Arithmetic Q

Satisfactory Essays
Open Document
Open Document
421 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Arithmetic Q
Question 1:

Consider the following graph G.

[pic]

1. Give the adjacency matrix and adjacency list of the graph G. (5 marks)

adjacency matrix: [pic] adjacency list:

|a |
| b |
|c |
| d |
|e |
|f |

b d a c e b e f a e b c d f c e

2. Give the incidence matrix and incidence list of the graph G. (5 marks)

[pic] incidence matrix
[pic]

incidence list

|1 |
| 2 |
|3 |
| 4 |
|5 |
|6 |

a b a d b c b e c e c e
|7 |
| 8 |

d e e f

Question 2: Consider the graph

I. Starting at the vertex a and resolving ties by the vertex alphabetical order traverse the graph by breadth-first-search (BFS) and construct the corresponding BFS tree. (5 marks) [pic] The order is : a b e g f c d h

II. Starting at the vertex a and resolving ties by the vertex alphabetical order traverse the graph by depth-first-search (DFS) and construct the corresponding BFS tree. (5 marks) [pic]

The order is : a b f e g c d h

Question 3:

Consider the following graph G. The label of an edge is the cost of the edge.

1. Using Prim's algorithm, draw a minimum spanning tree (MST) of the graph Also write down the change of the priority queue step by step and the order in which the vertices are selected. Is the MST drawn unique? (i.e., is it the one and only MST for the graph?) [7 marks]

Not unique

[pic]

2. Using Kruskal’s algorithm, draw a minimum spanning tree (MST) of the graph G. Write down the order in which the edges are selected. Is the MST drawn

You May Also Find These Documents Helpful

  • Good Essays

    Between two nodes in a network there can be many connecting paths but usually shortest path is considered best. It means any information exchange between two nodes also go through all nodes appearing in shortest path. By this reason any node involved in shortest paths can have…

    • 596 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 3 Research

    • 489 Words
    • 2 Pages

    2007 to generate a diagram for a proposed network topology. Write a 1-2 page proposal for…

    • 489 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 3 Assignment 1

    • 5050 Words
    • 21 Pages

    This is a rudimentary diagram representing the basic network that is employed in the Boston College Rochford Campus.…

    • 5050 Words
    • 21 Pages
    Powerful Essays
  • Better Essays

    2. Next, complete a more detailed diagram that has five distinct processes (hence five circles), two for FastFit (Headquarters and the Warehouse)) and three for WGD’s three departments. This diagram should also include the database associated with each WGD department using the cylinder symbol, there are three of these. Now fill in the flows from Q1 above. Then diagram all the flows of information that occur within FastFit and within WGD to support the processing of the order. Do not diagram any computer network details; just illustrate the three databases using the cylinder symbol.…

    • 871 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Nt1310 Unit 1 Test Paper

    • 381 Words
    • 2 Pages

    1. Create an insert function that will take nodes and add them up in the binary tree.…

    • 381 Words
    • 2 Pages
    Good Essays
  • Good Essays

    2. Next, complete a more detailed diagram that has five distinct processes (hence five circles), two for FastFit (Headquarters and the Warehouse)) and three for WGD’s three departments. This diagram should also include the database associated with each WGD department using the cylinder symbol, there are three of these. Now fill in the flows from Q1 above. Then diagram all the flows of information that occur within FastFit and within WGD to support the processing of the order. Do not diagram any computer network details; just illustrate the three databases using the cylinder symbol.…

    • 536 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Math 540 Midterm

    • 1681 Words
    • 17 Pages

    A decision tree is a diagram consisting of circles decision nodes, square probability nodes, and branches.…

    • 1681 Words
    • 17 Pages
    Powerful Essays
  • Satisfactory Essays

    Task 2: Now that you have practiced the subnetting process, please complete the problems below. Be sure to show your work:…

    • 765 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Solve problem 68 on page 539 of Elementary and Intermediate Algebra, and make sure to study the given graph. For the purposes of the assignment, it would be helpful to copy the graph onto your own scratch paper.…

    • 483 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Solve problem 68 on page 539 of Elementary and Intermediate Algebra, and make sure to study the given graph. For the purposes of the assignment, it would be helpful to copy the graph onto your own scratch paper.…

    • 262 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    week 4 Discussion 1

    • 447 Words
    • 2 Pages

    Optimal database design recognizes proper organization of table structures and relationships. Suggest at least two methods that can be used to improve the design of a database system.…

    • 447 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    4. Use the terms below to identify the structures marked by leader lines and braces in the diagrams (some terms are used more…

    • 715 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    4. Use the terms below to identify the structures marked by leader lines and braces in the diagrams (some terms are used more…

    • 595 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Math Problems

    • 527 Words
    • 3 Pages

    2. Describe the transformations on the following graph of f (x)  log( x) . State the…

    • 527 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Optimal database design recognizes proper organization of table structures and relationships. Suggest at least two methods that can be used to improve the design of a database system.…

    • 160 Words
    • 1 Page
    Satisfactory Essays

Related Topics