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.
26.2.1. Introduction to Graphs
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
4 cards from this lesson. Good the night before a test.
Try these first
- 1.
What are the two main components of a graph?
Hint
Think about what makes up a graph.
- 2.
What is a directed graph?
Hint
Consider if the connections have a direction or not.
- 3.
What does a directed graph signify?
- Edges have no direction
- Edges have direction
- All edges are weighted
Hint
Think about the meaning of direction in a graph.
- 4.
An adjacency list is more efficient for which type of graph?
- Dense graphs
- Sparse graphs
- Cyclic graphs
Hint
Consider how many edges exist compared to the number of vertices.
- 5.
Design a graph to represent a public transportation system. Describe the vertices, edges, and whether they are directed or undirected.
Hint
Think about how real transport systems connect locations.
- 6.
Explain how you would use BFS to solve a problem in a computer network. What would be the vertices and edges?
Hint
Consider what BFS does and how it explores connected 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
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