-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up orbits of permutation groups on integers (#4307)
Co-authored-by: ThomasBreuer <[email protected]>
- Loading branch information
1 parent
23b0b9d
commit d549ba4
Showing
4 changed files
with
122 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# "G-sets of permutation groups" | ||
|
||
|
||
# natural constructions (determined by the types of the seeds) | ||
G = symmetric_group(10) | ||
|
||
Omega = gset(G) | ||
@benchmark order(stabilizer(Omega, 1)[1]) | ||
@benchmark order(stabilizer(Omega, Set([1, 2]))[1]) | ||
@benchmark order(stabilizer(Omega, [1, 2])[1]) | ||
@benchmark order(stabilizer(Omega, (1, 2))[1]) | ||
|
||
Omega = gset(G, [Set([1, 2])]) # action on unordered pairs | ||
@benchmark order(stabilizer(Omega, Set([1, 2]))[1]) | ||
@benchmark order(stabilizer(Omega, Set([Set([1, 2]), Set([1, 3])]))[1]) | ||
@benchmark order(stabilizer(Omega, [Set([1, 2]), Set([1, 3])])[1]) | ||
@benchmark order(stabilizer(Omega, (Set([1, 2]), Set([1, 3])))[1]) | ||
|
||
|
||
Omega = gset(G, [[1, 2]]) # action on ordered pairs | ||
@benchmark order(stabilizer(Omega, [1, 2])[1]) | ||
@benchmark order(stabilizer(Omega, Set([[1, 2], [1, 3]]))[1]) | ||
@benchmark order(stabilizer(Omega, [[1, 2], [1, 3]])[1]) | ||
@benchmark order(stabilizer(Omega, ([1, 2], [1, 3]))[1]) | ||
|
||
|
||
Omega = gset(G, [(1, 2)]) # action on ordered pairs (repres. by tuples) | ||
@benchmark order(stabilizer(Omega, (1, 2))[1]) | ||
@benchmark order(stabilizer(Omega, Set([(1, 2), (1, 3)]))[1]) | ||
@benchmark order(stabilizer(Omega, [(1, 2), (1, 3)])[1]) | ||
@benchmark order(stabilizer(Omega, ((1, 2), (1, 3)))[1]) | ||
|
||
|
||
# constructions by explicit action functions | ||
G = symmetric_group(6) | ||
omega = [0,1,0,1,0,1] | ||
Omega = gset(G, permuted, [omega, [1,2,3,4,5,6]]) | ||
|
||
@benchmark order(stabilizer(Omega, omega)[1]) | ||
@benchmark order(stabilizer(Omega, Set([omega, [1,0,0,1,0,1]]))[1]) | ||
@benchmark order(stabilizer(Omega, [omega, [1,0,0,1,0,1]])[1]) | ||
@benchmark order(stabilizer(Omega, (omega, [1,0,0,1,0,1]))[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters