我们知道,在编程的世界里,主要就是两个事,用一定的算法去处理一定的数据。算法可以理解为业务逻辑流程,而数据自然一定是按某种结构来存放,这就是数据结构。我们知道,数据结构的修改一定会导致算法的修改,我们也知道,数据结构直接关系到了整个程序的繁简性,高效性。而算法则是关系到数据处理的时间、空间性能,以及日后的扩展和维护。这两个东西是计算机科班出生的人或是需要学习编程的人必需要注意的两件头等大事。下面这个网站,由Software and Systems Division,Information Technology Laboratory创建。http://xlinux.nist.gov/dads/这 Read More
posted @ 2011-12-02 12:02 liheping Views(328) Comments(0) Diggs(0) Edit
基础Stack栈: 数组实现Stack栈: 链表实现Queues队列: 数组实现Queues队列: 链表实现Lists列表: 数组实现 (java版演示)Lists列表: 链表实现 (java版演示)索引Binary Search Trees二叉检索树AVL Trees (平衡二叉检索树)Red-Black Trees 红黑树 (flash版本演示)Open Hash Tables 开放哈希表(Closed Addressing链地址法)Closed Hash Tables 闭合哈希表 (Open Addressing 开放定址法)Closed Hash Tables, using bucke Read More
posted @ 2011-12-02 11:58 liheping Views(441) Comments(0) Diggs(0) Edit
NameLinkDateAddedLanguageDescriptionBinomial Heap(link)7‑24‑2010C++An implementation of abinomial heapdata structure for use as a priority queue.Bounded Priority Queue(link)7‑24‑2010C++An implementation of apriority queuewith a fixed upper limit to its size..Matrix(link)7‑24‑2010C++A collection of c Read More
posted @ 2011-12-02 11:55 liheping Views(882) Comments(0) Diggs(1) Edit
2.3.1 什么是变量左值(lvalue): 左值 可以出现在赋值语句的左边和右边-就是变量地址,或者是一个代表"对象在内存中的位置"的表达式右值(rvalue): 右值 只能出现在赋值语句的右边-就是变量的值变量是左值,数字字面值和字符字面值是右值。int units_sold = 0;//OK0 = 1; //NO有些操作符,比如赋值,要求其中的一个操作数必须是左值。units_sold=units_sold+ 1;这个表达式中units_sold变量被用做两种不同操作符的操作数。+ 是将两个操作数相加.= 是将右操作数写的左操作数.在这个表达式中,加法运算的结果被保存 Read More
posted @ 2011-12-02 11:46 liheping Views(358) Comments(0) Diggs(0) Edit