open access publication

Conference Paper, 2024

Space-Efficient Data Structures for Polyominoes and Bar Graphs

2024 Data Compression Conference (DCC), ISBN 979-8-3503-8587-8, Volume 00, Pages 253-262, 10.1109/dcc58796.2024.00033

Contributors

Berg, Magnus 0000-0001-8637-7113 (Corresponding author) [1] Kamali, Shahin 0000-0003-1404-2212 [2] Ling, Katherine [2] Sigrist, Cooper [3]

Affiliations

  1. [1] University of Southern Denmark
  2. [NORA names: SDU University of Southern Denmark; University; Denmark; Europe, EU; Nordic; OECD];
  3. [2] York University
  4. [NORA names: Canada; America, North; OECD];
  5. [3] University of Massachusetts Amherst
  6. [NORA names: United States; America, North; OECD]

Abstract

We provide a compact data structure for representing polyominoes that supports neighborhood and visibility queries. Neighborhood queries concern reporting adjacent cells to a given cell, and visibility queries determine whether a straight line can be drawn within the polyomino that connects two specified cells. For an arbitrary small ϵ > 0, our data structure can encode a polyomino with n cells in (3 + ϵ)n + o(n) bits while supporting all queries in constant time. The space complexity can be improved to 3n + o(n), while supporting neighborhood queries in $\mathcal{O}(1)$ and visibility queries in $\mathcal{O}(t(n))$ for any arbitrary t(n) ∈ ω(1). Previous attempts at enumerating polyominoes have indicated that at least 2.00091n−o(n) bits are required to differentiate between distinct polyominoes, which shows our data structure is compact. In addition, we introduce a succinct data structure tailored for bar graphs, a specific subclass of polyominoes resembling histograms. We show that a bar graph comprising n cells can be encoded using n + o(n) bits, enabling constant-time query processing. Meanwhile, n − 1 bits are necessary to represent any bar graph, proving our data structure is succinct.

Keywords

N cells, O(n) bits, T(n), adjacent cells, bar, bar graphs, bits, cells, complex, concerns, constant time, data, data structures, graph, histogram, lines, neighborhood, neighborhood queries, polyominoes, process, queries concern, query, query processing, space, space complexity, space efficient data structures, straight line, structure, subclass, time, visibility, visibility queries

Funders

  • Innovation Fund Denmark
  • Natural Sciences and Engineering Research Council

Data Provider: Digital Science