TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Quick One on Quicksort

2 pointsby hazboover 4 years ago

1 comment

brudgersover 4 years ago
Quicksort is quick because it is memory efficient - O(n) with a leading coefficient of one and a small constant overhead (a couple of pointers. The memory efficiency reduces IO. IO is very slow and the reduction is what makes Quicksort quick.<p>Without accounting for memory efficiency and IO, other sorting algorithms...notably Mergesort are faster in theory.<p>Quicksort is quick by virtue of engineering rather than mathematical proof.