[Haskell-cafe] Short and sweet

Neil Mitchell ndmitchell at gmail.com
Fri May 18 14:22:59 EDT 2007


Hi

> Can anybody tell me what complexity class "nub" belongs to?

nub requires Eq and not Ord, therefore you can prove that _any_ nub,
no matter how good it is, must be O(n^2).

Thanks

Neil


More information about the Haskell-Cafe mailing list