文件名称:Subset
介绍说明--下载内容均来自于网络,请自行研究使用
ary[]{1,2,3,4} 求打印其的所有子集。这是关于【幂集】的问题。
【幂集】包括【全集】和【空集】。对于有N个元素的集(/ □ \)合,它的幂集个数有2的N次方个。
比如这个例子,数组有4个元素。那么用4个位表示每一个元素(假设从左到右表示1234吧),0表示该数不存在,1表示存在。
则:
0000表示空集{}。
0001表示{4}。
0010表示{3};
0011表示{3,4};
…………
1110表示{1,2,3};
1111表示{1,2,3,4}。-ary [] {1,2,3,4} request to print all of its subsets. This is about power set】 【problems. Including the power set】 【Collection】 and 【】 【empty set. For N elements of the set (/ □ \) together, it is the power set of the number of N-th power of 2 months. Such as this example, the array has 4 elements. So with four bits of each element (assuming that 1234 bar from left to right), and 0 indicates that the number does not exist, one that exists. Then: 0000 represents the empty set {}. 0001 {4} said. 0010 that {3} 0011 for {3,4} ... ... ... ... 1110 that {1,2,3} 1111 that {1,2,3,4}.
【幂集】包括【全集】和【空集】。对于有N个元素的集(/ □ \)合,它的幂集个数有2的N次方个。
比如这个例子,数组有4个元素。那么用4个位表示每一个元素(假设从左到右表示1234吧),0表示该数不存在,1表示存在。
则:
0000表示空集{}。
0001表示{4}。
0010表示{3};
0011表示{3,4};
…………
1110表示{1,2,3};
1111表示{1,2,3,4}。-ary [] {1,2,3,4} request to print all of its subsets. This is about power set】 【problems. Including the power set】 【Collection】 and 【】 【empty set. For N elements of the set (/ □ \) together, it is the power set of the number of N-th power of 2 months. Such as this example, the array has 4 elements. So with four bits of each element (assuming that 1234 bar from left to right), and 0 indicates that the number does not exist, one that exists. Then: 0000 represents the empty set {}. 0001 {4} said. 0010 that {3} 0011 for {3,4} ... ... ... ... 1110 that {1,2,3} 1111 that {1,2,3,4}.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Subset.java
readme.txt
readme.txt