Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Problem with Object Oriented Design (programming issue)

Author: Roy Eassa

Date: 12:18:58 09/16/03

Go up one level in this thread


On September 15, 2003 at 13:40:09, Dan Andersson wrote:

> A little sidenote. When you have an unbounded pool of resources for use. It
>pays to try different schemes for managing those resources. When you exceed the
>bounds currently allocated you might add a constant number n of additional
>resources. Or choose to add an amount that is a function of the current number
>or used resources k*#resources. In that way you don't trigger the boundary
>condition as often.
> I have found the latter scheme to be better in most applictions I have
>programmed. But as always YMMV.
>
>MvH Dan Andersson


Like when you run out of toilet paper, you don't run to the store and buy just
one more sheet or even just one more roll?  (Or you'd be running to the store
very often!)  But you don't buy 100,000 more rolls, either.

That's one analogy that occurs to me.  :-)



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.