Research Article

ATIPS: Automatic Travel Itinerary Planning System for Domestic Areas

Algorithm 1

Travel scheduling algorithm.
data = {null}: travel schedule
ct: current time
lt: time for lunch
dt: time for dinner
bt: time for bed
(1) WHILE travelDay NOT EQUAL 0
(2)  IF ct ≧ lt THEN
(3)    = pickRestaurant();
(4)  ELSEIF ct ≧ dt THEN
(5)    = pickRestaurant();
(6)  ELSEIF ct ≧ bt THEN
(7)    = pickHotel();
(8)   decrease travelDay
(9)  ELSE
(10)    = pickSpot();
(11) data = data
(12)  ENDWHILE