摘要: 1 package iYou.neugle.search; 2 3 public class Binary_search { 4 public static int BinarySearch(double[] array, double key) { 5 int left... 阅读全文
posted @ 2015-07-06 17:23 iYou 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1 package iYou.neugle.search; 2 3 public class Sequence_search { 4 public static int SequenceSearch(double[] array, double key) { 5 for ... 阅读全文
posted @ 2015-07-06 17:06 iYou 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1 package iYou.neugle.sort; 2 3 public class Shell_sort { 4 public static void ShellSort(double[] array) { 5 int n = array.length; 6 ... 阅读全文
posted @ 2015-07-06 16:00 iYou 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1 package iYou.neugle.sort; 2 3 public class Heap_sort { 4 public static void HeapSort(double[] array) { 5 for (int i = (int) Math.floor... 阅读全文
posted @ 2015-07-06 14:48 iYou 阅读(200) 评论(0) 推荐(0) 编辑