One price - Two travels

One price - Two travels

Bild des Benutzers Pierre-Louis R.

When I test my code on the "new_input1" scenario (which is available on the forum) it produces a different ouput than the one produced by the original code but is still valid in my opinion : the flights are different but the cost is the same.

The difference between the two outputs (let's say the work hard outputs) is the date of the return flight. The one I find takes off and lands earlier than the one found by the original code.

So here is my question : if two different flights are available, and have the same cost but different dates, which one should we choose ? In that particular case, as the traveller, I would like to go home as soon as possible, but this is not what the original code does.

3 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Bild des Benutzers eviltosha

This issue was discussed several times. Read here http://software.intel.com/fr-fr/forums/topic/336357 my comment about flights with same cost in new_input1, and answer from Cedric.

Bild des Benutzers Pierre-Louis R.

Thanks for the answer btw, I didn't even take time to thank you...
Should have searched better.

Melden Sie sich an, um einen Kommentar zu hinterlassen.