文件名称:Maximal-element-with-minimal-element
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:722byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
输入
输入偏序集 <A, > , A 中的元素数不超过 20 个,分别用单个小写的英文字母表示。
输入的第一行给出 A 中的各个元素,两个相邻的元素之间用逗号隔开。
输入的第二行给出偏序关系 ,用有序对的形式给出,如 <a,b>,<c,a> 等等,两个相邻的有序对之间用逗号隔开。
输出
输出 A 的极小元与极大元。
输出的第一行给出各个极小元,两个相邻元素之间用逗号隔开,输出的元素要求按照英文字母的自然顺序排列输出。
输出的第二行给出各个极大元,两个相邻元素之间用逗号隔开,输出的元素要求按照英文字母的自然顺序排列输出。-Enter input poset <A, > The number of elements in A is not more than 20, respectively, with a single lowercase letters of the alphabet. The first line of input gives the individual elements in the A, between two adjacent elements separated by commas. The second line of the input given partial order, ordered pair form given <a,b> And <c,a> Between two adjacent ordered pair separated by commas. Output Output A minimizer maximal element. The first line of output is given each minimal element between two adjacent elements, separated by commas, output element requirements in accordance with the natural order of the letters of the alphabet are arranged output. The second line of output given the various maximal element between two adjacent elements separated by a comma, the output element requirements in accordance with the natural order of the letters of the alphabet are arranged output.
输入偏序集 <A, > , A 中的元素数不超过 20 个,分别用单个小写的英文字母表示。
输入的第一行给出 A 中的各个元素,两个相邻的元素之间用逗号隔开。
输入的第二行给出偏序关系 ,用有序对的形式给出,如 <a,b>,<c,a> 等等,两个相邻的有序对之间用逗号隔开。
输出
输出 A 的极小元与极大元。
输出的第一行给出各个极小元,两个相邻元素之间用逗号隔开,输出的元素要求按照英文字母的自然顺序排列输出。
输出的第二行给出各个极大元,两个相邻元素之间用逗号隔开,输出的元素要求按照英文字母的自然顺序排列输出。-Enter input poset <A, > The number of elements in A is not more than 20, respectively, with a single lowercase letters of the alphabet. The first line of input gives the individual elements in the A, between two adjacent elements separated by commas. The second line of the input given partial order, ordered pair form given <a,b> And <c,a> Between two adjacent ordered pair separated by commas. Output Output A minimizer maximal element. The first line of output is given each minimal element between two adjacent elements, separated by commas, output element requirements in accordance with the natural order of the letters of the alphabet are arranged output. The second line of output given the various maximal element between two adjacent elements separated by a comma, the output element requirements in accordance with the natural order of the letters of the alphabet are arranged output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Maximal element with minimal element/求偏序集中的极大元与极小元.cpp
Maximal element with minimal element
Maximal element with minimal element
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.