Abstract
Given a rectilinear grid \(G\), in which cells are either assigned a single color, out of k possible colors, or remain white, can we color white grid cells of \(G\) to minimize the total number of corners of the resulting colored rectilinear polygons in \(G\)? We show how this problem relates to hypergraph visualization, prove that it is NP-hard even for \(k=2\), and present an exact dynamic programming algorithm. Together with a set of simple kernelization rules, this leads to an FPT-algorithm in the number of colored cells of the input. We additionally provide an XP-algorithm in the solution size, and a polynomial \(\mathcal {O}(OPT)\)-approximation algorithm.
This work has been supported by the Vienna Science and Technology Fund (WWTF) under grant [10.47379/ICT19035].
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Alper, B., Riche, N., Ramos, G., Czerwinski, M.: Design study of linesets, a novel set visualization technique. IEEE Trans. Vis. Comput. Graph. 17(12), 2259–2267 (2011)
Alsallakh, B., Micallef, L., Aigner, W., Hauser, H., Miksch, S., Rodgers, P.: The state-of-the-art of set visualization. Comput. Graph. Forum 35(1), 234–260 (2016)
Baron, M.: A note on the historical development of logic diagrams: Leibniz, Euler and Venn. Math. Gaz. 53(384), 113–125 (1969)
de Berg, M., Khosravi, A.: Optimal binary space partitions in the plane. In: Proceedings 16th COCOON, pp. 216–225 (2010)
Cabello, S., Demaine, E., Rote, G.: Planar embeddings of graphs with specified edge lengths. In: Proceedings of the 11th GD, pp. 283–294 (2003)
Darmann, A., Döcker, J.: On simplified NP-complete variants of monotone 3-SAT. Discret. Appl. Math. 292, 45–58 (2021)
Depian, T., Dobler, A., Kern, C., Wulms, J.: Minimizing corners in colored rectilinear grids. arXiv (2023)
Fischer, M., Frings, A., Keim, D., Seebacher, D.: Towards a survey on static and dynamic hypergraph visualizations. In: 2021 IEEE VIS - Short Papers, pp. 81–85 (2021)
van Goethem, A., Kostitsyna, I., van Kreveld, M., Meulemans, W., Sondag, M., Wulms, J.: The painter’s problem: covering a grid with colored connected polygons. In: Proceedings of the 25th GD, pp. 492–505 (2017)
Jacobsen, B., Wallinger, M., Kobourov, S., Nöllenburg, M.: Metrosets: visualizing sets as metro maps. IEEE Trans. Vis. Comput. Graph. 27(2), 1257–1267 (2021)
Johnson, D., Pollak, H.: Hypergraph planarity and the complexity of drawing Venn diagrams. J. Graph Theory 11(3), 309–325 (1987)
Meulemans, W., Riche, N., Speckmann, B., Alper, B., Dwyer, T.: KelpFusion: a hybrid set visualization technique. IEEE Trans. Vis. Comput. Graph. 19(11), 1846–1858 (2013)
Purchase, H.: Metrics for graph drawing aesthetics. J. Vis. Lang. Comput. 13(5), 501–516 (2002)
Rodgers, P., Stapleton, G., Chapman, P.: Visualizing sets with linear diagrams. ACM Trans. Comput. Hum. Interact. 22(6), 27:1–27:39 (2015)
Rottmann, P., Wallinger, M., Bonerath, A., Gedicke, S., Nöllenburg, M., Haunert, J.: MosaicSets: embedding set systems into grid graphs. IEEE Trans. Vis. Comput. Graph. 29(1), 875–885 (2023)
Wallinger, M., Dobler, A., Nöllenburg, M.: Linsets.zip: compressing linear set diagrams. IEEE Trans. Vis. Comput. Graph. 29(6), 2875–2887 (2023)
Wang, Y., et al.: F2-bubbles: faithful bubble set construction and flexible editing. IEEE Trans. Vis. Comput. Graph. 28(1), 422–432 (2022)
Acknowledgements
The authors would like to thank anonymous referees for their careful reviews and pointing us to [6].
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Depian, T., Dobler, A., Kern, C., Wulms, J. (2024). Minimizing Corners in Colored Rectilinear Grids. In: Uehara, R., Yamanaka, K., Yen, HC. (eds) WALCOM: Algorithms and Computation. WALCOM 2024. Lecture Notes in Computer Science, vol 14549. Springer, Singapore. https://doi.org/10.1007/978-981-97-0566-5_11
Download citation
DOI: https://doi.org/10.1007/978-981-97-0566-5_11
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-97-0565-8
Online ISBN: 978-981-97-0566-5
eBook Packages: Computer ScienceComputer Science (R0)