[Haskell-cafe] Re: Bubble sort algorithm implementations (Haskell vs. C)

Felipe Lessa felipe.lessa at gmail.com
Sun Mar 21 22:50:07 EDT 2010


On Mon, Mar 22, 2010 at 01:08:39AM +0000, kingping wrote:
> Here's my C implementation:
> http://hpaste.org/fastcgi/hpaste.fcgi/view?id=24191#a24191

I don't know how much difference in time there would be, but you
should use lists in C and/or mutable arrays in Haskell, otherwise
you are comparing apples to oranges.  Comparision of algorithms
should use the same data structures, unless you're asking for a
comparision of "idiomatic" implementations.

Cheers,

--
Felipe.


More information about the Haskell-Cafe mailing list