| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 787 人关注过本帖
标题:算法导论一道关于二项树的习题
只看楼主 加入收藏
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
快速回复:算法导论一道关于二项树的习题
数据加载中...
 
   



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

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