2,518 views
3 3 votes
Consider a graph where vertex having number 2 to 12 (including 2 and 12), there is an edge between two vertex x and y iff x divides y

Find number of strongly connected components

3 Answers

Best answer
1 1 vote

A graph G is strongly connected if for all u, v there is a path from u to v and a path from v to u.

The strong components of a digraph are the maximally strong connected subgraphs


Suppose two vertices x and y , y(suppose 12) is divisivle by x(suppose 2)
x(2)-------->y(12)

But from y(12) we cannot reach x(2) as 2 is not divisible by 12.

So, all the vertices are strongly connected components.

Answer should be 11.

• selected by
1 1 vote

Correct.

For example, if 6 is divisible by 3, then 3 will not be divisible by 6 and so there won't be any cycle in the graph. And so each node itself will be strongly connected and so answer will be 11.

• edited by
0 0 votes
I think it is 0, since an edge can only be present from a lower number to a higher number, hence the lower vertices cannot be reached from higher ones. So each vertex will be a component. Any thoughts?
Position:
Show:

Related questions

1 1 vote
1 1 answer
786
786 views
gatecse asked Sep 13, 2019
786 views
Let $G=(V,E)$ be an undirected graph and $V=\{1,2,\cdots,n\}.$ The input graph is given to you by a $0-1$ matrix $A$ of size $n\times n$ as follows. For any $1\leq i,j\...
3 3 votes
1 answers 1 answer
939
939 views
Arjun asked Oct 10, 2016
939 views
The maximum number of possible edges in an undirected simple graph with $100$ vertices and $5$ components is ___
0 0 votes
2 answers 2 answers
1.9k
1.9k views
Tesla! asked Apr 30, 2017
1,906 views
Consider a graph where vertex having number 2 to 12 (including 2 and 12), there is an edge between two vertex x and y iff x divides yWhat would be maximum path length bet...
1 1 vote
1 1 answer
974
974 views
Tesla! asked Apr 30, 2017
974 views
Consider a graph where vertex having number 2 to 12 (including 2 and 12), there is an edge between two vertex x and y iff x divides yWhich vertex will have highest in deg...