fast pythonic algorithm question
Diez B. Roggisch
deets at nospam.web.de
Tue Aug 1 11:13:00 EDT 2006
Guyon Morée wrote:
> Memory is no problem. It just needs to be as fast as possible, if
> that's what this is, fine.
>
> If not, I'd like to find out what is :)
I'd say it is as fast as it can get - using hashing for lookups is O(n) in
most cases, where bisection or other order-based lookups have O(log n)
Additionally, dict lookups are fully written in C.
Diez
More information about the Python-list
mailing list