D1 Flashcards
graph
Consists of vertices (nodes) and edges.
Connected graph.
Has no separate parts
Simple graph
Has no loops and no more than one edge between any pair of nodes
What is the degree (order) of a vertex
The no. of edges incident on it.
Cycle
A closed path
Tree
A simple connected graph with no cycles.
Diagram.
Contains a directed edge
How do you produce a compliment graph?
Take the original graph. If 2 nodes were connected, don’t connect them. If there weren’t connected, connect them
How do you find the sum of the orders in a simple graph?
Multiply the no. of edges by 2 as each edge will have two ends.
What is a network?
Any collection of vertices and edges.
What is a weighted graph (network)?
Has edges will allocated values.
Minimum connector.
Connection of all points with lowest weight.
How does Kruskal’s algorithm work?
Select the shortest edge.
Next shortest that doesn’t give a circle. It doesn’t need to be next to it.
Repeat step 2 until all vertices have been connected
How does Prim’s algorithm work?
Select any vertex.
Select the shortest edge connected to either vertex of the first edge.
Select the shortest edge connected.
Repeat step 3.
When finding the shortest path, what do the sections of the box mean?
The square is split into 3 with 2 sections in the top. The bottom value is the working value. Top left is the order of labeling and the top right is the label.
how could the reliability of a simulation get improved?
do more runs of it
have more, shorter arrival times
more service time to chose from
remove assumptions given in the context.
what is a minimum connector?
Something that connects all the points to all the others with the smallest amount of connection. Use Prims and kruskals for this.
what is a traversable graph?
One that can be drawn without taking pen off the paper, ending at the start and not going over the same line twice. Also called Eulerian
SEMI-EULERIAN.
A graph that can be drawn continuously but only starting from
certain vertices is called SEMI-EULERIAN.
conditions for a eulerian graph?
all the vertices have even degrees
conditions for a semi eulerian graph?
exactly 2 vertices have odd degrees. You would have to start at one of the odd vertices and end at the other.
conditions for a non eulerian graph?
more than 2 vertices have odd degrees.
Why does Kruskal’s always give the same solution for a given graph?
No arbitrary choices are ever made.
What does Dijkstra’s algorithm give you?
The shortest way to get from the starting point to all the other points.