#19055: Tableau hash depends on subclass
-------------------------------------+-------------------------------------
       Reporter:  darij              |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.9
      Component:  combinatorics      |   Resolution:
       Keywords:  tableaux, hashing  |    Merged in:
        Authors:  Darij Grinberg     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/combinat/tableau_hash       |  27788705a3241374377904895b341c9c504605df
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by stumpc5):

 Comparing to the hash of !GelfandTsetlinPatterns, I see that there also
 the inner lists are turned into tuples

 {{{
 def _hash_(self):
    return hash(tuple(map(tuple, self)))
 }}}

 On the other hand, I would prefer not to see

 {{{
 sage: a = StandardTableau([[1,2,3]])
 sage: b = GelfandTsetlinPattern([[1,2,3]])
 sage: hash(a) == hash(b)
 True
 }}}
 This is, I would prefer to keep some information about the class, though
 this is not done in GTPs. On the other hand, this is currently **not**
 done in many other places either, such as {{{Permutations}}},
 {{{Partitions}}}, and {{{Compositions}}}.

 Christian

--
Ticket URL: <http://trac.sagemath.org/ticket/19055#comment:4>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to