摘要
本文用递归的方法对出栈序列、二叉树、二叉搜索树三种计数问题进行了分析,得到了一个统一的递推关系式,作者分析了这三个问题同解的原因,指出了这三个问题是同构的,对于这三个问题的解,用C++语言编程实现了算法。
By using induction approach, a united formula based on the analysis of three count problems with respect to out - stack sequence,binary tree,binary - find tree is presented in the article. It points out that the three problems are the same structure and can be realized by C + + programming.
出处
《广东广播电视大学学报》
2005年第4期106-107,110,共3页
Journal of Guangdong Radio & Television University
关键词
出栈序列
二叉树
二叉搜索树
同构
out-stack sequence
binary tree
binary-find tree
same structure