Exercise about connected graphs

In summary, the shortest path between two vertices in a connected graph can be represented as a series of vertices, where each vertex is connected to the next vertex in the series. There cannot be any repeated vertices in this series, and if there exists an edge between two vertices that are not adjacent in the series, then there must be a shorter path between the two vertices. Therefore, the distance between two vertices is the minimum number of edges in the shortest path between them.
  • #1
mathmari
Gold Member
MHB
5,049
7
Hey! :eek:

I got stuck at the following exercise... Could you give me an idea how to show this?

Let $G=(V,E)$ be a connected graph and $u,v$ $\epsilon$ $V$.If $d(v,u)=k$,then there is a path $v=v_{1},v_{2},...,v_{k+1}=u$ so that $\{v_{i},v_{j}\}$ doesn't belong in $E$ for $j \geq i+2$. Especially,there can't be repeated vertices.
 
Physics news on Phys.org
  • #2
And what is $d(u,v)$?
 
  • #3
Evgeny.Makarov said:
And what is $d(u,v)$?

$d(u,v)$ is the minimum distance from the vertex u to the vertex v.
 
  • #4
By distance I assume the number of edges in a path from $u$ to $v$. Then the path of this minimal length has the required property, doesn't it? Otherwise it could be shortened.
 
  • #5
mathmari said:
Hey! :eek:

I got stuck at the following exercise... Could you give me an idea how to show this?

Let $G=(V,E)$ be a connected graph and $u,v$ $\epsilon$ $V$.If $d(v,u)=k$,then there is a path $v=v_{1},v_{2},...,v_{k+1}=u$ so that $\{v_{i},v_{j}\}$ doesn't belong in $E$ for $j \geq i+2$. Especially,there can't be repeated vertices.
Just as Evgeny mentioned, you can argue by contradiction.

Since $d(u,v)=k$, the shortest path between $u$ and $v$ has length $k$.
Let $v=v_1,\ldots,v_{k+1}=u$ be a shortest path between $u$ and $v$ and call this path $P$.
Assume there exists $i$ and $j$ with $j\geq i+2$ such that $v_iv_j\in E$.

Can you construct a path between $u$ and $v$ which is shorter than $P$?
 
  • #6
caffeinemachine said:
Just as Evgeny mentioned, you can argue by contradiction.

Since $d(u,v)=k$, the shortest path between $u$ and $v$ has length $k$.
Let $v=v_1,\ldots,v_{k+1}=u$ be a shortest path between $u$ and $v$ and call this path $P$.
Assume there exists $i$ and $j$ with $j\geq i+2$ such that $v_iv_j\in E$.

Can you construct a path between $u$ and $v$ which is shorter than $P$?

Assuming that there exists $i$ and $j$ with $j \geq i+2$ such that $v_iv_j \in E$, then there is a path between $u$ and $v$ whose distance is less than k, that means that there is a path which shorter than $P$.
 
  • #7
mathmari said:
Assuming that there exists $i$ and $j$ with $j \geq i+2$ such that $v_iv_j \in E$, then there is a path between $u$ and $v$ whose distance is less than k, that means that there is a path which shorter than $P$.
Yes. Does that solve your problem?
 
  • #8
I found in my notes the following proof:

If $\{v_i,v_j\} \in E$ for $i,j$ with $j \geq i+1$.
Then the path is $v=v_1, ... , v_i, v_j, v_{j+1}, ..., v_{k+1}=u$ which length is $ i-1+1+(k+1)-j=k-(j-i)+1 \leq k-2+1=k-1$.
$v_j=v_i$ for $j>i$ then $\{v_i,v_{j+1}\}=\{v_j,v_{j+1}\}$

Could you explain me how we calculated the length $ i-1+1+(k+1)-j=k-(j-i)+1 \leq k-2+1=k-1$ ?
I assume that we have calculated the length of the path $v_1, ..., v_i$, which is $i-1+1$ and then the length of the path $ v_j, ..., v_{k+1}$ which is $ k+1-j+1=k-j+2$, isn't?
 
  • #9
mathmari said:
I found in my notes the following proof:

If $\{v_i,v_j\} \in E$ for $i,j$ with $j \geq i$+$1$. (I believe you meant $2$ rather than $1$.)
Then the path is $v=v_1, ... , v_i, v_j, v_{j+1}, ..., v_{k+1}=u$ which length is $ i-1+1+(k+1)-j=k-(j-i)+1 \leq k-2+1=k-1$.
$v_j=v_i$ for $j>i$ then $\{v_i,v_{j+1}\}=\{v_j,v_{j+1}\}$ $\leftarrow$ I do not understand this line.

Could you explain me how we calculated the length $ i-1+1+(k+1)-j=k-(j-i)+1 \leq k-2+1=k-1$ ?
I assume that we have calculated the length of the path $v_1, ..., v_i$, which is $i-1+1$ and then the length of the path $ v_j, ..., v_{k+1}$ which is $ k+1-j+1=k-j+2$, isn't?
How did calculate the length of the path?
It is kind of immediate from the definition of length of path.
How many edges are there in the path $v=v_1,\ldots,v_i,v_j,v_{j+1},\ldots,v_{k+1}=u$?
(Remember that a path is actually a graph.)

There are $l=\underbrace{(i-1)}_{\text{from } v \text{ to } v_i}+\underbrace{1}_{\text{for the edge between }v_i \text{ and } v_j}+\underbrace{(k+1-j)}_{\text{from } v_j \text{ to } u}$.

This gives $l=i-j+k+1$.
Now since $i-j\leq -2$, we have the $l\leq k-1$.
 
  • #10
caffeinemachine said:
How did calculate the length of the path?
It is kind of immediate from the definition of length of path.
How many edges are there in the path $v=v_1,\ldots,v_i,v_j,v_{j+1},\ldots,v_{k+1}=u$?
(Remember that a path is actually a graph.)

There are $l=\underbrace{(i-1)}_{\text{from } v \text{ to } v_i}+\underbrace{1}_{\text{for the edge between }v_i \text{ and } v_j}+\underbrace{(k+1-j)}_{\text{from } v_j \text{ to } u}$.

This gives $l=i-j+k+1$.
Now since $i-j\leq -2$, we have the $l\leq k-1$.

Oh yes, I calculated the number of vertices between $v$ and $u$ instead of the number of edges. :eek:
That's why I found an other result..

So, since $ l<k-1$, there is also a shorter path, but that contradicts to that what we have assumed, that the length of the shortest path is $k$. So it cannot be $j \geq i+2$.
 

FAQ: Exercise about connected graphs

What is a connected graph?

A connected graph is a type of graph where there is a path between any two vertices. This means that all vertices in the graph are somehow connected to each other.

How do you determine if a graph is connected?

To determine if a graph is connected, you can use a graph traversal algorithm such as Depth-First Search (DFS) or Breadth-First Search (BFS). If the algorithm is able to visit all vertices in the graph, then the graph is connected.

What is the significance of connected graphs in exercise?

Connected graphs are important in exercise because they represent a network of interconnected nodes or vertices. This can be useful in understanding relationships and connections between different data points, such as in social networks or transportation systems.

What are some real-life applications of connected graphs?

Connected graphs have many real-life applications, such as in computer networks, transportation systems, social networks, and electrical circuits. They can also be used in data analysis and modeling, such as in studying the spread of diseases or analyzing internet traffic.

Are there any variations of connected graphs?

Yes, there are variations of connected graphs, such as strongly connected graphs, weakly connected graphs, and minimally connected graphs. These types of graphs have specific properties that make them useful in different scenarios, such as in directed graphs or in analyzing the robustness of a network.

Similar threads

Replies
6
Views
1K
Replies
1
Views
2K
Replies
8
Views
706
Replies
1
Views
1K
Replies
1
Views
2K
Replies
3
Views
1K
Back
Top