LIU Ming-zhu DING Yi-nan ZHENG Yun-fei. Algorithm Optimization and Realization on Public TransportationInformation Inquiry Based on XML Data[J]. 2015, 20(2): 85-090.
DOI:
LIU Ming-zhu DING Yi-nan ZHENG Yun-fei. Algorithm Optimization and Realization on Public TransportationInformation Inquiry Based on XML Data[J]. 2015, 20(2): 85-090.DOI: 10.15938/j.jhust.2015.02.016.
Algorithm Optimization and Realization on Public TransportationInformation Inquiry Based on XML Data
For the complex and cumbersome problems of bus lines,an accurate and efficient public transportation information inquiry system must be provided to meet people’s daily travel needs. This public transportation information inquiry system is based on XML data. By using B/S mode,ASP. NET framework and the C#language,a practical public transportation information inquiry system has been built. Firstly,this paper analyzed the path opt1mlZatlon pr1nG’lples an(1 aG’h1eVe(1 a speG’1f1G’ meth0(1 t0 G’alG’ulate the path (1lstanG’e base(1 On Dl}kstra 6 algOrlthmAnd then,a improving Dijkstra algorithm has been provided by reducing the number and order of temporary nodesto reduce the time occupation for finding the paths and simplified the calculated amount. Finally,as an examplethe improved Dijkstra algorithm has been used in Tianjin public transportation information inquiry system,the resultindicates that using the new algorithm can not only shorten time occupation for query but also save the internalmemory.