arXiv:2608.25533cs.ITAug 2026

Manuscript Offprint

arXiv:2608.25533

Constrained Maximum Entropy Contiguous Aggregations

Roberto Bruno, Ugo Vaccaro

Roberto Bruno Ugo Vaccaro

Department of Computer Science, University of Salerno, Fisciano (SA), Italy

Emails: {rbruno, uvaccaro}@unisa.it

Abstract—Given a probability distribution p=(p1,…,pn)p = (p_1, \ldots, p_n) and an integer 1≤m≤n1 \leq m \leq n, a contiguous aggregation of pp is a probability distribution q=(q1,…,qm)q = (q_1, \ldots, q_m) such that each qiq_i is a sum of consecutive elements of pp. Given pp and a positive number RR, we consider the problem of computing a maximum entropy contiguous aggregation qq of pp, under the constraint that its Shannon entropy H(q)H(q) is at most RR. We devise a dynamic programming algorithm that solves the problem exactly, and two time-efficient greedy algorithms that provide close-to-optimal solutions. We discuss a few scenarios where our problem arises.

Index Terms— Entropy maximization, approximation algorithms, alphabet partitioning, quantization

I. INTRODUCTION

Let Pn={p=(p1,…,pn):pi≥0,∑i=1npi=1}\mathcal{P}_n = \{p = (p_1, \ldots, p_n) : p_i \geq 0, \sum_{i=1}^n p_i = 1\} be the (n−1)(n-1)-dimensional probability simplex. For any p∈Pnp \in \mathcal{P}_n we denote by H(p)=−∑i=1npilog⁡2piH(p) = -\sum_{i=1}^n p_i \log_2 p_i the Shannon entropy of the probability distribution pp. Given two probability distributions p∈Pnp \in \mathcal{P}_n and q∈Pmq \in \mathcal{P}_m, where m≤nm \leq n, we say that qq is a contiguous aggregation of pp if there exist indices 0=i0<i1<⋯<im−1<im=n0 = i_0 < i_1 < \cdots < i_{m-1} < i_m = n such that for each j=1,…,mj = 1, \ldots, m we have qj=∑k=ij−1+1ijpkq_j = \sum_{k=i_{j-1}+1}^{i_j} p_k. For any i,j∈{1,…,n}i, j \in \{1, \ldots, n\}, i>ji > j, we call the sequence of consecutive elements pj,…,pip_j, \ldots, p_i a segment of pp. Let CA(p)CA(p) denote the set of all probability distributions that are contiguous aggregations of pp, and RR be a positive number. The optimization problem we are interested in consists of computing:

max⁡q∈CA(p)H(q)subjecttoH(q)≤R.(1)\max_{q\in CA(p)}H(q)\quad subject to\quad H(q)\leq R. \tag{1}

References (14)