Year: 2026 | Month: November | Volume: 13 | Issue: 11 | Pages: 287-298
DOI: https://doi.org/10.52403/ijrr.20261126
Optimization of Tourist Routes Using the Floyd–Warshall Algorithm with a Multi-Entry-Point Approach in Kota Lama Semarang
Handika Lintang Saputra1, Galih Panca Utama1, Benediktus Panji Pradipta1
1Department of Mathematics, Faculty of Science and Mathematics, Universitas Diponegoro, Semarang, Indonesia.
Corresponding Author: Benediktus Panji Pradipta
ABSTRACT
ABSTRACT
Efficient pedestrian navigation is important for visitors exploring Kota Lama Semarang, a historic urban district containing closely spaced cultural attractions and multiple access points. This study constructs a static, undirected, weighted graph of 15 locations, consisting of three parking-based entry points and 12 tourist destinations, and applies the Floyd–Warshall algorithm to identify shortest walking paths between all pairs of nodes. The network contains 30 pedestrian connections weighted by walking distances in metres. Starting from the initial distance matrix, the algorithm performs 15 intermediate-node iterations and reconstructs 36 entry-to-attraction routes. Independent shortest-path calculations verify the resulting distances and node sequences. The north entrance (parking area in front of PT Samudera) produces the shortest access distance for 11 of the 12 attractions, whereas the west entrance provides the shortest access to Mberok Bridge. The mean distances from the east, north, and west entrances are 254.8, 131.2, and 334.1 m, respectively. The maximum shortest-path distance in the network is 598 m. The findings demonstrate how an all-pairs shortest-path matrix can support entry-specific pedestrian wayfinding in a heritage district. The recommendations concern individual destinations rather than optimized multi-stop sightseeing itineraries; dynamic travel conditions and accessibility constraints are outside the model scope.
Keywords: Shortest path; Floyd–Warshall algorithm; pedestrian network; multi-entry points; heritage tourism; Kota Lama Semarang.
[PDF Full Text]