Skip to content
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

OA(9,120) #16528

Closed
nathanncohen mannequin opened this issue Jun 24, 2014 · 14 comments
Closed

OA(9,120) #16528

nathanncohen mannequin opened this issue Jun 24, 2014 · 14 comments

Comments

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Jun 24, 2014

As the title says ! Another one of Julian R. Abel's tricks ;-)

This one was... Painful to implement :-P

Nathann

Depends on #16524

CC: @videlec @KPanComputes @brettpim

Component: combinatorial designs

Author: Nathann Cohen

Branch/Commit: 2bd16e0

Reviewer: Vincent Delecroix

Issue created by migration from https://trac.sagemath.org/ticket/16528

@nathanncohen nathanncohen mannequin added this to the sage-6.3 milestone Jun 24, 2014
@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Jun 24, 2014

Commit: a600340

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Jun 24, 2014

New commits:

a600340trac #16528: OA(9,120)

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Jun 24, 2014

Branch: u/ncohen/16528

@nathanncohen nathanncohen mannequin added the s: needs review label Jun 24, 2014
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 26, 2014

Changed commit from a600340 to 3487f09

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 26, 2014

Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:

e948cf6trac #16423: Aligning the alignment
0a7d853trac #16423: Broken doctests
b329351trac #16499: Cheap speedup in the OA recursive constructions
a67c04ftrac #16500: New recursive constructions of Orthogonal Arrays
41c50d5trac #16500: Simplified find_recursive_construction
e1992cetrac #16500: doc + speedup
697dd0ctrac #16500: Typoes in the doc
71dad5dtrac #16503: q-x construction of Orthogonal Arrays
002ceeetrac #16524: OA(9,135)
3487f09trac #16528: OA(9,120)

@videlec
Copy link
Contributor

videlec commented Jun 28, 2014

comment:3

Just comments about my commit (at u/vdelecroix/16528)

Why if it is precomputed you do the extra check

for B in BIBD:
    len_trace = sum(x in hyperoval for x in B)
    assert len_trace == 0 or len_trace == 2

(commented in my commit)

I replaced the ugly Matrix[x].dict().keys() by M.nonzero_positions_in_row(x).

In two places it is not needed to build a list, Python iterator are useful for that

- len_trace = len([x for x in B if x in hyperoval])
+ len_trace = sum(x in hyperoval for x in B)
-    r = {v:i for i,v in enumerate([x for x in range(n) if x not in hyperoval])}
+    r = {v:i for i,v in enumerate(x for x in range(n) if x not in hyperoval)}

That's all before the positive review.

Vincent

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Jun 28, 2014

Changed commit from 3487f09 to c80b7f4

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Jun 28, 2014

comment:4

Yo !

Why if it is precomputed you do the extra check

for B in BIBD:
    len_trace = sum(x in hyperoval for x in B)
    assert len_trace == 0 or len_trace == 2

(commented in my commit)

Because it costs nothing, and because, given that the constructions are not always obvious, it is good to explain what is happening all along. It works the same way if it is commented.

I replaced the ugly Matrix[x].dict().keys() by M.nonzero_positions_in_row(x).

Thanks ! I did not know this function before you used it in another ticket.

In two places it is not needed to build a list, Python iterator are useful for that

If you believe that it makes any difference ... :-P

That's all before the positive review.

Okayyyyyy ! Thanks, then :-)

Nathann

P.S. : Something weird is happening. That's the last construction in needs_review ! I will fix that as soon as I get Julian's next mail ;-)

Nathann


New commits:

c80b7f4trac #16528: review

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Jun 28, 2014

Reviewer: Vincent Delecroix

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Jun 28, 2014

Changed branch from u/ncohen/16528 to u/vdelecroix/16528

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Jun 28, 2014

Changed branch from u/vdelecroix/16528 to u/ncohen/16528

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Jun 28, 2014

Changed commit from c80b7f4 to 2bd16e0

@nathanncohen
Copy link
Mannequin Author

nathanncohen mannequin commented Jun 28, 2014

New commits:

2bd16e0trac #16528: Broken doctest

@vbraun
Copy link
Member

vbraun commented Jun 29, 2014

Changed branch from u/ncohen/16528 to 2bd16e0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants