{"title":"On layered area-proportional rectangle contact representations","authors":"Carolina Haase, Philipp Kindermann","doi":"10.1016/j.tcs.2024.115021","DOIUrl":null,"url":null,"abstract":"<div><div>Semantic word clouds visualize the semantic relatedness between the words of a text by placing pairs of related words close to each other. Formally, the problem of drawing semantic word clouds corresponds to drawing a rectangle contact representation of a graph whose vertices correlate to the words to be displayed and whose edges indicate that two words are semantically related. The goal is to maximize the number of realized contacts while avoiding any false adjacencies. We consider a variant of this problem that restricts input graphs to be layered and all rectangles to be of equal height, called <span>Maximum Layered Contact Representation Of Word Networks</span> or <span>Max-LayeredCrown</span>, as well as the variant <span>Max-IntLayeredCrown</span>, which restricts the problem to only rectangles of integer width and the placement of those rectangles to integer coordinates.</div><div>We classify the corresponding decision problem <em>k</em>-<span>IntLayeredCrown</span> as NP-complete even for internally triangulated planar graphs and <em>k</em>-<span>LayeredCrown</span> as NP-complete for planar graphs. We introduce three algorithms: a 1/2-approximation for <span>Max-LayeredCrown</span> of internally triangulated planar graphs, and a PTAS and an XP algorithm for <span>Max-IntLayeredCrown</span> with rectangle width polynomial in <em>n</em>.</div></div>","PeriodicalId":49438,"journal":{"name":"Theoretical Computer Science","volume":"1027 ","pages":"Article 115021"},"PeriodicalIF":0.9000,"publicationDate":"2024-12-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Theoretical Computer Science","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0304397524006388","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0
Abstract
Semantic word clouds visualize the semantic relatedness between the words of a text by placing pairs of related words close to each other. Formally, the problem of drawing semantic word clouds corresponds to drawing a rectangle contact representation of a graph whose vertices correlate to the words to be displayed and whose edges indicate that two words are semantically related. The goal is to maximize the number of realized contacts while avoiding any false adjacencies. We consider a variant of this problem that restricts input graphs to be layered and all rectangles to be of equal height, called Maximum Layered Contact Representation Of Word Networks or Max-LayeredCrown, as well as the variant Max-IntLayeredCrown, which restricts the problem to only rectangles of integer width and the placement of those rectangles to integer coordinates.
We classify the corresponding decision problem k-IntLayeredCrown as NP-complete even for internally triangulated planar graphs and k-LayeredCrown as NP-complete for planar graphs. We introduce three algorithms: a 1/2-approximation for Max-LayeredCrown of internally triangulated planar graphs, and a PTAS and an XP algorithm for Max-IntLayeredCrown with rectangle width polynomial in n.
期刊介绍:
Theoretical Computer Science is mathematical and abstract in spirit, but it derives its motivation from practical and everyday computation. Its aim is to understand the nature of computation and, as a consequence of this understanding, provide more efficient methodologies. All papers introducing or studying mathematical, logic and formal concepts and methods are welcome, provided that their motivation is clearly drawn from the field of computing.