Question

In: Computer Science

Show that if there is an Euler cycle in the graph, there is an Euler cycle...

Show that if there is an Euler cycle in the graph, there is an Euler cycle in any BCC of the graph

Solutions

Expert Solution

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

Theorem: If there is an Euler cycle in the graph, there is an Euler cycle in any BCC of the graph.

Proof:

Assuming that a cycle that includes every edge exactly once is called an Eulerian cycle.

Let G be a connected graph. Then G has an Eulerian cycle if and only if all nodes have even degree.

Fix some cycle, and orient the edges by the direction that the cycle traverses them. Then in the resulting directed graph we must have ?-(u) = ?+(u) for all u, since every time we enter a vertex we have to leave it again. But then ?(u) = 2?+(u) is even.

Suppose now that ?(u) is even for all u. We will construct an Eulerian cycle on all nodes in any BCC of the graph by induction on |E|. The base case is when |E| = 2|V| and G = C|V|. For a larger graph, choose some starting node u1, and construct a path u1u2... by choosing an arbitrary unused edge leaving each ui; this is always possible for ui?u1 since whenever we reach ui we have always consumed an even number of edges on previous visits plus one to get to it this time, leaving at least one remaining edge to leave on. Since there are only finitely many edges and we can only use each one once, eventually we must get stuck, and this must occur with uk = u1 for some k. Now delete all the edges in u1...uk from G, and consider the connected components of G-(u1...uk). Removing the cycle reduces ?(v) by an even number, so within each such connected component the degree of all vertices is even. It follows from the induction hypothesis that each connected component has an Eulerian cycle. We'll now string these per-component cycles together using our original cycle: while traversing u1...,uk when we encounter some component for the first time, we take a detour around the component's cycle. The resulting merged cycle gives an Eulerian cycle for the entire graph.

Now consider the conditions of the graph,

If graph has no odd degree vertex, there is at least one Eulerian Circuit. If graph as two vertices with odd degree, there is no Eulerian Circuit but at least one Eulerian Path. If graph has more than two vertices with odd degree, there is no Eulerian Circuit or Eulerian Path.

If the cycle contains all the edges of E of G, we are done. Otherwise, denote the edges of the cycle E', the nodes on it with the outdegree (and hence the indegree) equal to 1 V', and consider the graph G' = G(V - V', E - E'). Since G is connected, the cycle could not be a connected component (unless it's an Euler cycle, which we assumed it is not). If so, every connected component of G' shares at least one vertex with the cycle. Start with those vertices to find a cycle in each of the connected components of G'. Continue in this manner until no edges remain.

From the above proof and given consideration it is clear that if there is an Euler cycle in the graph then there must be a Euler cycle in any BCC of the graph or a directed graph.

Kindly revert for any queries

Thanks.


Related Solutions

Use proof by contradiction to show that a cycle graph with an odd number of nodes...
Use proof by contradiction to show that a cycle graph with an odd number of nodes is not 2-colorable.
A chorded cycle in a graph is a cycle in the graph with one additional edge...
A chorded cycle in a graph is a cycle in the graph with one additional edge connecting two of the cycle vertices. Prove that every graph with minimum degree 3 contains a chorded cycle as a subgraph. (Hint: Consider a longest path in the graph. What does it tell you when a vertex is the end of a longest path? )
Use one graph to show the shift in demand and another graph to show the shift...
Use one graph to show the shift in demand and another graph to show the shift in supply. Compare the change in price in the two graphs. See if they are consistent in that both graphs suggest the same outcome for price, or not. Make the same comparison of the two graphs for quantity. If the supply and demand for a product both decrease, then equilibrium: A:Quantity must fall and equilibrium price must rise. B:Price must fall, but equilibrium quantity...
* explaine Euler method by words. * Advantage of using Euler mehtod * compar between Euler...
* explaine Euler method by words. * Advantage of using Euler mehtod * compar between Euler and Improved Euler method. ______ please dont copy the ans from wep .
Which graph search method will be better for finding a cycle in an undirected graph: a...
Which graph search method will be better for finding a cycle in an undirected graph: a BTS or a DFS? In detail, describe (create) an algorithm for finding a cycle in any undirected graph, explaining why the algorithm assures to find a cycle if there exists one.
Give an algorithm to detect whether a given undirected graph contains a cycle. If the graph...
Give an algorithm to detect whether a given undirected graph contains a cycle. If the graph contains a cycle, then your algorithm should output one. (It should not output all cycles in the graph, just one of them.) The running time of your algorithm should be O(m + n) for a graph with n nodes and m edges.
Draw the AA/DD model on a graph. Show on the graph the impact of a permanent...
Draw the AA/DD model on a graph. Show on the graph the impact of a permanent increase in money supply. What is the impact on the following variables: Short-run output Long-run output Short-run interest rates Long-run interest rates Short-run exchange rates Long-run exchange rates Short-run prices Long-run prices
Draw the AA/DD model on a graph. Show on the graph the impact of a permanent...
Draw the AA/DD model on a graph. Show on the graph the impact of a permanent increase in money supply. What is the impact on the following variables: a. Short-run output b. Long-run output c. Short-run interest rates d. Long-run interest rates e. Short-run exchange rates f. Long-run exchange rates g. Short-run prices h. Long-run prices.
Write a program in java that detects if there is a cycle in an undirected graph...
Write a program in java that detects if there is a cycle in an undirected graph using DFS Two lines of input: 1. Two integers V for the number of vertices and E for the number of edges respectively. 2. List of integers that shows how the graph is connected. Ex input: 4 4 01020323 Output: Graph contains cycle Ex input: 5 4 01020314 Output: Graph doesn't contains cycle
how to solve and example of the following: •The Mathematics of Graphs •Graphs and Euler circuits •Weighted graphs •Euler’s formula •Graph Coloring
I need definitions, descriptions, how to solve and example of the following: •The Mathematics of Graphs •Graphs and Euler circuits •Weighted graphs •Euler’s formula •Graph Coloring
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT