Differences

This shows you the differences between two versions of the page.

Link to this comparison view

courses:cs211:winter2012:journals:richard:chap5 [2012/03/15 03:57] – created marmorsteinrcourses:cs211:winter2012:journals:richard:chap5 [2012/03/15 03:58] (current) marmorsteinr
Line 1: Line 1:
 ====Chapter 5==== ====Chapter 5====
  
 +==5.1==
 This section introduces the idea of Divide and Conquer, and recurrence relations. Divide and Conquer algorithms generally reduce existing polynomial time algorithms to better polynomial time. Mergesort is an example of divide and conquer, it's recurrence relation is T(n) <= tT(n/2) + cn. You can assume imprecisely that n is even, if it helps. You can "solve" a recursion relation by either unrolling it or guess and substitute...and then with induction. There's a fancy thing they do with substitution--they substitute variables instead of solid values to get the "general form". This section introduces the idea of Divide and Conquer, and recurrence relations. Divide and Conquer algorithms generally reduce existing polynomial time algorithms to better polynomial time. Mergesort is an example of divide and conquer, it's recurrence relation is T(n) <= tT(n/2) + cn. You can assume imprecisely that n is even, if it helps. You can "solve" a recursion relation by either unrolling it or guess and substitute...and then with induction. There's a fancy thing they do with substitution--they substitute variables instead of solid values to get the "general form".
  
courses/cs211/winter2012/journals/richard/chap5.1331783875.txt.gz · Last modified: 2012/03/15 03:57 by marmorsteinr
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0