Chapter 3 - Algorithms on graphs

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

minimum spanning tress

spanning tress such that the total length of its arcs is as small as possible

2
New cards

what can you use kruskals algorithm for

to find a minimum spanning tree

3
New cards

kruskals algorithm

  • sort all arcs into ascending order of weight

  • select the arc of least weight to start the tree

  • then add arcs in order of ascending weight unless an arc would form a cycle then reject it

4
New cards

what can you use prims algorith for

to find minimum spanning tree

5
New cards

prims algorithm

  • choose any vertex to start the tree

  • then select an arc of least weight that joins a vertex already in the tree to a vertex not yet in the tree repeat till all vertices are connected

6
New cards

prims algorithm for distance matric

  • choose any vertex to start the tree

  • delete the row in the matrix for the chosen vertex

  • number the column in the matrix for the chosen vertex

  • put a ring round the lowest undeleted entry in the numbered columns

  • the ringed entry becomes the next arc to be added to the tree

  • repeat till all rows have been deleted

7
New cards

whats dijkstras algorithm used for

to find shortest path between 2 vertices in a network

8
New cards

dijkstras algorithm

knowt flashcard image
9
New cards

what can you use floyds algorith mfor

to find shortest path between every pair of vertices

10
New cards

floyds algorithm

knowt flashcard image