数据结构_4(常见代码)
摘要:一下是一些常用查找和排序算法的代码(c语言): 顺序查找 折半查找 直接插入排序 选择排序 冒泡排序(改进后的代码) void bubblesort(keytype k[], int n) { int i, j, tmp, flag = 1; for(i=1;i<=n-1 && flag == 1;
阅读全文
posted @ 2016-06-10 23:00
posted @ 2016-06-10 23:00
posted @ 2016-06-08 23:01
posted @ 2016-06-07 22:17
posted @ 2016-06-06 22:55