Educational Cards

Learn from video content, text, and interactive tasks

Filters
Clear
Coarse Open Addressing

Open addressing stores entries directly in the table and searches for alternative slots in case of...

Intermediate Algorithms and Data Structures
State Space and Cuts

Pruning cuts off branches that can no longer reach a valid solution. Early conflict tests save...

Intermediate Algorithms and Data Structures
Recursion with Decision

Pattern: for each option: if valid: apply; if solve(): return true; undo; return false. Base case:...

Beginner Algorithms and Data Structures
Backtracking: Attempt and Reversion

Backtracking explores a decision tree: make a choice, proceed recursively, undo the choice, try the...

Beginner Algorithms and Data Structures
n-Queens Idea

n-Queens: Place n queens such that no two threaten each other (same row, column, diagonal)....

Beginner Algorithms and Data Structures
Mutable State and Undo

Often, a shared board array is mutated: set field, recursive call, reset field. An alternative is...

Intermediate Algorithms and Data Structures
Small Implementation: Subset Sum

Classic subproblem: is there a subset with a given sum? Decide for each element: take it or leave...

Intermediate Algorithms and Data Structures
Graphs: Adjacency List

A graph consists of nodes and edges. A node-based adjacency representation stores the list of...

Beginner Algorithms and Data Structures
Weighted Edges and Dijkstra's Idea

Dijkstra finds the shortest paths for non-negative edge weights. A PriorityQueue selects the next...

Intermediate Algorithms and Data Structures
BFS and Queue

BFS explores in layers: a queue holds the frontier. Marking visited nodes prevents multiple visits....

Beginner Algorithms and Data Structures
DFS and Recursion

DFS goes deep: Recursion or explicit stack. Useful for connectivity, cycle detection, and...

Intermediate Algorithms and Data Structures
Short implementation: Count neighbors

Small implementation exercise: The degree of a node in an adjacency list is the length of its...

Intermediate Algorithms and Data Structures