comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthewjheaney@earthlink.net>
Subject: Re: Multiple linked data structure
Date: Thu, 28 Aug 2003 01:31:11 GMT
Date: 2003-08-28T01:31:11+00:00	[thread overview]
Message-ID: <uhe42d0tz.fsf@earthlink.net> (raw)
In-Reply-To: 404ee0af.0308270752.90ac2b6@posting.google.com

fjloma@andaluciajunta.es (Francisco Javier Loma Daza) writes:

> Have you faced a similar question? are there a design pattern that
> encapsulates and solves efficiently this kind of problems?

It sounds like most of your problems can be solved with lists.

The Charles library has both single and double-linked lists.  When you
insert an item in the list, an iterator is returned that designates the
new list item.

You can then put the list iterator into any other kind of container,
such as a queue or even another list.

If you need to perform lookups that have better then O(n) time
complexity you can use the sets or maps.

Charles is available at my home page.

http://home.earthlink.net/~matthewjheaney/charles/








  reply	other threads:[~2003-08-28  1:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-27 15:52 Multiple linked data structure Francisco Javier Loma Daza
2003-08-28  1:31 ` Matthew Heaney [this message]
2003-08-28  9:03 ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox