Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What do we call the points in a graph that represent entities?
Think about the city representation in our flight network.
What is an edge in the context of graph representation?
Consider how cities are linked by flights.
What is represented by edges in a graph?
Remember how cities are linked by flights.
True or False: A directed edge indicates a bidirectional relationship.
Consider how some flights operate in one direction.
Design a graph representation for a small airline network with at least ten cities and various directed paths. Then, specify which data structure you would use and justify your choice.
Consider how many connections there are versus the total number of cities to decide on the structure.
If you needed to find the shortest path from city A to city D in a network of five cities and some paths are blocked, outline how you would adjust your graph and modify your approach using an efficient algorithm.
Think about how removing paths alters the network and impacts computational strategies.
5 more questions in this section. Enroll free to practise them all.
Enroll free