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 stores an object with a bit-space bound that responds to the object's compressibility while supporting named queries on the encoded form. The space count includes the information needed to answer those queries; the full object need not be expanded for each one. Actual savings depend on the input: an incompressible text can still be indexed under the construction's bound.[1][2]

How would you explain it like I'm…

The Squished Searchable Book

Imagine a giant storybook squished into a tiny notebook using clever shortcuts. Even squished, you can still ask, 'Where does the word dragon appear?' and find it without un-squishing the whole thing. The more the story repeats itself, the tinier the notebook can get. That's a compressed data structure.

Shrunk But Still Searchable

Computers store lots of information, like long texts or family-tree-shaped data. A compressed data structure stores it in a smaller form that takes advantage of patterns and repeats, but you can still ask it questions directly, like finding a word or moving around a tree, without unpacking everything first. Its size counts all the extra helper parts needed to answer questions. Data with lots of patterns gets stored in less space, while data with no patterns may not shrink much, but it still works.

Queryable Compression-Sensitive Storage

A compressed data structure stores an object, like a text or a tree, in space that depends on how compressible that object is, while still answering a specific set of queries directly on the encoded form. The space count includes all the extra machinery needed to answer queries. For example, a text index can use the text's statistical regularity (its entropy) to save space and still count and locate where a pattern occurs; a labeled-tree structure can exploit repeated shapes and labels and still move between nodes. Neither has to decompress the whole object first. "Compressed" describes the space guarantee, not a promise that every input shrinks: Ferragina and Manzini's index still works on incompressible text, it just helps more when the text is compressible. A merely small worst-case encoding, often called succinct, isn't the same as this input-adaptive property, though the terms can overlap.

 

A compressed data structure represents an object using space bounded in terms of the object's compressibility, while supporting a specified set of queries directly on the encoded representation. The space accounting includes all auxiliary structures required to answer those queries. A compressed text index may achieve space related to the text's empirical entropy yet still support counting and locating pattern occurrences; a labeled-tree representation may exploit regularities in shape and labels yet still support navigation between nodes. Neither requires decompressing the full object. The guarantee is twofold: input-sensitive total space and stated query costs, under the construction's model and parameters. "Compressed" refers to the space bound, not a promise that every input shrinks: the Ferragina–Manzini index is defined for incompressible texts too, with its advantage growing on compressible ones. Gańczorz labels his navigable tree structure succinct while proving entropy-sensitive bounds, so terminology overlaps, but a small worst-case encoding alone does not establish the input-adaptive property.

Scope of Application

Four query tasks in two evidenced settings combine input-sensitive total space with access on the encoding:

  • Count text matches: An entropy-sensitive index counts occurrences of a pattern over the paper's constant-size alphabet, with its own query-time bound.[1]
  • Locate text matches: The same input-sensitive index reports occurrence positions with a separate time bound that depends on the number reported.[1]
  • Navigate a tree locally: A clustered labeled ordered tree uses shape and label statistics in its total-space bound while answering parent and first-child queries under the theorem's conditions.[2]
  • Inspect tree ancestry: The same encoded tree answers lowest-common-ancestor and depth queries under that total-space and navigation theorem.[2]

Clarity

Ask two questions together: Does total space vary with a measure of this input's compressibility? Which operations work on the encoding, and at what cost? A file that must be fully expanded before search gives no native search contract. A compact worst-case structure without input-sensitive space may answer only the second. A structure can be both succinct and compressed, as the labeled-tree example shows.[1][2]

Manages Complexity

The paired contract prevents a compressed payload and a large, uncounted index from being treated as a small whole. It also separates operation costs that a single word such as “search” hides: counting a text pattern and listing all its locations have different guarantees, as do basic tree navigation and some label-aware queries.[1][2]

Abstract Reasoning

Identify the source object, the input-sensitive space measure, and the named query set. Include access machinery in the bit total, then read the query theorem with its model and parameters. Ferragina and Manzini give O(p) counting and O(p + occ log^ε u) occurrence listing for fixed positive ε in their text setting. Gańczorz gives constant-time specified navigation under a different tree/alphabet theorem. Neither bound transfers automatically to the other's object.[1][2]

Knowledge Transfer

The reusable test moves from compressed text search to navigable compressed trees: keep the total-space and native-query questions, but replace the object, entropy measure, and operation contract. Broader Compression and Data Structure ideas may help analyze other systems; the name here remains tied to encoded computational objects and proved bit/time conditions.[1][2]

Neighborhood in Abstraction Space

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

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

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

[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