随笔分类 -  simply scheme

simply scheme 第十五章 练习
摘要:15.1(define (t num) (if(= num 0) '() (accumulate word(se (t (/(- num (remainder num 2))2)) (remainder num 2)))))15.2(... 阅读全文

posted @ 2010-07-14 21:48 草头菜 阅读(124) 评论(0) 推荐(0)

simply scheme 第十四章 练习
摘要:14.1Keep(define (remove-once wd sent) (cond((empty? sent)'()) ((equal? wd(first sent)) (se (bf sent))) (else (se (... 阅读全文

posted @ 2010-07-14 19:59 草头菜 阅读(147) 评论(0) 推荐(0)

simply scheme 第十三章 练习
摘要:13.13 calls ape pe e13.213.313.4n never reduce to a smaller n13.513.6I know but how to expain 阅读全文

posted @ 2010-07-12 11:18 草头菜 阅读(100) 评论(0) 推荐(0)

simply scheme 第十二章 练习
摘要:12.1(define (addup nums) (if (empty? nums) 0 (+ (first nums)(addup (bf nums)))))12.2(define (acronym sent) (if(=(coun... 阅读全文

posted @ 2010-07-12 11:02 草头菜 阅读(112) 评论(0) 推荐(0)

simply scheme 第十一章 练习
摘要:11.1(define (downup4 wd) (se wd (bl wd) (bl (bl wd)) (first wd) (bl (bl wd)) (bl wd) wd))11.2(defi... 阅读全文

posted @ 2010-07-11 20:37 草头菜 阅读(139) 评论(0) 推荐(0)

simply scheme 第九章 练习
摘要:9.1(1) #(2) 34(3) (yan etim ta lal)(4) #: expects 1 argument, given 2: 10 159.2(define second (lambda (stuff)(first(bf stuff))))(... 阅读全文

posted @ 2010-07-11 12:12 草头菜 阅读(120) 评论(0) 推荐(0)

simply scheme 第八章 练习
摘要:8.1(a e i o u)()0#f(16 144 0)(aioee)25(go d sunshi)8.2(keep vowel? 'birthday)(every first '(golden slumbers))(first '(golden slumbers)... 阅读全文

posted @ 2010-07-06 14:05 草头菜 阅读(145) 评论(0) 推荐(0)

simply scheme 第七章 练习
摘要:7.2(let ((pi 3.14159) (pie '(lemon meringue))) (se '(pi is) pi '(but pie is) pie))7.3(define (superlative adjective wd) (se (word ... 阅读全文

posted @ 2010-07-05 23:09 草头菜 阅读(74) 评论(0) 推荐(0)

simply scheme 第六章 练习
摘要:6.1 nowhere man,3,goes6.2 #t #f #f #t #t #t6.3 (define (sign number) (cond (( wd 13) (se (- wd 12) 'PM))))6.6 (define (teen arg) (if... 阅读全文

posted @ 2010-07-05 19:04 草头菜 阅读(132) 评论(0) 推荐(0)

simply scheme 第五章 练习
摘要:5.1 (1)(I me mine) (2)(is empty) (3) 1234 (4) (23 45) (5) "" (6) () (7) 6 (8) ("" "") (9) 2 5.2 (define (f1 wd1 wd2) (sentence (bf w... 阅读全文

posted @ 2010-07-04 13:38 草头菜 阅读(95) 评论(0) 推荐(0)

simply scheme 第四章 练习
摘要:4.1 (+ 8 (* 2 12)) 4.2 A->(B +)->(C *) 4.4 (1) two return values (2) wrong expression (3) no argument (4) less argument... 阅读全文

posted @ 2010-07-04 10:55 草头菜 阅读(113) 评论(0) 推荐(0)

simply scheme 第三章 练习
摘要:3.1 Translate the arithmetic expressions (3+4)×5 and 3+(4×5) into Scheme expressions, and into plumbing diagrams.(× (+ 3 4) 5) (+... 阅读全文

posted @ 2010-07-03 18:43 草头菜 阅读(126) 评论(0) 推荐(0)

simply scheme 第二章 练习
摘要:ExercisesUse the functions program for all these exercises.2.1 In each line of the following table we’ve left out one piece of inform... 阅读全文

posted @ 2010-07-03 18:26 草头菜 阅读(149) 评论(0) 推荐(0)

simply scheme 第一章 练习+ 看书计划
摘要:话说进了大学从来没有完整地看完一本原版书,现在要努力了。simply scheme | SICP |算法导论、compilers、计算机网络、操作系统 | TAOCP 先总结这些scheme程序我用的... 阅读全文

posted @ 2010-07-02 18:40 草头菜 阅读(121) 评论(0) 推荐(0)

导航