comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Help needed - Upper Bound of an array - Question.
Date: Tue, 07 Feb 2012 16:27:01 +0100
Date: 2012-02-07T16:27:01+01:00	[thread overview]
Message-ID: <op.v9bejbmpule2fv@douda-yannick> (raw)
In-Reply-To: cc48b803-8033-4d10-8d9d-145e5791db47@k6g2000vbz.googlegroups.com

Le Tue, 07 Feb 2012 16:08:11 +0100, Ludovic Brenta  
<ludovic@ludovic-brenta.org> a écrit:
> Alternatively, you should consider replacing the array
> with a rope (see  
> http://en.wikipedia.org/wiki/Rope_%28computer_science%29).
Or alternatively again, and as we can suppose there will be no insertion  
or removal (so much inefficient with an array, he would not have choose an  
array), a balanced binary tree, which is very fast and easy when created  
for a given fixed size. I did it some years ago, on a machine with heap  
fragmentation and no virtual memory. Above all, appending is still fast  
and simple, if ever the size has to be increased.

-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



  reply	other threads:[~2012-02-07 15:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07 14:41 Help needed - Upper Bound of an array - Question adacrypt
2012-02-07 15:00 ` Yannick Duchêne (Hibou57)
2012-02-07 15:04 ` Mark Lorenzen
2012-02-07 15:08 ` Ludovic Brenta
2012-02-07 15:27   ` Yannick Duchêne (Hibou57) [this message]
2012-02-07 15:59   ` adacrypt
2012-02-07 16:13     ` Gautier write-only
2012-02-07 17:30     ` Jeffrey Carter
2012-02-07 19:51       ` tmoran
2012-02-09  3:31         ` Randy Brukardt
2012-02-07 18:22     ` Ludovic Brenta
2012-02-07 20:42       ` adacrypt
2012-02-07 18:56     ` Georg Bauhaus
2012-02-07 21:22     ` Robert A Duff
2012-02-07 15:33 ` Álex R. Mosteo
2012-02-07 22:08 ` Jerry
replies disabled

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