Skip to main content

9 docs tagged with "Paradigms"

View all tags

Backtracking: Classic Problems

Classic backtracking problems: permutations, subset sum, N-queens, knight tour, graph coloring, task assignment, magic squares, and Sudoku.

Branch and Bound: Classic Problems

Classic branch-and-bound problems: task assignment, 0/1 knapsack, sliding puzzles, rectangle placement, N-queens, and traveling salesman.

Choosing a Design Technique

Comparing all six design techniques on 0/1 knapsack, coin change, and Fibonacci, with a practical decision guide.

The Backtracking Scheme

Implicit state-space trees, choose-explore-unchoose, first-solution vs. all-solutions schemes, pruning techniques, and complexity.

The Branch and Bound Scheme

Best-first state-space search with priority queues, optimistic bounds, initial pruning limits, and the connection to A*.

The Divide and Conquer Scheme

The divide-and-conquer paradigm, division vs. subtraction schemes, general pseudocode, and three recursive ways to sum a vector.

The Dynamic Programming Method

Overlapping subproblems, memoization vs. bottom-up tables, the principle of optimality, and how to design dynamic programming solutions.

The Greedy Method

The greedy design scheme, proving optimality via greedy-choice and optimal substructure, refuting with counterexamples, and coin change.