Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wolfmcnally/treedistance

A Swift implementation of Zhang-Shasha algorithm for ordered tree distance calculation.
https://github.com/wolfmcnally/treedistance

Last synced: 10 days ago
JSON representation

A Swift implementation of Zhang-Shasha algorithm for ordered tree distance calculation.

Awesome Lists containing this project

README

        

# TreeDistance

## Zhang-Shasha tree distance algorithm

A Swift implementation of Zhang-Shasha algorithm for *ordered* tree distance calculation. Calculates a series of transformations required to transform one tree into another. Every transformation has an associated cost. The sum of costs of all transformations is minimal - the tree distance.

Based on the [Java implementation](https://github.com/tmatek/zhang-shasha-java).

For further information see [the paper by K. Zhang et al](http://grantjenks.com/wiki/_media/ideas/simple_fast_algorithms_for_the_editing_distance_between_tree_and_related_problems.pdf).