Patience Sort
Definition
Patience Sort is a sorting algorithm inspired by, and named after, the card game patience (also known as solitaire). The algorithm is highly effective for sorting and is also used in solving the Longest Increasing Subsequence (LIS) problem.
It works by dividing the input elements into a sequence of piles according to specific rules, and then merging those piles to produce the final sorted output.