click below
click below
Normal Size Small Size show me how
Algos
OCR-MEI algorithms
| Term | Definition |
|---|---|
| Node/Vertex | A point on the graph which can be connected |
| Arc/Edge | The line which joins two nodes. An arc must have a vertex at each end. |
| Graph | A collection of nodes joined by edges |
| Loop | An edge which has the same vertex at both ends |
| Order (of an arc) | Number of edges incident on an arc. (Loops count twice) |
| Connected | Every vertex is joined by a path to every other vertex |
| Simple | No loops and now repeated edges (UV and UV or UU) |
| Tree | A simply connected graph with the minimum number of arcs |
| Complete graph (not explicitly on spec) | A simply connected graph with the maximum number of edges. I.e. all pairs of arcs have an edge. |
| Bipartite | When the vertices partition into two sets and there are no edges connecting arcs within the SAME set. |
| Complete Bipartite graph | A simply connected bipartite graph with the max edges while still being bipartite. |
| Digraph | A graph with directed arcs. |
| Network | A weighted graph |
| Weight | A numerical value assigned to an edge. |
| Kruskal's | Continuously select the arc with the smallest weight which doesn't form a cycle until n-1 selected. |
| Prim's | Choose any node and add it to T. Choose the arc of minimum weight from T to non-T and add the node it connects. Continue until all nodes are in T. |
| Tabular Prims | Select a node from the columns. Cross out its row. Number 1. Select the lowest weighted arc from a numbered column not crossed out. Number the associated column and cross out its row. |
| Dijkstra's | Starting node is order 1 label 0. Fill in all adjoining nodes with path total path length on that route. Select the node with currently shortest length, next order. Repeat. |