Permutations of ordered set where only one object changes its position.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Michael Stollenwerk
le 14 Avr 2021
Réponse apportée : David Goodmanson
le 15 Avr 2021
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 commentaires
Réponse acceptée
David Goodmanson
le 15 Avr 2021
Hi Michael,
no there is not. CBA is a permutation, and it cannot be made to fit the pattern.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!