V2EX  ›  英汉词典

Quick Sort

Definition|释义

快速排序(quicksort):一种常用的排序算法,采用“分治”思想,通过选择一个枢轴(pivot)把数组划分为两部分(小于枢轴与大于枢轴),再对两部分递归排序。平均时间复杂度通常为 **O(n log n)**(但在某些极端情况下可能退化到 **O(n²)**)。也常写作 quicksort

Pronunciation|发音(IPA)

/ˌkwɪk ˈsɔːrt/(美式常见)
/ˌkwɪk ˈsɔːt/(英式常见)

Examples|例句

I used quick sort to order the numbers.
我用快速排序把这些数字排好了。

Quick sort is efficient on average, but a poor pivot choice can make it slow on nearly sorted data.
快速排序平均情况下很高效,但如果枢轴选择不佳,在接近有序的数据上可能会变慢。

Etymology|词源

quick 表示“快的”,sort 表示“排序/分类”。“Quick sort”直译为“快速的排序方法”。该算法由英国计算机科学家 Tony Hoare 在 1959 年提出,并在 1961 年发表相关工作;由于其实现简洁、平均性能出色而广泛流行。

Related Words|相关词汇

In Literature|文学/著作中的出现

  • Introduction to Algorithms(Cormen, Leiserson, Rivest, Stein,俗称 CLRS)
  • The Art of Computer Programming, Volume 3: Sorting and Searching(Donald E. Knuth)
  • Algorithms(Robert Sedgewick & Kevin Wayne)
  • Programming Pearls(Jon Bentley)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   695 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 20:10 · PVG 04:10 · LAX 12:10 · JFK 15:10
♥ Do have faith in what you're doing.