当前位置:网站首页>Internal sort - insert sort
Internal sort - insert sort
2022-07-07 14:26:00 【InfoQ】
1. Insertion sort
- Direct insert sort
- Half insertion method

- 2- Path insertion sort ( Not very often )

- Shell Sort ( a key )

summary
- Direct insertion sort is a good sort method when the number is very small , But it doesn't apply to too many .
- Half insert sort is an improvement of direct sort , It is to find the position of records to be sorted in the ordered sub table , Use half search , Reduce comparison time .
- 2- Path insertion sort is a development based on half insertion sort . Its purpose is to reduce the number of record moves in the sorting process , But for this, we need n A secondary space for records .
- Hill sort is to interval the sequence of numbers with odd numbers , Sorted by the number of intervals .( It must be odd ) This method is better , But not stable . Pay attention to this method .
边栏推荐
- 请问,如图,pyhon云函数提示使用了 pymysql模块,这个是怎么回事?
- PERT图(工程网络图)
- Leetcode——344. Reverse string /541 Invert string ii/151 Reverse the word / Sword finger in the string offer 58 - ii Rotate string left
- XML文件的解析操作
- 一个简单LEGv8处理器的Verilog实现【四】【单周期实现基础知识及模块设计讲解】
- AutoCAD - how to input angle dimensions and CAD diameter symbols greater than 180 degrees?
- 【网络安全】sql注入语法汇总
- 一文读懂数仓中的pg_stat
- Source code analysis of ArrayList
- OAuth 2.0 + JWT protect API security
猜你喜欢
随机推荐
找到自己的价值
Pert diagram (engineering network diagram)
The difference between memory overflow and memory leak
搜索引擎接口
First choice for stock account opening, lowest Commission for stock trading account opening, is online account opening safe
Cesium 已知一点经纬度和距离求另一个点的经纬度
JS get the current time, month, day, year, and the uniapp location applet opens the map to select the location
2022年13个UX/UI/UE最佳创意灵感网站
昇腾体验官第五期随手记I
Leetcode——344. Reverse string /541 Invert string ii/151 Reverse the word / Sword finger in the string offer 58 - ii Rotate string left
Realization of search box effect [daily question]
MySQL "invalid use of null value" solution
Oracle Linux 9.0 officially released
IP address home location query full version
oracle 触发器实现级联更新
Mrs offline data analysis: process OBS data through Flink job
Clickhouse (03) how to install and deploy Clickhouse
Similarities and differences between switches and routers
内部排序——插入排序
UML state diagram