KR2026Proceedings of the 23rd International Conference on Principles of Knowledge Representation and ReasoningProceedings of the 23rd International Conference on Principles of Knowledge Representation and Reasoning

Lisbon, Portugal. July 20-23, 2026.

Edited by

ISSN: 2334-1033
ISBN: 978-1-956792-18-8

Sponsored by
Published by

Copyright © 2026 International Joint Conferences on Artificial Intelligence Organization

Optimal Dictionary-Based Compression with Answer Set Programming: Encodings and Empirical Analysis

  1. Mutsunori Banbara(Nagoya University)
  2. Hideo Bannai(Institute of Science Tokyo)
  3. Takashi Horiyama(Hokkaido University)
  4. Dominik Köppl(University of Yamanashi)
  5. Takuya Mieno(The University of Electro-Communications)
  6. Hidetomo Nabeshima(University of Yamanashi)

Keywords

  1. null-Answer Set Programming
  2. null-Bidirectional Macro Scheme
  3. null-Straight-Line Programs
  4. null-Repetitiveness Measures
  5. null-Text Compression

Abstract

We develop an Answer Set Programming (ASP)-based approach for

computing the smallest bidirectional macro schemes (BMSs),

a fundamental NP-hard optimization problem in dictionary-based compression.

Our approach relies on high-level ASP encodings and delegates both the

grounding and solving tasks to an off-the-shelf ASP solver.

The proposed encoding is compact and extensible, and

leverages advanced ASP techniques to improve scalability,

including ASP modulo acyclicity and refined declarative encodings of acyclicity constraints.

We further show that our ASP encoding can be naturally extended to compute

the smallest straight-line programs (SLPs),

another important NP-hard measure of repetitiveness.

Furthermore, we establish the competitiveness of our approach by

empirically contrasting it with a more dedicated MaxSAT-based approach.