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

14 lines
342 B
Markdown

---
title: "divide-and-conquer"
aliases: Divide and Conquer
tags:
- 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