Data Structures and Algorithms MCQ - Graph Algorithm
Edge set consist edges it j = i + 1 or j = 3i
The edge sequence with minimum no of edges is
1 – 3 – 9 – 10 – 11
|
100 – 99 – 33
Which consist 7 edges
The most efficient algorithm for finding the
number of connected components (articulation
point) in an undirected graph on n vertices and n
edges using depth-first search takes O(m + n)
time.Assume n ≤ m
Usinng BFS traversal we can set the twin pointer
in each entry in each adjacency list. So it will
take O(m + n) time.


So total solution 6



