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

Automatic guess of the groups in a GDD #17941

Closed
brettpim mannequin opened this issue Mar 12, 2015 · 17 comments
Closed

Automatic guess of the groups in a GDD #17941

brettpim mannequin opened this issue Mar 12, 2015 · 17 comments

Comments

@brettpim
Copy link
Mannequin

brettpim mannequin commented Mar 12, 2015

This branch lets one define a GDD without specifying its groups. The automatic guess is performed in the is_group_divisible_design routine, as it also requires to list the pairs which appear in a block.

Nathann

CC: @nathanncohen @brettpim @sagetrac-danziger @videlec

Component: combinatorial designs

Keywords: group divisible design, block design

Author: Nathann Cohen

Branch/Commit: 7336c5c

Reviewer: Vincent Delecroix

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

@brettpim brettpim mannequin added this to the sage-6.6 milestone Mar 12, 2015
@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Mar 15, 2015

Branch: public/17941

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Mar 15, 2015

Author: Nathann Cohen

@nathanncohen

This comment has been minimized.

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Mar 15, 2015

Commit: 6859373

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Mar 15, 2015

New commits:

6859373trac #17941: Automatic guess of the groups in a GDD

@nathanncohen nathanncohen mannequin changed the title is_group_divisible_design enhancement Automatic guess of the groups in a GDD Mar 15, 2015
@nathanncohen nathanncohen mannequin added the s: needs review label Mar 15, 2015
@videlec
Copy link
Contributor

videlec commented May 16, 2015

Reviewer: Vincent Delecroix

@videlec
Copy link
Contributor

videlec commented May 16, 2015

comment:2
sage -t --long src/sage/combinat/designs/designs_pyx.pyx
**********************************************************************
File "src/sage/combinat/designs/designs_pyx.pyx", line 207, in sage.combinat.designs.designs_pyx.is_group_divisible_design
Failed example:
    is_group_divisible_design([range(40)],[["e",2]],40,G=[5],lambd=1,verbose=True)
Expected:
    a group has size 40 while G=[5]
    False
Got:
    e does not belong to [0,...,39]
    False
**********************************************************************

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 16, 2015

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

a328329trac #17941: Automatic guess of the groups in a GDD
884a359trac #17941: Broken doctest

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 16, 2015

Changed commit from 6859373 to 884a359

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented May 16, 2015

comment:4

Sorry ! rebased and fixed.

Nathann

@videlec
Copy link
Contributor

videlec commented Jun 1, 2015

comment:5

Hello,

Shouldn't

if matrix[i*n+j] == 0:
    ...

be

if matrix[i*n+j] < l:
   ...

This suggest to add an example with lambd > 1.

Vincent

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Jun 2, 2015

comment:6

Hello,

Shouldn't

if matrix[i*n+j] == 0:
    ...

be

if matrix[i*n+j] < l:
   ...

Both work. Consider the whole matrix: for the design to be a GDD, it must have two types of entries only: 0 or l.

  1. If the matrix is a real GDD, you can see that the two are equivalent
  2. If the matrix is not a GDD, the 'error' message will differ. (wrong size of groups, or a pair not present the right number of times, or two points of a group contained in the same set, ...)

This suggest to add an example with lambd > 1.

Do you have an example in mind?

Nathann

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 7, 2015

Changed commit from 884a359 to 7336c5c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 7, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

7336c5cTrac #17941: one missing sage_free + doc

@videlec
Copy link
Contributor

videlec commented Jun 7, 2015

comment:8

Replying to @nathanncohen:

Hello,

Shouldn't

Both work. Consider the whole matrix: for the design to be a GDD, it must have two types of entries only: 0 or l.

right!

This suggest to add an example with lambd > 1.

Do you have an example in mind?

I added a dummy example.

I am done with the review. Tell me what you think of ​7336c5c.

Vincent

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Jun 7, 2015

comment:9

Oops. Thanks for the 'free' I forgot!

Nathann

@vbraun
Copy link
Member

vbraun commented Jun 8, 2015

Changed branch from public/17941 to 7336c5c

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