On 11/28/12 5:35 AM, Dima Pasechnik wrote:
> On 2012-11-27, Travis Scrimshaw <tsc...@ucdavis.edu> wrote:
>> ------=_Part_468_5000489.1354057101700
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hey everyone,
>>    I've been trying to figure out how to handle generalized 
>> permutations (a.k.a. two-line arrays, bi-words, ...) since we want 
>> Permutation() to only accept input from 1 to n. 
> A typical misuse of Permutation is in 
> sage/combinat/integer_vector_weighted.py
> where nothing prevents one to return lists all the time.
> Cf. e.g. the relevant part of 
> http://trac.sagemath.org/sage_trac/attachment/ticket/13742/trac_13742_reviewer1.patch
> Yes, and the RSK stuff is a more tricky one.
> 
> I have a stupid question: why can't one just use lists?
> One should not overdesign. What are the real 
> reasons for GeneralizedPermutation to come? 
> E.g. to have a special class to just handle a pair of lists of 
> equal length is a big an overdesign to me.
> And if you need the first list to be ordered, use a pair (set,list)

Hi Dima,

This last suggestion would indeed be a good idea. Where would you put the
code in this case? The input would be a (set,list) and the output
a pair of semistandard Young tableaux, so it is not so obvious where it
belongs.

Best,

Anne

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to