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.
19.5. Naive Algorithm for Computing Connectivity Relation
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 is a connectivity relation?
Hint
Consider a directed graph.
- 2.
How do you calculate R^n?
Hint
Think about the definition of matrix multiplication.
- 3.
What is the main purpose of the connectivity relation?
- To show direct relationships only
- To indicate possible paths between elements
- To count elements in a set
Hint
Think about what 'connectivity' means.
- 4.
The naive algorithm has a computational complexity of ...
- True
- False
Hint
Recall the steps of the algorithm.
- 5.
Given a directed graph representing friendships among students, construct the connectivity relation of the graph. Show how many levels of friendship exist between every two nodes.
Hint
Visualize paths in the directed graph.
- 6.
Discuss how an optimized algorithm could improve the computation of connectivity relations. What changes would you propose?
Hint
Research alternatives that directly improve the performance.
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