The Standard Librarian: Sorting in the Standard Library Matthew Austern http://www.cuj.com/experts
The Standard Librarian: Searching in the Standard Library Matthew Austern The genius as we
设想这样一个需求,我们需要为自己的框架提供一个负责排序的组件。目前需要实现的是冒泡排序算法和快速排序算法,根据“面向接口编程”的思想,我们可以为这些排序算法提供一个统一的接口ISort,在这个接口
The Standard Librarian: What Are Allocators Good For? Matt Austern http://www.cuj.com/experts/18
package Utils.Sort; /** *归并排序,要求待排序的数组必须实现Comparable接口 */ public class M
package Utils.Sort; /** *@author Linyco *利用冒泡排序法对数组排序,数组中元素必须实现了Comparable接口。
package Utils.Sort; /** *@author Linyco *利用选择排序法对数组排序,数组中元素必须实现了Co
用Java把《Data StrUCture and Algoritm Analysis in C》里面的排序算法实现了。整个结构我使用的是Strategy模式。由Sort类扮演环境角色,SortStr
package Utils.Sort; /** *快速排序,要求待排序的数组必须实现Comparable接口 */ public class Q
package Utils.Sort; /** *希尔排序,要求待排序的数组必须实现Comparable接口 */