Question

Suppose that G is a graph and a and b are vertices in G such that...

Suppose that G is a graph and a and b are vertices in G such that a does not =b. Prove that if there is a walk from a to b, then there is a path from a to b.

A walk in the graph is a sequence of vertices where there is an edge between each pair a_i and a_(i+1). The length of a walk is n. If a_0=a_n, ie if the walk begins and ends at the same vertex, then the walk is called a closed walk or a circuit.

A walk from a_0 to a_n is called a trail if no edge is repeated.

A trail is called a path if no edge or vertex(except maybe the first and last) are repeated.

Do not solve the proof but instead give the steps of a procedure that starts with a walk of arbitrary length and results in a path. Indicate why your procedure guarantees you end with a path. You should be able to hand it to someone who needs to get a path!

Homework Answers

Answer #1

We prove this by induction on length n of walk.

Step 1] Suppose n=1, then the walk is of length 1 and we know walk of length 1 is also a path and hence the result holds.

Step 2] Now, suppose that the result holds for all the walks of length smaller than n=k.

Step 3] Now we prove the result for the walk of length n=k+1.

Case 1] Suppose the walk has no repeated vertex then, the result holds as we know that a walk with no repeated vertex is a path hence in this case the result holds.

Case 2] Suppose if the walk has a repeated vertex 'x', then suppress the part of walk which lies between the two successive appearance of 'x'. then that will be walk of path less than 'k' and then by step 2 it will have a path from a to b. Which implies the walk of length n=k+1 from a to b has a path from a to b.

Know the answer?
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
Similar Questions
Let u and v be distinct vertices in a graph G. Prove that there is a...
Let u and v be distinct vertices in a graph G. Prove that there is a walk from ? to ? if and only if there is a path from ? to ?.
Suppose that we generate a random graph G = (V, E) on the vertex set V...
Suppose that we generate a random graph G = (V, E) on the vertex set V = {1, 2, . . . , n} in the following way. For each pair of vertices i, j ∈ V with i < j, we flip a fair coin, and we include the edge i−j in E if and only if the coin comes up heads. How many edges should we expect G to contain? How many cycles of length 3 should we...
Problem 2. Consider a graph G = (V,E) where |V|=n. 2(a) What is the total number...
Problem 2. Consider a graph G = (V,E) where |V|=n. 2(a) What is the total number of possible paths of length k ≥ 0 in G from a given starting vertex s and ending vertex t? Hint: a path of length k is a sequence of k + 1 vertices without duplicates. 2(b) What is the total number of possible paths of any length in G from a given starting vertex s and ending vertex t? 2(c) What is the...
Let G be the graph having 3 vertices A, B and C. There are five edges...
Let G be the graph having 3 vertices A, B and C. There are five edges connecting A and B and three edges connecting B and C. Solve the following: 1) Determine the number of paths from A to B 2) Determine the number of different trails of length 6 from A to B
# Problem Description Given a directed graph G = (V,E) with edge length l(e) > 0...
# Problem Description Given a directed graph G = (V,E) with edge length l(e) > 0 for any e in E, and a source vertex s. Use Dijkstra’s algorithm to calculate distance(s,v) for all of the vertices v in V. (You can implement your own priority queue or use the build-in function for C++/Python) # Input The graph has `n` vertices and `m` edges. There are m + 1 lines, the first line gives three numbers `n`,`m` and `s`(1 <=...
Suppose G is a simple, nonconnected graph with n vertices that is maximal with respect to...
Suppose G is a simple, nonconnected graph with n vertices that is maximal with respect to these properties. That is, if you tried to make a larger graph in which G is a subgraph, this larger graph will lose at least one of the properties (a) simple, (b) nonconnected, or (c) has n vertices. What does being maximal with respect to these properties imply about G?G? That is, what further properties must GG possess because of this assumption? In this...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT