返回   cpper编程论坛 > 灌水/杂烩/BT
注册账号 论坛帮助 会员列表 日历事件 搜索 今日新帖 标记版面已读

灌水/杂烩/BT 所有非技术的东西都往这里来

回复
 
LinkBack 主题工具 显示模式
  #1 (permalink)  
旧 2008-09-24
cat cat 当前离线
高级会员
 
注册日期: 2003-11-06
帖子: 1,563
文章: 6
cat 正向着好的方向发展
默认 枚举所有n个node的二叉树的形态

无聊中……发现这种东西用C#就很舒服
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #2 (permalink)  
旧 2008-09-24
bankrock 的头像
高级会员
 
注册日期: 2003-12-11
帖子: 847
文章: 7
bankrock 正向着好的方向发展
默认 回复: 枚举所有n个node的二叉树的形态

掐指一算,似乎是2^n个...
方便是一回事,对于太大的n能不能列出来就是另一回事了..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #3 (permalink)  
旧 2008-09-25
cat cat 当前离线
高级会员
 
注册日期: 2003-11-06
帖子: 1,563
文章: 6
cat 正向着好的方向发展
默认 回复: 枚举所有n个node的二叉树的形态

也不是没意义,比如,要枚举top 1000个n个node的二叉树形态,稍微转换一下,就成了1000个n个节点不重复随机二叉树形态什么的。
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #4 (permalink)  
旧 2008-09-25
polyrandom 的头像
超级版主
 
注册日期: 2002-09-03
帖子: 3,138
文章: 20
polyrandom 正向着好的方向发展
默认 回复: 枚举所有n个node的二叉树的形态

引用:
作者: cat 查看帖子
无聊中……发现这种东西用C#就很舒服
为啥C#比较爽?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #5 (permalink)  
旧 2008-09-26
cat cat 当前离线
高级会员
 
注册日期: 2003-11-06
帖子: 1,563
文章: 6
cat 正向着好的方向发展
默认 回复: 枚举所有n个node的二叉树的形态

匿名delegate,其实functional得lambda表达式都可以。
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
回复

书签

主题工具
显示模式

发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
Trackbacks are 启用
Pingbacks are 启用
Refbacks are 启用



所有时间均为格林尼治时间 +9。现在的时间是 06:45 AM


Powered by vBulletin® 版本 3.7.0
版权所有 ©2000 - 2009,Jelsoft Enterprises Ltd.
(C) Copy Right All Right Reserved 2001 - 2007

Search Engine Friendly URLs by vBSEO 3.1.0