Carlos Alegría, Susanna Caroppo, Giordano Da Lozzo, Marco D’Elia, Giuseppe Di Battista, Fabrizio Frati, Fabrizio Grosso, Maurizio Patrignani
{"title":"平面st图的向上点集嵌入","authors":"Carlos Alegría, Susanna Caroppo, Giordano Da Lozzo, Marco D’Elia, Giuseppe Di Battista, Fabrizio Frati, Fabrizio Grosso, Maurizio Patrignani","doi":"10.1007/s00453-025-01302-2","DOIUrl":null,"url":null,"abstract":"<div><p>We study upward pointset embeddings (<span>UPSE</span>s) of planar <i>st</i>-graphs. Let <i>G</i> be a planar <i>st</i>-graph and let <span>\\(S \\subset \\mathbb {R}^2\\)</span> be a pointset with <span>\\(|S|= |V(G)|\\)</span>. An <i>UPSE</i> of <i>G</i> on <i>S</i> is an upward planar straight-line drawing of <i>G</i> that maps the vertices of <i>G</i> to the points of <i>S</i>. We consider both the problem of testing the existence of an <span>UPSE</span> of <i>G</i> on <i>S</i> (<span>UPSE Testing</span>) and the problem of enumerating all <span>UPSE</span>s of <i>G</i> on <i>S</i>. We prove that <span>UPSE Testing</span> is <span>NP</span>-complete even for <i>st</i>-graphs that consist of a set of directed <i>st</i>-paths sharing only <i>s</i> and <i>t</i>. On the other hand, if <i>G</i> is an <i>n</i>-vertex planar <i>st</i>-graph whose maximum <i>st</i>-cutset has size <i>k</i>, then <span>UPSE Testing</span> can be solved in <span>\\(\\mathcal {O}(n^{4k})\\)</span> time with <span>\\(\\mathcal {O}(n^{3k})\\)</span> space; also, all the <span>UPSE</span>s of <i>G</i> on <i>S</i> can be enumerated with <span>\\(\\mathcal {O}(n)\\)</span> worst-case delay, using <span>\\(\\mathcal {O}(k n^{4k} \\log n)\\)</span> space, after <span>\\(\\mathcal {O}(k n^{4k} \\log n)\\)</span> set-up time. Moreover, for an <i>n</i>-vertex <i>st</i>-graph whose underlying graph is a cycle, we provide a necessary and sufficient condition for the existence of an <span>UPSE</span> on a given pointset, which can be tested in <span>\\(\\mathcal {O}(n \\log n)\\)</span> time. Related to this result, we give an algorithm that, for a set <i>S</i> of <i>n</i> points, enumerates all the non-crossing monotone Hamiltonian cycles on <i>S</i> with <span>\\(\\mathcal {O}(n)\\)</span> worst-case delay, using <span>\\(\\mathcal {O}(n^2)\\)</span> space, after <span>\\(\\mathcal {O}(n^2)\\)</span> set-up time.</p></div>","PeriodicalId":50824,"journal":{"name":"Algorithmica","volume":"87 6","pages":"930 - 960"},"PeriodicalIF":0.9000,"publicationDate":"2025-03-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://link.springer.com/content/pdf/10.1007/s00453-025-01302-2.pdf","citationCount":"0","resultStr":"{\"title\":\"Upward Pointset Embeddings of Planar st-Graphs\",\"authors\":\"Carlos Alegría, Susanna Caroppo, Giordano Da Lozzo, Marco D’Elia, Giuseppe Di Battista, Fabrizio Frati, Fabrizio Grosso, Maurizio Patrignani\",\"doi\":\"10.1007/s00453-025-01302-2\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>We study upward pointset embeddings (<span>UPSE</span>s) of planar <i>st</i>-graphs. Let <i>G</i> be a planar <i>st</i>-graph and let <span>\\\\(S \\\\subset \\\\mathbb {R}^2\\\\)</span> be a pointset with <span>\\\\(|S|= |V(G)|\\\\)</span>. An <i>UPSE</i> of <i>G</i> on <i>S</i> is an upward planar straight-line drawing of <i>G</i> that maps the vertices of <i>G</i> to the points of <i>S</i>. We consider both the problem of testing the existence of an <span>UPSE</span> of <i>G</i> on <i>S</i> (<span>UPSE Testing</span>) and the problem of enumerating all <span>UPSE</span>s of <i>G</i> on <i>S</i>. We prove that <span>UPSE Testing</span> is <span>NP</span>-complete even for <i>st</i>-graphs that consist of a set of directed <i>st</i>-paths sharing only <i>s</i> and <i>t</i>. On the other hand, if <i>G</i> is an <i>n</i>-vertex planar <i>st</i>-graph whose maximum <i>st</i>-cutset has size <i>k</i>, then <span>UPSE Testing</span> can be solved in <span>\\\\(\\\\mathcal {O}(n^{4k})\\\\)</span> time with <span>\\\\(\\\\mathcal {O}(n^{3k})\\\\)</span> space; also, all the <span>UPSE</span>s of <i>G</i> on <i>S</i> can be enumerated with <span>\\\\(\\\\mathcal {O}(n)\\\\)</span> worst-case delay, using <span>\\\\(\\\\mathcal {O}(k n^{4k} \\\\log n)\\\\)</span> space, after <span>\\\\(\\\\mathcal {O}(k n^{4k} \\\\log n)\\\\)</span> set-up time. Moreover, for an <i>n</i>-vertex <i>st</i>-graph whose underlying graph is a cycle, we provide a necessary and sufficient condition for the existence of an <span>UPSE</span> on a given pointset, which can be tested in <span>\\\\(\\\\mathcal {O}(n \\\\log n)\\\\)</span> time. Related to this result, we give an algorithm that, for a set <i>S</i> of <i>n</i> points, enumerates all the non-crossing monotone Hamiltonian cycles on <i>S</i> with <span>\\\\(\\\\mathcal {O}(n)\\\\)</span> worst-case delay, using <span>\\\\(\\\\mathcal {O}(n^2)\\\\)</span> space, after <span>\\\\(\\\\mathcal {O}(n^2)\\\\)</span> set-up time.</p></div>\",\"PeriodicalId\":50824,\"journal\":{\"name\":\"Algorithmica\",\"volume\":\"87 6\",\"pages\":\"930 - 960\"},\"PeriodicalIF\":0.9000,\"publicationDate\":\"2025-03-15\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://link.springer.com/content/pdf/10.1007/s00453-025-01302-2.pdf\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Algorithmica\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://link.springer.com/article/10.1007/s00453-025-01302-2\",\"RegionNum\":4,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q4\",\"JCRName\":\"COMPUTER SCIENCE, SOFTWARE ENGINEERING\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Algorithmica","FirstCategoryId":"94","ListUrlMain":"https://link.springer.com/article/10.1007/s00453-025-01302-2","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
We study upward pointset embeddings (UPSEs) of planar st-graphs. Let G be a planar st-graph and let \(S \subset \mathbb {R}^2\) be a pointset with \(|S|= |V(G)|\). An UPSE of G on S is an upward planar straight-line drawing of G that maps the vertices of G to the points of S. We consider both the problem of testing the existence of an UPSE of G on S (UPSE Testing) and the problem of enumerating all UPSEs of G on S. We prove that UPSE Testing is NP-complete even for st-graphs that consist of a set of directed st-paths sharing only s and t. On the other hand, if G is an n-vertex planar st-graph whose maximum st-cutset has size k, then UPSE Testing can be solved in \(\mathcal {O}(n^{4k})\) time with \(\mathcal {O}(n^{3k})\) space; also, all the UPSEs of G on S can be enumerated with \(\mathcal {O}(n)\) worst-case delay, using \(\mathcal {O}(k n^{4k} \log n)\) space, after \(\mathcal {O}(k n^{4k} \log n)\) set-up time. Moreover, for an n-vertex st-graph whose underlying graph is a cycle, we provide a necessary and sufficient condition for the existence of an UPSE on a given pointset, which can be tested in \(\mathcal {O}(n \log n)\) time. Related to this result, we give an algorithm that, for a set S of n points, enumerates all the non-crossing monotone Hamiltonian cycles on S with \(\mathcal {O}(n)\) worst-case delay, using \(\mathcal {O}(n^2)\) space, after \(\mathcal {O}(n^2)\) set-up time.
期刊介绍:
Algorithmica is an international journal which publishes theoretical papers on algorithms that address problems arising in practical areas, and experimental papers of general appeal for practical importance or techniques. The development of algorithms is an integral part of computer science. The increasing complexity and scope of computer applications makes the design of efficient algorithms essential.
Algorithmica covers algorithms in applied areas such as: VLSI, distributed computing, parallel processing, automated design, robotics, graphics, data base design, software tools, as well as algorithms in fundamental areas such as sorting, searching, data structures, computational geometry, and linear programming.
In addition, the journal features two special sections: Application Experience, presenting findings obtained from applications of theoretical results to practical situations, and Problems, offering short papers presenting problems on selected topics of computer science.