Successfully reported this slideshow.
Your SlideShare is downloading. ×

Let G be the undirected graph given below- (a) Find the number of path.docx

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad

Check these out next

1 of 1 Ad

Let G be the undirected graph given below- (a) Find the number of path.docx

Download to read offline

Let G be the undirected graph given below.
(a) Find the number of paths from vertex a to vertex b.
(b) Find the number of trails from vertex a to vertex b.
(c) Find all cycles starting at vertex a.
Solution
A path is a walk that does not include any vertex twice, except that its first vertex might be the same as its last.
A trail is a walk that does not pass over the same edge twice. A trail might visit the same vertex twice, but only if it comes and goes from a different edge each time.
A cycle is a path that begins and ends on the same vertex.
(a) number of paths from a to b are 3 ( a-b , a-d-b , a-d-c-b)
(b) number of paths from a to b are 5( a-b , a-d-b , a-d-c-b , a-b-c-d-b , a-b-d-c-b)
(b) number of cycles from a to b are 4( a-b-d-a , a-d-b-a , a-d-c-b-a , a-b-c-d-a)
.

Let G be the undirected graph given below.
(a) Find the number of paths from vertex a to vertex b.
(b) Find the number of trails from vertex a to vertex b.
(c) Find all cycles starting at vertex a.
Solution
A path is a walk that does not include any vertex twice, except that its first vertex might be the same as its last.
A trail is a walk that does not pass over the same edge twice. A trail might visit the same vertex twice, but only if it comes and goes from a different edge each time.
A cycle is a path that begins and ends on the same vertex.
(a) number of paths from a to b are 3 ( a-b , a-d-b , a-d-c-b)
(b) number of paths from a to b are 5( a-b , a-d-b , a-d-c-b , a-b-c-d-b , a-b-d-c-b)
(b) number of cycles from a to b are 4( a-b-d-a , a-d-b-a , a-d-c-b-a , a-b-c-d-a)
.

Advertisement
Advertisement

More Related Content

More from sthomas232 (20)

Recently uploaded (20)

Advertisement

Let G be the undirected graph given below- (a) Find the number of path.docx

  1. 1. Let G be the undirected graph given below. (a) Find the number of paths from vertex a to vertex b. (b) Find the number of trails from vertex a to vertex b. (c) Find all cycles starting at vertex a. Solution A path is a walk that does not include any vertex twice, except that its first vertex might be the same as its last. A trail is a walk that does not pass over the same edge twice. A trail might visit the same vertex twice, but only if it comes and goes from a different edge each time. A cycle is a path that begins and ends on the same vertex. (a) number of paths from a to b are 3 ( a-b , a-d-b , a-d-c-b) (b) number of paths from a to b are 5( a-b , a-d-b , a-d-c-b , a-b-c-d-b , a-b-d-c-b) (b) number of cycles from a to b are 4( a-b-d-a , a-d-b-a , a-d-c-b-a , a-b-c-d-a)

×