我的c\c++之旅(八)——Shell排序
来源:互联网 发布:天翼飞young跳过软件 编辑:程序博客网 时间:2024/06/06 17:39
Shell排序
void Shell_Sort(int* sequence, int n){int i, j, increment, tmp;for(increment = n/2; increment > 0; increment /= 2)for(i = increment; i < n; i++) {tmp = sequence[i];for(j = i; j >= increment && sequence[j-increment] > tmp; j -= increment)sequence[j] = sequence[j-increment];sequence[j] = tmp;}}
0 0
- 我的c\c++之旅(八)——Shell排序
- 我的c\c++之旅(三)——堆排序
- 我的c\c++之旅(二)——归并排序
- 我的c\c++之旅(一)——插入排序
- shell排序的c实现
- shell排序法-改良的插入排序(C)
- 我的C语言之旅——1
- C 语言Shell 排序
- shell排序-c语言
- shell排序C实现
- 插入排序----直接插入排序(C、C++、Python、Shell)
- C语言写的Shell排序算法。
- shell排序算法的C/C++实现
- C语言的那些事儿之八
- 我的c\c++之旅(九)——中-逆序表达式
- 我的c\c++之旅(十)——逆-中序表达式
- 我的c\c++之旅(十一)——声明器
- 我的c语言之旅--209
- Angular ngClick 阻止冒泡和默认行为
- IB_DESIGNABLE 与IBInspectable 补充
- d3.js——箭头的绘制
- Django系列五:Django 表单
- Redis Essentials 读书笔记 - 第九章: Redis Cluster and Redis Sentinel (Collective Intelligence)
- 我的c\c++之旅(八)——Shell排序
- Android微信智能心跳方案
- charles mock 接口异常
- ubuntu14.04安装theano,cuda7.5
- Hadoop WritableComparable
- Objective-C学习笔记和IOS入门
- 翻转链表 II
- android基础总结篇之五:BroadcastReceiver应用详解
- FPGA基础知识3(xilinx CLB资源详解--slice、分布式RAM和Block ram)