View Single Post

  #2 (permalink)  
Old 08-12-2005
Mohamed Mohamed is offline
Member
Green Belt
 
Join Date: Mar 2005
Posts: 97
Hi,

How many times do you calculate a route?
What kind of algorithm are you using?

If you calculate X airport possibilities for 470 points, in a linear way, it will be a slow programm.

I don't know how Mappoint optimize the routes, but I use it with my own
algorithms when I have more than one calculation to do in my Home delivery system.

To have an idea, how would you, programmatically solve this Albert Einstein's enigma :

Five men live in five houses of five different color.
They smoke five different brands of cigar,drink five different beverages,and keep five different pets.

We know that:
* The Norwegian lives in the first house.
* The brit lives in the red house.
* The Swede keeps dogs as pets.
* The Dane drinks tea.
* The green house is just on the left of the white house.
* The green house owner drinks coffee.
* The man who smokes Blend lives next to the one who keeps cats.
* The person who smokes Pall Mall rears birds.
* The owner of the yellow house smokes Dunhill.
* The man living in the house right in the center drinks milk.
* The German smokes Prince.
* The man who smokes Blend has a neighbor who drinks water.
* The Norwegian lives next to the blue house.
* The man who keeps horses lives next to the man who smokes Dunhill.
* The owner who smokes Blue Master drinks beer.

The question is ... Who keeps a fish?



May be there are other reasons of slowing your programm:

- Check if in your programm Mappoint is not laoded too many times
- In your programm make the necessary initialization of your objects and variables.


Bye
__________________
Mohamed
www.AtlasCouscous.com
Reply With Quote