About 7,530 results
Open links in new tab
  1. 1.6 快速排序 - 菜鸟教程

    JavaScript 实例 function quickSort (arr, left, right) { var len = arr. length, partitionIndex, left = typeof left != 'number' ? 0 : left, right = typeof right != 'number' ? len - 1 : right; if (left < right) { partitionIndex = …

  2. Quick Sort - GeeksforGeeks

    Dec 8, 2025 · QuickSort is a sorting algorithm based on the Divide and Conquer that picks an element as a pivot and partitions the given array around the picked pivot by placing the pivot in its correct …

  3. 快速排序(Quicksort)算法详解 - 知乎

    概述 快速排序 (Quicksort)是Tony Hoare在1960年提出的一种高效的排序算法。 它采用 分治法 (Divide and Conquer)的策略,通常在理论和实际应用中表现优异。

  4. 快速排序算法—图文详解,一篇就够了!-CSDN博客

    Apr 30, 2024 · 文章浏览阅读10w+次,点赞718次,收藏982次。本文详细介绍了快速排序的基本思想及其实现过程。通过实例演示了如何选取基准元素并利用分治法进行排序,最后给出了具体的Java代 …

  5. Quicksort - Wikipedia

    Quicksort is a type of divide-and-conquer algorithm for sorting an array, based on a partitioning routine; the details of this partitioning can vary somewhat, so that quicksort is really a family of closely related …

  6. 快速排序 (QuickSort)算法介绍 - CSDN博客

    Sep 20, 2017 · 算法简介 快速排序(Quicksort)是对冒泡排序的一种改进算法。由C. A. R. Hoare在1960年提出。 该算法使用广泛、效率很高,是最重要的排序算法之一。 该算法的实现基本可分为以 …

  7. 图解快排——快速排序算法(quick sort) - 知乎

    性能分析 稳定性 由于在快速排序中,元素的比较和交换是跳跃进行的,所以快速排序是一种不稳定的 排序算法。比如下图所示,在划分时就改变了序列中两个1原本的顺序,本来在后面的1跑到了前面。

  8. Quick Sort in C - GeeksforGeeks

    Jul 23, 2025 · What is QuickSort Algorithm? The basic idea behind QuickSort is to select a pivot element from the array and partition the other elements into two sub-arrays according to whether they are …

  9. 快速排序 - OI Wiki

    下面列举了几种较为成熟的快速排序优化方式. 三路快速排序 定义 三路快速排序(英语:3-way Radix Quicksort)是快速排序和 基数排序 的混合.它的算法思想基于 荷兰国旗问题 的解法. 过程

  10. 快速排序 - 维基百科,自由的百科全书

    Mar 8, 2026 · 快速排序 (英语: Quicksort),又称 分区交换排序 (partition-exchange sort),是一种 排序算法,最早由 东尼·霍尔 提出。 在平均状况下,排序 个项目要 (大O符号)次比较。 在最坏状 …