
java 数据结构 树 排序算法
烽火戏猪候
每天随便写一点吧。语文不好,不拘泥于文笔o(╯□╰)o
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
堆排序的实现
public class HeapSort {/*** @param args*/public static void main(String[] args) {// TODO Auto-generated method stubint[] data = new int[]{21,30,49,30,21,16,9};//9,79,46,30,58,49};Sys转载 2016-03-18 16:10:36 · 249 阅读 · 0 评论 -
交换排序---快速排序
public class QuickSort {/*** @param args*/public static void main(String[] args) {// TODO Auto-generated method stubint[] arr = new int[]{2,8,-6,71,12,52,1,-3};System.out.println("原来转载 2016-03-21 12:24:46 · 350 阅读 · 0 评论 -
shell 排序
public class ShellSort {/*** @param args*/public static void main(String[] args) {// TODO Auto-generated method stubint[] arr = new int[]{9,-16,21,23,-30,-49,21,30,30,2,8,-6,71,12,52,1转载 2016-03-21 16:12:52 · 316 阅读 · 0 评论 -
插入排序--折半插入排序
public class BinaryInsertSort {/*** @param args*/public static void main(String[] args) {// TODO Auto-generated method stubint[] arr = new int[]{2,8,-6,71,12,52,1,-3};System.out.prin转载 2016-03-21 16:15:15 · 267 阅读 · 0 评论 -
LRU算法
public class LRU {/*** @param args*/public static void main(String[] args) {// TODO Auto-generated method stublru();}static void lru() { System.out.println(); Sys转载 2016-12-05 17:02:10 · 436 阅读 · 0 评论