Problem on Graph Theory and Algorithms

Click For Summary
SUMMARY

The discussion centers on the properties of connected graphs in relation to their subgraphs, specifically addressing the concept of "good" graphs. A connected graph G is defined as good if there exist at least two distinct vertices x and y such that both G−x and G−y remain connected. The participants explore the implications of this definition, with one user demonstrating a linear time algorithm for identifying such vertices by utilizing a spanning tree. However, a counterexample is presented, illustrating that a subgraph H can be good while its parent graph G may not be, thus challenging the initial assumption.

PREREQUISITES
  • Understanding of connected graphs and their properties
  • Familiarity with spanning trees in graph theory
  • Knowledge of graph algorithms and their time complexities
  • Basic concepts of subgraphs and their relationships to parent graphs
NEXT STEPS
  • Study the properties of cycle graphs, specifically C4, and their implications in graph theory
  • Learn about graph traversal algorithms, such as Depth-First Search (DFS) and Breadth-First Search (BFS)
  • Explore advanced graph theory concepts, including connectivity and vertex cuts
  • Investigate the implications of graph modifications on connectivity and subgraph properties
USEFUL FOR

Graph theorists, computer scientists, and algorithm developers who are interested in the properties of connected graphs and their applications in algorithm design and analysis.

Chinta
Messages
8
Reaction score
0
The problem is as follows:
---------------------------------------------------------------------------------------------------------------------------------
Let G be a connected graph.

For a vertex x of G we denote by G−x the graph formed by removing x and all edges incident on x from G. G is said to be good if there are at
least two distinct vertices x,y in G such that both G − x and G − y are connected.

(i) Show that for any subgraph H of G, H is good if and only if G is good.

(ii) Given a good graph, devise a linear time algorithm to find two such vertices.

(iii) Show that there exists a graph G such that we cannot find three distinct vertices
u1,u2,u3such that each of G − u1,G − u2, and G − u3 is connected.
---------------------------------------------------------------------------------------------------------------------------------
I have approached to some extent. Here is what I've done:

If G is a connected graph then we can easily find its spanning tree and then removing any two leaves x and y from the tree one at a time gives us 2 another graphs G − x and G − y such that they are both connected.

"Hence any connected graph G is a good graph."

1. I'm stuck on how to solve part (i).

2. I have designed the algorithm for the part(ii) which extracts the spanning tree from G and then finds two such leaves x and y. Clearly
it is linear in terms of #vertices(=n) & #edges(=m) i.e. O(n+m)

3. I have also solved the third part with a graph as follows:

O------------------O-----------------O

In the above graph G we denote three vertices as u1, u2, u3. The edges are (u1,u2) and (u2,u3). Clearly G − u2 is not connected.

Please help me in solving part(i).

Thanks in advance :)
 
Physics news on Phys.org
Chinta said:
The problem is as follows:
---------------------------------------------------------------------------------------------------------------------------------
Let G be a connected graph.

For a vertex x of G we denote by G−x the graph formed by removing x and all edges incident on x from G. G is said to be good if there are at least two distinct vertices x,y in G such that both G − x and G − y are connected.

(i) Show that for any subgraph H of G, H is good if and only if G is good.

(ii) Given a good graph, devise a linear time algorithm to find two such vertices.

(iii) Show that there exists a graph G such that we cannot find three distinct vertices
u1,u2,u3such that each of G − u1,G − u2, and G − u3 is connected.
---------------------------------------------------------------------------------------------------------------------------------
I have approached to some extent. Here is what I've done:

If G is a connected graph then we can easily find its spanning tree and then removing any two leaves x and y from the tree one at a time gives us 2 another graphs G − x and G − y such that they are both connected.

"Hence any connected graph G is a good graph."

1. I'm stuck on how to solve part (i).

2. I have designed the algorithm for the part(ii) which extracts the spanning tree from G and then finds two such leaves x and y. Clearly
it is linear in terms of #vertices(=n) & #edges(=m) i.e. O(n+m)

3. I have also solved the third part with a graph as follows:

O------------------O-----------------O

In the above graph G we denote three vertices as u1, u2, u3. The edges are (u1,u2) and (u2,u3). Clearly G − u2 is not connected.

Please help me in solving part(i).

Thanks in advance :)

Hi Chinta, :)

I think the first statement that you want to prove is in fact a false statement. For example take \(H=C_{4}\) where \(C_{4}\) is the cycle graph of four vertices. Now let \(G\) be the graph obtained by adding a single vertex to \(H\). Then it is clear that \(H\) is a sub-graph of \(G\). However, \(H\) is a good graph but \(G\) is not a good graph.

By the way can you please tell me where you found this question? :)

Kind Regards,
Sudharaka.
 
Actually I've got this answer that the question was wrong right after I posted the problem here a long time ago...I myself figured it out but forgot to post it here. :D

Anyway thanks for your solution too.

I got this question from a graph theory tutorial in internet actually.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K