Permutations of ordered set where only one object changes its position.
조회 수: 2 (최근 30일)
이전 댓글 표시
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에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!