Computers (Apr 2020)

Generating Trees for Comparison

  • Danijel Mlinarić,
  • Vedran Mornar,
  • Boris Milašinović

DOI
https://doi.org/10.3390/computers9020035
Journal volume & issue
Vol. 9, no. 2
p. 35

Abstract

Read online

Tree comparisons are used in various areas with various statistical or dissimilarity measures. Given that data in various domains are diverse, and a particular comparison approach could be more appropriate for specific applications, there is a need to evaluate different comparison approaches. As gathering real data is often an extensive task, using generated trees provides a faster evaluation of the proposed solutions. This paper presents three algorithms for generating random trees: parametrized by tree size, shape based on the node distribution and the amount of difference between generated trees. The motivation for the algorithms came from unordered trees that are created from class hierarchies in object-oriented programs. The presented algorithms are evaluated by statistical and dissimilarity measures to observe stability, behavior, and impact on node distribution. The results in the case of dissimilarity measures evaluation show that the algorithms are suitable for tree comparison.

Keywords