News for hackers. Stuff that matters.
Re:Imperative vs. Declarative by textminer on Tuesday April 02, 2013 @02:10PM (#5481051)
Oh, now I have to yell at myself. No doubt Python's sorted is some n*logn quicksort, and not actually in quadratic time. Crow for all!
Re:Imperative vs. Declarative by masklinn on Tuesday April 02, 2013 @02:12PM (#5481068)
It's an adaptive mergesort-based sort: http://en.wikipedia.org/wiki/Timsort
Re:Imperative vs. Declarative by gnuvince on Tuesday April 02, 2013 @02:31PM (#5481224)
Still, I'd rather have a loop and be linear than using a sort and being linearithmic.