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

Benjamin Paaßen
7/26/2021
cs.AIcs.LG

No confident code implementation found for this paper.

Abstract

The unordered tree edit distance is a natural metric to compute distances between trees without intrinsic child order, such as representations of chemical molecules. While the unordered tree edit distance is MAX SNP-hard in principle, it is feasible for small cases, e.g. via an A* algorithm.

Show full abstract

Unfortunately, current heuristics for the A* algorithm assume unit costs for deletions, insertions, and replacements, which limits our ability to inject domain knowledge. In this paper, we present three novel heuristics for the A* algorithm that work with custom cost functions. In experiments on two chemical data sets, we show that custom costs make the A* computation faster and improve the error of a 5-nearest neighbor regressor, predicting chemical properties. We also show that, on these data, polynomial edit distances can achieve similar results as the unordered tree edit distance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{paaen2021aalgorithm,
  title  = {An A*-algorithm for the Unordered Tree Edit Distance with Custom Costs},
  author = {Benjamin Paaßen},
  year   = {2021},
  eprint = {2108.00953},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.00953}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.00953.svg)](https://codeofpaper.com/paper/2108.00953)

Discussion