What is connectivity information?
What are graphs?
Define adjacent, incident edge, outgoing edge, incoming edge and degree in regards to graphs
What are the formula’s for the number of edges in a directed and undirected graph?
What is a simple graph?
What is the sum of the max number of edges a simple directed/undirected graph should have?
for a graph G of n vertices and m edges:
- undirected: m = n(n-1)/2 to remove repeated connections
- directed: m <= n(n-1)
What is a walk, path, circuit, cycle and directed walk in regards to graphs?
What is a subgraph, spanning subgraph, connected graph and not connected graph in regards to graphs?
What is a forest, a tree and a tree with a rooted tree and spanning tree?
What are the 4 facts that hold for Graphs?
What are two methods we can use to represent graphs?
What is an adjacency list?
What is an adjacency matrix?
Digraphs, reachability
What are the two common graph searching methods?
BFS and DFS
- BFS explores layer by layer, visiting all the neighbours/adjacent nodes of a node before progressing to the next layer/node, it does this until all nodes have been visited
- DFS progresses as far down one route/path and then backtracks and goes as far down the next path as it can, it does this until all nodes are visited
What do we use to realise an implementation of BFS and DFS
What is a weighted graph
Graphs can have weights (numerical values) along their edges or vertices, representing the cost perhaps of visiting/traversing them
What is single source shortest paths problem?
What is Dijkstra’s algorithm?
What is edge relaxation
What is the running time of Dijkstra’s algorithm?
O((n+m)logn)