mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-23 21:04:07 -06:00
14 lines
342 B
Markdown
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
|