This document discusses and compares the efficiency of different algorithms for matching XML tree patterns, including TwigStack, OrderedTJ, TJFast, and TreeMatch. It analyzes the performance of each algorithm using example queries and datasets. The key points are:
- TwigStack outputs many intermediate results that are not useful for the final answers when queries contain parent-child relationships.
- OrderedTJ scales linearly with database size and outputs fewer useless results than TwigStack, but is not optimal.
- The document evaluates the performance of the algorithms and concludes by discussing which algorithm is superior.