This article is about the building; for another meaning, see stability.
A stable is a building in which livestock, usually horses, are kept. It most commonly means a building that is divided into separate stalls for individual animals.
Used metaphorically from this origin, a stable is a collection of people working under a single manager or animals kept by one owner.
Some examples of stable sorting algorithms are bubblesort and mergesort (although the stability of mergesort is dependent upon how it is implemented).
Stability is a useful property when the total ordering relation is dependent upon initial position.
Using a stable sorting algorithm means that sorting by ascending position for equal keys is built-in, and need not be implemented explicitly in the comparison operator.
Stable isotopes of the same element have the same chemical characteristics and therefore behave almost identically.
For example, the difference in mass between the two stable isotopes of hydrogen H-1 (1 proton, no neutron) and H-2 (also known as deuterium, 1 proton, 1 neutron) is almost 100%.
Commonly analysed stable isotopes include oxygen, carbon, nitrogen, hydrogen and sulfur.