[erlang-questions] Bubble sort in Erlang
Tony Finch
dot@REDACTED
Sun May 20 02:29:08 CEST 2007
On Sat, 19 May 2007, Milen Dzhumerov wrote:
>
> So I wanted to implement some toy algorithms - would you believe me that
> I was kind of stuck for several days on the train while going to work
> implementing a simple bubble sort algorithm?
Quicksort and mergesort are easier to implement in a functional way than
bubblesort. Mergesort is generally faster in this setting.
http://www.erlang.org/doc/doc-5.5.4/doc/programming_examples/list_comprehensions.html#3.2
Tony.
--
f.a.n.finch <dot@REDACTED> http://dotat.at/
FISHER GERMAN BIGHT: SOUTH OR SOUTHWEST 5 TO 7. MODERATE OR ROUGH. RAIN OR
SHOWERS. MODERATE OR GOOD.
More information about the erlang-questions
mailing list