OnlineWoerterBuecher.de
Internes

Lexikon


Quicksort


A sorting algorithm with O(n log n) average time complexity. One element, x of the list to be sorted is chosen and the other elements are split into those elements less than x and those greater than or equal to x. These two lists are then sorted recursively using the same algorithm until there is only one element in each list, at which point the sublists are recursively recombined in order yielding the sorted list. This can be written in Haskell: qsort :: Ord a => [a] -> [a] qsort [] = [] qsort (x:xs) = qsort [ u | u<-xs, u=x ] [Mark Jones, Gofer prelude.]

In addition suitable contents:
[ = ] [ ag ] [ al ] [ algorithm ] [ am ] [ an ] [ ar ] [ arc ] [ as ] [ at ] [ av ] [ b ] [ be ] [ bi ] [ ca ] [ ch ] [ co ] [ com ] [ complexity ] [ cu ] [ de ] [ ding ] [ du ] [ ec ] [ ed ] [ element ] [ er ] [ era ] [ es ] [ fi ] [ file ] [ G ] [ ge ] [ Go ] [ Gofer ] [ gr ] [ greater than ] [ h ] [ hm ] [ hose ] [ hr ] [ id ] [ ie ] [ il ] [ in ] [ int ] [ is ] [ it ] [ J ] [ ke ] [ ld ] [ less than ] [ Lex ] [ li ] [ list ] [ lists ] [ lu ] [ ly ] [ M ] [ mo ] [ mod ] [ module ] [ mp ] [ na ] [ ne ] [ ng ] [ nl ] [ O ] [ om ] [ ph ] [ pl ] [ point ] [ pr ] [ query ] [ rc ] [ re ] [ recursive ] [ sa ] [ sam ] [ se ] [ si ] [ sk ] [ so ] [ sort ] [ sorting ] [ split ] [ st ] [ su ] [ T ] [ th ] [ to ] [ tt ] [ tw ] [ ua ] [ us ] [ ve ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (3060 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.0735 Seconds, with 16 Database-Queries
Zurück zur Startseite