Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

排序算法一:插入排序 - Mr.Sheng #146

Open
SWZDL opened this issue Aug 13, 2021 · 0 comments
Open

排序算法一:插入排序 - Mr.Sheng #146

SWZDL opened this issue Aug 13, 2021 · 0 comments

Comments

@SWZDL
Copy link
Owner

SWZDL commented Aug 13, 2021

https://shengwenzeng.cn/2021/08/13/%E6%8E%92%E5%BA%8F%E7%AE%97%E6%B3%95%E4%B8%80%EF%BC%9A%E6%8F%92%E5%85%A5%E6%8E%92%E5%BA%8F/

排序算法一:插入排序关于排序的一些定义稳定性对于待排序表中的元素$R_i$和$R_j$,其对应的关键字相等,即$key_i=key_j$,且$R_i$在$R_j$前面。使用某一排序算法后,$R_i$仍然在$R_j$前面,则这个排序算法是稳定的。 举个🌰:对于数组[4,25,2,6,6,8,34,24],经过排序算法一排序后结果为[2,4,6,6,8,24,25,34],经过排序算法二排序后结果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant