Permutations of ordered set where only one object changes its position.
1 回表示 (過去 30 日間)
古いコメントを表示
Michael Stollenwerk
2021 年 4 月 14 日
回答済み: David Goodmanson
2021 年 4 月 15 日
Is there a quick way to get all possible permutations where we put one object at all position, while keeping the order of all other objects?
As an examle, consider {A,B,C}.
- Change position of A: ABC, BAC, BCA
- Change position of B: ACB [BAC, ABC both done in 1.]
- Change position of C: CAB [ACB, ABC, done in 1. and 2.]
0 件のコメント
採用された回答
David Goodmanson
2021 年 4 月 15 日
Hi Michael,
no there is not. CBA is a permutation, and it cannot be made to fit the pattern.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Object Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!