作者wind1227 (wind)
看板Grad-ProbAsk
标题[问题] 97北大离散
时间Thu Mar 26 14:49:07 2009
Let X = {1, 2, 3, …, 9}. Algorithm A lists all 6-permutations of X in
increasing lexicographic order. Algorithm B prints all 6-combinations of X in
increasing lexicographic order where each combination is
printed as an increasing sequence.
(a) Find the permutation that will be generated by algorithm A after the
permutation 421987.
(b) Find the combination that will be generated by algorithm B after the
combination 124789.
可以请问一下这题的答案吗??
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 125.232.98.221
1F:→ wind1227:排列和组合的方式 又差在哪边...? 03/26 14:56