Analysis of Bus Routes in Phra Nakhon Si Ayutthaya Province with Dijkstra’s Algorithm
Keywords:
Dijkstra’s algorithm, Shortest path, Weighted graphAbstract
Dijkstra's algorithm was invented to find the shortest path from one vertex to any vertex in the weighted graph. This research aims to study the routes of buses traveling between districts in Phra Nakhon Si Ayutthaya Province to provide the information for those traveling who want to consider the length of time used and travel expenses. By considering the problem in the form of a weighted graph, vertices in the graph represent the main pick-up points in each district. Phra Nakhon Si Ayutthaya Province has a total of 16 districts, with some districts having more than one main pick-up point. The total of 22 points of a graph was obtained. The edges in the graph represent the routes of buses traveling between districts. The obtained graph is considered in the form of two weighted graphs: the first graph is the weight of the time spent traveling on each route, taken from Google map. The second graph is the weight of the fare for each route, which was obtained by asking the information from drivers and passengers. After that, simple graph emerged by combining both graphs. For routes with more than one travel option in both graphs, only the route with the least weight will be considered by applying the Dijkstra’s algorithm on both graphs. The data obtained from the first graph show the shortest route that takes the shortest duration to travel from Phra Nakhon Si Ayutthaya District to all main pick-up point of other districts. The results of the second graph indicate the route with the lowest cost from Phra Nakhon Si Ayutthaya District to all main pick-up point of other districts.
References
นวรัตน์ อนันต์ชื่น. (2540). ทฤษฎีกราฟ 1. นครปฐม. ภาควิชาคณิตศาสตร์ คณะวิทยาศาสตร์ มหาวิทยาลัยศิลปากร.
นิรุชา อาภามงคลรัตน์ และ เปรมรัตน์ พูลสวัสดิ์. (2560). ระบบวางแผนการเดินทางท่องเที่ยวในจังหวัดสมุทรปราการโดยใช้ Dijkstra’s algorithm. การประชุมวิชาการระดับชาติวิทยาศาสตร์และเทคโนโลยีระหว่างสถาบัน ครั้งที่ 5 (หน้า 1476-1483). http://sci-database.hcu.ac.th/science/file/rsID195_F1_20170706160143.pdf
ปภัสรา ทิพย์ทำมา, วรดา นามวงษ์สา, ปรางทิพย์ ขวัญพุก, และ วิสุทธิ์ กิจชัยนุกูล. (2562). การวิเคราะห์เส้นทางจราจรในเขตเทศบาลเมืองเลย โดยใช้ Dijkstra’s Algorithm. การประชุมวิชาการระดับชาติด้านวิทยาศาสตร์ เทคโนโลยี และนวัตกรรม ครั้งที่ 1 (หน้า 132-138). https://ncst.lru.ac.th/downloadPaper.php?paper_id=19
สุวรรณี อัศวกุลชัย. (2560). การประยุกต์ใช้ไดค์สตราอัลกอริทึมกับเส้นทางจราจรเพื่อหาเส้นทางที่สั้นที่สุด. สมาคมสถาบันอุดมศึกษาเอกชนแห่งประเทศไทย ในพระราชูปถัมภ์สมเด็จพระเทพรัตนราชสุดาฯ สยามบรมราชกุมารี, 6(1), 5-14. https://apheit.bu.ac.th/jounal/science-vol6-1/1_04_formatted%20V6-1.pdf
Downloads
Published
Issue
Section
License
Copyright (c) 2024 SCIENCE AND TECHNOLOGY NAKHON SAWAN RAJABHAT UNIVERSITY JOURNAL

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.