quartz/content/notes/divide-and-conquer.md
Jet Hughes eec8badee0 update
2022-04-28 11:51:17 +12:00

342 B

title aliases tags
divide-and-conquer Divide and Conquer
cosc201
paradigm

Divide an conquer algorithms have three parts:

  1. pre ⇒ break apartinto two or more smaller problems whose size add up to at most n
  2. Rec ⇒ solve those problems recursively
  3. post ⇒ combine solutions into a solution of the original problem