Fundamentals of Computer Science II (CSC-152 2000F)


Class 27: More Recursive Algorithms

Back to Analyzing Recursive Algorithms. On to Some Sorting Algorithms.

Held Tuesday, October 10, 2000

Summary

Today we continue our analysis of recursive algorithms.

Notes

Overview


A Quick Recap

Generalizing the Technique

Running Times

Just to give you a sense of running times, here's a short table.

N     O(1)    O(log2N)    O(N)    O(Nlog2N)    O(N2)    O(2N)

   1   1        0          1          1          1         2

   2   1        1          2          2          4         4

   4   1        2          4          8         16        16

   8   1        3          8         24         64       256

1000   1       10       1000     10,000  1,000,000      10300

8000   1       13       8000    100,000 64,000,000      a lot

Exponentiation

Repeated Multiplication with Iteration

Repeated Multiplication with Recursion

Detour: Algorithm Design: Divide and Conquer

Exponentiation with Divide and Conquer

Fibonacci


History

Wednesday, 23 August 2000

Thursday, 24 August 2000

Tuesday, 10 October 2000

Back to Analyzing Recursive Algorithms. On to Some Sorting Algorithms.


Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.

This page may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS152/2000F/Outlines/outline.27.html

Source text last modified Wed Oct 25 10:05:37 2000.

This page generated on Fri Oct 27 08:20:00 2000 by Siteweaver. Validate this page's HTML.

Contact our webmaster at rebelsky@grinnell.edu