#16272: redesign transversal designs
-------------------------------------+-------------------------------------
Reporter: vdelecroix | Owner: Vincent Delecroix
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.2
Component: combinatorics | Resolution:
Keywords: designs, | Merged in:
orthogona arrays | Reviewers:
Authors: Vincent Delecroix | Work issues:
Report Upstream: N/A | Commit:
Branch: public/16272 | ba058dd515c38084b4cdeacf530eda7b4563d211
Dependencies: #15310, #16227 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by ncohen):
By the way... When we will have merged all constructions, there is a
doctest that I would like to include in the doc, and it may partly do what
you built this "TD_existence" thing for.
This is the table that I am trying to copy :
http://books.google.fr/books?id=S9FA9rq1BgoC&lpg=PA175&ots=Do3xYTkMox&dq=%22mols%22%20of%20side%20%3C%2010000&pg=PA176#v=onepage&q=%22mols%22%20of%20side%20%3C%2010000&f=false
It is somehow "the reference". It gives you the maximum number of MOLS
that are known to exist for a given order.
aaaaaaaand I have had the following code for a while to see where I was
going:
{{{
print " ",
for i in range(20):
print str(i)+" "*(4-len(str(i))),
print ""
print " "*4+"_"*20*5+"__"
for i in range(20*10):
if i%20==0:
print ""
print str(i)+" "*(4-len(str(i)))+"| ",
if i < 2:
k = 1
else:
for k in range(i+1):
if not
designs.mutually_orthogonal_latin_squares(i,k,availability=True):
break
k = str(k-1)
print k+" "*(4-len(k)),
}}}
This function is not meant to be called by users of course, I thought I
would just make it a private function and call it just once, in a "# long"
doctest. Here is what it produces, with #16241 (and all its dependencies)
applied.
{{{
0 1 2 3 4 5 6 7 8 9 10 11 12 13
14 15 16 17 18 19
______________________________________________________________________________________________________
0 | 0 0 1 2 3 4 1 6 7 8 2 10 4 12
4 4 15 16 3 18
20 | 4 5 3 22 7 24 4 26 5 28 4 30 31 5
4 5 8 36 4 5
40 | 7 40 5 42 5 6 4 46 8 48 6 5 5 52
5 6 7 3 2 58
60 | 5 60 5 6 63 4 2 66 4 4 6 70 7 72
3 7 3 6 3 78
80 | 9 80 8 82 6 6 6 3 7 88 3 6 3 4
3 6 7 96 6 8
100 | 8 100 6 102 7 4 4 106 4 108 4 6 7
112 3 7 4 8 3 6
}}}
It will be a nice way to advertise what Sage can do for TD/OA/MOLS `:-P`
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/16272#comment:20>
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.