The Sidef programming language
search
Ctrlk
  • Introduction
  • Preface
  • Getting Startedchevron-right
  • Sidef interpreterchevron-right
  • Syntax and semanticschevron-right
  • Programming taskschevron-right
    • 1chevron-right
    • 2chevron-right
    • 4chevron-right
    • 9chevron-right
    • Achevron-right
    • Bchevron-right
    • Cchevron-right
    • Dchevron-right
    • Echevron-right
    • Fchevron-right
    • Gchevron-right
    • Hchevron-right
    • Ichevron-right
    • Jchevron-right
    • Kchevron-right
    • Lchevron-right
    • Mchevron-right
    • Nchevron-right
    • Ochevron-right
    • Pchevron-right
    • Qchevron-right
    • Rchevron-right
    • Schevron-right
      • S-expressions
      • Safe and Sophie Germain primes
      • Safe primes and unsafe primes
      • Sailors coconuts and a monkey problem
      • Same fringe
      • Sattolo cycle
      • Scopechevron-right
      • Search a list
      • Search a list of records
      • Secure temporary file
      • SEDOLs
      • Self-describing numbers
      • Self numbers
      • Semiprime
      • Semordnilap
      • Send an unknown method call
      • Separate the house number from the street name
      • Sequence nth number with exactly n divisors
      • Sequence of non-squares
      • Sequence of primes by trial division
      • Sequence of primorial primes
      • Sequence smallest number greater than previous term with exactly n divisors
      • Sequence smallest number with exactly n divisors
      • Set
      • Set consolidation
      • Seven-sided dice from five-sided dice
      • Sexy primes
      • SHA-1
      • SHA-256
      • Shell one-liner
      • Shoelace formula for polygonal area
      • Short-circuit evaluation
      • Shortest common supersequence
      • Show the decimal value of a number of 1s appended with a 3 then squared
      • Show the epoch
      • Sierpinski arrowhead curve
      • Sierpinski carpet
      • Sierpinski curve
      • Sierpinski pentagon
      • Sierpinski square curve
      • Sierpinski trianglechevron-right
      • Sieve of Eratosthenes
      • Simple windowed application
      • Simulated annealing
      • Singleton
      • Singly-linked listchevron-right
      • Sleep
      • Smallest numbers
      • Smallest square that begins with n
      • Smarandache-Wellin primes
      • Smarandache prime-digital sequence
      • Smith numbers
      • Snake
      • Sockets
      • Solve triangle solitaire puzzle
      • Sort a list of object identifiers
      • Sort an array of composite structures
      • Sort an integer array
      • Sort disjoint sublist
      • Sort numbers lexicographically
      • Sort primes from list to a list
      • Sort stability
      • Sort three variables
      • Sort using a custom comparator
      • Sorting algorithmschevron-right
        • Bead sort
        • Bogosort
        • Bubble sort
        • Circle Sort
        • Cocktail sort
        • Comb sort
        • Counting sort
        • Cycle sort
        • Gnome sort
        • Heapsort
        • Insertion sort
        • Merge sort
        • Pancake sort
        • Patience sort
        • Permutation sort
        • Quicksort
        • Radix sort
        • Selection sort
        • Shell sort
        • Sleep sort
        • Stooge sort
        • Strand sort
      • Soundex
      • Sparkline in unicode
      • Special divisors
      • Special factorials
      • Special neighbor primes
      • Speech synthesis
      • Spelling of ordinal numbers
      • Sphenic numbers
      • Spiral matrix
      • Split a character string based on change of character
      • SQL-based authentication
      • Square-free integers
      • Square but not cube
      • Square form factorization
      • Stable marriage problem
      • Stack
      • Stair-climbing puzzle
      • Standard deviation
      • Statisticschevron-right
      • Stem-and-leaf plot
      • Stern-Brocot sequence
      • Stirling numbers of the first kind
      • Stirling numbers of the second kind
      • Strange numbers
      • Strange plus numbers
      • Strange unique prime triplets
      • Stream merge
      • String append
      • String case
      • String comparison
      • String concatenation
      • String interpolation included
      • String length
      • String matching
      • String prepend
      • Strip a set of characters from a string
      • Strip block comments
      • Strip comments from a string
      • Strip control codes and extended characters from a string
      • Strip whitespace from a stringchevron-right
      • Strong and weak primes
      • Sub-unit squares
      • Subleq
      • Subset sum problem
      • Substitution cipher
      • Substringchevron-right
      • Substring primes
      • Subtractive generator
      • Successive prime differences
      • Sudoku
      • Suffix tree
      • Sum and product of an array
      • Sum and product puzzle
      • Sum digits of an integer
      • Sum multiples of 3 and 5
      • Sum of a series
      • Sum of divisors
      • Sum of first n cubes
      • Sum of primes in odd positions is prime
      • Sum of square and cube digits of an integer are primes
      • Sum of squares
      • Sum of the digits of n is substring of n
      • Sum of two adjacent numbers are primes
      • Sum to 100
      • Summarize primes
      • Summation of primes
      • Sunflower fractal
      • Super-d numbers
      • Superellipse
      • Superpermutation minimisation
      • Sutherland-Hodgman polygon clipping
      • Sylvester's sequence
      • Symmetric difference
      • System time
    • Tchevron-right
    • Uchevron-right
    • Vchevron-right
    • Wchevron-right
    • Xchevron-right
    • Ychevron-right
    • Zchevron-right
  • The End
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. Programming taskschevron-right
  2. S

Sorting algorithms

Bead sortchevron-rightBogosortchevron-rightBubble sortchevron-rightCircle Sortchevron-rightCocktail sortchevron-rightComb sortchevron-rightCounting sortchevron-rightCycle sortchevron-rightGnome sortchevron-rightHeapsortchevron-rightInsertion sortchevron-rightMerge sortchevron-rightPancake sortchevron-rightPatience sortchevron-rightPermutation sortchevron-rightQuicksortchevron-rightRadix sortchevron-rightSelection sortchevron-rightShell sortchevron-rightSleep sortchevron-rightStooge sortchevron-rightStrand sortchevron-right
PreviousSort using a custom comparatorchevron-leftNextBead sortchevron-right

Last updated 5 years ago

Was this helpful?

Was this helpful?