Everything About ___
Live briefing

Everything about Introsort

Hybrid sorting algorithm

Introsort or introspective sort is a hybrid sorting algorithm that provides both fast average performance and (asymptotically) optimal worst-case performance. It begins with quicksort, it switches to heapsort when the recursion depth exceeds a level based on (the logarithm of) the number of elements being sorted and it switches to insertion sort when the number of elements is below some threshold. This combines the good parts of the three algorithms, with practical performance comparable to quicksort on typical data sets and worst-case O(n log n) runtime due to the heap sort. Since the three algorithms it uses are comparison sorts, it is also a comparison sort. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: IntrosortA 5-minute orientation
  2. Read the landmark paper: ANALISIS PERBANDINGAN EFISIENSI ALGORITMA INTROSORT DENGAN ALGORITMA TRADISIONAL BUBBLE SORT DAN SELECTION SORTCited 0 times
  3. Go sideways: QuicksortA closely related topic
  4. Go sideways: HeapsortA closely related topic

đź“– Definitions

No dictionary entry for this exact phrase.

🗂️ The subject at a glance

  1. Pseudocode
  2. Analysis
  3. Implementations
  4. Variants

🏆 Landmark papers (most cited)

📚 Books worth reading

Open Library didn't respond; try again in a moment.

đź”— Related topics