views:

150

answers:

1

I'm developing a mobile web site that support the rent a cars process and handles possible problems that can occurs.

I was wondering if there are algorithms that could help me to (there are just examples):

  • relaxing constraint: if 2 reservations are overlapping, change start_booking/end_booking
  • use in an efficient way the cars instead of using the same set of them
  • crashes: if a car crashes, the system should find a replacement for reservation made on that car

I'm looking for just some inputs (tipps).

I'm going to develop this website with jsp

+1  A: 

Sadly this reminds me of something I had to do in the professional world, with pretty much the same set of requirements. Basically what you need is for the CarManager to know what dates the cars are reserved for, if they are valid, and your second point makes very little sense.

Woot4Moo
i actually tried to come up with a funny comment about what that second point might mean, but it makes so little sense i couldn't even do that.
Alex Beardsley
Maybe he needs some advanced caching algorithm incase the contains method isn't fast enough?
Woot4Moo