Skip to content

Compressed Data Structure

An encoded data structure whose total space adapts to input compressibility while it still answers specified queries without fully decompressing the object.

Version
v1 · 2026-10-17 · History
Domain-specific #
14098
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomains
Compressed Data Structures, Data Structures, Information Retrieval → Computer Science & Software Engineering
Aliases
Compressed data structures

Core Idea

A compressed data structure represents an object in space whose bound responds to the object's compressibility while still answering a specified set of queries on the encoded form. The space accounting includes the machinery needed to answer those queries. A text index may exploit empirical text entropy yet still count and locate pattern occurrences; a labeled-tree representation may exploit regularities of shape and labels yet still navigate between nodes. Neither operation requires expanding the entire object first. The useful guarantee is a pair: input-sensitive total space and stated query costs, under the construction's model and parameters.[1][2]

“Compressed” here describes the space guarantee, not a promise that every input shrinks. Ferragina and Manzini's index is defined for incompressible text too; its advantage grows when the text is compressible. Gańczorz calls his navigable tree structure succinct while proving entropy-sensitive bounds. The terms can overlap; a small worst-case encoding alone does not establish the narrower input-adaptive property used in this article.[1][2]

Structural Signature

  • Source object and operations: Name the text, tree, or other object being represented, then name the queries that must work on it. Counting a text pattern is a different operation from listing its positions; parent navigation is different from a label-specific query.[1][2]
  • Input-sensitive space measure: Specify the property of the particular input used in the bit bound. The text construction uses fixed-order empirical entropy; the tree construction uses measures of tree shape, node labels, and their conditional relationship. The measures cannot be exchanged by changing the noun in a formula.[1][2]
  • Encoded representation: Arrange the source information so the measure yields a bound on the stored bits. Ferragina and Manzini combine Burrows-Wheeler compression with suffix-array indexing ideas; Gańczorz partitions a tree into clusters and statistically encodes their shape and labels.[1][2]
  • Operation support on that representation: Retain enough auxiliary information to answer the named queries without fully expanding the source at query time. An index or navigation table may be integrated into the encoding rather than existing as a separate file.[1][2]
  • Joint space and time contract: Include the auxiliary information in the total space bound and state the cost of each supported operation under its machine and parameter assumptions. The identity does not require constant time for every query, nor support for arbitrary updates.[1][2]

What It Is Not

A compressed file can be decoded and then searched, but that alone gives no native search or navigation contract. Gańczorz contrasts his query-supporting tree structure with an earlier high-order tree compression method whose attractive bound applied to compression alone. Conversely, a compact worst-case tree representation can support operations without a bound that varies with the input's compressibility. These are meaningful neighboring designs, yet neither condition by itself establishes the combination defined here.[2]

The term also does not mean that the uncompressed object and an uncounted search index can be stored separately while only the former is declared small. The bound concerns the whole representation used for the promised queries. Nor does it make a structure deficient merely because it supports only a declared subset of operations: Ferragina and Manzini give different costs for counting and locating, and Gańczorz distinguishes standard tree navigation from label-specific operations.[1][2]

Scope of Application

The two directly evidenced habitats are within algorithmic data representation:

  • Compressed full-text search: A text index stores pattern-search access in entropy-sensitive space. The query contract can include counting matches and reporting their positions, with separately proved times.[1]
  • Navigable labeled ordered trees: A tree representation uses shape and label statistics in its space bound while supporting named navigation operations on the encoded structure.[2]

These are unlike objects and operation sets that share the structural test. A compressed graph representation might also satisfy it, but the two inspected originals do not establish any particular graph construction or graph-query bound. No graph result is inferred from text or tree evidence.

Clarity

Two questions often get blended: How many bits does the whole structure use for this input? and Which questions can be answered without rebuilding the full input? The text case answers both. Its count operation takes time proportional to pattern length on the stated RAM model; reporting all occurrence positions adds a per-occurrence cost. Calling both simply “search” hides a real difference in the contract.[1]

The tree case makes a second distinction visible. Its standard navigation operations have a constant-time guarantee under the theorem's conditions, while label-specific operations can need different time or redundancy. A representation is therefore classified against its named operation set. It need not answer every imaginable query at the same speed.[2]

Manages Complexity

The joint contract reduces a design comparison to four checks: identify the object, identify the compressibility measure, count the bits of the encoding and its access machinery, then read the time bound for each operation. This avoids an easy accounting error: compress a payload, add a large uncompressed index, and still describe the whole as compressed. The cited constructions explicitly analyze auxiliary data together with the encoded content.[1][2]

It also keeps workload choices explicit. A text application needing only counts should not be evaluated as if it required reporting every match position. A tree application needing parent and child traversal should not automatically inherit a guarantee for queries constrained by node labels. Fewer, better specified operations can be supported under a tighter budget; adding access may change the bit cost or the query time.[1][2]

Abstract Reasoning

To assess a proposed structure, first ask whether its space theorem depends on a measure of the actual input. A bound that remains valid when the input is incompressible may still qualify; the advantage is conditional, while the theorem is not. Next ask whether the operations can be computed using the encoded representation and its counted auxiliaries. Finally check the stated model and parameters before comparing times. Ferragina and Manzini's fixed-order text entropy and RAM search theorem cannot simply be copied onto a tree; Gańczorz's alphabet-conditioned tree theorem cannot simply be copied onto a text index.[1][2]

The failure tests follow directly. Remove native access and the result is compression-only for the declared queries. Remove input-sensitive space and the result may still be a useful succinct or ordinary data structure. Remove the query and space bounds and “compressed data structure” becomes an impression about size rather than a reproducible algorithmic claim.

Knowledge Transfer

The transferable method inside computer science is to pair an input-sensitive total bit bound with an operation-by-operation query theorem. The text-to-tree transfer changes what the source object is, which regularities are measured, and what counts as a query. Ferragina and Manzini exploit empirical context statistics in text and answer arbitrary-pattern searches. Gańczorz exploits shape, degree, and label statistics in an ordered tree and answers navigation questions. Their mechanisms and exact formulas remain distinct even though the same joint design test applies.[1][2]

Outside encoded computational objects, “compress information yet keep it accessible” can be a useful analogy. It is not evidence that an archive or institutional filing practice satisfies a bit-space theorem or a native-query complexity contract. The broad ideas of Compression and Data Structure travel more widely; the named entry here retains its technical conditions.

Examples

Canonical: opportunistic full-text index

Ferragina and Manzini combine a Burrows-Wheeler-based compressed text representation with suffix-array indexing properties. The stored space is bounded using fixed-order empirical entropy of the text plus lower-order terms. Their first search step counts matches for a pattern of length p in O(p) time on a RAM. A second step reports all occ positions in O(p + occ log^ε u) total time for a fixed positive ε and text length u. The construction assumes a constant-size text alphabet but no particular input distribution; incompressible text still has a valid index, while compressible text can yield a space advantage.[1]

Mapped back: source object and operations → text and count/locate queries; input-sensitive space → empirical text entropy; encoded representation → Burrows-Wheeler plus suffix-array structure; operation support → count and position-retrieval machinery; joint contract → the two different time bounds plus the index's total entropy-sensitive space bound.

Applied: navigable labeled tree

Gańczorz partitions a labeled ordered tree into clusters and encodes their shape and labels statistically. The paper gives alternative bit bounds involving tree-shape entropy and conditional label/tree entropy, along with smaller-order terms under stated conditions. Theorem 15 supplies constant-time parent, first-child, next-sibling, lowest-common-ancestor, child-rank, indexed-child, and depth operations for its stated tree/alphabet model. Some other operations need additional bits or different time bounds. This is a compressed and succinct representation, not an example of two mutually exclusive classes.[2]

Mapped back: source object and operations → labeled ordered tree and named navigation queries; input-sensitive space → shape/label entropy measures; encoded representation → statistically encoded clusters; operation support → auxiliary tree, degree, and lookup structures; joint contract → the theorem's total bit bound and listed navigation times.

Structural Tensions

T1 — Compact encoding versus direct access. Exploiting text or tree regularity can lower the bits devoted to the encoded object, but the user still needs answers without full expansion. Adding samples, occurrence information, cluster boundaries, or navigation tables makes the chosen queries feasible and often faster; those aids occupy bits and must fit the total-space bound. Holding more access information can improve an operation while reducing the space advantage, whereas storing less can make another operation slower or unavailable. The text source separates counting from the cost of reporting positions; the tree source distinguishes constant-time standard navigation from some more demanding label-aware queries. Neither choice dominates without a stated workload and space limit.[1][2]

Diagnostic: Which queries must run on the encoded form, and how much counted access information can be spent to meet their time bounds?

Structural–Framed Character

  • Evaluative weight: The structure is judged against a chosen workload. A system needing pattern counts can tolerate a different index from one needing every location; a tree browser needing parent/child navigation asks less than one needing rich label-conditioned queries. The bounds are formal, but what counts as a good space/time point depends on those needs.[1][2]
  • Human-practice dependence: Designers choose the operation set, machine model, and acceptable resource budget. Whether a proved representation meets its own bit and query bounds is a technical fact under those assumptions, not a convention of vocabulary.
  • Institutional origin: The named family belongs to algorithmic work joining data compression with indexed access. The cited text and tree papers give separate research constructions; neither paper owns every possible instance of the family.[1][2]
  • Vocabulary travel: Succinct may describe a strong worst-case space bound, while compressed here emphasizes input-sensitive space; Gańczorz's tree can satisfy both. The overlap does not erase the different tests, nor does every use of “compressed” guarantee all operations.[2]
  • Import versus recognition: Calling a future structure compressed because its file looks small merely imports the label. Recognition requires an input-sensitive total-space bound and an explicit native-query theorem for the new object and operation set.

Its character: This is a mostly structural but technically framed computer-science identity. The reusable question is how an encoding preserves useful operations within an input-sensitive bit budget; its value judgment enters when the designer chooses which operations and costs matter.

Structural Core vs. Domain Accent

One can abstract a skeleton: reduce representational cost while retaining the operations needed by a user. Compression and Data Structure already capture broader parts of that reasoning. The technical entry adds more: encoded computational objects, bits measured against their own compressibility, named operations on the encoding, and complexity guarantees for those operations. These conditions are not incidental jargon; remove them and the distinction from a compressed archive or ordinary access structure disappears.[1][2]

A new Prime built around “compact yet accessible” would need unlike non-computational systems with a comparably full conditional resource bound and operation contract. The current text and tree cases remain within algorithms. Without that evidence, broad uses of the phrase are analogies to the broader ideas, not new instances of this named domain-specific abstraction.

Data Structure supplies the general arrangement-for-use lens: the encoding is organized for a particular query profile, and operations have different costs. Compression supplies the space-reduction lens: input regularity can shorten an encoding while preserving enough information to recover the relevant answers. The conjunction is narrower than either prime. On an incompressible input, the same construction still answers queries under its stated space bound even when it yields no actual shortening.[1]

Representation is also relevant because the encoded medium carries information about the source under a stated interpretation, but that very broad relationship alone does not establish a direct parent edge. Straight-Line Grammar is a neighboring domain abstraction used in some compressed computation; its grammar-generates-one-object identity is neither the full class of queryable compressed structures nor a necessary component of the two constructions here.

Neighborhood in Abstraction Space

Compressed Data Structure sits in a sparse region of the domain-specific corpus (89th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (2721 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-10-17

Not to Be Confused With

  • Compressed archive: It may exploit redundancy yet require full expansion before the specified query. Native operation support is the extra condition here.[2]
  • Succinct structure: A compact worst-case representation may or may not also have an input-sensitive bound. Gańczorz's result illustrates overlap, not a strict opposition.[2]
  • An index alone: A search index can be effective but still use space unrelated to input compressibility. The text example qualifies because its total index space is entropy-sensitive.[1]
  • Universal fast access: Supporting a named query set does not mean all queries, label filters, or updates have the same bound. Read each operation theorem separately.[1][2]

References

[1] Ferragina, Paolo, and Giovanni Manzini. “Opportunistic Data Structures with Applications.” Proceedings of the 41st Annual Symposium on Foundations of Computer Science (FOCS 2000), 390–398. DOI; complete original author draft. The complete draft, not a proceedings facsimile, supplies the inspected results: abstract and Our Results (one-based PDF pp.1,3), §3.1 Theorem 1 (PDF p.7), and §3.2 Theorem 3 (PDF p.9). registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h ↩i ↩j ↩k ↩l ↩m ↩n ↩o ↩p ↩q ↩r ↩s ↩t ↩u ↩v

[2] Gańczorz, Michał. “Using Statistical Encoding to Achieve Tree Succinctness Never Seen Before.” 37th International Symposium on Theoretical Aspects of Computer Science (STACS 2020), LIPIcs 154, article 22:1–22:29. DOI; complete publisher PDF. The inspected article's abstract (22:1), clustering (§3, 22:6–22:8), query structure (§5, 22:11–22:13), and Theorem 15 (22:21) supply the tree case and its limits. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h ↩i ↩j ↩k ↩l ↩m ↩n ↩o ↩p ↩q ↩r ↩s ↩t ↩u ↩v ↩w ↩x