Time Complexity Analysis of the Binary Tree Roll Algorithm

Adrijan Božinovski, George Tanev, Biljana Stojčevska, Veno Pačovski, Nevena Ackovska · JITA - Journal of Information Technology and Applications (Banja Luka) - APEIRON · 2017

This paper presents the time complexity analysis of the Binary Tree Roll algorithm. The time complexity is analyzed theoretically and the results are then confirmed empirically. The theoretical analysis consists of finding recurrence relations for the time complexity, and solving them using various methods. The empirical analysis consists of exhaustively testing all trees with given numbers of nodes and counting the minimum and maximum steps necessary to complete the roll algorithm. The time complexity is shown, both theoretically and empirically, to be linear in the best case and quadratic in the worst case, whereas its average case is shown to be dominantly linear for trees with a relatively small number of nodes and dominantly quadratic otherwise.

Read the paper · More papers on PaperTik