Recursive and Nonrecursive Traversal Algorithms for Dynamically Created Binary Trees
Recursive and Nonrecursive Traversal Algorithms for Dynamically Created Binary Trees
摘要
The modeling of dynamical systems from a time series implemented by our DSA program introduces binary trees of height D with all leaves on the same level, and the related subtrees of height L 〈 D. These are called e-trees and e-subtrees. The recursive and nonrecursive versions of the traversal algorithms for the trees with dynamically created nodes are discussed. The original nonrecursive algorithms that return the pointer to the next node in preorder, inorder and postorder traversals are presented. The space-time complexity analysis shows and the execution time measurements confirm that for these O(2D) algorithms, the recursive versions have approximately 10-25% better time constants. Still, the use of nonrecursive algorithms may be more appropriate in several occasions.
参考文献7
-
1J.P. Crutchfield, Computational Mechanics Publications, available online at: http://csc.ucdavis.edu/-chaos/chaos/pub s.htm, accessed: April 2012.
-
2R. Logozar, A. Lovrencic, The modeling and complexity of dynamical systems by means of computation and information theories, Journal of Information and Organizational Sciences 35 (2) (2011).
-
3E. Horowitz, S. Sahni, Fundamentals of Computer Algorithms, Pitman Publish Ltd, London, 1979.
-
4N. Wirth, Algorithms & Data Structures (New Edition), Prentice/Hall International, London, 1986.
-
5A.B. Tucker at al., Fundamentals of Computing Ⅱ, C++ Edition, McGraw-Hill, New York, 1995.
-
6A.V. Aho, J.E. Hopcroft, J.D. Ullman, The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, Massachusetts, 1974.
-
7R. Logozar, Modeling of dynamical systems by stochastic finite automata, Master Thesis, Faculty of Electrical Engineering and Computing, University of Zagreb, 1999.
-
1张正本,翟海庆.基于组合模型的网络流量预测[J].河南机电高等专科学校学报,2008,16(6):31-33. 被引量:1
-
2曹文平.时间序列建模综述[J].华南金融电脑,2010,18(9):94-95.
-
3林树宽,乔建忠,王国仁,郑刚,董俊.基于核方法的非线性时间序列预测建模[J].计算机工程,2007,33(17):23-25. 被引量:2
-
4郑会永,刘华强.基于神经网络的口腔非线性动力学系统建模[J].非线性动力学学报,1996,3(4):321-326.
-
5陈晓梅,杨成祥.遗传进化算法在时间序列建模中的应用[J].计算机工程与应用,2005,41(5):215-217. 被引量:3
-
6郑寇全,雷英杰,王睿,王艺菲.直觉模糊时间序列建模及应用[J].控制与决策,2013,28(10):1525-1530. 被引量:11
-
7杨金显,陈超,李志鹏.基于小波卡尔曼混合算法的陀螺仪去噪方法[J].电子测量技术,2016,39(3):29-33. 被引量:11
-
8张龙,熊国良,陈慧,李嶷.基于AR-SVM的转子故障诊断[J].机械设计与制造,2005(11):138-140. 被引量:1
-
9樊迪,刘静,庄俊玺,赖英旭.基于因果知识发现的攻击场景重构研究[J].网络与信息安全学报,2017,3(4):58-68. 被引量:6
-
10李杰,周兆英.工程图形和符号识别中的时序建模技术研究[J].机械工程学报,1995,31(5):22-28. 被引量:1