84

数据结构(十二)——排序算法-生命不息,奋斗不止-51CTO博客

 6 years ago
source link: http://blog.51cto.com/9291927/2068735
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
数据结构(十二)——排序算法一、排序简介1、排序的一般定义排序是计算机中经常进行的操作,目的在于将一组无序的数据元素调整为有序的数据元素。序列:1,20,45,5,2,12排序后:1,2,5,12,20,452、排序的数学定义3、排序的稳定性如果序列中的两个元素R[i]、R[j],关键字分别为K[i]、K[j],并且在排序之前R[i]排在R[j]前面,如果排序操作后,元素R[i]仍然排在R[j]前

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK