Jingbang Chen , Meng He , J. Ian Munro , Richard Peng , Kaiyu Wu , Daniel J. Zhang
{"title":"Distance queries over dynamic interval graphs","authors":"Jingbang Chen , Meng He , J. Ian Munro , Richard Peng , Kaiyu Wu , Daniel J. Zhang","doi":"10.1016/j.comgeo.2024.102103","DOIUrl":null,"url":null,"abstract":"<div><p>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.</p><p>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 <span><math><mi>O</mi><mo>(</mo><mi>lg</mi><mo></mo><mi>n</mi><mo>)</mo></math></span> worst-case time, where <em>n</em> is the number of vertices currently in <em>G</em>. Under incremental (insertion only) or decremental (deletion only) settings in general interval graphs, we design linear space data structures that support distance queries in <span><math><mi>O</mi><mo>(</mo><mi>lg</mi><mo></mo><mi>n</mi><mo>)</mo></math></span> worst-case time and vertex insertion or deletion in <span><math><mi>O</mi><mo>(</mo><mi>lg</mi><mo></mo><mi>n</mi><mo>)</mo></math></span> amortized time, where <em>n</em> is the maximum number of vertices in the graph. Under fully dynamic settings in general interval graphs, we design a data structure that represents an interval graph <em>G</em> in <span><math><mi>O</mi><mo>(</mo><mi>n</mi><mo>)</mo></math></span> words of space to support distance queries in <span><math><mi>O</mi><mo>(</mo><mi>n</mi><mi>lg</mi><mo></mo><mi>n</mi><mo>/</mo><mi>S</mi><mo>(</mo><mi>n</mi><mo>)</mo><mo>)</mo></math></span> worst-case time and vertex insertion or deletion in <span><math><mi>O</mi><mo>(</mo><mi>S</mi><mo>(</mo><mi>n</mi><mo>)</mo><mo>+</mo><mi>lg</mi><mo></mo><mi>n</mi><mo>)</mo></math></span> worst-case time, where <em>n</em> is the number of vertices currently in <em>G</em> and <span><math><mi>S</mi><mo>(</mo><mi>n</mi><mo>)</mo></math></span> is an arbitrary function that satisfies <span><math><mi>S</mi><mo>(</mo><mi>n</mi><mo>)</mo><mo>=</mo><mi>Ω</mi><mo>(</mo><mn>1</mn><mo>)</mo></math></span> and <span><math><mi>S</mi><mo>(</mo><mi>n</mi><mo>)</mo><mo>=</mo><mi>O</mi><mo>(</mo><mi>n</mi><mo>)</mo></math></span>. This implies an <span><math><mi>O</mi><mo>(</mo><mi>n</mi><mo>)</mo></math></span>-word solution with <span><math><mi>O</mi><mo>(</mo><msqrt><mrow><mi>n</mi><mi>lg</mi><mo></mo><mi>n</mi></mrow></msqrt><mo>)</mo></math></span>-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 <span><math><mi>O</mi><mo>(</mo><mi>lg</mi><mo></mo><mi>n</mi><mo>)</mo></math></span> worst-case time per vertex.</p><p>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.</p></div>","PeriodicalId":51001,"journal":{"name":"Computational Geometry-Theory and Applications","volume":null,"pages":null},"PeriodicalIF":0.4000,"publicationDate":"2024-05-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S0925772124000257/pdfft?md5=ac15b97cfeb7f82df769c6ba4285f13b&pid=1-s2.0-S0925772124000257-main.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computational Geometry-Theory and Applications","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0925772124000257","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"MATHEMATICS","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 worst-case time, where n is the number of vertices currently in G. Under incremental (insertion only) or decremental (deletion only) settings in general interval graphs, we design linear space data structures that support distance queries in worst-case time and vertex insertion or deletion in amortized time, where n is the maximum number of vertices in the graph. Under fully dynamic settings in general interval graphs, we design a data structure that represents an interval graph G in words of space to support distance queries in worst-case time and vertex insertion or deletion in worst-case time, where n is the number of vertices currently in G and is an arbitrary function that satisfies and . This implies an -word solution with -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 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.
期刊介绍:
Computational Geometry is a forum for research in theoretical and applied aspects of computational geometry. The journal publishes fundamental research in all areas of the subject, as well as disseminating information on the applications, techniques, and use of computational geometry. Computational Geometry publishes articles on the design and analysis of geometric algorithms. All aspects of computational geometry are covered, including the numerical, graph theoretical and combinatorial aspects. Also welcomed are computational geometry solutions to fundamental problems arising in computer graphics, pattern recognition, robotics, image processing, CAD-CAM, VLSI design and geographical information systems.
Computational Geometry features a special section containing open problems and concise reports on implementations of computational geometry tools.