Programming and Testing a Two-Tree Algorithm
DOI:
https://doi.org/10.55630/sjc.2013.7.115-134Keywords:
Longest Path, 2-trees, Divide-and-Conquer, Experimental AnalysisAbstract
Recently, Markov, Vassilev and Manev [2] proposed an algorithm for finding the longest path in 2-trees. In this paper, we describe an implementation of the algorithm. We briefly discuss the algorithm and present example that helps the reader grasp the main algorithmic ideas. Further, we discuss the important stages in the implementation of the algorithm and justify the decisions taken. Then, we present experimental results and discuss them in the light of the dependence on the platform and machine architecture. We present timing analysis of the implementation, as well as results on the average length of the longest path.
ACM Computing Classification System (1998): G.2.2, F.2.2.