tensort-1.0.0.0: Tunable sorting for responsive robustness and beyond
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Tensort.Robustsort

Description

This module provides variations of the Robustsort algorithm using the Sortable type

Synopsis

Documentation

robustsortP :: Sortable -> Sortable Source #

Takes a Sortable and returns a sorted Sortable using a Basic Mundane Robustsort algorithm with a Permutationsort adjudicator

Examples

Expand
>>> robustsortP (SortBit [16, 23, 4, 8, 15, 42])
SortBit [4,8,15,16,23,42]

robustsortB :: Sortable -> Sortable Source #

Takes a Sortable and returns a sorted Sortable using a Basic Mundane Robustsort algorithm with a Bogosort adjudicator

Examples

Expand
>>> robustsortB (SortBit [16, 23, 4, 8, 15, 42])
SortBit [4,8,15,16,23,42]

robustsortM :: Sortable -> Sortable Source #

Takes a Sortable and returns a sorted Sortable using a Basic Magic Robustsort algorithm

Examples

Expand
>>> robustsortM (SortBit [16, 23, 4, 8, 15, 42])
SortBit [4,8,15,16,23,42]

robustsortRCustom :: SortAlg -> Sortable -> Sortable Source #

Used for making recursive Robustsort algorithms

robustsortRP :: Sortable -> Sortable Source #

Takes a Sortable and returns a sorted Sortable using a Recursive Mundane Robustsort algorithm with a Permutationsort adjudicator

Examples

Expand
>>> robustsortRP (SortBit [16, 23, 4, 8, 15, 42])
SortBit [4,8,15,16,23,42]

robustsortRB :: Sortable -> Sortable Source #

Takes a Sortable and returns a sorted Sortable using a Recursive Mundane Robustsort algorithm with a Bogosort adjudicator

Examples

Expand
>>> robustsortRB (SortBit [16, 23, 4, 8, 15, 42])
SortBit [4,8,15,16,23,42]

robustsortRM :: Sortable -> Sortable Source #

Takes a Sortable and returns a sorted Sortable using a Recursive Magic Robustsort algorithm

Examples

Expand
>>> robustsortRM (SortBit [16, 23, 4, 8, 15, 42])
SortBit [4,8,15,16,23,42]