Data Structures and Algorithms MCQ - Graph Algorithm

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.

Statement (i) is true.
(i) No edges of G is a cross edge with respect to TD.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.

In DFS if ‘v’ is visited after ‘u’ then one of the following is true.
(i) if (u, v) is an edge

(ii) if ‘u’ is x leaf node
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.
Share this question
Share:

(1) a b e g h f
(3) a b f h g e
(4) a f g h b e is possible DFS of given graph.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.

If n vertex and K edges are there then the number of connected component in the graph is n – K.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.


For the above graph, conducting depth First scarch:
Stack : A
Stack : DBC Tree : A
Stack : EBC Tree : A / D
Stack : BC Tree : A / D / E
Stack : BC
Stack : Φ Tree :

Considering l eaf nodes E and C, t he gi ven condition is satisfied as their degrees are more than one. But none of (A), (B) or (C) hold.
But a cycle consisting of E and all its neighbour hold.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Why Practice with Avatto?
High Quality MCQsExam-focused questions with accurate answers
Detailed ExplanationsStep-by-step explanations to enhance learning
Latest Exam PatternBased on updated syllabus and pattern
Performance AnalyticsTrack performance and improve weak areas
100% Free PracticePractice unlimited questions for free
Boost Your PreparationAttempt mock tests, previous year papers and topic-wise quizzes.Explore All Tests →