Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 601641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:44:15+00:00 2026-05-13T16:44:15+00:00

Purpose We’re designing a Latin square (sudoku-like sequence) for an experimental design that needs

  • 0

Purpose

We’re designing a Latin square (sudoku-like sequence) for an experimental design that needs to follow these constraints:

  • Values cannot be repeated in a row
  • Values cannot be repeated in a column
  • Values cannot be repeated pairwise in any two rows

Example for the first 3 constraints:

2     3    5    7    11   13
7     2    11   3    13   5
11    5    2    13   7    3
3     7    13   2    5    11
5     13   3    11   2    7
13    11   7    5    3    2 

Here, we chose primes, but the values are arbitrary (as long as there are 6 distinct values). Notice that it’s the same as sudoku in a 6 x 6 grid, with the additional constraint that there are no repeated pairs (a.k.a. bigrams) across rows. That is, 2 3 only appears on the first row, but in no others, and so on for every other pair.

  • Values should be pair with another 6 values that fit these constraints:
    • The 2nd-set values cannot be repeated in a row
    • The 2nd-set values cannot be repeated in a column
    • When paired with the 1st-set values, the 2nd-set values cannot be repeated.

That is, we need to have another six values (again, arbitrary — they could be “a, b, c, d, e, f”) that pair with the first six. The last constraint means that if you use (2, a) anywhere, you cannot use it again.

The last 2nd-set constraint is the problem. There is no solution for n x n grids where n = 6. That’s the monkey wrench in the works. We want to minimize the number of repeats, to make a “sorta-kinda” orthogonal pair of Latin squares.

Question

Have you encountered this problem before? (It’d be great if there were a tool that will generate solutions.) We only need one such example for our purposes. We’ve tried several different construction strategies already.

We’re flirting with the idea of writing a solver for it, but we’d like to avoid doing so if something already exists.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:44:15+00:00Added an answer on May 13, 2026 at 4:44 pm

    We wrote a solver that randomly permuted solutions and took the best balanced solution available after running it overnight. It might not be the best approach, but since a perfect solution doesn’t exist for the constraints, we thought it should be better than other methods of finding a “not-so-bad” solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Purpose: Create a program that takes two separate files, opens and reads them, assigns
Purpose of the app: A simple app that draws a circle for every touch
What is the purpose of having two files that appear to do the same/similar
The purpose of the following code is that when the user is holding the
The purpose of the following code is to implement a LIFO container just like
The purpose of using a Javascript proxy for the Web Service using a service
The purpose of this component is to test knowledge of a student on a
What is the purpose of annotations in Java? I have this fuzzy idea of
What is the purpose of the Using block in C#? How is it different
What is the purpose of the strdup() function in C?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.