文件名称:all-elements-of-the-collection
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2014-12-14
- 文件大小:
- 296kb
- 下载次数:
- 0次
- 提 供 者:
- 刘*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编写递归函数,求n个元素集合的所有子集。不妨令集合元素为小写字母,原集合为{‘a’, ‘b’, …, ‘a’ + n - 1}。
输入:input.txt,仅包含整数n(1-26)。
输出:若输入合法,输出集合的所有子集;否则输出“WRONG”。子集输出格式为每行一个子集,空集用空行表示,非空集合每个元素间用一个空格间隔,最后一个元素之后不能有空格。-Write a recursive function of n a subset of all elements of the collection. May wish to make a collection of elements to lowercase, the original set is { a , b , ..., a + n- 1}. Input: input.txt, contains only integer n (1-26). Output: If you enter a valid, all subsets of the output set otherwise output WRONG . A subset of the output format for each line of a subset of the empty set with a blank line to indicate the non-empty set with a space between each element spacing, no spaces after the last element.
输入:input.txt,仅包含整数n(1-26)。
输出:若输入合法,输出集合的所有子集;否则输出“WRONG”。子集输出格式为每行一个子集,空集用空行表示,非空集合每个元素间用一个空格间隔,最后一个元素之后不能有空格。-Write a recursive function of n a subset of all elements of the collection. May wish to make a collection of elements to lowercase, the original set is { a , b , ..., a + n- 1}. Input: input.txt, contains only integer n (1-26). Output: If you enter a valid, all subsets of the output set otherwise output WRONG . A subset of the output format for each line of a subset of the empty set with a blank line to indicate the non-empty set with a space between each element spacing, no spaces after the last element.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第二道小题 求子集个数
.....................\ziji
.....................\....\Debug
.....................\....\.....\vc60.idb
.....................\....\.....\vc60.pdb
.....................\....\.....\ziji.exe
.....................\....\.....\ziji.ilk
.....................\....\.....\ziji.obj
.....................\....\.....\ziji.pch
.....................\....\.....\ziji.pdb
.....................\....\gezhu.txt
.....................\....\ziji.cpp
.....................\....\ziji.dsp
.....................\....\ziji.dsw
.....................\....\ziji.ncb
.....................\....\ziji.opt
.....................\....\ziji.plg