Revisiting the tree edit distance and its backtracing: A tutorial

05/17/2018
by   Benjamin Paaßen, et al.
0

Almost 30 years ago, Zhang and Shasha published a seminal paper describing an efficient dynamic programming algorithm computing the tree edit distance, that is, the minimum number of node deletions, insertions, and replacements that are necessary to transform one tree into another. Since then, the tree edit distance has had widespread applications, for example in bioinformatics and intelligent tutoring systems. However, the original paper of Zhang and Shasha can be challenging to read for newcomers and it does not describe how to efficiently infer the optimal edit script. In this contribution, we provide a comprehensive tutorial to the tree edit distance algorithm of Zhang and Shasha. We further prove metric properties of the tree edit distance, and describe efficient algorithms to infer the cheapest edit script, as well as a summary of all cheapest edit scripts between two trees.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/17/2023

Subcubic algorithm for (Unweighted) Unrooted Tree Edit Distance

The tree edit distance problem is a natural generalization of the classi...
research
11/03/2021

An Improved Algorithm for The k-Dyck Edit Distance Problem

A Dyck sequence is a sequence of opening and closing parentheses (of var...
research
07/26/2021

An A*-algorithm for the Unordered Tree Edit Distance with Custom Costs

The unordered tree edit distance is a natural metric to compute distance...
research
07/31/2020

Improved Time Warp Edit Distance – A Parallel Dynamic Program in Linear Memory

Edit Distance is a classic family of dynamic programming problems, among...
research
07/26/2022

Tree edit distance for hierarchical data compatible with HMIL paradigm

We define edit distance for hierarchically structured data compatible wi...
research
03/20/2023

On the Maximal Independent Sets of k-mers with the Edit Distance

In computational biology, k-mers and edit distance are fundamental conce...
research
08/23/2016

Tracking Amendments to Legislation and Other Political Texts with a Novel Minimum-Edit-Distance Algorithm: DocuToads

Political scientists often find themselves tracking amendments to politi...

Please sign up or login with your details

Forgot password? Click here to reset