摘要:
public class Dijkstra { static int maxint=1000; public static void Dijkstra(int n,int v,int dist[],int c[][],int prev[]){ boolean s[]=new boolean[n]; 阅读全文
posted @ 2017-04-08 20:11
足迹漫天涯
阅读(135)
评论(0)
推荐(0)
摘要:
合并排序算法: public class MergeSort { public static void MergeSort(int A[],int low,int high){ if(low<high){ int middle=(low+high)/2; MergeSort(A,low,middle 阅读全文
posted @ 2017-04-08 20:02
足迹漫天涯
阅读(443)
评论(0)
推荐(0)
摘要:
public class Qsort { public static void Qsort(int A[],int low,int high){ if(low>=high)return; int key=A[low]; int i=low,j=high; while(i<j){ while(i<j& 阅读全文
posted @ 2017-04-08 20:00
足迹漫天涯
阅读(190)
评论(0)
推荐(0)
浙公网安备 33010602011771号