摘要: (define (partial-tree elts n) (if (= n 0) (cons '() elts) (let ((left-size (quotient (- n 1) 2))) (let ((left-result (partial-tree elts left-size))) (let ((left-tree (car left-result)) (non-left-elts (cdr left-result)) (right-size (- n (+ left... 阅读全文
posted @ 2013-11-09 12:45 zhengguan 阅读(148) 评论(0) 推荐(0)
摘要: 体系结构、编译器和并行计算 Architecture, Compilers and Parallel Computing系统与网络 Systems and Networking理论与算法 Theory and Algorithms人工智能 Artificial Intelligence编程语言 Programming Languages数据库与信息系统 Database and Information Systems图形学与多媒体 Graphics and Multimedia人机交互 Human-Computer Interaction科学计算 Scientific Computing信息安 阅读全文
posted @ 2013-10-29 14:43 zhengguan 阅读(546) 评论(0) 推荐(0)
摘要: #include#include#include#define MAX 100+10typedef struct word{ char* w; struct word * l;}Word;Word* dic[26];char buf[5000][200];int insert(char* p){ int inx = (*p) - 'a'; if(dic[inx] == NULL) { dic[inx] = (Word*)malloc(sizeof(Word)); dic[inx]->w = p; dic[inx]->l =... 阅读全文
posted @ 2013-07-24 21:24 zhengguan 阅读(233) 评论(0) 推荐(0)