Skip to content

Introduction

Stability of Sorting Algorithm

A sorting algorithm is stable if it ensures the orignal order if 2 items has same value

Example of stable sorts

  • Bubble Sort
  • Insertion Sort
  • Merge Sort

Example of unstable sorts

  • Selection Sort
  • Quick Sort
  • Heap Sorts