Hostname: page-component-74656f9884-j7cmm Total loading time: 0 Render date: 2026-11-10T01:08:54.834Z Has data issue: false hasContentIssue false

Edit distance between unlabeled ordered trees

Published online by Cambridge University Press:  08 November 2006

Anne Micheli
Affiliation:
CNRS, LIAFA, Université Paris 7, 2 Place Jussieu, 75251 Paris Cedex 05, France; amicheli@liafa.jussieu.fr; rossin@liafa.jussieu.fr
Dominique Rossin
Affiliation:
CNRS, LIAFA, Université Paris 7, 2 Place Jussieu, 75251 Paris Cedex 05, France; amicheli@liafa.jussieu.fr; rossin@liafa.jussieu.fr
Get access

Abstract

There exists a bijection between one-stack sortable permutations (permutations which avoid the pattern (231)) and rooted plane trees. We define an edit distance between permutations which is consistent with the standard edit distance between trees. This one-to-one correspondence yields a polynomial algorithm for the subpermutation problem for (231) pattern-avoiding permutations.Moreover, we obtain the generating function of the edit distance between ordered unlabeled trees and some special ones.For the general case we show that the mean edit distance between a rooted plane tree and all other rooted plane trees is at least n/ln(n).Some results can be extended to labeled trees considering coloredDyck paths or, equivalently, colored one-stack sortable permutations.

Information

Type
Research Article
Copyright
© EDP Sciences, 2006

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Article purchase

Temporarily unavailable