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.
23.2.6. Indegree and Outdegree in DAGs
This section
Practice test
12 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 Directed Acyclic Graph (DAG).
Hint
Think about the meaning of directed and acyclic.
- 2.
What does it mean if a vertex has an indegree of zero?
Hint
Consider what would happen if all tasks depended on it.
- 3.
What does DAG stand for?
- Directed Acyclic Graph
- Directed Alluvial Graph
- Dense Acyclic Graph
Hint
Remember the definition of the structure.
- 4.
True or False: Every vertex in a DAG must have a non-zero indegree.
- True
- False
Hint
Consider what happens during task sequencing.
- 5.
You have six tasks: Get Visa, Buy Tickets, Get Passport, Buy Gifts, Get Insurance, Exchange Currency. Create a DAG and provide a topological sort that respects all dependencies.
Hint
Map your tasks with clear dependencies before sorting.
- 6.
List a scenario in a class project where tasks might form a DAG, delineate high indegree tasks versus low indegree tasks, and express which tasks could begin the project.
Hint
Identify tasks that support others and those that start the process.
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
2 more questions 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