Hi all,
I wanted to know whether there is a more efficient way to delete an entry
from a dictionary (instead of using the 'del' function), because after
analyzing the time taken by the code, it seems to me that the 'del' function
takes most of the time. I might be incorrect as well.
Kindly help me
nt changes in the memory usage even when the
"dimension" was doubled
-- Any clues?
Thank you for all your suggestions till this point.
Regards.
On Tue, Jul 7, 2009 at 1:28 AM, Antoine Pitrou wrote:
> mayank gupta gmail.com> writes:
> >
> > After a little analysis
gards.
On Mon, Jul 6, 2009 at 12:03 PM, Chris Rebert wrote:
> On Mon, Jul 6, 2009 at 2:55 AM, mayank gupta wrote:
> > Hi,
> >
> > I am creating a tree data-structure in python; with nodes of the tree
> > created by a simple class :
> >
> > class Node :
>
Hi,
I am creating a tree data-structure in python; with nodes of the tree
created by a simple class :
class Node :
def __init__(self , other attributes):
# initialise the attributes here!!
But the problem is I am working with a huge tree (millions of nodes); and
each no