#10950: The hash function for matrices suffers from many collisions with
permutation matrices
-------------------------------------------------+-------------------------
       Reporter:  nthiery                        |        Owner:  nthiery
           Type:  defect                         |       Status:  new
       Priority:  major                          |    Milestone:
      Component:  linear algebra                 |   Resolution:
       Keywords:  Weyl groups, permutation       |    Merged in:
  matrices, hash                                 |
        Authors:                                 |    Reviewers:
Report Upstream:  N/A                            |  Work issues:
         Branch:                                 |       Commit:
   Dependencies:                                 |     Stopgaps:
-------------------------------------------------+-------------------------

Comment (by nbruin):

 This is still true. I'd say it's just true of "dense" collections of
 matrices:
 {{{
 def imm(A):
     A.set_immutable()
     return A
 }}}

 {{{
 sage: V={imm(matrix([a,b,c,d])) for a in [-1..1] for b in [-1..1] for c in
 [-1..1] for d in [-1..1]}
 sage: H={hash(v) for v in V}
 sage: Ht={hash(tuple(v.list())) for v in V}
 sage: len(V); len (H); len(Ht)
 81
 14
 69
 }}}
 so I think this problem might need a little bump in priority.

--
Ticket URL: <https://trac.sagemath.org/ticket/10950#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to