Question

b) Given the following graph: AC ACE CEG C- ACE Is this graph has an Euler cycle? Justify your answer. 12 marks] i) Use the breadth first search algorithm to find a spanning tree in the above h. Assume vertex A is the root and the vertices are ordered Show clearly each step of how the algorithm is performed and present your answer in a table with three columns, the first column is the number of steps, the second column is the queue for the search algorithm and the third column is the edges of the resulting spanning tree. grap alphabetically [4 marks]
0 0
Add a comment Improve this question Transcribed image text
Answer #1

i)

Note:- A path in a multigraph G that includes exactly once all the edges of G and has different first and last vertices is called Euler Path. If this path has the same initial and terminal vertices, we call it an Euler Circuit/Cyle. And a neccesary and sufficent condition for Euler Cycle in a Graph is that every vertices should have an even degree. Where degree is the edges leaving a vertex.

Here in the given graph: The degree of vertices D,A and B are 2 but degree is 3 for E and C. hence there isnt an Euler Cycle in the given graph.

Add a comment
Know the answer?
Add Answer to:
b) Given the following graph: AC ACE CEG C- ACE Is this graph has an Euler...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Give the adjacency matrix representation and the adjacency lists representation for the graph G_1. Assume that...

    Give the adjacency matrix representation and the adjacency lists representation for the graph G_1. Assume that vertices (e.g., in adjacency lists) are ordered alphabetically. For the following problems, assume that vertices are ordered alphabetically in the adjacency lists (thus you will visit adjacent vertices in alphabetical order). Execute a Breadth-First Search on the graph G_1, starting on vertex a. Specifiy the visit times for each node of the graph. Execute a Depth-First Search on the graph G_1 starting on vertex...

  • Question II - Graph Traversal and Minimum Spanning Trees [40 Points] Consider the following graph: B...

    Question II - Graph Traversal and Minimum Spanning Trees [40 Points] Consider the following graph: B 10 1 4 1 H 9 4 a) Traverse the graph starting from vertex A, and using the Breadth-First Search algorithm. Show the traversal result and the data structure you are using. [10 Points] b) Traverse the graph starting from vertex A, and using the Depth-First Search (Post-order) algorithm. Show the traversal result and the data structure you are using. [10 Points] c) Apply...

  • Given the following weighted graph G. use Prim's algorithm to determine the Minimum-Cost Spanning Tree (MCST)...

    Given the following weighted graph G. use Prim's algorithm to determine the Minimum-Cost Spanning Tree (MCST) with node 1 as the "root". List the vertices in the order in which the algorithm adds them to the solution, along with the edge and its weight used to make the selection, one per line. Each line should look like this: add vertex y: edge = (x,y), weight = 5 When the algorithm ends there are, generally, edges left in the heap. List...

  • Consider the following directed graph for each of the problems: 1. Perform a breadth-first search on...

    Consider the following directed graph for each of the problems: 1. Perform a breadth-first search on the graph assuming that the vertices and adjacency lists are listed in alphabetical order. Show the breadth-first search tree that is generated. 2. Perform a depth-first search on the graph assuming that the vertices and adjacency lists are listed in alphabetical order. Classify each edge as tree, back or cross edge. Label each vertex with its start and finish time. 3. Remove all the...

  • 1. Startingatvertex000, perform a BFSof Q3.Assume all adjacency lists are in numericalorder.For example, (000,001) occurs before...

    1. Startingatvertex000, perform a BFSof Q3.Assume all adjacency lists are in numericalorder.For example, (000,001) occurs before (000, 010). Showthe resulting spanningtrees. Draw the directed graphs and perform a. 2. Breadth-First Search (BFS)algorithm: VTo determine the shortest paths starting at vertex a to everyother node. Show the resulting spanning tree. b. Depth-First Search (DFS) to explore the whole graph: Record the start/end time for all the vertices. show the resulting spanning forest Label the name°fthe edges. V Writethetopologicalorderofthevertices(ifnocycle-nobackedge) (Showthestate of the...

  • help with alogrthms Consider the following graph for problems 6, 7, & 8. (b f C...

    help with alogrthms Consider the following graph for problems 6, 7, & 8. (b f C d a (5 points) Starting at vertex a and resolving ties by the vertex alphabetical order, traverse the graph by depth-first search 7. and construct the corresponding depth-first search tree (5 points) Traverse the graph by breadth-first search and construct the corresponding breadth-first search tree. Start the 8. traversal at vertex a and resolve ties by the vertex alphabetical order. Consider the following graph...

  • 3. Consider the the following graphs for each of the two subproblems. Each subproblem can be answ...

    3. Consider the the following graphs for each of the two subproblems. Each subproblem can be answered (or blank) independently of the other ( subject to the 4 total blank for partial credit rule). s MST algorithm on the graph below and left, starting with vertex all work done so far: al (40 points) You are runing Prim' a. You are about to take vertex g out of the min-ehave not done so yet. Show the order that vertices wer...

  • 1. Consider the directed graph on the right side of the following page and complete the...

    1. Consider the directed graph on the right side of the following page and complete the exercises below. When conducting a search, be very careful (since a small error early on can result in a large deduction of marks), and whenever you have a "choice" of which adjacent vertex to consider, you must consider the vertices in numerical order from least to greatest. (10 marks total) a. Provide an adjacency list representation of this graph. b. Compute the depth-first search...

  • 6) Below is an adjacency matrix for an undirected graph, size n- 8. Vertices are labeled...

    6) Below is an adjacency matrix for an undirected graph, size n- 8. Vertices are labeled 1 to 8 Rows are labeled 1 through 8, top to bottom. Columns are labeled 1 through 8, left to right. Column labels to the right: 1 2 345 6 78 Row labels are below this: 1 0 0 1 000 0 0 2 0 0 101 1 00 (See a drippy heart?) 3 1 1 0 1 01 0 0 4 0 0...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT