- A center(lat=x,lng=y) ‘C’ from which a delivery boy makes a round trip.
- A delivery boy has a bag which may contain at the most 10 boxes to deliver.
- A set of points Di (lat=xi,lng=yi) around ‘C’ where the delivery has to be done. D=number of Di & 1<=D<=10
- Each Di either belongs to time window(30 minutes) W1 or W2 where W1 is something like 11-30 am to 12 pm and W2 like 12 pm to 12-30 pm
- Each delivery has to meet an SLA (service level agreement). Eg- If the order O1 at drop point D1 belongs to W1 then it must be delivered within W1 window.
Task – Find the shortest time path such that the delivery boy meets SLA for maximum number of orders. The best path is the one where SLA is met for all orders.. I think it will be better if I start with a couple of variations.. Use these variations in dry runs and gather some data for each of the variations.. What I am looking for – Any other cues/variations that I can use.. The greedy approach is already up and running. I am gathering real time data to measure its performance.. CLARIFICATIONS If SLA’s can’t be met, do the deliveries still need to be made? – Yes, in those cases the best algorithm will be the one with minimum SLA breaches..followed by minimum time.. Are there algorithm constraints/metrics (I.E. execution speed, memory used,etc) that must be considered? – Speed – not so much an issue – even if it takes 1 minute to run algo its ok, memory – it may take upto 0.5 gb.. Also if it turns out to be very compute intensive.. I can buy a new machine for running this algo.. Will you need to scale up beyond the relatively small inputs stated – NO. The delivery boys capacity is fixed. It may at the most become 15 (from 10 earlier)
Asked By : abipc
Answered By : Pikalek
Best Answer from StackOverflow
Question Source : http://cs.stackexchange.com/questions/45422