博客专栏  >  编程语言   >  SICP练习

SICP练习

程序员进阶必备!《计算机程序的构造和解释》无疑是史上让我们深入理解函数式程序设计精髓的最佳作品。书中的上百道题目更是让人如醍醐灌顶般得到觉悟。这个专栏的完成预计需要很长的时间,暂时求解出了一百多道题,后续会逐步补充和改进。

关注
16 已关注
151篇博文
  • 【SICP练习】152 练习4.8

    练习4-8原文Exercise 4.8. “Named let” is a variant of let that has the form (let )The and are just a...

    2015-04-01 09:53
    4932
  • 【SICP练习】151 练习4.7

    练习4-7原文Exercise 4.7. Let* is similar to let, except that the bindings of the let variables are perf...

    2015-04-01 09:09
    4120
  • 【SICP练习】150 练习4.6

    练习4-6原文Exercise 4.6. Let expressions are derived expressions, because (let (( ) … ( )) ) is equi...

    2015-04-01 08:52
    4119
  • 【SICP练习】149 练习4.5

    练习4-5原文Exercise 4.5. Scheme allows an additional syntax for cond clauses, ( => ). If evaluates to ...

    2015-03-31 17:11
    2929
  • 【SICP练习】148 练习4.4

    练习4-4原文Exercise 4.4. Recall the definitions of the special forms and and or from chapter 1: ● a...

    2015-03-31 13:19
    2553
  • 【SICP练习】147 练习4.3

    练习4-3原文Exercise 4.3. Rewrite eval so that the dispatch is done in data-directed style. Compare this...

    2015-03-29 19:35
    2123
  • 【SICP练习】146 练习4.2

    练习4-2原文Exercise 4.2. Louis Reasoner plans to reorder the cond clauses in eval so that the clause fo...

    2015-03-29 19:31
    1990
  • 【SICP练习】145 练习4.1

    练习4-1原文Exercise 4.1. Notice that we cannot tell whether the metacircular evaluator evaluates operan...

    2015-03-29 16:27
    2593
  • 【SICP练习】144 练习3.82

    练习3-82原文Exercise 3.82. Redo exercise 3.5 on Monte Carlo integration in terms of streams. The stream...

    2015-03-29 15:38
    2546
  • 【SICP练习】143 练习3.81

    练习3-81原文“random” numbers. Produce a stream formulation of this same generator that operates on an in...

    2015-03-29 15:31
    2147
  • 【SICP练习】142 练习3.77

    练习3-77原文Exercise 3.77. The integral procedure used above was analogous to the “implicit” definition...

    2015-03-29 11:45
    1413
  • 【SICP练习】141 练习3.72

    练习3-72原文Exercise 3.72. In a similar way to exercise 3.71 generate a stream of all numbers that can ...

    2015-03-29 11:15
    1758
  • 【SICP练习】140 练习3.71

    练习3-71原文代码(define (Ramanujan s) (define (stream-cadr s) (stream-car (stream-cdr s))) ...

    2015-03-29 11:10
    2661
  • 【SICP练习】139 练习3.70

    练习3-70原文代码(define (merge-weighted s1 s2 weight) (cond ((stream-null? s1) s2) ((stream-null? s2...

    2015-03-29 10:41
    1581
  • 【SICP练习】138 练习3.69

    练习3-69原文代码 (define (triples s t u) (cons-stream (list (stream-car s) (stream-car t...

    2015-03-29 10:20
    1915
  • 【SICP练习】137 练习3.68

    练习3-68原文Exercise 3.68. Louis Reasoner thinks that building a stream of pairs from three parts is un...

    2015-03-29 10:11
    2167
  • 【SICP练习】136 练习3.67

    练习3-67原文Exercise 3.67. Modify the pairs procedure so that (pairs integers integers) will produce th...

    2015-03-29 10:04
    2349
  • 【SICP练习】135 练习3.66

    练习3-66原文Exercise 3.66. Examine the stream (pairs integers integers). Can you make any general comme...

    2015-03-29 10:01
    2972
  • 【SICP练习】134 练习3.65

    练习3-65原文Exercise 3.65. Use the series ln2 = 1- 1/2 + 1/3 - 1/4 + …… to compute three sequences o...

    2015-03-28 23:58
    1653
  • 【SICP练习】133 练习3.64

    练习3-64原文Exercise 3.64. Write a procedure stream-limit that takes as arguments a stream and a number...

    2015-03-28 23:52
    1405

img博客搬家
img撰写博客
img发布 Chat
img专家申请
img意见反馈
img返回顶部