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.
21.1.5. DFS Numbering Technique
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
2 cards from this lesson. Good the night before a test.
Try these first
- 1.
What does DFS stand for?
Hint
Think about different types of search strategies in graph theory.
- 2.
What is a pre-number in the context of DFS?
Hint
Recall the sequence of actions taken when visiting a vertex.
- 3.
What does DFS stand for?
- Depth First Search
- Depth First State
- Depth Search First
Hint
Remember the traversal style it represents.
- 4.
True or False: Pre numbers assigned in DFS indicate the exit time of a vertex.
- True
- False
Hint
Consider the definitions of pre versus post numbers.
- 5.
Given a directed graph, perform a DFS starting from vertex A and describe the changes in pre and post numbering.
Hint
Make sure to carefully track when you enter and exit each vertex.
- 6.
Analyze a graph with cycles using DFS. How do the pre and post numbers reveal the presence of cycles?
Hint
Look carefully at how your exit times relate to your entry times for detecting cycles.
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