-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of shifted shuffle of permutations #12571
Comments
Dependencies: #12569 |
Reviewer: Florent Hivert |
comment:2
Hi Samuele, Good to have you onboard !
Sorry for this long list of requests, once you gets used to Sage, you'll do all And many thanks for taking care of this. Florent |
comment:3
Replying to @hivert:
Quite a few functions take an argument side="left"/"right", more often
sounds unambiguous enough about the shift being on y (and not the Cheers, |
comment:5
Hi Florent, hi Nicolas, thanks a lot for the suggestions of improvement. I just have updated the patch. Samuele |
comment:6
This patch is disappeared? I think the shuffle on words is now efficient. This post could be closed? Jean-Baptiste |
comment:7
Replying to @sagetrac-elixyre:
Not quite. Sage 5.6 takes 21.93 seconds.
So, no I'd think.
|
comment:9
Helloooooooooooooooooo !!! This patch looks good to go, but it would be nice to add your two new methods to the (new) index of methods at the top of permutation.py Nathann |
comment:10
Methods added to the index. Patch reviewed and rebased upon #14772. |
Changed reviewer from Florent Hivert to Florent Hivert, Darij Grinberg |
comment:15
The documentation has problems:
|
Attachment: trac_12571-shifted_shuffle_of_permutations-reviewed.patch.gz reviewed version, qfolded with the patch so as to avoid fuzz when applying the old patch after #14772. I added some more doctests and docstring text. Now rebased upon current version of #14772. Now with fixed docstring. |
comment:16
Good point. There was an INPUT item split across two lines, and the second line was not indented to the same level as the first. I assume this was obvious enough to revert to positive_review. |
Merged: sage-5.12.beta5 |
The shifted shuffle of two permutations can be expressed as a right permutohedron interval. We implements a method that computes in this way the shifted shuffle of two permutations.
Note that this improve the efficiency of the former way to compute shifted shuffle of permutations:
takes about 19.95 s CPU time on my computer, but
takes about 3.94 s CPU time.
We also implements Loday-Ronco's over and under operations on permutations.
Depends on #12569
Depends on #14772
Depends on #8386
Depends on #14519
Depends on #14808
Depends on #14143
Depends on #14015
Depends on #14516
CC: @KPanComputes @tscrim @sagetrac-sage-combinat
Component: combinatorics
Keywords: Permutations, Shuffle
Author: Samuele Giraudo
Reviewer: Florent Hivert, Darij Grinberg
Merged: sage-5.12.beta5
Issue created by migration from https://trac.sagemath.org/ticket/12571
The text was updated successfully, but these errors were encountered: