Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
递归怎么样?要获得 {n,m,k} 的每个允许的分区,请对 [1,k] 中的每个 j 取 a[1]=j,然后是 {nj,m-1,j} 的每个允许的分区。
How about recursion? To get every allowed partition of {n,m,k}, take a[1]=j for each j in [1,k] followed by every allowed partition of {n-j,m-1,j}.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
递归怎么样?要获得 {n,m,k} 的每个允许的分区,请对 [1,k] 中的每个 j 取 a[1]=j,然后是 {nj,m-1,j} 的每个允许的分区。
How about recursion? To get every allowed partition of {n,m,k}, take a[1]=j for each j in [1,k] followed by every allowed partition of {n-j,m-1,j}.