2013年6月9日

堆排序

摘要: import java.util.Arrays;public class HeapSort<E extends Comparable<E>> { /** * @param args */ private Object[] queue; private int size = 0; public HeapSort(Object[] queue) { this.size = queue.length; this.queue = queue; } private void heapsort() { Object tmp; while (size != 0) { heapify( 阅读全文

posted @ 2013-06-09 20:00 waxili 阅读(115) 评论(0) 推荐(0) 编辑

导航