CS 332: Algorithms

Administrivia

Review: Amortized Analysis

Review:
Analysis Of Dynamic Tables

Review: Aggregate Analysis

Review: Accounting Analysis

Review: Accounting Analysis

Review:
Longest Common Subsequence

LCS Algorithm

Finding LCS Length

Optimal Substructure of LCS

Structure of Subproblems

Memoization

Dynamic Programming

Dynamic Programming

Greedy Algorithms

Activity-Selection Problem

Activity-Selection

Activity Selection:
Optimal Substructure

Activity Selection:
Repeated Subproblems

Greedy Choice Property

Activity Selection:
A Greedy Algorithm

The End