]> git.rkrishnan.org Git - sicp.git/blobdiff - src/sicp/ex4_29.rkt
Solutions to 4.27, 4.28 and 4.29.
[sicp.git] / src / sicp / ex4_29.rkt
diff --git a/src/sicp/ex4_29.rkt b/src/sicp/ex4_29.rkt
new file mode 100644 (file)
index 0000000..1c1a976
--- /dev/null
@@ -0,0 +1,11 @@
+#lang racket
+
+#|
+
+Any program which will call itself or another function recursively or repeatedly (as another argument) 
+will benefit from memoization.
+
+non-memoized version will have count of 2 as x gets forced twice in the expression (* x x). In memoized
+version, it will be 1.
+
+|#
\ No newline at end of file