ispermsdisjoint(sig​ma1,sigma2)

Identifies given permutations as disjoint
101 Downloads
Updated 6 Aug 2015

View License

ispermsdisjoint(sigma1,sigma2) compares two permutations of a same symmetric group and verifies whether they are disjoint.

Cite As

HARI BASKAR RANGANATHAN (2024). ispermsdisjoint(sigma1,sigma2) (https://www.mathworks.com/matlabcentral/fileexchange/52307-ispermsdisjoint-sigma1-sigma2), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.3.0

Previous version does not give the output when all the elements of the permutation are moved.
This version takes care of giving that output also.

1.0.2.1

Help contents are enhanced by adding an example.
Comment lines are also enhanced.

1.0.2.0

function renames as ispermsdisjoint
function returns '1' if the permutations are disjoint, otherwise returns '0' (string output is removed)
for loop is removed and replaced with 'any(x==sigma1 & x==sigma2)'

1.0.1.5

included a check for validity of the permutations sigma1, sigma2, small letter 'l' is replaced with capital letter 'L',

1.0.1.4

If statement is introduced to check the validity of the input arguments:

1.0.1.3

pre-allocating memory is taken care. Other suggestions received through comments were partially implemented.

1.0.1.2