edited by
468 views
1 votes
1 votes
Let $K_{n}$ denote the complete graph on $n$ vertices, with $n \geq 3$, and let $u, v, w$ be three distinct vertices of $K_{n}$. Determine the number of distinct paths from $u$ to $v$ that do not contain the vertex $w$.
edited by

1 Answer

3 votes
3 votes
A path between two vertices is defined as a sequence of edges such that no vertex is repeated.

In a complete graph $K_n$, every vertex is connected with all other $n-1$ vertices.

 

Below, each $\circ$ represents a placeholder in our path, which can be occupied by any of the remaining $n-3$ vertices such that it is not repeated.

Length $1$ paths are of the form : $u - v$

No. of length $1$ paths = $1$

 

Length $2$ paths are of the form : $u - \circ - v$

No. of length $2$ paths = ${n-3 \choose 1} * 1!$

ie we choose $1$ vertex from the remaining $n-3$ vertices and chosen vertex can permute in $1!$ way.

 

Length $3$ paths are of the form : $u - \circ - \circ - v$

No. of length $3$ paths = ${n-3 \choose 2} * 2!$

ie we choose $2$ vertices from the remaining $n-3$ vertices and chosen vertices can permute in $2!$ ways.

 

Length $4$ paths are of the form : $u - \circ - \circ - \circ - v$

No. of length $4$ paths = ${n-3 \choose 3} * 3!$

ie we choose $3$ vertices from the remaining $n-3$ vertices and chosen vertices can permute in $3!$ ways.

.

.

.

No. of length $n-2$ paths = ${n-3 \choose n-3} * (n-3)!$

ie we choose $n-3$ vertices from the remaining $n-3$ vertices and chosen vertices can permute in $(n-3)!$ ways.

 

We can re-write : No. of length $1$ paths = ${n-3 \choose 0} * 0!$

 

$\therefore$ Total no. of distinct paths = $\sum_{k=0}^{n-3} \left( kk! * {n-3 \choose k} \right)$.

Assume $z=n-3$, we can now re-write : Total no. of distinct paths $= T(z) = \sum_{k=0}^{z} \left( k! * {z \choose k} \right) = \sum_{k=0}^{z} \left( \frac{z!}{(z-k)!} \right)$

$\therefore T(z) = 1 + z + z(z-1) + z(z-1)(z-2) + … + z*(z-1)!$

$\therefore T(z) = 1 + z * \left( 1 + (z-1) + (z-1)(z-2) + … + (z-1)! \right)$

$\therefore T(z) = 1 + z * T(z-1)$.

The above recurrence relation $T(z)$ with base case $T(0) = 1$ gives the number of distinct paths in $K_n$ graph from $u$ to $v$ that do not contain $w$ and $z = n-3$.

Related questions

1 votes
1 votes
1 answer
1
0 votes
0 votes
0 answers
3
1 votes
1 votes
1 answer
4
admin asked Aug 8, 2022
443 views
Consider a stack machine where the only available workspace is a stack whose elements are unsigned integers. We will denote the configuration of the stack by a sequence. ...