Algorithm in PHP that brings all the combinations of dates that fit in a date space.
We have dates that each one of them has a weight. Someone searches for a range of dates.
If there is no exact date available we need to provide combinations with the smallest weight.
Example we have date range A that someone searches, and in the DB we have B1, B2… B13 etc.
Of course first thing the system will bring back is B7 that fits exactly tha A date range and probably has the smallest weight. But then we want a combination of all the rest, ex. B6 with part of B10 and the weight for that etc…
But we need all the available option sorted in the best way for lowest weight, the least overlapping between dates, closer to the search of the user.
We also need to be able to show option in case there is a switch needed for earlier arrival or later arrival.
Please check the image i attach in order to read specifications.
The important for us is the algorithm to bring the correct results.
Previous experience will be much appreciated. This is part of bigger project we are seeking someone for a long term coordination.
Budget: $150
Posted On: July 26, 2014 08:59 UTC
ID: 204319374
Category: Web Development > Web Programming
Skills: Array, Array, Array
Country: Greece
click to apply
from Online Job Search
We have dates that each one of them has a weight. Someone searches for a range of dates.
If there is no exact date available we need to provide combinations with the smallest weight.
Example we have date range A that someone searches, and in the DB we have B1, B2… B13 etc.
Of course first thing the system will bring back is B7 that fits exactly tha A date range and probably has the smallest weight. But then we want a combination of all the rest, ex. B6 with part of B10 and the weight for that etc…
But we need all the available option sorted in the best way for lowest weight, the least overlapping between dates, closer to the search of the user.
We also need to be able to show option in case there is a switch needed for earlier arrival or later arrival.
Please check the image i attach in order to read specifications.
The important for us is the algorithm to bring the correct results.
Previous experience will be much appreciated. This is part of bigger project we are seeking someone for a long term coordination.
Budget: $150
Posted On: July 26, 2014 08:59 UTC
ID: 204319374
Category: Web Development > Web Programming
Skills: Array, Array, Array
Country: Greece
click to apply
from Online Job Search
No comments:
Post a Comment