请输入您要查询的百科知识:

 

词条 Intuitive Sort
释义

Basic Concept

􀂉For a given unsorted list of numbers, find the smallest number that is unmarked

􀂉Add this smallest number to a sorted list

􀂉Mark this smallest number in the unsorted list

􀂃3 algorithms are involved:

􀂉MarkSmallest

􀂉IntuitiveSort

􀂉TestIntuitiveSort (main algorithm)

Analysis of Algorithm

Space:

􀂋need an extra array of same size as input one, to store the sorted data

􀂉Operations:

􀂋For N numbers, need N2comparisons (N passes, N comparisons for each pass)

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/24 15:24:36