Outline:

  • Basic Idea of Dynamic Programming(DP)
    • Smart scheduling of subproblems
  • Minimum Cost Matrix Multiplication
    • BF1, BF2
    • A DP solution
  • Weighted Binary Search Tree
    • The "same" DP with matrix multiplication
  • From the DP perspective
    • All-pairs shortest paths SSSP over DAG
  • More DP problems
    • Edit distance
    • Highway restaurants; Separating Sequence of words
    • Changing coins
  • Elements of DP

Ref:

  • 算法设计与分析(Algorithm design and analysis) by 黄宇
Read more »

Outline:

  • Single-Sources shortest paths( SSSP )

    • Dijkstra algorithm by example
    • Priority queue-based implementation
    • Proof of correctness
  • All-pairs shortest paths( APSP )

    • Shortest path and transitive closure
    • Warshall algorithm for transitive closure
      • BF1, BF2, BF3 => Warshall algorithm
      • Floyd algorithm for shortest paths

Ref:

  • 算法设计与分析(Algorithm design and analysis) by 黄宇
Read more »

Outline:

  • Optimization Problem
  • Greedy Strategy

Ref:

  • 算法设计与分析(Algorithm design and analysis) by 黄宇
Read more »

DAG(Directed Acyclic Graph), DAG's topological ordering and SCC(Strongly Connected Component).

Ref: 算法设计与分析(Algorithm design and analysis) by 黄宇.

Read more »

Outline:

  • The searching problem
    • The ambition of hashing
  • Hashing
    • Brute force table: direct addressing
    • Basic idea of hashing
  • Collision Handling for Hashing
    • Closed address hashing
    • Open address hashing
  • Amortized Analysis
    • Array doubling

Ref:

  • 算法设计与分析(Algorithm design and analysis) by 黄宇
Read more »

Union Find algorithm.

Ref:

  • 算法设计与分析(Algorithm design and analysis) by 黄宇
  • 并查集(Union-Find)算法 by labuladong
Read more »

Outline

  • Lower bound and adversary argument
  • Selection - select the median
    • Expected linear time
    • Worst-case linear time
  • A Lower bound for Finding the Median

Ref:

  • 算法设计与分析(Algorithm design and analysis) by 黄宇
Read more »
0%