Created
March 22, 2009 22:12
-
-
Save oscardelben/83312 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exercise 1.14 | |
Order of growth is O(3n) NOTE: this is my result by I've seen elsewhere different results. | |
Exercise 1.15 | |
p is evaluated 5 times | |
order of growth is O(log n) because the amount of resource needed is constant. | |
(sine 12.15) | |
(p (sine 4.05)) | |
(p (p (sine 1.35))) | |
(p (p (p (sine 0.45)))) | |
(p (p (p (p (sine 0.15))))) | |
(p (p (p (p (p (sine 0.05)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment