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.
2019-12-21 20:00:40 26KB 编程
1
MyEclipse6 Java开发中文教程+全部源代码 刘长炯
1
ucos-ii全部源代码 ucos-ii全部源代码 ucos-ii全部源代码ucos-ii全部源代码ucos-ii全部源代码ucos-ii全部源代码 ucos-ii全部源代码ucos-ii全部源代码ucos-ii全部源代码ucos-ii全部源代码
2019-12-21 19:46:04 3.41MB ucos-ii 全部 源代码
1
《Visual C++网络通信编程实用案例精选》是一本介绍利用Visual C++进行网络通信程序开发的书籍。书中精选了大量网络实例,涵盖了本地计算机网络编程、局域网网络通信编程、IE编程、网络通信协议编程、串口通信编程、代理服务器编程和高级网络通信编程。文件里是它的全部源代码
1
我是2014级复旦的研究生。这是一个8位的CPU设计VHDL实现。本CPU基于RISC架构,实现了cpu的基本功能如:加减乘除运算,跳转等。此外,里面有一个17位的ROM区,是存储指令的。你可以写出一段17位的指令代码,并放入ROM区,该CPU即可自动运行出结果。压缩包里是源代码和我们当时的设计要求。本源代码的最后调试时在地址0--17是放入的斐波纳契数字(Fibonacci Numbers)指令。通过modelsim仿真即可看到结果。
2019-12-21 19:42:12 508KB 8 CPU VHDL
1
本书是一部关于计算机网络的经典教科书。它是目前美国大多数大学所开设的计算机网络课程的主要参考书。目前国内外能见到的各种有关TCP/IP的书籍,其主要内容均出自本书。本书的特点是:强调原理、概念准确、深入浅出、内容丰富且新颖。
1
一个简单易懂的学生信息管理系统,源代码非常简单,包含全部源代码和详细注释,已经调试好,没有任何问题直接运行就OK。
2019-12-21 19:28:24 59KB 学生管理系统
1
一个简单易懂的公交换乘系统,源代码非常简单,已经调试好,没有任何问题直接运行就OK。 包含(一、课程设计的主要内容 二、功能和结构设计 三、流程图和算法设计 四、源程序代码 五、课程设计总结 六、参考资料) 六项完整内容。
2019-12-21 19:28:23 102KB 公交换乘系统
1
一个操作系统的实现 全部源代码 于渊
2019-12-21 18:51:40 11.4MB 操作系统
1
《数字信号处理》(西安电子科技大学出版社 高西全 丁玉美 第三版)MATLAB上机实验完整的源代码。所有代码都是自己写的!
2019-12-21 18:48:15 27KB 数字信号处理 MATLAB 源代码
1