D1 Flashcards

1
Q

graph

A

Consists of vertices (nodes) and edges.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Connected graph.

A

Has no separate parts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Simple graph

A

Has no loops and no more than one edge between any pair of nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the degree (order) of a vertex

A

The no. of edges incident on it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Cycle

A

A closed path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Tree

A

A simple connected graph with no cycles.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Diagram.

A

Contains a directed edge

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you produce a compliment graph?

A

Take the original graph. If 2 nodes were connected, don’t connect them. If there weren’t connected, connect them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you find the sum of the orders in a simple graph?

A

Multiply the no. of edges by 2 as each edge will have two ends.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a network?

A

Any collection of vertices and edges.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a weighted graph (network)?

A

Has edges will allocated values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Minimum connector.

A

Connection of all points with lowest weight.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How does Kruskal’s algorithm work?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does Prim’s algorithm work?

A

Select any vertex.
Select the shortest edge connected to either vertex of the first edge.
Select the shortest edge connected.
Repeat step 3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

When finding the shortest path, what do the sections of the box mean?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

how could the reliability of a simulation get improved?

A

do more runs of it
have more, shorter arrival times
more service time to chose from
remove assumptions given in the context.

17
Q

what is a minimum connector?

A

Something that connects all the points to all the others with the smallest amount of connection. Use Prims and kruskals for this.

18
Q

what is a traversable graph?

A

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

19
Q

SEMI-EULERIAN.

A

A graph that can be drawn continuously but only starting from
certain vertices is called SEMI-EULERIAN.

20
Q

conditions for a eulerian graph?

A

all the vertices have even degrees

21
Q

conditions for a semi eulerian graph?

A

exactly 2 vertices have odd degrees. You would have to start at one of the odd vertices and end at the other.

22
Q

conditions for a non eulerian graph?

A

more than 2 vertices have odd degrees.

23
Q

Why does Kruskal’s always give the same solution for a given graph?

A

No arbitrary choices are ever made.

24
Q

What does Dijkstra’s algorithm give you?

A

The shortest way to get from the starting point to all the other points.

25
When drawing a graph to find an optimal solution, what must you always do?
Shade out the area that doesn't apply.
26
If you find the no. of paths on a network( no. of ways round) and you have to find the no. of routes, (where direction doesn't matter) what is it?
Halve the no. of paths
27
What is the complexity of prim's, kruskal's and dijkstra?
First 2 are cubic. Latter qudratic
28
If asked why a graph isn't a tree or cycle, what do you say?
Name the nodes of the diagram that form the feature that makes it not what it says it isn't
29
What is an heuristic algorithm?
One that may not lead to the best possible solution. The bin packing algorithms are examples of these.
30
What is float?
Float is the amount of time by which an activity can be delayed or extended.
31
What is independent float?
Float that doesn't affect other activities.
32
What is interfering float?
Float shared between two or more activities.
33
What are i and j?
i earliest starting time | j latest starting time.
34
What is total float for activity (i,j) ?
Latest event time for event j- earliest event time for event i- duration of activity
35
What is independent float for activity (i,j)
Earliest event time for event j - latest event time for event i- duration of activity (If it gives a negative answer, put 0) Doesen' affect anything else
36
What is interfering float?
Total float - independent float. It is the float shared between two activities. If it was 2, you could spend an extra minute on both, 2 on the first or 2 on the last.
37
With a linear programming question, what do you have to begin with?
Let X be the number of...of... | Let Y be the number of ...of
38
What must you remember when using Prim's algorithm with a table?
Number of columns along the top to give the order you put a line through the corresponding row.