searching algorithm
Neil Cerutti
horpner at yahoo.com
Fri May 11 09:15:01 EDT 2007
On 2007-05-11, ciju <mail.ciju.cherian at gmail.com> wrote:
> By the way, both data structures could be implemented as tuple
> in python, for I suppose, if only lookup is needed tuple gives
> better performance than list.
I used a list instead of a tuple where I thought a list would be
convenient while building the data structure. But you could
convert everything to tuples in the end, it's true.
--
Neil Cerutti
More information about the Python-list
mailing list