编程珠玑全部源代码 分享

上传者: jj12345jj198999 | 上传时间: 2019-12-21 20:00:40 | 文件大小: 26KB | 文件类型: rar
Code from Programming Pearls Column 1: Programs for sorting integers bitsort.c -- Sort with bit vectors. sortints.cpp -- Sort using C++ STL sets. qsortints.c -- Sort with C library qsort. bitsortgen.c -- Generate random integers for sorting. Column 2: Test and time algorithms rotate.c -- Three ways to rotate the elements of a vector. The next two program are used in a pipeline to compute all anagrams in a dictionary sign.c -- Sign each word by its letters in sorted order. squash.c -- Put each anagram class on a single line. Column 5: Scaffolding for testing and timing search functions search.c -- Linear and binary search. Column 7: Tiny experiment on C run times timemod0.c -- Edit main to time one operation. Column 8: Compute the maximum-sum subsequence in an array maxsum.c -- Time four algs: n3, n2, n log n, n. Column 9: Code tuning programs genbins.c -- Profile this, then try a special-purpose allocator. macfun.c -- Time the cost of macros and functions. The column also uses rotate.c (Column 2), search.c (Column 5) and maxsum.c (Column 8). Column 11: Test and time sorting algorithms sort.cpp -- Mostly C, but also C++ sort function. SortAnim.java -- Animate those sort functions in Java. Column 12: Generate a sorted list of random integers sortedrand.cpp -- Several algorithms for the task. Column 13: Set representations for the problem in Column 12 sets.cpp -- Several data structures for sets. genbins.c (Column 9) implements the bin data structure in C. Column 14: Heaps priqueue.cpp -- Implement and test priority queues. The column also uses sort.c (Column 11) for heapsort. Column 15: Strings wordlist.cpp -- List words in the file, using STL set. wordfreq.cpp -- List words in the file, with counts, using STL map. wordfreq.c -- Same as above, with hash table in C. longdup.c -- Find long repeated strings in input. markov.c -- Generate random text from input. markovhash.c -- Like markov.c, but with hashing. markovlet.c -- Letter-level markov text, simple algorithm. Appendix 3: Cost Models spacemod.cpp -- Space used by various records. timemod.c -- Table of times used by various C constructs. You may use this code for any purpose, as long as you leave the copyright notice and book citation attached.

文件下载

资源详情

[{"title":"( 27 个子文件 26KB ) 编程珠玑全部源代码 分享","children":[{"title":"编程珠玑","children":[{"title":"编程珠玑","children":[{"title":"markovlet.c <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"wordfreq.c <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"genbins.c <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"wordlist.cpp <span style='color:#111;'> 422B </span>","children":null,"spread":false},{"title":"spacemod.cpp <span style='color:#111;'> 2.47KB </span>","children":null,"spread":false},{"title":"sortints.cpp <span style='color:#111;'> 384B </span>","children":null,"spread":false},{"title":"squash.c <span style='color:#111;'> 656B </span>","children":null,"spread":false},{"title":"sort.cpp <span style='color:#111;'> 6.72KB </span>","children":null,"spread":false},{"title":"sign.c <span style='color:#111;'> 587B </span>","children":null,"spread":false},{"title":"macfun.c <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"bitsort.c <span style='color:#111;'> 808B </span>","children":null,"spread":false},{"title":"timemod.c <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false},{"title":"sets.cpp <span style='color:#111;'> 8.17KB </span>","children":null,"spread":false},{"title":"SortAnim.java <span style='color:#111;'> 6.28KB </span>","children":null,"spread":false},{"title":"search.c <span style='color:#111;'> 5.28KB </span>","children":null,"spread":false},{"title":"wordfreq.cpp <span style='color:#111;'> 448B </span>","children":null,"spread":false},{"title":"qsortints.c <span style='color:#111;'> 474B </span>","children":null,"spread":false},{"title":"maxsum.c <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false},{"title":"longdup.c <span style='color:#111;'> 832B </span>","children":null,"spread":false},{"title":"priqueue.cpp <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"rotate.c <span style='color:#111;'> 4.16KB </span>","children":null,"spread":false},{"title":"timemod0.c <span style='color:#111;'> 662B </span>","children":null,"spread":false},{"title":"readme.txt <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"sortedrand.cpp <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"bitsortgen.c <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"markov.c <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"markovhash.c <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • only_one__ :
    代码不错,可以正常使用。
    2016-03-17
  • yt1099904105 :
    代码不错,可以调通,跟书本一样的
    2015-12-17
  • lordcat :
    http://download.csdn.net/detail/Wuaner/323362这里有老版本的书和代码不确定这里的是不是有更新。
    2015-11-18
  • 酷拉皮卡卡卡 :
    编程珠玑的代码段,可以调通
    2015-07-27
  • hj1120112065 :
    非常好,很有用的资料
    2014-05-04

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明