摘要:
http://www.cs.usfca.edu/~galles/visualization/Algorithms.html如果你对算法感兴趣而且和我一样还是个小菜鸟,千万不要错过。好东西是要分享的,虽然我有时候有私心。。。。记得当时找到的一本好书,还是听博友推荐的,受益匪浅。说句空话:分享让世界更美好~~~~~~ 阅读全文
摘要:
第一次发表代码,写的还比较初级,求指教:bucket sort 说白了就是一个对某一固定范围的数字排序,复杂度O(M+N)。后面我再写个radix sort。#include <stdio.h>#define MAX_VALUE 50500/*the routine does not work for negative numbers since the array subscript does not work */int main(void){ int arr[MAX_VALUE]; int m; //for input handling for (m=0;m<MAX_V 阅读全文