Networks and Decision Flashcards
What is a spanning tree?
Tree that has all vertices connected
What is a tree?
No loops, multiple edges, or cycles, and woll always have one less edge than vertices
19km (A-E-G-B-C-H-F-D)
A- Get Up (1 Minute)
B- Have a shower (5 minutes)Must get up first
C- Get dressed (2 minutes)Must have shower first
D- Boil the kettle(2 minutes) Must get up first
E- Make coffee (1 minute)
F- Enjoy Coffee (5 minutes)Must get dressed and make coffee first
G- Prepare and eat breakfast (10 minutes) Must have coffee first
Make a prerequisite table or an activity chart for the information above;
Determine the value of the cuts made on the following diagram (A is source, F is sink):
Cut 1 = 40+50+70=160
Cut 2 = 70+60+40+70=240
Cut 3 = 70+60+80= 210
Recall the hungarian algorithm
- Subtract lowest value in each row from every value in that row
- If the minimum number of lines to cover all zeroes is equal to allocations, go 6
- If a column does not contain a zero, subtract lowest value from every value in column
- If minimum number of lines to cover all zeroes is equal to allocations, go 6
5a. Add the smallest uncovered value to any value covered by two lines, subtract the smallest uncovered from all uncovered values
5b. repeat from step 4
- Draw a directed bi-partite graph with an edge for every zero value
- Make allocation and calculate minimum cost
Bi-partite graph?
Two groups of vertices that are connected to one or more vertices in the other group
What is prims algorithm?
- Choose random vertex and connect to closest vertex
- Choose an unconnected vertex that is closes to any connected
- Repeat step 2 until all vertices are connected to tree