标题:算法导论一道关于二项树的习题
取消只看楼主
eaglesky1990
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2011-10-16
 问题点数:0 回复次数:0 
算法导论一道关于二项树的习题
Suppose we label the nodes of binomial tree Bk in binary by a postorder walk, as in Figure 19.4. Consider a node x labeled l at depth i, and let j = k - i. Show that x has j 1's in its binary representation. How many binary k-strings are there that contain exactly j 1's? Show that the degree of x is equal to the number of 1's to the right of the rightmost 0 in the binary representation of l.

这题就是算法导论第二版习题19.1-3. 感觉很难,一点头绪也没有,求助!!
搜索更多相关主题的帖子: contain exactly number label equal 
2011-10-16 13:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-352583-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018546 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved