计算机应用 ›› 2005, Vol. 25 ›› Issue (02): 422-425.DOI: 10.3724/SP.J.1087.2005.0422

• 典型应用 • 上一篇    下一篇

城市公交查询系统的研究与设计

张永梅1,2,韩焱1,陈立潮2   

  1. 1.华北工学院电子信息工程系;2.华北工学院计算机科学与技术系
  • 发布日期:2005-02-01 出版日期:2005-02-01

Research and design of the city public transportation query system

ZHANG Yong-mei1,2, HAN Yan1, CHEN Li-chao2   

  1. 1. Department of Electronic and Information Engineering, North China Institute of Technology, Taiyuan Shanxi 030051, China; 2.Department of Computer Science and Technology, North China Institute of Technology, Taiyuan Shanxi 030051, China
  • Online:2005-02-01 Published:2005-02-01

摘要: 给出了城市公交查询系统的空间数据结构。在Dijkstra算法的基础上,借助人工智能中状态空间搜索和动态截枝的思想,提出了状态空间搜索求第K最短路径的智能搜索算法。该算法能对所查询的交通路线与乘车方案等用电子地图的形式给予显示,并更换不同城市的地图。测试表明,该系统具有速度快、多媒体显示、维护方便、通用性强等特点。

关键词: K条最短路径, 智能搜索, Dijkstra算法, 公交查询

Abstract: Spatial data structure of the implementation for the city public transportation query system was proposed. Based on Dijkstra's shortest path algorithm, an intelligent algorithm for state space searching for K shortest path was presented with the aid of the thoughts of state space searching and dynamic cut branch in artificial intelligence. The algorithm could show inquiry traffic route, riding scheme and so on through electronic map, and change maps of different cities. The practical tests of the system show that the query system designed in the method presented by this paper has the characteristics of high speed, multimedia display, convenient maintenance, and powerful commonality.

Key words: K shortest paths, intelligent search, Dijkstra algorithm, public transportation query

中图分类号: