Jingbang Chen, Meng He, J. I. Munro, Richard Peng, Kaiyu Wu, Daniel J. Zhang
{"title":"Distance Queries over Dynamic Interval Graphs","authors":"Jingbang Chen, Meng He, J. I. Munro, Richard Peng, Kaiyu Wu, Daniel J. Zhang","doi":"10.4230/LIPIcs.ISAAC.2023.18","DOIUrl":null,"url":null,"abstract":"We design the first dynamic distance oracles for interval graphs, which are intersection graphs of a set of intervals on the real line, and for proper interval graphs, which are intersection graphs of a set of intervals in which no interval is properly contained in another. For proper interval graphs, we design a linear space data structure which supports distance queries (computing the distance between two query vertices) and vertex insertion or deletion in O (lg n ) worst-case time, where n is the number of vertices currently in G . Under incremental (insertion only) or decremental (deletion only) settings, we design linear space data structures that support distance queries in O (lg n ) worst-case time and vertex insertion or deletion in O (lg n ) amortized time, where n is the maximum number of vertices in the graph. Under fully dynamic settings, we design a data structure that represents an interval graph G in O ( n ) words of space to support distance queries in O ( n lg n/S ( n )) worst-case time and vertex insertion or deletion in O ( S ( n ) + lg n ) worst-case time, where n is the number of vertices currently in G and S ( n ) is an arbitrary function that satisfies S ( n ) = Ω(1) and S ( n ) = O ( n ). This implies an O ( n )-word solution with O ( √ n lg n )-time support for both distance queries and updates. All four data structures can answer shortest path queries by reporting the vertices in the shortest path between two query vertices in O (lg n ) worst-case time per vertex. We also study the hardness of supporting distance queries under updates over an intersection graph of 3D axis-aligned line segments, which generalizes our problem to 3D. Finally, we solve the problem of computing the diameter of a dynamic connected interval graph.","PeriodicalId":281888,"journal":{"name":"International Symposium on Algorithms and Computation","volume":"24 1","pages":"18:1-18:19"},"PeriodicalIF":0.0000,"publicationDate":"2024-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Symposium on Algorithms and Computation","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4230/LIPIcs.ISAAC.2023.18","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
We design the first dynamic distance oracles for interval graphs, which are intersection graphs of a set of intervals on the real line, and for proper interval graphs, which are intersection graphs of a set of intervals in which no interval is properly contained in another. For proper interval graphs, we design a linear space data structure which supports distance queries (computing the distance between two query vertices) and vertex insertion or deletion in O (lg n ) worst-case time, where n is the number of vertices currently in G . Under incremental (insertion only) or decremental (deletion only) settings, we design linear space data structures that support distance queries in O (lg n ) worst-case time and vertex insertion or deletion in O (lg n ) amortized time, where n is the maximum number of vertices in the graph. Under fully dynamic settings, we design a data structure that represents an interval graph G in O ( n ) words of space to support distance queries in O ( n lg n/S ( n )) worst-case time and vertex insertion or deletion in O ( S ( n ) + lg n ) worst-case time, where n is the number of vertices currently in G and S ( n ) is an arbitrary function that satisfies S ( n ) = Ω(1) and S ( n ) = O ( n ). This implies an O ( n )-word solution with O ( √ n lg n )-time support for both distance queries and updates. All four data structures can answer shortest path queries by reporting the vertices in the shortest path between two query vertices in O (lg n ) worst-case time per vertex. We also study the hardness of supporting distance queries under updates over an intersection graph of 3D axis-aligned line segments, which generalizes our problem to 3D. Finally, we solve the problem of computing the diameter of a dynamic connected interval graph.
区间图是实线上一组区间的交点图,适当区间图是一组区间的交点图,其中没有区间适当地包含在另一个区间中。对于适当区间图,我们设计了一种线性空间数据结构,它支持距离查询(计算两个查询顶点之间的距离)和顶点插入或删除,最坏情况下只需 O (lg n ) 的时间,其中 n 是 G 中当前顶点的数量。在增量(仅插入)或减量(仅删除)设置下,我们设计了线性空间数据结构,可在 O (lg n ) 最坏情况时间内支持距离查询,在 O (lg n ) 摊销时间内支持顶点插入或删除,其中 n 是图中顶点的最大数量。在全动态设置下,我们设计了一种数据结构,用 O ( n ) 个字的空间来表示一个区间图 G,支持距离查询只需 O ( n lg n/S ( n )) 最坏情况时间,支持顶点插入或删除只需 O ( S ( n ) + lg n ) 最坏情况时间,其中 n 是当前 G 中的顶点数,S ( n ) 是满足 S ( n ) = Ω(1) 和 S ( n ) = O ( n ) 的任意函数。这意味着一个 O ( n )-字的解决方案在距离查询和更新时都有 O ( √ n lg n )-时间支持。所有四种数据结构都能回答最短路径查询,即在每个顶点 O (lg n ) 最坏情况时间内报告两个查询顶点之间最短路径上的顶点。我们还研究了在三维轴对齐线段交点图更新下支持距离查询的难度,这将我们的问题推广到了三维。最后,我们解决了计算动态连接区间图直径的问题。