• Aucun résultat trouvé

Lossy compression of unordered rooted trees

N/A
N/A
Protected

Academic year: 2021

Partager "Lossy compression of unordered rooted trees"

Copied!
2
0
0

Texte intégral

(1)

HAL Id: hal-01394707

https://hal.inria.fr/hal-01394707

Submitted on 4 Jan 2017

HAL is a multi-disciplinary open access

archive for the deposit and dissemination of sci-entific research documents, whether they are pub-lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

Lossy compression of unordered rooted trees

Romain Azaïs, Jean-Baptiste Durand, Christophe Godin

To cite this version:

Romain Azaïs, Jean-Baptiste Durand, Christophe Godin. Lossy compression of unordered rooted trees. DCC 2016 - Data Compression Conference, Mar 2016, Snowbird, Utah, United States. �10.1109/DCC.2016.73�. �hal-01394707�

(2)

L

OSSY

C

OMPRESSION OF

U

NORDERED

T

REES

R

OMAIN

A

ZAÏS

, J

EAN

-B

APTISTE

D

URAND AND

C

HRISTOPHE

G

ODIN

O

BJECTIVES

DAG compression is a classical technique that consists in building a Directed Acyclic Graph (DAG) that represents an unordered tree without the redundancy of its subtrees.

3 2 1 2 1 3 3 1

Only trees with a high level of redundancy are ef-ficiently compressed by this method. We intro-duce a lossy compression method that consists

in computing the DAG of a self-nested structure

that both presents the highest level of redundancy and approximates the initial data to compress.

E

DIT

D

ISTANCE

This study requires to introduce a distance on the space of unordered trees in order to quantify the quality of a given self-nested estimate of a tree structure. We consider an editing distance de-fined from the following tree edit operations:

in-sertion and deletion of a leaf. An edit script is a sequence of edit operations. The result of ap-plying an edit script s to a tree τ is the tree τ s obtained by applying the component edit oper-ations to τ in the order they appear in the script. The cost of an edit script is only the number of edit operations. Finally, given two trees τ1 and

τ2, the edit distance δ(τ1, τ2) is the length of the

minimum edit script that transforms τ1 into a tree

that is isomorphic to τ2.

E

XAMPLE

The tree data to compress and its DAG version (top) and the solutions provided by the lossy com-pression algorithms NEST (middle) and LP-RFC (bottom). The NEST solution has too many nodes for looking like the initial tree (107 nodes added to obtain a self-nested tree). The LP-RFC solution is visually close to the initial tree, which is con-firmed by the error rate of 35%. Both algorithms achieve a compression rate greater than 80%.

Compression r ate Error r ate DAG NEST LP−RFC 0.0 0.2 0.4 0.6 0.8 1.0

Figure 1: Error and compression rates on the example.

R

EFERENCES

[1] Azaïs, Durand, and Godin. Lossy compression of trees via linear DAGs. Preprint, 2016.

[2] Godin and Ferraro. Quantifying the degree of self-nestedness of trees. Application to the structural analysis of plants. IEEE TCBB, 2010.

W

ORST

-C

ASE

A

PPROXIMATION

E

RROR

Among trees of height h and outdegree less than m, the tree that is the farthest to a self-nested tree may be identified. The editing distance to its best self-nested approximation is of order 0.25 mh. The diameter of the space of unordered trees being of

order mh, it follows that the largest area without

any self-nested tree is of relative radius 0.25. In addition, the error rate for this tree (and thus the worst error rate that must be expected from any lossy compression algorithm) is of order 0.33.

C

ONTACT

I

NFORMATION

Romain Azaïs

Inria team BIGS – Institut Élie Cartan de Lorraine Université de Lorraine in Nancy, France

romain.azais@inria.fr

S

IMULATION

S

TUDY

Our simulations are performed on 500 small binary trees generated from a stochastic model. The three algorithms are equivalent in terms of compression rates. The key parameter is thus the error rate that is

much better for RFC and LP-RFC algorithms than for NEST procedure (substantial gain of 20%). Local pruning is useful in RFC 24.2% of the time and makes the error decrease of 1.8% (7.3% when useful).

15 25 35 0.0 0.2 0.4 0.6 0.8 1.0 NEST Number of nodes Error r ate 15 25 35 0.0 0.2 0.4 0.6 0.8 1.0 RFC Number of nodes Error r ate 15 25 35 0.0 0.2 0.4 0.6 0.8 1.0 LP−RFC Number of nodes Error r ate

Figure 2: Error rates on the simulated dataset.

15 25 35 0.0 0.2 0.4 0.6 0.8 1.0 NEST Number of nodes Compression r ate 15 25 35 0.0 0.2 0.4 0.6 0.8 1.0 RFC Number of nodes Compression r ate 15 25 35 0.0 0.2 0.4 0.6 0.8 1.0 LP−RFC Number of nodes Compression r ate

Figure 3: Compression rates on the simulated dataset.

S

ELF

-N

ESTED

T

REES

Self-nested trees present remarkable compression properties because of the systematic repetition

of subtrees. They are defined as trees such that all the subtrees of a given height are isomorphic. The DAG related to a self-nested tree τ is lin-ear (there exists a path going through all its ver-tices) and has thus height(τ ) + 1 nodes. In other words, self-nested trees achieve maximum

com-pression rates. In addition, self-nested trees are very rare, while still being quite close to any un-ordered tree.

deg ≤ 2 deg ≤ 3 deg ≤ 4 h ≤ 2 0.88 6.18.10−1 3.52.10−1 h ≤ 3 0.49 3.38.10−2 7.43.10−5 h ≤ 4 0.07 2.90.10−8 4.16.10−23 h ≤ 5 3.36.10−4 3.56.10−28 1.66.10−100

Table 1: Frequency of self-nested trees with given

max-imal height and ramification number with respect to unordered trees under the same constraint.

A

LGORITHM

The preexisting algorithm (NEST) only adds nodes to a tree τ to transform it into a self-nested structure. Instead of adding nodes, we propose to replace some internal structures of τ

by their centroid (RFC). In particular, this allows us to delete some nodes and thus gives flexibil-ity. These self-nested estimates may be computed in polynomial time. Nevertheless, this procedure can only modify subtrees and not delete them. That is why we introduce a new algorithm that

exploits local pruning of τ (LP-RFC).

tree to compress NEST RFC

δ = 4 δ = 2

tree to compress NEST and RFC LP-RFC

Références

Documents relatifs

Nantel Bergeron, Muriel Livernet. A combinatorial basis for the free Lie algebra of the labelled rooted trees.. The pre-Lie operad can be realized as a space T of labelled rooted

We also present an approximation algorithm of a tree by a self-nested one that can be used in fast prediction of edit distance between two trees..

Ce travail s’est découpé en 4 parties majeures : La reconstruction avec le moins d’erreur possible d’une fonction de phase, l’immersion de cette fonction dans un domaine de

The main results concern the flame stability maps, NO x , CO 2 and CO emissions, and flame dynamics for different oxygen.

Since a null distance between two subtrees denotes isomorphic structures, these algorithms can be exploited to build the compression graph of T (Godin and Ferraro, 2009)..

We then proposed an algorithm to detect these patterns and to merge them, thus leading to compressed structures corresponding to DAGs augmented with return edges7. In this

Starting from a sightly different algebra for trees, Niehren and Podelski defined in [14] a notion of (feature) tree automata for which accepted languages coincide with T

Here, we performed immunofluorescence labelling of different synaptic proteins in fixed and paraffin embedded human hippocampal sections and report reduced levels of