- 博客(74)
- 资源 (17)
- 收藏
- 关注
原创 SICP Exercise 3.54
Exercise 3.54;;Exercise 3.54(define (mul-streams s1 s2) (stream-map * s1 s2))(define factorials (cons-stream 1 (mul-streams (integers-st
2011-07-17 12:06:23
642
原创 SICP Exercise 3.53
Exercise 3.53方法一:s的第1个元素是1,其余部分是s与s之和。这样s的第2个元素就是1加上1,即为2。第3个元素是2加上2,即为3。如此继续下去,得到s为(1 2 4 8 16 ...)。方法二:(http://wqzhang.wordpress.com/2009
2011-07-17 12:00:45
643
原创 SICP Exercise 3.52
seq的内容正常应该是(1 3 6 10 15 21 28 36 45 55 66 78 91 105 120 136 153 171 190 210),其中第i个值是由1到i的和而得到的。> (define sum 0)> sum0> (define (accum x)
2011-07-15 16:31:32
1011
原创 SICP Exercise 3.51
SICP Exercise 3.51> (define x (stream-map show (stream-enumerate-interval 0 10)))0> (stream-ref x 5)123455> (stream-ref x 7)677其
2011-07-15 16:04:09
895
原创 SICP Exercise 3.50
SICP Exercise 3.50(define (stream-map proc . argstreams) (if (stream-null? (car argstreams)) the-empty-stream (cons-stream
2011-07-15 15:26:50
839
原创 SICP Exercise 3.38
SICP Exercise 3.37a) I list all the orders of the three process, and then determine the value of balance. For simplicity, I use 1, 2, 3 , in
2011-07-13 14:20:17
719
原创 SICP Exercise 3.37
SICP Exercise 3.37;;;Exercise 3.37(define (c+ x y) (let ((z (make-connector))) (adder x y z) z))(define (c- x y) (let ((z (ma
2011-07-13 10:00:56
796
原创 SICP Exercise 3.35
;;;Exercise 3.35(define (squarer a b) (define (process-new-value) (if (has-value? b) (if (< (get-value b) 0) (err
2011-07-13 09:50:36
639
原创 SICP Exercise 3.34
SICP Exercise 3.34(define (squarer a b) (multiplier a a b))The flaw is that: suppose we set the value of b to 9, but we cannot sets the
2011-07-13 09:46:19
620
原创 SICP Exercise 3.33
SICP Exercise 3.33This is similar as the celsius-fahrenheit-converter procedure.;;;Exercise 3.33;;;average(define (averager a b c) (let
2011-07-13 09:23:22
795
原创 SICP Exercise 3.29
SICP Exercise 3.29we know that A or B is equivalent to not ((not A) and (not B)) from Using De-Morgan’s rules. the diagram is:so, the code i
2011-07-08 14:19:17
786
原创 SICP Exercise 3.28
SICP Exercise 3.28This exercise is easy.;Exercise 3.28(define (or-gate in1 in2 out) (define (and-action-procedure) (let ((new-value (
2011-07-08 14:10:25
675
原创 SICP Exercise 3.25
SICP Exercise 3.25This exercise is a little more difficult. I use a list as the key, the following diagram will help you to write correct co
2011-07-07 22:07:23
894
原创 SICP Exercise 3.22
;;;QUEUE as a procedure with local state(define (make-queue) (let ((front-ptr nil) (rear-ptr nil)) (define (dispatch m)
2011-07-07 11:51:16
908
原创 SICP Exercise 3.11
1,The result of (define acc (make-account 50)):2, Environments when evaluating ((acc 'deposit) 40):3, Result of ((acc 'deposit) 40):4, Envi
2011-07-06 16:39:44
902
原创 自动投票程序
下面是前几天写的一个自动投票的程序,代码比较粗糙,过几天整理一下:# -*- coding: cp936 -*-import httplib, urllib, urllib2, re# GenerateParamsdef generateParams(ticketNum, ipAddr, recoreId): params = urllib.urlencode(
2011-06-28 14:15:00
741
转载 The Clean Coder: Why Clojure?
这是Bob大叔的一篇博文,转载至此,如果要看原文请用搜该文章的题目。 Why Clojure? I have recently become quite an enthusiast for the language Clojure. But why? Why would someone who has spent the last 30 years programming in C, C++,
2011-06-06 20:06:00
1348
原创 刘铁岩《良师益友》系列
<br />前几天在微博上看到牛人刘铁岩的几篇微博,觉得很好,也了解到了其他一些牛人。现在把其微博整理在此:<br /> <br />===================================================================<br /> <br /><br />不知不觉加入微软研究院也有7年多了,研究方向从原来的信号处理转到现在的机器学习和信息检索,其间得到了不少良师益友的帮助。有几个人不能不提,因为他们对我产生了很大的影响。先预报一下,回头慢慢讲讲他们的故事:H
2011-05-29 14:39:00
1891
原创 SICP Section 2.3.2
本节内容中用的程序代码如下:(define (deriv exp var) (cond ((number? exp) 0) ((variable? exp) (if (same-variable? exp var) 1 0)) (
2011-04-23 15:07:00
850
转载 语料库术语汇编
转自:http://www.corpus4u.org/forum/showthread.php?p=35335#post35335语料库术语汇编:欢迎增补、批评指正【Updated on March 28, 2010】左边为英文,右边的汉语凡以分号(;)隔开的表示该术语有不同含义,以顿号(、)隔开的表示该术语有两种以上可接受的汉语译法。我们从一开始就没打算制定什么标准,制定标准去规范别人是一件很可笑的事情。我们只是提供了文献中的常见汉译,做了一点文献整理工作而已。没有(合适)译法的,我们尝试提供了汉译。如帖
2011-04-13 15:05:00
6686
原创 《Natural Language Processing with Python》6.2节的一些错误
最近一直在阅读《Natural Language Processing with Python》,在阅读该书的6.2节的Sentence Segmentation时,发现错误比较多。现在记录下来,也许可以帮到其他人,也许以后可以整理一下给该书作者发个邮件。在说明问题之前,在这
2011-04-10 22:21:00
2205
原创 SICP section 2.2
(define one-through-four (list 1 2 3 4));Exercise 2.17(define (last-pair list) (let ((tail (cdr list))) (if (null? tail) list (last-pair tail))));(last-pair (list 23 72 149 34));(last-pair (list (list 1 2) (list 3 4)));E
2011-03-31 20:12:00
935
原创 SICP section 1.2
1.16(define (fast-expt b n) (fast-expt-iter b n 1))(define (fast-expt-iter b n a) (cond ((= n 0) a) ((even? n) (fast-expt-iter (* b b) (/ n 2) a)) (else (fast-expt-iter b (- n 1) (* b a)))))
2011-03-16 10:37:00
1140
原创 SICP section 1.1
1.5 Ben Bitdiddle发明了一种检测解释器究竟采用哪种顺序求值的方法,应用序还是正则序:(define (p y) (p y))(define (test x y) (if (= x 0) 0 y))(test 0 (p 1)) 上面的过程p,我稍稍做了修改,因为我的解释器(DrScheme)不能够定义没有参数的过程,下面解释这如何根据表达式:(test 0 (p 1))的结果,判断解释器的求值顺序。如果解释器采用正则序,那么(test 0 (p 1))
2011-02-27 14:04:00
984
原创 error: Python was built with Visual Studio 2003
在windows上安装rdflib2.4.0的时候出现如下错误:Python was built with Visual Studio 200*” error:Python was built with Visual Studio 2003;extensions must be built with a compiler than can generate compatible binaries.Visual Studio 2003 was not found on this s
2010-08-11 16:16:00
1330
原创 error: Python was built with Visual Studio 2003
<br />在windows上安装rdflib2.4.0的时候出现如下错误:<br />Python was built with Visual Studio 200*” error:<br />Python was built with Visual Studio 2003;<br />extensions must be built with a compiler than can generate compatible binaries.<br />Visual Studi
2010-08-11 16:15:00
997
原创 10分钟开始使用ICTCLAS Java版——却花了我快一个小时
<br />ICTCLAS是中科院计算所出品的中文分词程序包,在国内一直有着良好的口碑和很高的使用率。之前一直只有 C++的版本提供,而现在C#,Delphi和Java版本已经纷纷出炉。下面用一个极小的例子,让大家10分钟之内就能用上ICTCLAS ,从此也开始自己的文本分类和搜索引擎开发之路。<br />需要首先说明的是,不同于以前的C++版提供的JNI调用,本次使用的是纯Java版本的ICTCLAS,下载地址在http://ictclas.org/Down_OpenSrc.asp。<br />好,假设你
2010-06-17 17:19:00
5745
10
原创 Salton Award——Susan Dumais
从今天起,我打算从SIGIR开始学习信息检索的内容,这里的内容包括:1,Saton Award 大奖获得者的演讲词,以及简单的介绍。2,Best Paper Award 获奖论文的阅读笔记。3,Best Student Paper Award 获奖论文的阅读笔记。我的阅读顺序将逆着时间顺序,即从2009年开始网前推。我是一个初学者,如果有错误之处,请给予指示,非常感谢。今天的主角今天,首先来认识一下2009年的Salton大奖获得者Susan Dumais,她目前是微软研究院Adaptive Systems
2010-06-12 22:45:00
1030
原创 401 Palindromes
#include #include #define SIZE 35char key[] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9'};char
2010-06-01 20:07:00
641
原创 10010 Where's Waldorf?
#include #include #include char grid[60][60];char word[60];int direct[8][2] = { 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, -1, -1, 1, -1, -1, 1,};void search(char *word, int m, int n){ int i, j;
2010-06-01 19:58:00
544
原创 错误记录
P1: E:动态 MMap 没有空间了。请增大 APT::Cache-Limit 的大小。当前值:25165824。(man 5 apt.conf)Ans: 是源里东西太多了,删除里面一些没用的源和没用的注释, 编辑这个文件`/etc/apt/sources.list’,把多余的行删掉. P2: Ubuntu10.04下手动安装gcc4.5.0. "gc
2010-05-29 11:35:00
558
原创 Where are semantics in semantic web
TitleWhere are the Semantics in the Semantic Web?JournalAI MagzineYear2003AuthorM UscholdLevelIntrod
2010-03-29 09:18:00
761
吉林大学《可计算性与计算复杂性》 笔记
2011-04-10
高德纳论文选--knuth
2011-04-10
Basic Papers on Undecidable Propositions, Unsolvable Problems and Computable Functions
2011-03-09
Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp
2012-06-25
The Annotated Turing
2010-12-13
Apress.Scripting.Intelligence.Web.3.0.Information.Gathering.and.Processing.Jul.2009.pdf
2010-08-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅