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
Fix hashing of permutation group elements #31236
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
GAP has a function While this does not ignore all the fixed points, this is still OK in terms of the consistency. |
Branch: u/vdelecroix/31236 |
Commit: |
New commits:
|
comment:5
What is Are you replacing something which looks to me as a perfect hash function (i.e. no collisions) with something that might have collisions? |
comment:6
If you find a collision, I pay you a beer. |
comment:7
I asked a theory question. |
comment:8
|
comment:9
thanks. please add this info in the docs. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
done |
comment:12
OK, looks good, thanks. |
Reviewer: Dima Pasechnik |
comment:13
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
Consistent hashing with more tests. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:36
Better now
Computing a single hash of an element triggers the creation of an array in the parent
This solution is not ideal as the hash array could be made available on the domain itself and not on the symmetric group. It could end up with many duplications of this array (ie when constructing subgroups). |
comment:37
See #31269 |
comment:38
ping |
comment:39
I'm happy giving this ticket positive review. Since Dima originally reviewed it, I'll give him a couple days to respond with an objection and suggestions for how he'd like to proceed. |
Changed reviewer from Dima Pasechnik to Dima Pasechnik, David Roe |
comment:41
My objection is only on the level of documentation. Where the hell these huge constants come from, and why? It's totally unclear. |
comment:42
As their names indicate |
comment:43
ping |
comment:44
Sorry, I've been busy. This looks good to me. |
comment:45
I got this on Ubuntu 18.04 32 bit
as a general bit of advice, consider using |
comment:46
Moving this ticket to 9.4, as it seems unlikely that it will be merged in 9.3, which is in the release candidate stage |
comment:47
Setting a new milestone for this ticket based on a cursory review. |
As noticed on this sage-devel thread the hash function of
PermutationGroupElement
does not behave coherently with respect to the natural inclusionsSymmetricGroup(n) c SymmetricGroup(n+1)
.We design a hash function:
Component: group theory
Author: Vincent Delecroix
Branch/Commit: u/vdelecroix/31236 @
e2e4d1d
Reviewer: Dima Pasechnik, David Roe
Issue created by migration from https://trac.sagemath.org/ticket/31236
The text was updated successfully, but these errors were encountered: