Optimization Study of Desert Traversing Routes Based on Floyd and Greedy Algorithms

Authors

  • Xiaolin Liu
  • Yuyang Qi
  • Xuecong Li
  • Jing Hai

DOI:

https://doi.org/10.54097/jceim.v11i3.07

Keywords:

Floyd Algorithm, Greedy Method, Monte Carlo Simulation, Desert Traversal

Abstract

This paper is based on a desert traversal game to reach the endpoint within the specified time and keep as much money as possible, so it is necessary to give a reasonable choice of routes and optimize the routes. This paper defines the adjacency matrix of the graph and borrows the Floyd algorithm to get the two shortest routes: "to mine" and "not to mine"; secondly, based on the basic assumption that "players will give priority to routes containing villages", the shortest routes are optimized and the shortest routes are optimized to be "to mine" and "not to mine". Secondly, based on the basic assumption that "players will prefer the route containing villages", the shortest route is optimized to the shortest route passing through villages; Thirdly, based on the objective of "retaining as much money as possible", mining in mines is divided into "continuous mining" and "non-continuous mining". "Finally, the greedy method is used to obtain the funds of the three cases of the two routes are 9410-yuan, 10430 yuan, and 9800 yuan, and the remaining funds are compared to obtain the optimal route for the player to pass the game. Afterward, the weather probability of each day is estimated and the weather sequence is randomly generated; secondly, combining the map information and the weather condition of the day, the dynamic strategy should be adopted by the player given; again, Monte Carlo simulation is used to simulate the whole decision-making process, and the performance of the model is optimized by adjusting the parameters of the model.

References

YANG Chengjing, SHEN Weihong, GUO Xiaomin. Research on crossing desert strategy based on single-objective linear programming[J]. Modern Information Technology, 2023, 7(01):127-130+134.

DOI:10.19850/j.cnki.2096-4706.2023.01.034.

Deng Chenchen,Huang Yuxuan,Qi Zekun et al. Research on the strategy of crossing desert game based on Markov decision[J]. China Collective Economy, 2022, (08):119-122.

Tang Jifeng. Research on the strategy of "crossing the desert"[J]. Science and Technology Innovation,2022, (03):67-70.

ZHOU Longgang, LIU Ting, LU Jinzhu. Traversing path planning for farmland in hilly areas based on Floyd and improved genetic algorithm[J/OL]. Smart Agriculture (in Chinese and English), 1-13[2023-11-07]

http://kns.cnki.net/kcms/detail/10.1681.S.20231010.2232.004.html.

H. Yang,Y. Xie. Regional energy storage allocation strategy for 5G base station based on Floyd algorithm[J/OL]. Journal of Guangxi Normal University (Natural Science Edition),1-17[2023-11-07]

https://doi.org/10.16088/j.issn.1001-6600.2023042707.

Sun Yuan. Risk identification and analysis of engineering construction stage based on Monte Carlo simulation[J]. Popular Standardization,2023, (20):63-65.

LU Hang-ship, LONG Gen, TU Jun-yao et al. Design method of rotary adjustable inductor for very low frequency based on structural parameter analysis and Monte Carlo method[J/OL]. Chinese Journal of Electrical Engineering,1-13[2023-11-07]

http://kns.cnki.net/kcms/detail/11.2107.TM.20231020.1806.016.html.

Downloads

Published

21-11-2023

Issue

Section

Articles

How to Cite

Liu, X., Qi, Y., Li, X., & Hai, J. (2023). Optimization Study of Desert Traversing Routes Based on Floyd and Greedy Algorithms. Journal of Computing and Electronic Information Management, 11(3), 29-33. https://doi.org/10.54097/jceim.v11i3.07