networks Flashcards
1
Q
what do you do for kruskal’s algorithm?
A
select smallest length
keep on selecting smallest length left
NO LOOPS
number of lines = vertices - 1
2
Q
what do you do for prim’s algorithm?
A
choose a starting vertex
connect to nearest small length
repeat until all lines connected
NO LOOPS
3
Q
what do you do for prim’s algorithm in a table?
A
start at A
look down A column and pick smallest
cross off the two letters rows
look at both vertices and pick smallest
repeat
4
Q
what do you do for dijkstra’s algorithm?
A
start at A
write down all temporary values for edges
pick smallest and make permanent
repeat
at end follow back to find shortest path
5
Q
A