POV-Ray : Newsgroups : povray.off-topic : Nice data structure : Re: Nice data structure Server Time
5 Sep 2024 15:26:59 EDT (-0400)
  Re: Nice data structure  
From: Darren New
Date: 20 Jun 2009 14:15:32
Message: <4a3d2744$1@news.povray.org>
Warp wrote:
> when a new string is added which already has an existing node in the tree,
> it will benefit from it. 

I think that would work with the caveat that you have to distinguish between 
nodes without a child and nodes whose only child is '\0'.  That is, not all 
your branches will end in a '\0' as shown in the picture. I'd have to think 
harder about the performance implications for failed lookups, too.

-- 
   Darren New, San Diego CA, USA (PST)
   Insanity is a small city on the western
   border of the State of Mind.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.