Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does a vertex represent in a graph?
Think about the dots in a graph.
How does an adjacency matrix represent a graph?
Remember the rows and columns represent vertices.
What is the main advantage of an adjacency list?
Think about how many edges there are in a sparse graph.
True or False: An adjacency matrix can easily represent the absence of edges.
Consider what happens in a sparse graph.
Consider a directed graph represented by an adjacency list. How many different edges can the graph contain if you have 'n' vertices? Provide a general formula and an example.
Think about how many unique connections can exist.
Given a sparse graph represented using an adjacency list, describe the impact on time complexity when attempting to find all neighbors of a node versus using a dense graph with an adjacency matrix.
Consider how many edges relative to nodes influence the retrieval processes.
6 more questions in this section. Enroll free to practise them all.
Enroll free