Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
22.4.2.2. Classifying Non-Tree Edges
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
3 cards from this lesson. Good the night before a test.
Try these first
- 1.
Define a tree edge.
Hint
Think about the edges used during BFS or DFS.
- 2.
What is a cycle in a graph?
Hint
Consider the structure of a loop in a path.
- 3.
What is a tree edge in graph traversal?
- An edge that connects any two nodes.
- An edge used to visit a vertex.
- An edge not used in traversal.
Hint
Think about the edges that allow you to explore new vertices.
- 4.
Does a directed graph have cycles if a back edge exists?
- True
- False
Hint
Recall the definition of a back edge presented in class.
- 5.
Given a directed graph defined by edges: (1, 2), (2, 3), (3, 1), (4, 5), and (5, 4), identify the cycles present.
Hint
Look for edges that link back to previously visited nodes.
- 6.
Using a BFS algorithm, identify if the graph contains cycles and classify the edges in a graph presenting: (A, B), (B, C), (C, A), (D, E).
Hint
Trace the graph traversal to see if any nodes revisit earlier nodes.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
1 more question available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting