Re: proportionality problem
- From: "jimmaureenrogers@xxxxxxxxxxxxxxxx" <jimmaureenrogers@xxxxxxxxxxxxxxxx>
- Date: 25 Feb 2006 18:35:47 -0800
Digital Puer wrote:
Suppose I have a list of resources, where each resource is
assigned a quality value 1 to 10, inclusive, where 1 is the
highest quality. I want to assign resource requests to each
of these resources in proportion to their quality value.
For example, if I have two resources A and B with quality
values 1 and 4, respectively, I would assign requests to
A and B with a 4:1 ratio because A has 4x the value of B.
How can I extend this to the general case with multiple
resources? For example, if A, B, and C have values 1, 2,
3, how would requests be assigned to A, B, and C? I think
it would be 6:3:2. What's a good way to compute this?
The problem is probably more complex than simple ratios.
Each resource has specific limitations that determine the
number of requests that can concurrently access that
resource. If the number of requests is small compared to
the limitation of the highest quality resource, then there
is no reason to allocate any lower quality resources at all.
A much simpler approach may be to assign first to the
highest quality resources, and assign to lower quality
resources only as a kind of cascading overflow.
Each resource can have an associated queue tracking
the number of concurrent requests using that resource.
When the queue is full, resources with the next lower
quality level are assigned requests. Continue this until
all resources are fully assigned. At that point a request
must wait for an available resource.
This scheme allows you to create requests which have
a minimum allowable quality associated with them.
Those requests must wait until a resource equal to
or greater than their minimum quality level becomes
available.
Jim Rogers
.
- References:
- proportionality problem
- From: Digital Puer
- proportionality problem
- Prev by Date: Re: Graph optimization
- Next by Date: Re: Data Directed Program Execution
- Previous by thread: Re: proportionality problem
- Next by thread: Re: proportionality problem
- Index(es):
Relevant Pages
|