Algorithm
moon_stars_sun
这个作者很懒,什么都没留下…
展开
-
Selection sort
Java implementation:public class Selection{ public static void sort(Comparable[] a) { int N = a.length; for (int i = 0; i < N; i++){ int min = i; for (int j = i+1; j<N原创 2015-11-30 15:58:01 · 347 阅读 · 0 评论 -
Insertion sort
Java Implementationpublic class Insertion { public static void sort(Comparable[] a) { int N = a.length; for (int i = 0; i < N; i++) { for (int j=i; j>0; j--)原创 2015-11-30 16:23:16 · 258 阅读 · 0 评论 -
ShellSort
The idea of Shellsort is moving entries more than one position at a time by h-sorting the array.h = 4 L E E A M H L E P S O L T S X R L —— M —— P —— T E —— H —— S —— S E —— L ——原创 2015-11-30 16:56:51 · 295 阅读 · 0 评论 -
Merge Sort
The detail thoughts about merge sort and its implemention.原创 2016-01-20 22:39:49 · 317 阅读 · 0 评论 -
Dynamic Programming
Introduction for dynamic programming原创 2016-07-28 21:09:44 · 287 阅读 · 0 评论