Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

RE: FN-FORUM: "Network" analysis

date posted 24th January 2005 19:18

I think the bit reduction method will go some way to helping with the
size of the problem by limiting the number of records that have to be
included in the network - there's no point in duplicating a record after
all. I'll keep you guys posted as to what's eventually implemented

-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Alex
Farran
Sent: Monday, January 24, 2005 8:09 PM
To: Andy Macnaughton-Jones
Subject: Re: FN-FORUM: "Network" analysis


Charles Lecklider writes:

> Alex Farran wrote:
>> Charles Lecklider writes:
>>=20
>>> Starting with the cheapest heap (read: pitch) (or most expensive, or

>>> random, or whatever) allocate the longest period of time you can,=20
>>> starting on the day they want. You'll get 0 or more days. Calculate=20
>>> the next starting date, pick the next heap. Lather, rinse, repeat.
>>=20
>> That's an example of an heuristic algorithm, where the heuristic you=20
>> use is the longest period of time available for a pitch starting on a

>> given date. It's quite an extreme example because it relies entirely

>> on the heuristic, with no backtracking to explore other branches. It

>> won't produce the optimal result, but it is fast.

> Yes, but how much worse is it than the complex network-based version?=20
> How much easier is it to debug? Would the network version not be a=20
> good example of "premature optimisation"?

Oh, I'm not arguing against that solution, just putting it in the
context of the problem as it was framed, and my response. The network
diagram is just a way of visualising the problem, and your solution fits
into that visualisation. We're both saying the same thing, don't try
for a perfect fit if it's costly and you can get by with good enough.
Your solution is a practical demonstration of the heuristic approach I
suggested.

> In this case there's a compromise needed between maintaining=20
> availability on any given day (can we stay an extra day please?),=20
> performance, and maximising resource usage. My feeling is that a=20
> network-based solution will maximise resource usage, but at the=20
> expense of availability, and most certainly hurt performance. I think=20
> mine will be more user-friendly in that fewer people will have to move

> less often, but you might have been able to squeeze more people
through the system.
> You can of course come up with a dataset to disprove either, but the=20
> only valid test is to feed in the previous few years' data and see=20
> what happens. I'd be interested to see the results.

Actually I think your solution will fill the pitches just as well as any
other algorithm, but as the number of people booking increases it will
tend towards sub optimal allocation (ie lots of moving and further
between moves) earlier than is absolutely necessary. But that's just a
guess. Gauging the performance of one algorithm against another is what
you need the theory and testing for, but you may decide it's better to
optimise the time spent programming, since that's more expensive than
CPU cycles.

Thinking about the problem again. Another criteria for judging the
algorithm might be the 'evenness' of the solutions it returns. What I
mean is that the algorithms suggested so far will give the best bookings
to the earlier bookings and get progressively worse as the site fills
up. A really smart algorithm might aim to give an even level of service
to every camper, perhaps optimised for the typical number of bookings at
that time of year.

The bit reduction solution is interesting. I need to give that another
look to see if it short circuits the problem, or is simply a good
instruction level optimisation.

--=20

__o Alex Farran - Open source software specialist=20
_`\



Messages by Day
January 31st 2005
January 30th 2005
January 29th 2005
January 28th 2005
January 27th 2005
January 26th 2005
January 25th 2005
January 24th 2005
January 23rd 2005
January 22nd 2005
January 21st 2005
January 20th 2005
January 19th 2005
January 18th 2005
January 17th 2005
January 16th 2005
January 15th 2005
January 14th 2005
January 13th 2005
January 12th 2005
January 11th 2005
January 10th 2005
January 9th 2005
January 8th 2005
January 7th 2005
January 6th 2005
January 5th 2005
January 4th 2005
January 3rd 2005
January 2nd 2005
January 1st 2005


Messages by Month
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000