Exam Q Flashcards

1
Q

State three differences between Prim’s algorithm and Kruskal’s algorithm.

A

1) Kruskal starts with the shortest arc, Prim starts with any node.
2) You have to check for cycles when using loops, not with prim
3) Prim can be used when the network is given in matrix form.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
define tree
(kuskall)
A

a tree is a connected graph with no cycles

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

define minimum spanning tree

A

a tree which includes all the nodes and has a minimum weight

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

how do you know if your minimum spanning tree is unique. Justify your answer. (kuskall)

A

its not unique if one path of the same length has been chosen over another path of the same length

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

State whether your minimum spanning tree is unique. Justify your answer. (model answer) (june 2011)

A

The tree is not unique because EF could have been chosen instead of CF

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

Explain why a complete matching is not possible.

A

both K and G can only be allocated to R

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

define the term ‘total float’

A

the total float is the total amount of time that an activity can be delayed from its early start without delaying the project finish time.

Total float = latest finish – earliest start – duration of activity

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

2 reasons for needing a dummy

A

1st reason – no two activities must share the same start and end event

2nd reason – J depends on D and G but I depends on D only

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

Explain how you determined your shortest route from your labelled diagram.
(Dijkstra)

A

do what you do when highlighting backwards to find route
last value-path length=previous value: write path.
so just write:
71 – 12 = 59 : GH
59 – 10 = 49 : EG
49 – 10 = 39 : FE
39 – 15 = 24 : DF
24 – 13 = 11 : CD
11 – 11 = 0 : AC
*the routes are written in order as if you were going from the start to finish, not backwards like how you find the path.

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

The track between E and F is now closed for resurfacing and cannot be used.
(Dijkstra)

A

find whichever path is closed then choose a new route that goes to the end of the closed path, then carry on along the original route you had found to be the shortest originally.

IN SHORT: get the original route, then find the shortest way to bypass the closed route, then carry on along the original route.

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

By considering the activities that must take place between time 7 and time 16, explain why it is not possible to complete this project with just 3 workers in the minimum time.

A

Between days 7 and 16, there are 9 days to do work. With 3 workers you can get (3x9) 27 days work done.

Activities C, D, E, F, G, H, I and 4 days of J are all between days 7 and 16 and need to be done. adding up the total job duration of all jobs, it would be 31 days work.
since 3 workers can only do 27 days work, it is not possible to complete the project with three workers.

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

with binary search, how do you end every question

A

you MUST write:
single item list so 7 | L.
then..
search complete + ‘found’

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

Explain why J, rather than C1 or C2, should be chosen as the starting vertex.

A

We would only need to apply Dijkstra’s algorithm once.

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

use your gannt chart to determine the minimum number of workers required to complete the process in the minimum time.

A

four workers are required because at day 14.5; I, E, H and C MUST all be happening.

look for any events that cannot be moved out the way, it doesn’t really matter what day it takes place on as long as you state the day and how many actvities are taking place. e.g. you could just as well have said on day 15…

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

Define ‘bipartite graph’

A

A graph which consists of two sets of vertices, where the edges only join vertices to the other set, not vertices within a set

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