So I am expriencing some problem in implementation of this algorithm.
As we can see intersection is used here and till now sympy does not contain any function for intersection of two groups.
We can also see that here we are interested in finding whether the intersection of two subgroups is trivial or not so maybe se can avoid calculating intersection for of two groups.
Can we have discussion that what should be the best approach here?
def test(S, T, U):
if( T ∩ U = 1 ) then
if( S ∩ T · U = 1 ) then
return true;
fi; fi;
return false;
S.Y. Lee
unread,
Feb 17, 2020, 2:13:13 AM2/17/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sympy
I think that you should add a new method like **intersect**. I'm sure that intersections form a group, so it can be an another PermutationGroup, but union may not.