In an adjacency list representation of a graph, what is stored for each vertex?
- AThe total number of edges in the graph
- BA list of its neighbouring vertices
- CThe shortest path to every other vertex
- DA row of V Boolean values
In an adjacency list representation of a graph, what is stored for each vertex?
In a singly linked list, each node contains:
Which data structure is used to perform a level-order traversal of a tree?
Which data structure does a running program use to keep track of active function calls and their local variables?
What is the time complexity of searching for a key in a balanced binary search tree?
What is true of the adjacency matrix of an undirected graph?
Under simple uniform hashing, what is the expected time of a search in a hash table with chaining, n keys and m buckets?
Kahn's algorithm for topological sorting repeatedly removes vertices with in-degree 0. Which structure holds those vertices?
Full step-by-step solutions: practise this topic on examproblems.com.