Journal of Computer Applications ›› 2023, Vol. 43 ›› Issue (7): 2026-2033.DOI: 10.11772/j.issn.1001-9081.2022091371

• The 39th CCF National Database Conference (NDBC 2022) • Previous Articles    

Dynamic aggregate nearest neighbor query algorithm in weighted road network space

Fangshu CHEN(), Wei ZHANG, Xiaoming HU, Yufei ZHANG, Xiankai MENG, Linxiang SHI   

  1. School of Computer and Information Engineering,Shanghai Polytechnic University,Shanghai 201209,China
  • Received:2022-08-25 Revised:2022-09-20 Accepted:2022-10-12 Online:2023-07-20 Published:2023-07-10
  • Contact: Fangshu CHEN
  • About author:CHEN Fangshu, born in 1989, Ph. D., lecturer. Her research interests include data mining, spatio-temporal data analysis.
    ZHANG Wei, born in 1999, M. S. candidate. His research interests include spatial index, graph neural network.
    HU Xiaoming, born in 1978, Ph. D., professor. Her research interests include cryptography, information security, network security.
    ZHANG Yufei, born in 1999, M. S. candidate. His research interests include graph neural network, complex network.
    MENG Xiankai, born in 1985, Ph. D., lecturer. His research interests include artificial intelligence, knowledge graph.
    SHI Linxiang, born in 1972, M. S., associate professor. His research interests include computer-aided design, smart detection.
  • Supported by:
    National Natural Science Foundation of China(62002216);Shanghai Sailing Program(20YF1414400);Youth Project of Shanghai Polytechnic University(EGD22QD03);Collaborative Innovation Platform Construction Project of Electronic Information Master of Shanghai Polytechnic University(A10GY21F015)

加权路网空间中动态聚集最近邻居查询算法

陈方疏(), 张为, 胡小明, 张宇飞, 孟宪凯, 石林祥   

  1. 上海第二工业大学 计算机与信息工程学院,上海 201209
  • 通讯作者: 陈方疏
  • 作者简介:陈方疏(1989—),女,湖北襄阳人,讲师,博士,CCF会员,主要研究方向:数据挖掘、时空数据分析;
    张为(1999—),男,湖北黄冈人,硕士研究生,CCF学生会员,主要研究方向:空间索引、图神经网络;
    胡小明(1978—),女,浙江慈溪人,教授,博士,CCF会员,主要研究方向:密码学、信息安全、网络安全;
    张宇飞(1999—),男,湖南长沙人,硕士研究生,CCF学生会员,主要研究方向:图神经网络、复杂网络;
    孟宪凯(1985—),男,黑龙江讷河人,讲师,博士,CCF会员,主要研究方向:人工智能、知识图谱;
    石林祥(1972—),男,湖北黄冈人,副教授,硕士,CCF会员,主要研究方向:计算机辅助设计、智能检测。
  • 基金资助:
    国家自然科学基金资助项目(62002216);上海市青年科技英才扬帆计划项目(20YF1414400);上海第二工业大学青年基金资助项目(EGD22QD03);上海第二工业大学电子信息类专业硕士协同创新平台建设项目(A10GY21F015)

Abstract:

As a classical problem in spatial databases, Aggregate Nearest Neighbor (ANN) query is of great importance in the optimization of network link structures, the location selection of logistics distribution points and the car-sharing services, and can effectively contribute to the development of fields such as logistics, mobile Internet industry and operations research. The existing research has some shortcomings: lack of efficient index structure for large-scale dynamic road network data, low query efficiency of the algorithms when the data point locations move in real time and network weights update dynamically. To address these problems, an ANN query algorithm in dynamic scenarios was proposed. Firstly, with adopting G-tree as the road network index, a pruning algorithm combining spatial index structures such as quadtrees and k-d trees with the Incremental Euclidean Restriction (IER) algorithm was proposed to solve ANN queries in statistic space. Then, aiming at the issue of frequent updates of data point locations in dynamic scenarios, the time window and safe zone update strategy were added to reduce the iteration times of the algorithm, experimental results showed that the efficiency could be improved by 8% to 85%. Finally, for ANN query problems with road network weight changed, based on historical query results, two correction based continuous query algorithms were proposed to obtain the current query results according to the increment of weight changes. In certain scenarios, these algorithms can reduce errors by approximately 50%. The theoretical research and experimental results show that the proposed algorithms can solve the ANN query problems in dynamic scenarios efficiently and more accurately.

Key words: Aggregate Nearest Neighbor (ANN) query, road network, weighted space, dynamic query, spatial index

摘要:

聚集最近邻居(ANN)查询作为空间数据库的经典问题在网络链路结构优化、物流集散点选址、共享汽车服务等方面有着重要的意义,能有效促进物流、移动互联网行业以及运筹学等领域的发展。现有的研究存在如下不足:缺少针对大规模动态路网数据的高效索引结构,在数据点位置实时移动以及路网权重动态更新的场景下算法的查询效率较低。针对上述不足,提出动态场景下的ANN查询算法。首先利用G-tree作为路网索引,提出将四叉树和k-d树等空间索引结构与增量欧氏空间限制(IER)算法结合起来的剪枝方法,以完成静态空间下的ANN查询;随后针对动态场景下数据点位置频繁更新的问题,加入时间窗口及安全区域更新策略,以减少算法的重复计算次数,实验结果表明效率能提高8%~85%;最后针对路网权重变化的ANN查询问题,提出两个基于校正的连续查询方法,在历史查询结果的基础上,根据权重变化的增量来得到当前的查询结果,在某些场景中能够有效降低50%左右的误差。理论研究和实验结果表明,所提算法能够高效并且较为准确地解决动态场景下的ANN查询问题。

关键词: 聚集最近邻居查询, 路网, 加权空间, 动态查询, 空间索引

CLC Number: