About 134,000 results
Open links in new tab
  1. algorithm - Understanding quicksort - Stack Overflow

    Sep 23, 2016 · algorithm quicksort(A, lo, hi) is if lo < hi then p := partition(A, lo, hi) quicksort(A, lo, p) quicksort(A, p + 1, hi) Hoare partition scheme vs Lomuto partition scheme The pivot …

  2. algorithm - median of three values strategy - Stack Overflow

    I didn't downvote, but I suspect this was downvoted because the question is about the median-of-three strategy as it pertains to quicksort/quickselect, not just finding the median of three …

  3. Sorting a multidimensionnal array in VBA - Stack Overflow

    Aug 1, 2014 · Here's a multi-column and a single-column QuickSort for VBA, modified from a code sample posted by Jim Rech on Usenet. Notes: You'll notice that I do a lot more defensive …

  4. sorting - VBA array sort function? - Stack Overflow

    Sorting a multidimensionnal array in VBA The code samples in that thread include: A vector array Quicksort; A multi-column array QuickSort; A BubbleSort. Alain's optimised Quicksort is very …

  5. algorithm - Quicksort vs heapsort - Stack Overflow

    Mar 18, 2010 · Both quicksort and heapsort do in-place sorting. Which is better? What are the applications and cases in which either is preferred?

  6. algorithm - Quick Sort Vs Merge Sort - Stack Overflow

    Mar 25, 2009 · Quicksort is also more complicated than mergesort, especially if you want to write a really solid implementation, and so if you're aiming for simplicity and maintainability, merge …

  7. Why does QuickSort use O(log(n)) extra space? - Stack Overflow

    Sep 25, 2012 · In particular, they write: Quicksort with in-place and unstable partitioning uses only constant additional space before making any recursive call. Quicksort must store a constant …

  8. algorithm - Quicksort with Python - Stack Overflow

    Quicksort is not very practical in Python since our builtin timsort algorithm is quite efficient, and we have recursion limits. We would expect to sort lists in-place with list.sort or create new sorted …

  9. Solving Recurrence Relation (quicksort ) - Computer Science Stack …

    I know quicksort to have a runtime of $\\mathcal{O}(n \\log_2 n)$ However trying to solve for it I get something different and I am not sure why that is. Ok, so solving recurrence relations can …

  10. Comparison between timsort and quicksort - Stack Overflow

    May 19, 2023 · Why is it that I mostly hear about Quicksort being the fastest overall sorting algorithm when, according to Wikipedia, Timsort seems to perform much better?