Algorithms using Python?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Sep 21 21:28:04 EDT 2012


On Fri, 21 Sep 2012 17:14:14 -0400, Dennis Lee Bieber wrote:

> On Fri, 21 Sep 2012 14:07:01 -0600, Ian Kelly <ian.g.kelly at gmail.com>
> declaimed the following in gmane.comp.python.general:
> 
> 
>> It seems to work fine to me.
> 
> 	You are working with dynamically allocated memory for the nodes; 

Doesn't everybody? :)


> I was envisioning the implementation of linked lists in what would have
> been statically allocated arrays (or one large dynamic memory block with
> all data tracking kept internally) (ie; a naive attempt using a Python
> list where nodes are [nxtIndex, data], and accidently removing a node
> from that list).

Writing Fortran77 in Python!

:)



-- 
Steven



More information about the Python-list mailing list