Core Algorithms & Data Structures

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:30 AM on 5/6/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

19 Terms

1
New cards
Stack
Stores elements in LIFO order (last in, first out); operations push/pop; runtime O(1)
2
New cards
Queue
Stores elements in FIFO order (first in, first out); operations enqueue/dequeue; runtime O(1)
3
New cards
Selection Sort
Repeatedly selects minimum and places it in order; runtime O(N^2) always; not stable
4
New cards
Insertion Sort
Inserts elements into sorted prefix; runtime O(N^2) worst, O(N) best; stable
5
New cards
Merge Sort
Divide array into halves and merge sorted halves; runtime O(N log N) worst; stable, not in-place
6
New cards
Quick Sort
Uses pivot and partitioning; runtime O(N log N) average, O(N^2) worst; in-place
7
New cards
Heap Sort
Uses binary heap and repeatedly removes max; runtime O(N log N) worst; not stable, in-place
8
New cards
Radix Sort
Sorts by digits (non-comparison); runtime O(N) for fixed digit size
9
New cards
Priority Queue (Heap)
Data structure supporting insert and delMax/delMin; implemented with binary heap; operations O(log N), peek O(1)
10
New cards
11
New cards
Binary Search Tree (BST)
Tree where left < root < right; search/insert O(log N) average, O(N) worst
12
New cards
Hash Table
Maps keys to indices using hash function; average O(1), worst O(N)
13
New cards
Trie (Prefix Tree)
Tree storing strings character-by-character; operations O(ℓ), ℓ = string length
14
New cards
Graph
Collection of vertices and edges; used to model networks and relationships
15
New cards
Depth-First Search (DFS)
Graph traversal using stack/recursion; explores deep paths first; runtime O(V + E)
16
New cards
Breadth-First Search (BFS)
Graph traversal using queue; explores level-by-level; runtime O(V + E)
17
New cards
Dijkstra’s Algorithm
Finds shortest paths from a source in weighted graph; uses priority queue; runtime O(E log V)
18
New cards
Kruskal’s Algorithm
MST algorithm that sorts edges and uses union-find; runtime O(E log E)
19
New cards
Prim’s Algorithm
MST algorithm that grows tree from a node using priority queue; runtime O(E log V)