Algorithm Purposes

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/11

flashcard set

Earn XP

Description and Tags

Different Algorithms and their Uses

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

Kruskal’s Algorithm

Finding the minimal spanning tree of a graph. Good for sparse graphs.

2
New cards

Prim’s Algorithm

Finding the minimal spanning tree of a graph. Good for dense graphs.

3
New cards

Dijkstra’s Algorithm

Find’s the shortest path in a weighted graph with non negative weights.

4
New cards

Warshall’s Algorithm

Creates a transitive closure matrix for a graph that determines whether you can reach vertex t from vertex s.

5
New cards

Breadth-First-Search

Finds shortest path from starting vertex to all other vertices. Searching a tree/graph wide but shallow. Uses a Queue ADT.

6
New cards

Depth-First-Search

Can check if a path exists between two vertices. Searches deep but not wide. Uses a Stack ADT.

7
New cards

Quick Sort

Best to sort randomly sorted data. Not good for sorted data. Unstable, non-adaptive, in-place.

8
New cards

Radix Sort

Non-Comparison based sorting. Stable, non-adaptive, not in-place

9
New cards

Selection Sort

Sorting data, unstable, non-adaptive, IN-PLACE!

10
New cards

Bubble Sort

Sorting data, Stable, adaptive, in-place

11
New cards

Insertion Sort

Sorting data. Stable, Adaptive, In-Place.

12
New cards

Merge Sort

Used for sorting arrays mostly. STABLE. Non-adaptive, not in-place.