硕士算法2010_第4章_排序算法001分析
算法设计与分析 李洪伟 博士 电子科技大学计算机科学与工程学院 hongweili@ /teacher/teacher.aspx?id=298 第4章 排序算法 排序的应用 Searching on unsorted data by comparing keys, optimal solutions require ?(n) comparisons. Searching on sorted data by comparing keys, optimal solutions require ?(log n) comparisons. Sorting data for users More… 排序问题 排序就是把一个无序集合中的元素按照一定顺序排列成线性结构。 例:将电话簿或字典的条目按字母表的顺序排列起来以便更有利于查找。 内部排序(internal sort):所有的数据都存储在计算机的高速随机存取存储器中,数据的读取时间可以忽略不计。 外部排序(external sort):对低速外存设备中存放的数据进行排序。 Insertion Sort Strategy: Insertion of an element in proper order: Begin with a sequence E of n elements in arbitrary order Initially
原创力文档

文档评论(0)