JP2002247027A - Method and device for preparing latin square - Google Patents

Method and device for preparing latin square

Info

Publication number
JP2002247027A
JP2002247027A JP2001044174A JP2001044174A JP2002247027A JP 2002247027 A JP2002247027 A JP 2002247027A JP 2001044174 A JP2001044174 A JP 2001044174A JP 2001044174 A JP2001044174 A JP 2001044174A JP 2002247027 A JP2002247027 A JP 2002247027A
Authority
JP
Japan
Prior art keywords
symbol
latin square
order
latin
column
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001044174A
Other languages
Japanese (ja)
Inventor
Toru Ito
徹 伊東
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Network and Sensor Systems Ltd
Original Assignee
NEC Network and Sensor Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Network and Sensor Systems Ltd filed Critical NEC Network and Sensor Systems Ltd
Priority to JP2001044174A priority Critical patent/JP2002247027A/en
Publication of JP2002247027A publication Critical patent/JP2002247027A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide Latin square preparing method and device capable of extending the application range of a Latin square and remarkably improving the application value and application effect of the Latin square. SOLUTION: An operation part 1 successively reads out symbols stored in an existing n-order Latin square set up in a Latin square storing array 10 in the set selection order and the selecting direction, reads out conversion values in the order of inputted symbol values from a conversion value storage part 11, obtains a remainder result by allowing a remainder operation part 17 to execute the modulo n operation of an added/subtracted result obtained by an addition/subtraction part 16 by using the conversion values, and repeats conversion operation for storing a symbol corresponding to the remainder result as the symbol m of the position of the inputted symbol up to the final position of the Latin square. Although the storage pattern of the Latin square is stored as it is, an effect for changing the selection order of stored element arrays can be fulfilled.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はラテン方陣の作成方
法及び作成装置に係り、特に暗号通信や識別用パスワー
ド作成に使用される変換表とか、実験計画法、統計学に
おける同一性を持たない組み合わせの設定等に利用され
るラテン方陣の作成方法及び作成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for creating a Latin square, and more particularly to a conversion table used for encryption communication or identification password creation, or a combination having no identity in the design of experiments and statistics. TECHNICAL FIELD The present invention relates to a method and an apparatus for creating a Latin square used for setting of a square.

【0002】[0002]

【従来の技術】ラテン方陣の基本的性質は、文献(岩波
数学辞典第3版、岩波書店)に詳細に開示されている
が、このラテン方陣について簡単に説明する。n個の記
号からなる集合A={a1,.....an}の各元を
n回ずつ使って、合計n個をそれぞれn行n列の正方
形に配列し、各行各列において、集合Aの各元が1度ず
つ現れるものをA上のラテン方陣、あるいはn次ラテン
方陣という。
2. Description of the Related Art The basic properties of Latin squares are disclosed in detail in the literature (Iwanami Mathematics Dictionary, 3rd edition, Iwanami Shoten). The Latin squares will be briefly described. A set of n symbols A = {a1,. . . . . Using each element of an} n times, a total of n 2 elements are arranged in a square of n rows and n columns, and in each row and column, the element that appears once in set A is represented by the Latin square on A , Or the nth Latin square.

【0003】また、第1行及び第1列が共に自然順列で
あるものを規約な、あるいは標準形のラテン方陣とい
う。その既約な、あるいは標準形のラテン方陣の個数を
L(n)で表すと、n次ラテン方陣の総数はn!・(n
−1)!・L(n)となる。L(n)の値はnが9以下
のとき、すなわち、n=1〜9のときは次の通りにな
る。
[0003] In addition, a case where both the first row and the first column are natural permutations is called a regular or standard Latin square. If the number of irreducible or standard Latin squares is represented by L (n), the total number of Latin squares of order n is n!・ (N
-1)! -L (n) is obtained. The value of L (n) is as follows when n is 9 or less, that is, when n = 1 to 9.

【0004】L(1)=1 L(2)=1 L(3)=1 L(4)=4 L(5)=56 L(6)=9,408 L(7)=16,942,080 L(8)=535,281,401,856 L(9)=377,597,570,964,258,
816
L (1) = 1 L (2) = 1 L (3) = 1 L (4) = 4 L (5) = 56 L (6) = 9,408 L (7) = 16,942 080 L (8) = 535, 281, 401, 856 L (9) = 377, 597, 570, 964, 258,
816

【0005】図8(a)は4次の要素A={0,1,
2,3}のラテン方陣の基本形を示す。このラテン方陣
の基本形は、1行目と1列目の配列要素のいずれもが0
〜3の昇順(自然順列)になっているので、図8(b)
に示す標準形ラテン方陣に属するものとなる。なお、図
8(b)において、(・)の配列要素の値は、ラテン方
陣を形成する0〜3までの任意の値が設定されているも
のとする。このようなラテン方陣を規則的に作成する方
法を、本発明者は先に特開平10−105544号公報
にて開示した。
FIG. 8A shows a fourth-order element A = {0, 1,
Shows the basic form of a Latin square of 2,3}. The basic form of this Latin square is that both the first row and the first column array elements are 0
As shown in FIG. 8 (b), the order is ascending order (natural permutation).
It belongs to the standard type Latin square shown in. In FIG. 8B, it is assumed that an arbitrary value from 0 to 3 forming the Latin square is set as the value of the array element of (•). The inventor of the present invention has previously disclosed a method of regularly forming such a Latin square in Japanese Patent Application Laid-Open No. 10-105544.

【0006】この発明者の提案になるラテン方陣作成方
法では、作成するラテン方陣の次数と記号とを設定し、
ラテン方陣の各位置の配列要素として記号を順に選択決
定するに際して、行あるいは列に沿って順に選択決定す
ると共に、各位置毎に同一行及び列の前の位置と同一記
号とならないように、記号を選択順に選択してラテン方
陣を作成する。
In the Latin square creating method proposed by the inventor, the degree and symbol of the Latin square to be created are set,
When selecting and determining symbols in order as an array element at each position in the Latin square, select and determine in order along the row or column, and use a symbol so that each position does not have the same symbol as the position before the same row and column Select to create Latin squares.

【0007】[0007]

【発明が解決しようとする課題】しかるに、上記の本発
明者の提案になるラテン方陣作成方法では、作成される
ラテン方陣の順序は記号の順列と選択順に従った順であ
り、この方法では、次に作成されるラテン方陣が一意的
に定まるために、暗号などへの利用においては、使用す
るラテン方陣を推測されないとも限らないという問題が
ある。
However, in the above-described Latin square creation method proposed by the present inventor, the order of the created Latin squares is the order according to the permutation of symbols and the selection order. Since the Latin square to be created next is uniquely determined, there is a problem that the Latin square to be used is not necessarily guessed when used for encryption or the like.

【0008】本発明は上記の点に鑑みなされたもので、
既存のラテン方陣から所望する同一次数の新たなラテン
方陣を一定の手順に従って、特定の変換情報を用いて作
成することにより、第三者には既存のラテン方陣と変換
情報を知らなければ特定のラテン方陣の作成が困難とな
るが、作成情報を知っている場合には、正確にラテン方
陣を作成し得るラテン方陣作成方法及び作成装置を提供
することを目的とする。
[0008] The present invention has been made in view of the above points,
By creating a new Latin square of the same degree desired from the existing Latin square according to a certain procedure and using specific conversion information, a third party must know the existing Latin square and the conversion information if they do not know the existing Latin square and conversion information. Although it is difficult to create a Latin square, it is an object of the present invention to provide a Latin square creating method and a creating apparatus that can accurately create a Latin square when the creation information is known.

【0009】また、本発明の他の目的は、ラテン方陣の
利用範囲を広げ、かつ、ラテン方陣の利用価値及び利用
効果を飛躍的に高め得るラテン方陣の作成方法及び作成
装置を提供することにある。
Another object of the present invention is to provide a method and an apparatus for creating a Latin square which can expand the range of use of the Latin square and greatly enhance the use value and the utilization effect of the Latin square. is there.

【0010】[0010]

【課題を解決するための手段】本発明は上記の目的を達
成するため、第1の発明のラテン方陣の作成方法は、互
いに異なるn個の記号mを、同じ行と同じ列の各位置で
はそれぞれ異なるように、n行n列の位置に配列要素と
してそれぞれ設定した次数nのラテン方陣を作成する作
成方法において、次数nと、記号mの選択順序と、n行
n列のうちの記号mが最初に配列される位置と、記号m
をn行n列の行方向又は列方向に沿って配列する順序と
をそれぞれ設定すると共に所望の既存のn次ラテン方陣
を記憶用配列に設定し、更にn次ラテン方陣のn個の記
号mの選択順序或いは記号そのものに各々加算又は減算
する整数の変換値を用意する第1のステップと、記憶用
配列に設定されている既存のn次ラテン方陣の設定され
た位置の記号mを取り込み、その記号mの選択順序ある
いは記号mそのものに、整数の変換値を加算或いは減算
し、その加算又は減算結果をnで剰余をとった値を選択
順序の順番の記号に、設定された位置の記号mとして変
換する第2のステップと、第2のステップにより記号m
が変換された位置が、n行n列の最終位置であるか否か
判定する第3のステップと、第3のステップにより最終
位置ではないと判定されたときは、記号を変換する位置
を第1のステップにより設定された記号配列方向に従う
次の位置を設定された位置に指定して、第2のステップ
による記号の変換を再び行わせ、最終位置であると判定
されたときは処理を終了する第4のステップとを含むこ
とを特徴とする。
In order to achieve the above object, the present invention provides a method for forming a Latin square according to the first invention, wherein n symbols m different from each other are placed at the same position in the same row and the same column. Differently, in a creation method for creating a Latin square of degree n set as an array element at the position of n rows and n columns, the order n, the selection order of the symbols m, and the symbol m of the n rows and n columns And the symbol m
Are arranged along the row direction or the column direction of n rows and n columns, a desired existing nth-order Latin square is set in the storage array, and n symbols m of the nth-order Latin square are further set. A first step of preparing an integer conversion value to be added or subtracted from the selection order or the symbol itself, and capturing a symbol m at a set position of an existing nth-order Latin square set in the storage array, A value obtained by adding or subtracting an integer conversion value to or from the selection order of the symbol m or the symbol m itself, and taking the remainder of the addition or subtraction result with n as a symbol in the selection order, and a symbol at the set position m, and converting the symbol m
A third step of determining whether or not the converted position is the final position of n rows and n columns. If the third step determines that the position is not the final position, the position for converting the symbol The next position according to the symbol arrangement direction set in the first step is designated as the set position, and the symbol conversion in the second step is performed again. When it is determined that the symbol is the final position, the process ends. And a fourth step of performing the following.

【0011】この発明では、記憶用配列にあらかじめ設
定された所望の既存のn次ラテン方陣の各位置の記号
を、設定された順番で順次に取り込むと共に、その記憶
用配列から取り込んだ記号mに対して記号mの選択順序
あるいは記号mそのものに、整数の変換値を加算或いは
減算し、その加算又は減算結果をnで剰余をとった値
を、選択順序の順番の記号に、設定された位置の記号m
として変換して記憶することを、既存のn次ラテン方陣
のすべての記号mについて行うようにしたため、記憶用
配列に変換値をもとに変換されたn次ラテン方陣を新た
に作成することができる。
According to the present invention, symbols at respective positions of a desired existing n-th Latin square preset in the storage array are sequentially fetched in the set order, and the symbols m fetched from the storage array are added to the symbols m. On the other hand, an integer conversion value is added or subtracted to the selection order of the symbol m or the symbol m itself, and a value obtained by taking the remainder of the addition or subtraction by n is set in the symbol of the selection order in the position set. Symbol m
Since the conversion and storing are performed for all the symbols m of the existing n-th Latin square, it is possible to newly create an n-th Latin square converted based on the conversion values in the storage array. it can.

【0012】また、上記の目的を達成するため、第2の
発明は、第1の発明の第4のステップを、第2のステッ
プによるn次ラテン方陣のすべての記号の変換を、予め
設定した一又は二以上の回数、繰り返したときの最終位
置を、最終位置と判定して処理を終了することを特徴と
する。この発明では、特に複数回繰り返した場合は、既
存のn次ラテン方陣をより変形することができる。n種
類の変換値とそれに対して加算減算の2種類の演算から
2n通りの変換情報より、変換値が0で加減算を行った
場合において値が変化しない1種類のものを除いて最大
n−1種類の変形が可能である。
In order to achieve the above object, a second aspect of the present invention provides a fourth step of the first aspect, wherein the conversion of all symbols of the n-th Latin square in the second step is set in advance. It is characterized in that the final position when repeated one or more times is determined to be the final position and the process is terminated. According to the present invention, the existing n-th Latin square can be further deformed, particularly when it is repeated a plurality of times. From n types of conversion values and 2n types of conversion information from two types of operations of addition and subtraction, at most n-1 except for one type whose value does not change when the conversion value is 0 and addition / subtraction is performed. A variety of variations are possible.

【0013】また、上記の目的を達成するため、第3の
発明のラテン方陣作成方法は、第1の発明の第4のステ
ップにより最終位置であると判定されたときの記憶用配
列におけるn次ラテン方陣に対して、更にn次ラテン方
陣の各位置の配列要素として記号を順に選択決定するに
際して、選択決定を、行及び列の最後の位置から始め
て、行又は列に沿って行又は列の最後の位置まで順に行
うと共に、各位置毎に同一行、及び同一列の前の位置の
既に決定されている配列要素と同一記号とならないよう
に、記号を選択順に選択して、その位置で選択決定する
ことのできる記号が無いときには、その位置より前の位
置で既に決定されている配列要素の記号を、記号よりも
順が下位である選択できる記号に代えて選択決定を継続
することでラテン方陣を作成する第5のステップを更に
含むことを特徴とする。
[0013] In order to achieve the above object, a Latin square creating method according to a third aspect of the present invention is directed to a Latin square creating method according to the fourth aspect of the first aspect of the present invention. For the Latin squares, and in order to further select and determine the symbols as array elements at each position of the nth Latin square, the selection decision is made in the row or column along the row or column, starting at the last row and column position. The symbols are selected in the order of selection so that the symbols do not have the same symbol as the previously determined array element at the same row and the same position before the same column at each position. When there is no symbol that can be determined, the symbol of the array element that has already been determined at a position before that position is replaced with a selectable symbol having a lower order than the symbol, and the selection determination is continued. One And further comprising a fifth step of creating a.

【0014】この第3の発明では、記憶用配列に変換情
報により変換されたラテン方陣を基にして、更に別のラ
テン方陣作成方法を組み合わせて別の新たなラテン方陣
を作成することができる。上記の別のラテン方陣作成方
法は、この第3の発明では、特開平10−105544
号公報記載のラテン方陣の作成方法である。
In the third aspect, another new Latin square can be created by combining another Latin square creation method based on the Latin square converted into the storage array by the conversion information. According to the third invention, another Latin square creating method described above is disclosed in Japanese Patent Laid-Open No. 10-105544.
This is a method for creating a Latin square described in Japanese Patent Publication No.

【0015】また、上記の目的を達成するため、第4の
発明のラテン方陣作成装置は、n行n列の全部でn
の記憶素子を有し、記憶素子のそれぞれには、互いに異
なるn個の記号のうち、任意に選択した1つの記号mが
格納されるラテン方陣記憶用配列と、ラテン方陣記憶用
配列を構成するn個の記憶素子のうち、設定された位
置の記憶素子を指定する指定手段と、要素の記号の選択
順序の値又は要素の記号の値そのものを変化させるため
の変換値を記憶した変換値記憶部と、変換値の加算又は
減算の指定を行う加減算指定部と、記号の選択順序又は
記号mそのものに、変換値を加算或いは減算し、その加
算又は減算結果をnで剰余をとる演算を行う剰余計算手
段と、作成しようとするラテン方陣の次数nと、記号m
の選択順序と、ラテン方陣記憶用配列の記号mが最初に
配列される位置と、記号mをラテン方陣記憶用配列の行
方向又は列方向に沿って配列する順序とをそれぞれ予め
設定し、指定手段を制御してラテン方陣記憶用配列に設
定された既存のn次ラテン方陣に記憶された記号を設定
された選択順序で、かつ、選択方向に順次取り込み、取
り込んだ記号の値の順番の変換値を変換値記憶部から読
み出して、剰余計算手段により計算させ、得られた剰余
結果の値を選択順序の順番の記号に、設定された位置の
記号mとして変換する変換動作を、記号設置位置がn行
n列の最終位置になるまで繰り返す演算部とを有し、ラ
テン方陣記憶用配列に設定されている既存のラテン方陣
のすべての記号を、剰余計算手段により得られた剰余結
果の値を用いて変換することにより新たなラテン方陣を
作成する構成としたものである。
In order to achieve the above object, a Latin square forming apparatus according to a fourth aspect of the present invention has a total of n 2 storage elements in n rows and n columns, and each of the storage elements is different from each other. Among the n symbols, a Latin square storage array in which one arbitrarily selected symbol m is stored, and a storage element at a set position among n 2 storage elements constituting the Latin square storage array , A conversion value storage unit storing a conversion value for changing the value of the selection order of the element symbol or the value of the element symbol itself, and addition / subtraction specification for specifying addition or subtraction of the conversion value Part, the symbol selection order or the symbol m itself, adding or subtracting the converted value, performing a calculation of taking the remainder of the addition or subtraction by n, and the degree n of the Latin square to be created, , Symbol m
And the order in which the symbols m of the Latin square memory array are first arranged and the order in which the symbols m are arranged along the row direction or the column direction of the Latin square memory array are preset and designated. Controlling the means to fetch the symbols stored in the existing nth-order Latin square set in the Latin square storage array in the selected selection order and sequentially in the selection direction, and to convert the order of the values of the fetched symbols; The conversion operation of reading the value from the conversion value storage unit, causing the remainder calculation unit to calculate the value, and converting the obtained value of the remainder result into a symbol in the order of selection as the symbol m at the set position is referred to as a symbol installation position. Is repeated until the final position of n rows and n columns is reached, and all the symbols of the existing Latin squares set in the Latin square storage array are replaced by the value of the remainder result obtained by the remainder calculating means. Change using It is obtained by a structure for creating a new Latin square by.

【0016】この第4の発明では、ラテン方陣記憶用配
列に設定されている既存のラテン方陣のすべての記号
を、変換値記憶部に記憶されている変換値を用いて変換
することにより新たなラテン方陣を作成することを特徴
とする。
According to the fourth aspect of the present invention, all the symbols of the existing Latin square set in the Latin square storage array are converted by using the conversion values stored in the conversion value storage unit, thereby obtaining a new symbol. Creates a Latin square.

【0017】また、上記の目的を達成するため、第5の
発明は、第4の発明の演算部を、n次ラテン方陣のすべ
ての記号の変換を、予め設定した一又は二以上の回数、
繰り返したときの最終位置を、最終位置と判定して処理
を終了することを特徴とする。
In order to achieve the above object, a fifth aspect of the present invention provides a computing unit according to the fourth aspect of the present invention, wherein the conversion of all the symbols of the nth-order Latin square is performed one or two or more times in advance.
It is characterized in that the final position when repeated is determined as the final position and the process is terminated.

【0018】更に、上記の目的を達成するため、第6の
発明は、演算部を、最終位置であると判定されたときの
ラテン方陣記憶用配列におけるn次ラテン方陣に対し
て、更にn次ラテン方陣の各位置の配列要素として記号
を順に選択決定するに際して、選択決定を、指定手段を
制御して行及び列の最後の位置から始めて、行又は列に
沿って行又は列の最後の位置まで順に行うと共に、各位
置毎に同一行、及び同一列の前の位置の既に決定されて
いる配列要素と同一記号とならないように、記号を選択
順に選択して、その位置で選択決定することのできる記
号が無いときには、その位置より前の位置で既に決定さ
れている配列要素の記号を、記号よりも順が下位である
選択できる記号に代えて選択決定を継続することでラテ
ン方陣を作成することを特徴とする。この第6の発明で
は、変換値を用いて変換してラテン方陣を新たに作成し
た後、更に別のラテン方陣作成方法でラテン方陣を作成
するようにしたため、ラテン方陣要素の変化が不規則に
できる。
Further, in order to achieve the above object, a sixth aspect of the present invention provides an arithmetic unit, wherein an arithmetic unit is further provided with an nth order Latin square in the Latin square storage array when the final position is determined. When sequentially selecting and determining symbols as array elements at each position of the Latin square, the selection is determined by controlling the designating means, starting from the last position of the row or column, and ending at the last position of the row or column along the row or column. Up to the same order, and select symbols in the order of selection so that they do not have the same symbol as the previously determined array element at the same row and column before each position, and select and determine at that position When there is no symbol that can be made, a Latin square is created by continuing the selection decision by replacing the symbol of the array element already determined at the position before that position with a selectable symbol that is lower in order than the symbol Do The features. According to the sixth aspect, since a Latin square is newly created by performing conversion using the conversion value and then a Latin square is created by another Latin square creation method, the change of the Latin square element is irregular. it can.

【0019】[0019]

【発明の実施の形態】次に、本発明の一実施の形態につ
いて図面と共に説明する。なお、以下の説明では、説明
の便宜上、次数nを4とし、記号mは自然数の要素A=
{0,1,2,3}とし、その順列及び選択順は自然順
列の通り(0,1,2,3)とする。
Next, an embodiment of the present invention will be described with reference to the drawings. In the following description, the degree n is set to 4 and the symbol m is a natural element A =
{0, 1, 2, 3}, and the permutation and selection order thereof are the same as the natural permutation (0, 1, 2, 3).

【0020】図1は本発明になるラテン方陣の作成装置
の一実施の形態のブロック図を示す。同図において、演
算部1は、ソフトウェア的に演算処理を実行する他に、
次数nと、記号mの選択順序と、n次ラテン方陣のn行
n列のうちの記号mが最初に配列される位置と、記号m
をn行n列の行方向又は列方向に沿って配列する順序と
をそれぞれ設定すると共に、既存のラテン方陣のラテン
方陣記憶用配列10への設定を行う回路部で、この演算
部1は予め定められた制御プログラムに従って各種の演
算の実行を行い、接続されているラテン方陣作成部2に
おいて作成するラテン方陣Rのデータの行列位置の指定
と比較判断及び設定、読み取りを行う。
FIG. 1 is a block diagram showing an embodiment of a Latin square forming apparatus according to the present invention. In FIG. 1, a calculation unit 1 executes calculation processing by software,
The order n, the selection order of the symbol m, the position where the symbol m is first arranged in the n rows and n columns of the nth Latin square, and the symbol m
Are arranged along the row direction or the column direction of n rows and n columns, and the existing Latin squares are set in the Latin square storage array 10. Various calculations are executed in accordance with the determined control program, and the connected Latin square creating unit 2 designates the matrix position of the data of the Latin square R created, compares, judges, sets and reads.

【0021】ラテン方陣作成部2は、演算部1に接続さ
れており、行位置設定用記憶部3、列位置設定用記憶部
4、行位置比較用記憶部5、列位置比較用記憶部6、設
定用記号記憶部7、比較用記号記憶部8、記号比較部
9、ラテン方陣記憶用配列10、変換値記憶部11、加
減算指定記憶部12、次数記憶部13、要素記号記憶部
14、選択順序記憶部15、加減算部16及び剰余演算
部17から構成されている。
The Latin square creating unit 2 is connected to the arithmetic unit 1, and stores a row position setting storage unit 3, a column position setting storage unit 4, a row position comparison storage unit 5, and a column position comparison storage unit 6. Setting symbol storage unit 7, comparison symbol storage unit 8, symbol comparison unit 9, Latin square storage array 10, conversion value storage unit 11, addition / subtraction designation storage unit 12, degree storage unit 13, element symbol storage unit 14, It comprises a selection order storage unit 15, an addition / subtraction unit 16, and a remainder operation unit 17.

【0022】行位置設定用記憶部3は、演算部1の出力
信号に基づいて選択決定される記号mの行位置を、ラテ
ン方陣記憶用配列10に対して指定する。列位置設定用
記憶部4は、演算部1の出力信号に基づいて選択決定さ
れる記号mの列位置を、ラテン方陣記憶用配列10に対
して指定する。
The row position setting storage unit 3 specifies the row position of the symbol m which is selected and determined based on the output signal of the arithmetic unit 1 in the Latin square storage array 10. The column position setting storage unit 4 specifies the column position of the symbol m that is selected and determined based on the output signal of the arithmetic unit 1 in the Latin square storage array 10.

【0023】行位置比較用記憶部5は、演算部1の出力
信号に基づいて選択決定される記号mと比較される記号
m’の行位置を、また、列位置比較用記憶部6は、演算
部1の出力信号に基づいて選択決定される記号mと比較
される記号m’の列位置を、それぞれラテン方陣記憶用
配列10に対して指定する。また、設定用記号記憶部7
は、演算部1の出力信号に基づいて選択決定される記号
mを記憶したり、ラテン方陣記憶用配列10からの記号
mを記憶する。
The row position comparison storage unit 5 stores the row position of the symbol m ′ to be compared with the symbol m selected and determined based on the output signal of the arithmetic unit 1, and the column position comparison storage unit 6 stores The column position of the symbol m ′ to be compared with the symbol m that is selected and determined based on the output signal of the arithmetic unit 1 is specified for the Latin square storage array 10. The setting symbol storage unit 7
Stores the symbol m selected and determined based on the output signal of the arithmetic unit 1 or the symbol m from the Latin square storage array 10.

【0024】比較用記号記憶部8は、ラテン方陣記憶用
配列10から読み出された、比較される記号m’を記憶
する。記号比較部9は、設定用記号記憶部7に記憶され
た、演算部1により設定されたデータmと、比較用記号
記憶部8に記憶された、比較される記号m’とを比較
し、その比較結果を演算部1へ出力する。ラテン方陣記
憶用配列10には、予め既存のn次ラテン方陣が作成さ
れている。
The comparison symbol storage unit 8 stores the comparison symbol m 'read from the Latin square storage array 10. The symbol comparing unit 9 compares the data m set by the arithmetic unit 1 stored in the setting symbol storage unit 7 with the compared symbol m ′ stored in the comparison symbol storage unit 8, The result of the comparison is output to the arithmetic unit 1. An existing nth-order Latin square is created in the Latin square storage array 10 in advance.

【0025】変換値記憶部11は変換値の絶対値を記憶
し、加減算指定記憶部12でラテン方陣の要素の値、或
いは要素の選択順序の値に、変換値の符号に応じて加算
あるいは減算するための指定を行う。次数記憶部13
は、作成を行うラテン方陣の次数nの値を記憶し、剰余
演算などの各種演算に利用する。要素記号記憶部14
は、作成するラテン方陣に設定される要素記号の値を記
憶し、その要素記号に対応する選択順序の順番の値を選
択順序記憶部15に記憶する。
The conversion value storage unit 11 stores the absolute value of the conversion value, and the addition / subtraction designation storage unit 12 adds or subtracts the value of the Latin square element or the value of the element selection order according to the sign of the conversion value. Is specified. Order storage unit 13
Stores the value of the degree n of the Latin square to be created and uses it for various calculations such as remainder calculation. Element symbol storage unit 14
Stores the value of the element symbol set in the Latin square to be created, and stores the value of the order of the selection order corresponding to the element symbol in the selection order storage unit 15.

【0026】加減算部16は、ラテン方陣の要素の値或
いは選択順序の順番の値と変換値に対して加減算指定記
憶部12の指定により、加算あるいは減算を行う。剰余
演算部17は、変換値或いは加減算部16の演算結果の
値を次数記憶部13に記憶されているラテン方陣の次数
nの値で剰余、即ちmod n(モデュロn)演算を行
う。
The addition / subtraction unit 16 performs addition or subtraction on the values of the elements in the Latin square or the values in the order of selection and the converted values according to the designation of the addition / subtraction designation storage unit 12. The remainder operation unit 17 performs a remainder, that is, mod n (modulo n) operation on the converted value or the value of the operation result of the addition / subtraction unit 16 with the value of the degree n of the Latin square stored in the order storage unit 13.

【0027】また、ラテン方陣作成部2が作成するラテ
ン方陣Rは、次数がnの場合は図2に示すように、n行
n列からなり、I行J列の位置はKIJで表され、その
位置KIJに配列される配列要素(記号m)はEIJ
表される。図1中のラテン方陣記憶用配列10は、n次
のラテン方陣を作成するときには、図2に示したラテン
方陣Rと同様にn行n列の、全部でn個の配列子(記
憶素子)からなり、そのうちのI行J列の位置KIJ
配列子は10IJで表される。ここで、各配列子10
IJは、それぞれ1つの記号(データ)mを記憶する。
When the degree is n, the Latin square R created by the Latin square creating unit 2 is composed of n rows and n columns, and the position of the I row and J column is represented by KIJ , as shown in FIG. , array element (symbol m) which is arranged in the position K IJ is represented by E IJ. When creating an n-th order Latin square, the Latin square storage array 10 in FIG. 1 has a total of n 2 array elements (storage elements) in n rows and n columns, similarly to the Latin square R shown in FIG. ), Of which the array element at the position K IJ at the I row and the J column is represented by 10 IJ . Here, each array element 10
Each IJ stores one symbol (data) m.

【0028】演算部1は、作成しようとするラテン方陣
の次数nと、記号mの選択順序と、ラテン方陣記憶用配
列10の記号mが最初に配列される位置と、記号mをラ
テン方陣記憶用配列10の行方向又は列方向に沿って配
列する順序とがそれぞれ予め設定され、行位置設定用記
憶部3に行位置を、列位置設定用記憶部4に列位置をそ
れぞれ設定してラテン方陣記憶用配列10に設定された
既存のn次ラテン方陣に記憶された記号を、設定された
選択順序で、かつ、選択方向に順次取り込み、取り込ん
だ記号の値の順番の変換値Fを、変換値記憶部11及び
加減算指定記憶部12から読み出し、取り込んだ記号の
位置に変換値Fで変換した結果を記憶する変換動作をラ
テン方陣の最終位置になるまで繰り返すことにより、ラ
テン方陣記憶用配列10に新たなラテン方陣を作成す
る。
The arithmetic unit 1 stores the order n of the Latin square to be created, the selection order of the symbol m, the position where the symbol m of the Latin square storage array 10 is first arranged, and the symbol m in the Latin square storage. The order in which the array 10 is arranged in the row direction or the column direction is set in advance, and the row position is set in the row position setting storage unit 3 and the column position is set in the column position setting storage unit 4, respectively. The symbols stored in the existing n-th Latin square set in the square storage array 10 are sequentially fetched in the set selection order and in the selection direction, and the converted value F of the order of the fetched symbol values is The conversion operation of reading from the conversion value storage unit 11 and the addition / subtraction designation storage unit 12 and storing the result of conversion with the conversion value F at the position of the fetched symbol is repeated until the final position of the Latin square is reached. To create a new Latin square to 10.

【0029】例えば、変換値Fを「−3」とし、ラテン
方陣記憶用配列10に設定された既存のn次ラテン方陣
を図4(a)及び図7(a)に示す4次のラテン方陣と
し、要素記号の値を直接変換するものとすると、変換値
Fの符号は負であるので減算を指定し、変換値の絶対値
「3」でラテン方陣に設定された記号A={0,1,
2,3}を変換することを示す。
For example, the conversion value F is set to “−3”, and the existing nth-order Latin square set in the Latin square storage array 10 is replaced with the fourth-order Latin square shown in FIGS. 4 (a) and 7 (a). Assuming that the value of the element symbol is directly converted, the sign of the conversion value F is negative, so that the subtraction is specified, and the symbol A = {0, set in the Latin square by the absolute value “3” of the conversion value 1,
2, 3}.

【0030】従って、変換値Fが「−3」のときには、
ラテン方陣の設定要素「0」に対しては、その値に
「3」を減算して−3(=0−3)の減算結果を得、そ
の減算結果に次数である4(=n)で剰余をとる(モジ
ュロ4の計算をする)ことにより、要素記号の値は
「1」に変換される。設定要素が「1」の時には、変換
値との減算結果が−2(=1−3)であるので、その減
算結果に4で剰余をとることにより、要素記号の値は
「2」に変換される。同様に、設定要素が「2」の時に
は減算結果は−1(=2−3)で、減算結果に4の剰余
をとることにより、要素記号の値は「3」に変換され
る。要素記号が「3」の時には、減算結果は0(=3−
3)であるから、減算結果に4の剰余をとることによ
り、要素記号の値は「0」となる。これにより、すべて
の要素が新たな要素に変換される。結果の要素の選択順
序は(1,2,3,0)となる。
Therefore, when the conversion value F is "-3",
For the Latin square setting element “0”, “3” is subtracted from the value to obtain a subtraction result of −3 (= 0−3), and the subtraction result is an order of 4 (= n). By taking the remainder (by performing modulo 4 calculation), the value of the element symbol is converted to “1”. When the set element is “1”, the result of subtraction from the conversion value is −2 (= 1−3), and the remainder of the subtraction result is converted to “2” by taking the remainder by 4. Is done. Similarly, when the setting element is "2", the subtraction result is -1 (= 2-3), and the remainder of the subtraction result is converted to "3" by taking the remainder of 4. When the element symbol is “3”, the subtraction result is 0 (= 3−3).
Since 3), the value of the element symbol becomes “0” by taking the remainder of 4 in the subtraction result. As a result, all elements are converted to new elements. The selection order of the resulting elements is (1, 2, 3, 0).

【0031】なお、変換値の絶対値は、通常は次数nよ
り小なる値であるが、加減算を行う変換値の絶対値がn
以上の場合には、絶対値にmod nの演算を行ってn
より小さな値にして加減算を行い、更にmod nをし
て変換結果とするか、変換値要素の値に加減算を行った
後でmod nを行うことでその結果とすることができ
る。
Although the absolute value of the converted value is usually smaller than the order n, the absolute value of the converted value to be added or subtracted is n.
In the above case, mod n operation is performed on the absolute value to obtain n.
Addition / subtraction is performed with a smaller value, and mod n is further obtained as a conversion result, or mod n is performed after addition / subtraction is performed on the value of the conversion value element to obtain the result.

【0032】次に、上記のラテン方陣作成装置を用いて
作成される本発明のラテン方陣作成方法について説明す
る。図3は本発明になるラテン方陣の作成方法の一実施
の形態を説明するフローチャートを示す。ここで、演算
部1は、図1に示したラテン方陣記憶用配列10に既存
のラテン方陣R’を行Iと列Jの各位置KIJに配置し
た記号mを配列要素EIJとして設定すると共に、演算
部1には作成情報として次数nと、n行n列のうちの記
号mが最初に配列される位置と、記号mをn行n列の行
方向又は列方向に沿って配列する順序と、記号mの選択
順序とがそれぞれ設定されている。更に、変換値記憶部
11に変換値Fの絶対値が、加減算指定記憶部12には
変換値Fの符号に応じた加算又は減算を設定する。
Next, a method for creating a Latin square according to the present invention, which is created using the above-described Latin square creating apparatus, will be described. FIG. 3 is a flowchart illustrating an embodiment of a method for creating a Latin square according to the present invention. Here, the arithmetic unit 1 sets the symbol m which is disposed at each position K IJ row I and column J of the existing Latin square R 'in Latin square for storing sequence 10 shown in FIG. 1 as an array element E IJ At the same time, the arithmetic unit 1 arranges the order n as creation information, the position where the symbol m of the n rows and n columns is first arranged, and the symbols m along the row direction or the column direction of the n rows and n columns. The order and the selection order of the symbol m are set respectively. Further, the absolute value of the conversion value F is set in the conversion value storage unit 11, and addition or subtraction according to the sign of the conversion value F is set in the addition / subtraction designation storage unit 12.

【0033】ここでは、一例として、ラテン方陣記憶用
配列10に既存のラテン方陣R’として、図4(a)及
び図7(a)に示す4次のラテン方陣が予め記憶されて
おり、また、前述したように、次数nを4とし、記号m
は自然数(0,1,2,3)とし、その順列及び選択順
は自然順列の通りとする。位置の進行方向は図6(a)
に矢印で示す方向に進行する列方向と、同図(b)に矢
印で示す方向に進行する行方向とがある。ここでは、位
置の進行方向は、列方向が設定されたものとする。ま
た、最初の位置は、一般形ラテン方陣では1行1列目の
11である。更に、変換値記憶部11には「3」が記
憶され、加減算指定記憶部12には減算が指定されてい
る(すなわち、変換値Fは「−3」である)ものとす
る。
Here, as an example, a fourth-order Latin square shown in FIGS. 4A and 7A is stored in advance as an existing Latin square R ′ in the Latin square storage array 10. , As described above, the degree n is 4, and the symbol m
Is a natural number (0, 1, 2, 3), and the permutation and selection order are the same as the natural permutation. The direction of travel of the position is shown in FIG.
There is a column direction that progresses in the direction indicated by the arrow in FIG. 3, and a row direction that advances in the direction indicated by the arrow in FIG. Here, it is assumed that the column direction is set as the traveling direction of the position. Further, the first position is in the general form Latin square is K 11 in the first row and the first column. Further, it is assumed that “3” is stored in the conversion value storage unit 11 and subtraction is specified in the addition / subtraction designation storage unit 12 (that is, the conversion value F is “−3”).

【0034】この状態で、演算部1は、まず、行位置設
定用記憶部3に行位置Iとして”1”を設定し(ステッ
プS1)、続いて、列位置設定用記憶部4に列位置Jと
して”1”を設定する(ステップS2)。これにより、
行位置設定用記憶部3と列位置設定用記憶部4により設
定されたラテン方陣記憶用配列10の最初の位置K
の要素E(1,1)(=0)が設定用記号記憶部7に出
力されて記憶される。
In this state, the arithmetic unit 1 first sets "1" as the row position I in the row position setting storage unit 3 (step S1), and then stores the column position in the column position setting storage unit 4. "1" is set as J (step S2). This allows
The first position of the Latin square for storing sequence 10 which is set by the row position setting storage unit 3 and the column position setting storage unit 4 K 1 1
The element E (1,1) (= 0) is output to the setting symbol storage unit 7 and stored.

【0035】続いて、演算部1は設定用記号記憶部7か
らラテン方陣記憶用配列10の最初の位置K11の要素
E(1,1)(=0)を取り込み、それを変換値記憶部
11及び加減算指定記憶部12から変換値「−3」を読
み出して、加減算部16により要素「0」と変換値の絶
対値「3」との減算動作を行わせ、得られた減算結果−
3(=0−3)を、更に剰余演算部17でモジュロ4の
演算を行わせ、1(=−3 mod 4)の剰余結果を
得る。
[0035] Then, the calculating portion 1 takes in the element E of the first position K 11 of Latin square for storing sequence 10 from the setting symbol storage unit 7 (1,1) (= 0), the conversion value storing unit it 11 and the conversion value “−3” from the addition / subtraction designation storage unit 12, and the addition / subtraction unit 16 performs a subtraction operation between the element “0” and the absolute value “3” of the conversion value.
3 (= 0-3) is further modulo 4 operated by the remainder operation unit 17 to obtain a remainder result of 1 (= -3 mod 4).

【0036】演算部1は、剰余演算部17で得られた剰
余結果「1」を要素の記号として変換し、変換した記号
「1」を設定用記号記憶部7から再度、行位置設定用記
憶部3及び列位置設定用記憶部4に設定されている位置
11の要素E(1,1)としてラテン方陣記憶用配列
10の最初の位置K11の要素E(1,1)に設定する
(ステップS3)。これにより、ラテン方陣記憶用配列
10は、図4(b)にアンダーラインを付して示すよう
に要素E(1,1)の記号が「1」に変換される。
The operation unit 1 converts the remainder result "1" obtained by the remainder operation unit 17 as an element symbol, and converts the converted symbol "1" from the setting symbol storage unit 7 again into the row position setting storage unit. set to part 3 and elements of first position K 11 of Latin squares storing array 10 as an element E (1, 1) position K 11 set in the column position setting storage unit 4 E (1,1) (Step S3). As a result, in the Latin square storage array 10, the symbol of the element E (1,1) is converted to "1" as shown by underlining in FIG. 4B.

【0037】次に、演算部1は列位置設定記憶部4に設
定されている列位置Jの値が、次数nより小さいかどう
か判定する(ステップS4)。この時点ではJ=1、n
=4であるので、J<nであるから、列位置Jの値を”
1”加算して列位置設定用記憶部4に「2」を設定した
後(ステップS5)、ステップS3に進む。この時点で
は、行位置設定用記憶部3の値は前回と同じ「1」のま
まである。
Next, the arithmetic unit 1 determines whether the value of the column position J set in the column position setting storage unit 4 is smaller than the degree n (step S4). At this point, J = 1, n
= 4 and J <n, so the value of column position J is
After adding “1” and setting “2” in the column position setting storage unit 4 (step S5), the process proceeds to step S3. At this time, the value of the row position setting storage unit 3 remains “1”, which is the same as the previous time.

【0038】従って、ステップS3では、演算部1は設
定用記号記憶部7を通してラテン方陣記憶用配列10の
次の位置K12の要素E(1,2)(=1)を取り込
み、また、変換値記憶部11及び加減算指定記憶部12
から読み出した変換情報Fの値「−3」に基づき、加減
算部16により要素「1」と変換値の絶対値「3」との
減算動作を行わせ、得られた減算結果−2(=1−3)
を、更に剰余演算部17でモジュロ4の演算を行わせ、
2(=−2 mod 4)の剰余結果を得る。
[0038] Therefore, in step S3, the calculating portion 1 element E (1, 2) at the next position K 12 of Latin square for storing sequences 10 through setting symbol storage unit 7 (= 1) the incorporation, addition, transformation Value storage unit 11 and addition / subtraction designation storage unit 12
The subtraction operation of the element “1” and the absolute value of the converted value “3” is performed by the adding / subtracting unit 16 based on the value “−3” of the conversion information F read from, and the obtained subtraction result −2 (= 1 -3)
And further modulo 4 operation is performed by the remainder operation unit 17,
2 (= −2 mod 4) is obtained.

【0039】演算部1は、剰余演算部17で得られた剰
余結果「2」を要素の記号として変換し、変換した記号
「2」を設定用記号記憶部7から再度、行位置設定用記
憶部3及び列位置設定用記憶部4に設定されている位置
12の要素E(1,2)としてラテン方陣記憶用配列
10の位置K12の要素E(1,2)に設定する。これ
により、ラテン方陣記憶用配列10は、図4(c)にア
ンダーラインを付して示すように要素E(1,2)の記
号が「2」に変換される。
The operation unit 1 converts the remainder result “2” obtained by the remainder operation unit 17 as an element symbol, and converts the converted symbol “2” from the setting symbol storage unit 7 again to the row position setting storage unit. set to part 3 and elements of positions K 12 elements E (1, 2) as a Latin square for storing sequence 10 position K 12 set in the column position setting storage unit 4 E (1,2). As a result, in the Latin square storage array 10, the symbol of the element E (1,2) is converted to "2" as shown by underlining in FIG.

【0040】続いて、演算部1は今度はラテン方陣記憶
用配列10の次の位置K13の要素E(1,3)(=
2)を取り込み、変換値記憶部11及び加減算指定記憶
部12から読み出した変換情報Fの値「−3」に基づ
き、加減算部16により要素「2」と変換値の絶対値
「3」との減算動作を行わせ、得られた減算結果−1
(=2−3)を、更に剰余演算部17でモジュロ4の演
算を行わせ、3(=−1 mod 4)の剰余結果を得
て、それを位置K13の要素E(1,3)としてラテン
方陣記憶用配列10に設定する(ステップS4、S5、
S3)。これにより、ラテン方陣記憶用配列10の要素
E(1,3)は、図4(d)にアンダーラインを付して
示すように記号「3」に変換される。
[0040] Then, the calculating portion 1 turn elements next position K 13 of Latin square for storing sequence 10 E (1,3) (=
2), and based on the value “−3” of the conversion information F read from the conversion value storage unit 11 and the addition / subtraction designation storage unit 12, the addition / subtraction unit 16 converts the element “2” and the absolute value of the conversion value “3”. A subtraction operation is performed, and the obtained subtraction result -1
(= 2-3), and to further perform the operation of modulo 4 remainder operation unit 17, 3 - to give (= 1 mod 4) remainder result of it position K 13 element E (1, 3) Is set in the Latin square storage array 10 (steps S4, S5,
S3). As a result, the element E (1,3) of the Latin square storage array 10 is converted into the symbol "3" as shown by underlining in FIG. 4D.

【0041】続いて、演算部1は今度はラテン方陣記憶
用配列10の次の位置K14の要素E(1,4)(=
3)を取り込み、変換値記憶部11及び加減算指定憶部
12から読み出した変換情報Fの値「−3」に基づき、
加減算部16により要素「3」と変換値の絶対値「3」
との減算動作を行わせ、得られた減算結果0(=3−
3)を、更に剰余演算部17でモジュロ4の演算を行わ
せ、0(=0 mod 4)の剰余結果を得て、それを
位置K14の要素E(1,4)としてラテン方陣記憶用
配列10に設定する(ステップS4、S5、S3)。こ
れにより、ラテン方陣記憶用配列10の要素E(1,
4)は、図4(e)にアンダーラインを付して示すよう
に記号「0」に変換される。
[0041] Then, the calculating portion 1 turn elements next position K 14 of Latin square for storing sequence 10 E (1,4) (=
3), and based on the value “−3” of the conversion information F read from the conversion value storage unit 11 and the addition / subtraction designation storage unit 12,
The addition and subtraction unit 16 calculates the element “3” and the absolute value “3” of the converted value.
Is performed, and the obtained subtraction result 0 (= 3-
3), and further perform the calculation of modulo 4 remainder operation unit 17, 0 (= 0 mod 4 ) to obtain the remainder result of, for Latin squares stores it as the position K 14 element E (l, 4) It is set in array 10 (steps S4, S5, S3). As a result, the element E (1,
4) is converted to the symbol “0” as shown by underlining in FIG.

【0042】この段階で、J=4となり、nの値と等し
くなるので、ステップS4を経由して演算部1は行位置
設定記憶部3に設定されている行位置Iの値が、次数n
より小さいかどうか判定する(ステップS6)。この時
点ではI=1、n=4であるので、I<nであるから、
行位置Iの値を”1”加算して行位置設定用記憶部3に
「2」を設定した後(ステップS7)、ステップS2に
進み、列位置設定用記憶部4に設定されている列位置J
の値が「1」に設定される。
At this stage, J = 4, which is equal to the value of n. Thus, the arithmetic unit 1 determines at step S4 that the value of the row position I set in the row position setting storage unit 3 is the order n
It is determined whether it is smaller than (Step S6). At this point, since I = 1 and n = 4, since I <n,
After adding “1” to the value of the row position I and setting “2” in the row position setting storage unit 3 (step S7), the process proceeds to step S2, where the column set in the column position setting storage unit 4 is set. Position J
Is set to “1”.

【0043】続いて、演算部1はラテン方陣記憶用配列
10の次の位置K21の要素E(2,1)(=1)を取
り込み、変換値記憶部11及び加減算指定憶部12から
読み出した変換情報Fの値「−3」に基づき、加減算部
16により要素「1」と変換値の絶対値「3」との減算
動作を行わせ、得られた減算結果−2(=1−3)を、
更に剰余演算部17でモジュロ4の演算を行わせ、2
(=−2 mod 4)の剰余結果を得て、それを位置
21の要素E(2,1)としてラテン方陣記憶用配列
10に設定する(ステップS3)。これにより、ラテン
方陣記憶用配列10の要素E(2,1)は、図4(f)
にアンダーラインを付して示すように記号「2」に変換
される。
Subsequently, the arithmetic unit 1 fetches the element E (2,1) (= 1) at the next position K 21 of the Latin square storage array 10 and reads it from the conversion value storage unit 11 and the addition / subtraction designation storage unit 12. Based on the value “−3” of the conversion information F, the addition / subtraction unit 16 performs a subtraction operation between the element “1” and the absolute value “3” of the conversion value, and the obtained subtraction result−2 (= 1−3) ),
Further, the modulo 4 operation is performed by the remainder operation unit 17, and 2
To give (= -2 mod 4) remainder result of setting it to Latin square for storing sequence 10 as element E (2,1) position K 21 (step S3). As a result, the element E (2,1) of the Latin square storage array 10 is changed as shown in FIG.
Is converted to the symbol "2" as shown by underlining the "."

【0044】以下、上記と同様の動作が繰り返され、演
算部1はラテン方陣記憶用配列10の位置K43の要素
E(4,3)として、図4(g)にアンダーラインを付
して示すように記号「2」に変換し、ラテン方陣記憶用
配列10の最後の位置K44の要素E(4,4)とし
て、図4(h)にアンダーラインを付して示すように記
号「1」に変換する。この時点ですべての要素の記号が
変換されて、J=4、I=4となるので、ステップS4
及びステップS6をそれぞれ経由してラテン方陣の作成
処理を終了する(ステップS8)。
[0044] Hereinafter, the same operation as described above is repeated, the calculating portion 1 as elements E position K 43 of Latin square for storing sequence 10 (4,3), underlined in FIG. 4 (g) into a symbol "2" as shown, as an element E of the last position K 44 of Latin square for storing sequence 10 (4,4), the symbol as shown underlined in Figure 4 (h) " 1 ". At this point, the symbols of all the elements are converted, and J = 4 and I = 4.
Then, the process of creating the Latin square is completed via step S6 and step S6, respectively (step S8).

【0045】次に、別の例について図1、図3及び図5
と共に説明する。この別の例では、ラテン方陣記憶用配
列10に既存のラテン方陣R’として、図5(a)及び
図7(c)に示す4次のラテン方陣が予め記憶されてお
り、また、前述したように、次数nを4とし、記号mは
(a,b,c,d)とする。位置の進行方向は図6
(a)に示す、列方向が設定されたものとする。また、
最初の位置は、一般形ラテン方陣では1行1列目のK
11である。更に、変換値記憶部11には「2」が記憶
され、加減算指定記憶部12には加算が指定されている
(すなわち、変換値Fは「+2」である)ものとする。
Next, FIGS. 1, 3 and 5 show another example.
It is explained together with. In this other example, a fourth-order Latin square shown in FIG. 5A and FIG. 7C is stored in advance as an existing Latin square R ′ in the Latin square storage array 10, and as described above. Thus, the degree n is 4, and the symbol m is (a, b, c, d). Fig. 6
It is assumed that the column direction shown in FIG. Also,
The first position is K in the 1st row and 1st column in the general Latin square
It is 11 . Further, it is assumed that “2” is stored in the conversion value storage unit 11 and addition is specified in the addition / subtraction specification storage unit 12 (that is, the conversion value F is “+2”).

【0046】この状態で、演算部1は、まず、行位置設
定用記憶部3に行位置Iとして”1”を設定し(ステッ
プS1)、続いて、列位置設定用記憶部4に列位置Jと
して”1”を設定する(ステップS2)。これにより、
行位置設定用記憶部3と列位置設定用記憶部4により設
定されたラテン方陣記憶用配列10の最初の位置K
の要素E(1,1)(=a)が設定用記号記憶部7に出
力されて記憶される。
In this state, the arithmetic unit 1 first sets "1" as the row position I in the row position setting storage unit 3 (step S1), and then sets the column position in the column position setting storage unit 4. "1" is set as J (step S2). This allows
The first position of the Latin square for storing sequence 10 which is set by the row position setting storage unit 3 and the column position setting storage unit 4 K 1 1
Is output to the setting symbol storage unit 7 and stored.

【0047】続いて、演算部1は設定用記号記憶部7か
らラテン方陣記憶用配列10の最初の位置K11の要素
E(1,1)(=a)を取り込み、それを変換値記憶部
11及び加減算指定記憶部12から変換値「+2」を読
み出して加減算部16に供給する。ここで、ラテン方陣
に設定された要素の記号A={a,b,c,d}の選択
順序を(0,1,2,3)とすると、記号aの選択順序
は0であり、加減算部16は、記号aの選択順序「0」
と変換値「2」を加算する。
[0047] Then, the calculating portion 1 takes in the element E of the first position K 11 of Latin square for storing sequence 10 from the setting symbol storage unit 7 (1,1) (= a) , conversion value storing unit it The conversion value “+2” is read from the addition and subtraction designation storage unit 12 and supplied to the addition and subtraction unit 16. Here, assuming that the selection order of the symbol A = {a, b, c, d} of the element set in the Latin square is (0, 1, 2, 3), the selection order of the symbol a is 0, and addition / subtraction is performed. The section 16 selects the symbol “a” in the selection order “0”.
And the conversion value “2”.

【0048】剰余演算部17は、加減算部16により得
られた加算結果2(=0+2)で4の剰余をとる(モジ
ュロ4の演算をする)ことで、剰余結果「2」を得る。
演算部1はその剰余結果「2」に基づき、選択順序2の
記号cを要素の記号として変換し、変換した記号「c」
を設定用記号記憶部7から再度、行位置設定用記憶部3
及び列位置設定用記憶部4に設定されている位置K11
の要素E(1,1)としてラテン方陣記憶用配列10の
最初の位置K11の要素E(1,1)に設定する(ステ
ップS3)。これにより、ラテン方陣記憶用配列10
は、図5(b)にアンダーラインを付して示すように要
素E(1,1)の記号が「c」に変換される。
The remainder operation unit 17 obtains the remainder result “2” by taking the remainder of 4 (by performing modulo 4 operation) on the addition result 2 (= 0 + 2) obtained by the addition / subtraction unit 16.
The operation unit 1 converts the symbol c in the selection order 2 as a symbol of an element based on the remainder result “2”, and converts the converted symbol “c”.
From the setting symbol storage unit 7 again to the row position setting storage unit 3.
And the position K 11 set in the column position setting storage unit 4
It is set as the element E (1, 1) to the element E of the first position K 11 of Latin square for storing sequence 10 (1,1) (step S3). As a result, the Latin square memory array 10
The symbol of the element E (1,1) is converted to "c" as shown in FIG. 5B with an underline.

【0049】続いて、演算部1は今度はラテン方陣記憶
用配列10の次の位置K12の要素E(1,2)(=
b)を取り込み、変換値記憶部11及び加減算指定記憶
部12から読み出した変換情報Fの値「+2」に基づ
き、加減算部16により要素「b」の選択順序である
「1」と変換値の絶対値「2」との加算動作を行わせ、
得られた加算結果3(=1+2)を、更に剰余演算部1
7でモジュロ4の演算を行わせ、3(=3 mod
4)の剰余結果を得て、選択順序「3」の記号dに変換
し、それを位置K12の要素E(1,2)としてラテン
方陣記憶用配列10に設定する(ステップS4、S5、
S3)。これにより、ラテン方陣記憶用配列10の要素
E(1,2)は、図5(c)にアンダーラインを付して
示すように記号「d」に変換される。
[0049] Then, the calculating portion 1 turn elements next position K 12 of Latin square for storing sequence 10 E (1,2) (=
b), and based on the value “+2” of the conversion information F read from the conversion value storage unit 11 and the addition / subtraction designation storage unit 12, the addition / subtraction unit 16 selects “1”, which is the selection order of the element “b”, and The addition operation with the absolute value “2” is performed,
The obtained addition result 3 (= 1 + 2) is further divided into the remainder operation unit 1
7, the modulo 4 operation is performed, and 3 (= 3 mod
To give a residue result of 4), converts a symbol d selection order "3", it sets it to Latin square for storing sequence 10 as the element at position K 12 E (1,2) (step S4, S5,
S3). As a result, the element E (1,2) of the Latin square storage array 10 is converted into the symbol "d" as shown by underlining in FIG. 5 (c).

【0050】続いて、演算部1は今度はラテン方陣記憶
用配列10の次の位置K13の要素E(1,3)(=
c)を取り込み、変換値記憶部11及び加減算指定記憶
部12から読み出した変換情報Fの値「+2」に基づ
き、加減算部16により要素「c」の選択順序である
「2」と変換値の絶対値「2」との加算動作を行わせ、
得られた加算結果4(=2+2)を、更に剰余演算部1
7でモジュロ4の演算を行わせ、0(=4 mod
4)の剰余結果を得て、選択順序「0」の記号aに変換
し、それを位置K13の要素E(1,3)としてラテン
方陣記憶用配列10に設定する(ステップS4、S5、
S3)。これにより、ラテン方陣記憶用配列10の要素
E(1,3)は、図5(d)にアンダーラインを付して
示すように記号「a」に変換される。
[0050] Then, the calculating portion 1 turn elements next position K 13 of Latin square for storing sequence 10 E (1,3) (=
c), and based on the value “+2” of the conversion information F read from the conversion value storage unit 11 and the addition / subtraction designation storage unit 12, the addition / subtraction unit 16 selects “2”, which is the selection order of the element “c,” and the conversion value of the conversion value. The addition operation with the absolute value “2” is performed,
The obtained addition result 4 (= 2 + 2) is further divided into the remainder operation unit 1
7, the modulo 4 operation is performed, and 0 (= 4 mod
To give a residue results in 4), is converted into symbols a selection order "0", it sets the Latin square for storing sequence 10 as element E (1, 3) position K 13 (step S4, S5,
S3). As a result, the element E (1, 3) of the Latin square storage array 10 is converted to the symbol “a” as shown by underlining in FIG. 5D.

【0051】続いて、演算部1は今度はラテン方陣記憶
用配列10の次の位置K14の要素E(1,4)(=
d)を取り込み、変換値記憶部11及び加減算指定憶部
12から読み出した変換情報Fの値「+2」に基づき、
加減算部16により要素「d」の選択順序「3」と変換
値の絶対値「2」との加算動作を行わせ、得られた加算
結果5(=3+2)を、更に剰余演算部17でモジュロ
4の演算を行わせ、1(=5 mod 4)の剰余結果
を得て、選択順序「1」の記号bを位置K14の要素E
(1,4)としてラテン方陣記憶用配列10に設定する
(ステップS4、S5、S3)。これにより、ラテン方
陣記憶用配列10の要素E(1,4)は、図5(e)に
アンダーラインを付して示すように記号「b」に変換さ
れる。
[0051] Then, the calculating portion 1 turn elements next position K 14 of Latin square for storing sequence 10 E (1,4) (=
d), and based on the value “+2” of the conversion information F read from the conversion value storage unit 11 and the addition / subtraction designation storage unit 12,
The addition / subtraction unit 16 performs an addition operation on the selection order “3” of the element “d” and the absolute value of the converted value “2”. The obtained addition result 5 (= 3 + 2) is further modulo-modulated by the remainder operation unit 17. to perform the fourth computing, 1 (= 5 mod 4) to obtain the remainder result of the element E of the position K 14 symbols b selection order "1"
(1, 4) is set in the Latin square storage array 10 (steps S4, S5, S3). As a result, the element E (1, 4) of the Latin square storage array 10 is converted into the symbol “b” as shown by underlining in FIG.

【0052】この段階で、J=4となり、nの値と等し
くなるので、ステップS4を経由して演算部1は行位置
設定記憶部3に設定されている行位置Iの値が、次数n
より小さいかどうか判定する(ステップS6)。この時
点ではI=1、n=4であるので、I<nであるから、
行位置Iの値を”1”加算して行位置設定用記憶部3に
「2」を設定した後(ステップS7)、ステップS2に
進み、列位置設定用記憶部4に設定されている列位置J
の値が「1」に設定される。
At this stage, J = 4, and becomes equal to the value of n. Therefore, the arithmetic unit 1 determines at step S4 that the value of the row position I set in the row position setting storage unit 3 is n
It is determined whether it is smaller than (Step S6). At this point, since I = 1 and n = 4, since I <n,
After adding “1” to the value of the row position I and setting “2” in the row position setting storage unit 3 (step S7), the process proceeds to step S2, where the column set in the column position setting storage unit 4 is set. Position J
Is set to “1”.

【0053】以下、上記と同様の動作が繰り返され、ラ
テン方陣記憶用配列10の要素E(2,1)は、図5
(f)にアンダーラインを付して示すように記号「d」
に、要素E(4,3)は、図5(g)にアンダーライン
を付して示すように記号「d」に、要素E(4,4)
は、図5(h)にアンダーラインを付して示すように記
号「c」にそれぞれ変換される。この時点ですべての要
素の記号が変換されて、J=4、I=4となるので、ス
テップS4及びステップS6をそれぞれ経由してラテン
方陣の作成処理を終了する(ステップS8)。この実施
の形態では、結果の要素の選択順序は(c,d,a,
b)となる。
Thereafter, the same operation as above is repeated, and the element E (2,1) of the Latin square storage array 10 is
As shown in (f) with an underline, the symbol "d"
In addition, the element E (4,4) is added to the symbol “d” as shown by underlining in FIG.
Is converted to the symbol "c" as shown by underlining in FIG. 5 (h). At this point, the symbols of all the elements are converted to J = 4 and I = 4, so that the Latin square creation processing ends via steps S4 and S6 (step S8). In this embodiment, the order of selecting the resulting elements is (c, d, a,
b).

【0054】このように、本実施の形態によれば、既存
のラテン方陣のそれぞれの要素を、変換値記憶部11に
記憶されている変換値Fによって要素を変換することに
よって、ラテン方陣の記憶パターンはそのままである
が、記憶されている要素の配列の選択順を変化させたの
と同じ効果が得られ、既存のラテン方陣と、同一次数の
ラテン方陣を確実、かつ、簡単に変換させることができ
る。要素の変換によって、元のラテン方陣をn−1種類
の変形が可能となり、利用価値もn−1倍となり、これ
により、新たに作成されるラテン方陣の第三者による推
測を困難にできる。
As described above, according to the present embodiment, each element of the existing Latin square is converted into an element by the conversion value F stored in the conversion value storage unit 11, thereby storing the Latin square. The pattern is intact, but the effect is the same as changing the selection order of the memorized element array, making it possible to convert existing Latin squares and Latin squares of the same order reliably and easily Can be. By the element conversion, the original Latin square can be transformed into n-1 types, and the utility value is also increased by n-1 times. This makes it difficult for a third party to guess the newly created Latin square.

【0055】なお、本発明は上記の実施の形態に限定さ
れるものではなく、例えば上記の変換を予め設定した複
数回数繰り返して、新たなラテン方陣Rを作成するよう
にしてもよい。また、本発明者が先に特開平10−10
5544号公報にて提案したラテン方陣作成方法とを組
み合わせて新たなラテン方陣を作成することもできる。
上記の本発明者の提案になるラテン方陣作成方法では、
作成するラテン方陣の次数nと記号mとを設定し、ラテ
ン方陣Rの各位置の配列要素として記号を順に選択決定
するに際して、選択決定を、行及び列の最後の位置から
始めて、行又は列に沿って行又は列の最後の位置まで順
に行うと共に、各位置毎に同一行、及び列の前の位置の
既に決定されている配列要素と同一記号とならないよう
に、記号を選択順に選択して、もし、その位置で選択決
定することのできる記号が無いときには、その位置より
前の位置で既に決定されている配列要素の記号を、該記
号よりも順が下位である選択できる記号に代えて選択決
定を継続することでラテン方陣を作成する方法である。
The present invention is not limited to the above-described embodiment. For example, the above-described conversion may be repeated a predetermined number of times to create a new Latin square R. In addition, the present inventor has disclosed in
A new Latin square can be created by combining with the Latin square creating method proposed in Japanese Patent No. 5544.
In the Latin square creation method proposed by the inventor,
When the degree n and the symbol m of the Latin square to be created are set, and the symbols are sequentially selected and determined as array elements at each position of the Latin square R, the selection is determined starting from the last position of the row and column, and starting with the row or column. Along with the last position of the row or column, and select symbols in the order of selection so that each position does not have the same symbol as the already determined array element at the same position of the previous row and column. If there is no symbol that can be selected and determined at that position, the symbol of the array element that has already been determined at the position before that position is replaced with a selectable symbol that is lower in order than the symbol. This is a way to create a Latin square by continuing the selection decision.

【0056】あるいは、本発明者が先に特願2000−
3105号で提案したラテン方陣作成方法で作成したラ
テン方陣とを組み合わせて、新たなラテン方陣を得るこ
ともできる。この提案のラテン方陣作成方法は、互いに
異なるn個の記号を、同じ行と同じ列の各位置ではそれ
ぞれ異なるように、n行n列の位置に配列要素としてそ
れぞれ設定した次数nのラテン方陣を作成する作成方法
において、前記次数nと、前記記号mの選択順序と、前
記n行n列のうちの前記記号mが最初に配列される位置
と、前記記号mを前記n行n列の行方向又は列方向に沿
って配列する順序とをそれぞれ設定する第1のステップ
と、所望の既存のn次ラテン方陣を記憶用配列に設定す
る第2のステップと、前記既存のn次ラテン方陣の、前
記第1のステップで設定された最初の位置の記号の次の
選択順の記号を設定し、設定する当該次の選択順の記号
が存在しないときは位置を一つ前に戻して、その位置の
記号の次の選択順の記号を設定する第3のステップと、
前のステップで設定された記号を、その記号の設定位置
と同じ行と同じ列の前の位置の記号とを比較して、同じ
記号があるときは前記第3のステップの処理を再度実行
させ、同じ記号がないときは前記前のステップで設定さ
れた記号を前記記憶用配列に記憶する第4のステップ
と、前記第4のステップにより記憶された記号の位置
が、作成しようとするラテン方陣の最後の位置であると
きはすべての処理を終了し、該最後の位置でないとき
は、指定位置を次の位置に進めて、その位置に選択順の
最初の記号を設定してから前記第4のステップの処理を
実行させる第5のステップとを含むことを特徴とする。
Alternatively, the present inventor has previously filed Japanese Patent Application
A new Latin square can be obtained by combining with a Latin square created by the Latin square creating method proposed in No. 3105. The proposed Latin square creation method uses a Latin square of degree n set as an array element at the position of n rows and n columns so that n different symbols are different at each position of the same row and the same column. In the creating method, the order n, the selection order of the symbol m, the position where the symbol m is first arranged in the n rows and n columns, and the symbol m are assigned to the n rows and n columns of the row. A first step of setting the order of arrangement along the direction or the column direction, a second step of setting a desired existing n-th Latin square in the storage array, and a step of setting the existing n-th Latin square. Setting a symbol in the next selection order of the symbol at the first position set in the first step, and if there is no symbol in the next selection order to be set, returns the position to the previous position, Set next selection symbol for position symbol And a third step that,
The symbol set in the previous step is compared with the symbol in the same row and the previous position in the same column as the set position of the symbol, and if there is the same symbol, the process of the third step is executed again. If the same symbol does not exist, the fourth step of storing the symbol set in the previous step in the storage array, and the position of the symbol stored in the fourth step is determined by the Latin square to be created. If the position is the last position, all the processes are terminated. If not the last position, the designated position is advanced to the next position, and the first symbol in the selection order is set at that position. And a fifth step for executing the processing of the step.

【0057】これらの本発明者の先の提案になるラテン
方陣作成方法により作成したラテン方陣を、上記の実施
の形態における既存のラテン方陣R’として用い、上記
の実施の形態により作成した新たなラテン方陣を中間ラ
テン方陣R”とし、この中間ラテン方陣R”を既存のラ
テン方陣として、更に上記の実施の形態により新たなラ
テン方陣を作成するか、本発明者の先の提案になるラテ
ン方陣作成方法により作成したラテン方陣を作成するよ
うにしてもよい。すなわち、本発明者の先の提案になる
ラテン方陣作成方法と上記の実施の形態のラテン方陣作
成方法とを組み合わせて1回又は複数回繰り返すことに
より、新たなラテン方陣Rを作成するようにしてもよ
い。
The Latin square created by the Latin square creation method proposed by the inventor of the present invention is used as the existing Latin square R 'in the above embodiment, and a new square created by the above embodiment is used. The Latin square is defined as an intermediate Latin square R ", and the intermediate Latin square R" is defined as an existing Latin square, and a new Latin square is created according to the above-described embodiment, or a Latin square which is proposed earlier by the present inventor. The Latin square created by the creation method may be created. That is, the Latin square creating method proposed by the present inventor and the Latin square creating method of the above-described embodiment are combined and repeated one or more times to create a new Latin square R. Is also good.

【0058】また、図6(b)に示したように行方向に
ラテン方陣の各配列要素EIJを作成することができる
ことは勿論であり、また、4次以外の次数のラテン方陣
も同様にして作成することができるものである。また、
設定される記号mは特に限定されるものではなく、図4
(a)や図7(a)に示すように(0,1,2,3)の
ように0から始まる数値の他に、例えば図7(b)のよ
うに(1,2,3,4)のような1から始まる数値と
か、図7(c)のように(a,b,c,d)のような順
番のアルファベットを任意に設定できる。更には、数値
やアルファベット以外に特定の順序の単語その他文字列
などにも適用できる。
[0058] Also, of course be able to create each array element E IJ of Latin square in the row direction as shown in FIG. 6 (b), also in the same manner the following number of Latin square other than fourth order Can be created. Also,
The symbol m to be set is not particularly limited.
As shown in FIG. 7 (a) and FIG. 7 (a), in addition to the numerical values starting from 0 as (0, 1, 2, 3), for example, as shown in FIG. ), Or alphabets in the order of (a, b, c, d) as shown in FIG. 7C. Further, the present invention can be applied to words in a specific order and other character strings in addition to numerical values and alphabets.

【0059】同様に、変換値記憶部11は、加減算指定
記憶部12と整数値の変換値記憶部11に限らず、正の
整数或いは負の整数を加算するという構成でもよく、変
換値の絶対値はnより小さな数に限らずnと等しいかそ
れ以上の数でもよく、更に変換の前にnの剰余をとるこ
とも可能である。
Similarly, the conversion value storage unit 11 is not limited to the addition / subtraction designation storage unit 12 and the conversion value storage unit 11 for integer values, and may be configured to add a positive integer or a negative integer. The value is not limited to a number smaller than n and may be a number equal to or greater than n, and it is possible to take the remainder of n before conversion.

【0060】また、変換対象のn次のラテン方陣の要素
の記号が0からn−1の場合には、要素に直接変換値を
作用することができるが、要素が1からnの場合や文字
から構成されている場合には、図5と共に説明したよう
に、要素の記号の選択順序を0からn−1として、その
選択順序に変換値を作用して変換された選択順序の記号
を設定することで新たなラテン方陣の作成が可能とな
る。
When the symbol of the element of the Latin square of the n-th order to be converted is 0 to n-1, the conversion value can be directly applied to the element. 5, the selection order of the element symbols is set from 0 to n−1, and a conversion value is applied to the selection order to set the converted selection order symbol, as described with reference to FIG. By doing so, a new Latin square can be created.

【0061】[0061]

【発明の効果】以上説明したように、第1及び第4の発
明によれば、記号mの選択順序あるいは記号mそのもの
に、整数の変換値を加算或いは減算し、その加算又は減
算結果をnで剰余をとった値を、選択順序の順番の記号
に、設定された位置の記号mとして変換して記憶するこ
とを、既存のn次ラテン方陣のすべての記号mについて
行うことにより、記憶用配列に変換値をもとに変換され
たn次ラテン方陣を新たに作成するようにしたため、既
存のラテン方陣と同一次数のラテン方陣を確実、かつ、
簡単に作成することができる。
As described above, according to the first and fourth aspects of the present invention, an integer conversion value is added or subtracted to or from the symbol m selection order or the symbol m itself, and the addition or subtraction result is represented by n. Is converted into a symbol of the order of selection as a symbol m at a set position and stored as a symbol m at the set position for all the symbols m of the existing nth-order Latin square. Because an nth-order Latin square converted based on the converted values is newly created in the array, a Latin square of the same order as the existing Latin square is assured, and
It can be easily created.

【0062】また、第2及び第5の発明によれば、変換
値をもとに変換されたn次ラテン方陣の作成を複数回繰
り返すことにより、最大n−1種類の変形が可能とな
り、利用価値もn−1倍となり、これにより新たに作成
されるラテン方陣の第三者による推測をより一層困難に
することができる。
According to the second and fifth aspects of the present invention, the generation of the nth-order Latin square converted based on the conversion values is repeated a plurality of times, so that at most n-1 types of deformations can be performed. The value is also n-1 times, which makes it more difficult for a newly created Latin square to guess by a third party.

【0063】更に、第3及び第6の発明によれば、変換
値をもとに変換してラテン方陣を新たに作成した後、更
に別のラテン方陣作成方法でラテン方陣を作成するよう
にしたため、ラテン方陣要素の変化が不規則となり、要
素の変化の効果も拡大し、これらの作成情報を知らない
第三者には、既存のラテン方陣から新たなラテン方陣の
推測は困難であるが、作成情報を知っている者には、新
たなラテン方陣の作成が、容易、かつ、正確にできる。
Further, according to the third and sixth aspects of the present invention, after a Latin square is newly created by converting based on the conversion value, a Latin square is created by another Latin square creating method. , The changes in the Latin square elements are irregular, the effects of the element changes are also magnified, and it is difficult for a third party who does not know these creation information to infer a new Latin square from the existing Latin square, A person who knows the creation information can easily and accurately create a new Latin square.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明作成装置の一実施の形態のブロック図で
ある。
FIG. 1 is a block diagram of an embodiment of a creation device of the present invention.

【図2】本発明により作成するラテン方陣の構成を示す
図である。
FIG. 2 is a diagram showing a configuration of a Latin square created according to the present invention.

【図3】本発明作成方法の一実施の形態を説明するフロ
ーチャートである。
FIG. 3 is a flowchart illustrating an embodiment of the method of the present invention.

【図4】本発明作成方法によるラテン方陣の作成手順の
一例の具体的説明図である。
FIG. 4 is a specific explanatory view of an example of a procedure for creating a Latin square by the creation method of the present invention.

【図5】本発明作成方法によるラテン方陣の作成手順の
他の例の具体的説明図である。
FIG. 5 is a specific explanatory diagram of another example of a procedure for creating a Latin square according to the creation method of the present invention.

【図6】本発明により作成するラテン方陣の作成方向の
説明図である。
FIG. 6 is an explanatory diagram of a creation direction of a Latin square created according to the present invention.

【図7】ラテン方陣の各例の説明図である。FIG. 7 is an explanatory diagram of each example of a Latin square.

【図8】ラテン方陣の基本的構成説明図である。FIG. 8 is an explanatory diagram of a basic configuration of a Latin square.

【符号の説明】[Explanation of symbols]

1 演算部 2 ラテン方陣作成部 3 行位置設定用記憶部 4 列位置設定用記憶部 5 行位置比較用記憶部 6 列位置比較用記憶部 7 設定用記号記憶部 8 比較用記号記憶部 9 記号比較部 10 ラテン方陣記憶用配列 10IJ 配列子(記憶素子) 11 変換値記憶部 12 加減算指定記憶部 13 次数記憶部 14 要素記号記憶部 15 選択順序記憶部 16 加減算部 17 剰余演算部 R ラテン方陣Reference Signs List 1 arithmetic unit 2 Latin square creating unit 3 row position setting storage unit 4 column position setting storage unit 5 row position comparison storage unit 6 column position comparison storage unit 7 setting symbol storage unit 8 comparison symbol storage unit 9 symbol Comparison unit 10 Latin square storage array 10 IJ array element (storage element) 11 Conversion value storage unit 12 Addition / subtraction designation storage unit 13 Order storage unit 14 Element symbol storage unit 15 Selection order storage unit 16 Addition / subtraction unit 17 Remainder operation unit R Latin square

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 互いに異なるn個の記号mを、同じ行と
同じ列の各位置ではそれぞれ異なるように、n行n列の
位置に配列要素としてそれぞれ設定した次数nのラテン
方陣を作成する作成方法において、 前記次数nと、前記記号mの選択順序と、前記n行n列
のうちの前記記号mが最初に配列される位置と、前記記
号mを前記n行n列の行方向又は列方向に沿って配列す
る順序とをそれぞれ設定すると共に所望の既存のn次ラ
テン方陣を記憶用配列に設定し、更に該n次ラテン方陣
のn個の記号mの選択順序或いは記号そのものに各々加
算又は減算する整数の変換値を用意する第1のステップ
と、 前記記憶用配列に設定されている前記既存のn次ラテン
方陣の設定された位置の記号mを取り込み、その記号m
の選択順序あるいは記号mそのものに、前記整数の変換
値を加算或いは減算し、その加算又は減算結果を前記n
で剰余をとった値を選択順序の順番の記号に、該設定さ
れた位置の記号mとして変換する第2のステップと、 前記第2のステップにより前記記号mが変換された位置
が、前記n行n列の最終位置であるか否か判定する第3
のステップと、 前記第3のステップにより前記最終位置ではないと判定
されたときは、前記記号を変換する位置を前記第1のス
テップにより設定された記号配列方向に従う次の位置を
前記設定された位置に指定して、前記第2のステップに
よる記号の変換を再び行わせ、前記最終位置であると判
定されたときは処理を終了する第4のステップとを含む
ことを特徴とするラテン方陣の作成方法。
1. A method for creating a Latin square of degree n set as an array element at an n-row and n-column position so that n different symbols m are different at the same row and the same column position. In the method, the order n, the selection order of the symbols m, the position where the symbols m of the n rows and n columns are arranged first, and the symbol m is arranged in the row direction or column of the n rows and n columns The order of arrangement along the direction is set, and the desired existing nth-order Latin square is set in the storage array, and further added to the selection order of the n symbols m of the nth-order Latin square or the symbol itself. Or a first step of preparing an integer conversion value to be subtracted, and taking in the symbol m at the set position of the existing n-th Latin square set in the storage array, and reading the symbol m
Is added or subtracted to the selection order or the symbol m itself, and the result of the addition or subtraction is referred to as n.
A second step of converting the value obtained by taking the remainder into a symbol in the order of selection as the symbol m at the set position, and the position where the symbol m is converted in the second step is the n Third to determine whether or not it is the last position in row n column
And when the third step determines that the position is not the final position, the position for converting the symbol is set to the next position according to the symbol arrangement direction set in the first step. And the fourth step of terminating the process when it is determined that the symbol is the final position. How to make.
【請求項2】 前記第4のステップは、前記第2のステ
ップによるn次ラテン方陣のすべての記号の変換を、予
め設定した一又は二以上の回数、繰り返したときの最終
位置を、前記最終位置と判定して処理を終了することを
特徴とする請求項1記載のラテン方陣の作成方法。
2. The method according to claim 1, wherein the fourth step is a step in which the conversion of all the symbols of the n-th Latin square in the second step is repeated one or two or more times in advance, and the final position is determined as the final position. 2. The method according to claim 1, wherein the processing is terminated after determining the position.
【請求項3】 前記第4のステップにより前記最終位置
であると判定されたときの前記記憶用配列におけるn次
ラテン方陣に対して、更に該n次ラテン方陣の各位置の
配列要素として記号を順に選択決定するに際して、選択
決定を、行及び列の最後の位置から始めて、行又は列に
沿って行又は列の最後の位置まで順に行うと共に、各位
置毎に同一行、及び同一列の前の位置の既に決定されて
いる配列要素と同一記号とならないように、記号を選択
順に選択して、その位置で選択決定することのできる記
号が無いときには、その位置より前の位置で既に決定さ
れている配列要素の記号を、該記号よりも順が下位であ
る選択できる記号に代えて選択決定を継続することでラ
テン方陣を作成する第5のステップを更に含むことを特
徴とする請求項1又は2記載のラテン方陣作成方法。
3. A symbol as an array element at each position of the n-th Latin square in the n-th Latin square in the storage array at the time of determining the last position in the fourth step. When making a selection decision in order, the selection decision is performed in order from the last position of the row and column to the last position of the row or column along the row or column, and the same row and the front of the same column for each position. The symbols are selected in the order of selection so that they do not have the same symbol as the already determined array element at the position, and if there is no symbol that can be selected and determined at that position, the symbol is already determined at a position before that position. 5. The method according to claim 1, further comprising a fifth step of generating a Latin square by continuing the selection decision by replacing the symbol of the array element with a selectable symbol having a lower order than the symbol. or Is the Latin square creation method described in 2.
【請求項4】 n行n列の全部でn個の記憶素子を有
し、該記憶素子のそれぞれには、互いに異なるn個の記
号のうち、任意に選択した1つの記号mが格納されるラ
テン方陣記憶用配列と、 前記ラテン方陣記憶用配列を構成するn個の前記記憶
素子のうち、設定された位置の記憶素子を指定する指定
手段と、 要素の記号の選択順序の値又は要素の記号の値そのもの
を変化させるための変換値を記憶した変換値記憶部と、 前記変換値の加算又は減算の指定を行う加減算指定部
と、 前記記号の選択順序又は前記記号mそのものに、前記変
換値を加算或いは減算し、その加算又は減算結果を前記
nで剰余をとる演算を行う剰余計算手段と、 作成しようとするラテン方陣の次数nと、前記記号mの
選択順序と、前記ラテン方陣記憶用配列の前記記号mが
最初に配列される位置と、前記記号mを前記ラテン方陣
記憶用配列の行方向又は列方向に沿って配列する順序と
をそれぞれ予め設定し、前記指定手段を制御して前記ラ
テン方陣記憶用配列に設定された既存のn次ラテン方陣
に記憶された記号を設定された選択順序で、かつ、選択
方向に順次取り込み、取り込んだ記号の値の順番の前記
変換値を前記変換値記憶部から読み出して、前記剰余計
算手段により計算させ、得られた剰余結果の値を選択順
序の順番の記号に、該設定された位置の記号mとして変
換する変換動作を、該記号設置位置が前記n行n列の最
終位置になるまで繰り返す演算部とを有し、前記ラテン
方陣記憶用配列に設定されている既存のラテン方陣のす
べての記号を、前記剰余計算手段により得られた剰余結
果の値を用いて変換することにより新たなラテン方陣を
作成することを特徴とするラテン方陣作成装置。
4. A storage device comprising n 2 storage elements in a total of n rows and n columns, and each storage element stores one symbol m arbitrarily selected from n different symbols. An array for storing Latin squares, a designating means for designating a storage element at a set position among the n 2 storage elements constituting the array for Latin square storage, A conversion value storage unit that stores a conversion value for changing the value itself of the symbol of the element, an addition / subtraction designation unit that specifies addition or subtraction of the conversion value, and a selection order of the symbols or the symbol m itself, A remainder calculating means for adding or subtracting the converted value and taking the remainder of the addition or subtraction result with the n, an order n of a Latin square to be created, a selection order of the symbol m, and the Latin Before the square memory array The position where the symbols m are arranged first and the order in which the symbols m are arranged along the row direction or the column direction of the Latin square storage array are set in advance, and the Latin square is controlled by controlling the designating means. The symbols stored in the existing n-th Latin square set in the storage array are sequentially taken in the set selection order and in the selection direction, and the converted values in the order of the values of the taken symbols are stored in the converted value storage. A conversion operation of reading from the unit and calculating the value of the obtained remainder result to the symbol of the order of selection as the symbol m at the set position, the symbol installation position is calculated by the remainder calculation means. an arithmetic unit that repeats until a final position of n rows and n columns is reached, and all symbols of the existing Latin squares set in the Latin square storage array are replaced with the remainder result obtained by the remainder calculating means. The value A Latin square creating device, wherein a new Latin square is created by performing conversion.
【請求項5】 前記演算部は、前記n次ラテン方陣のす
べての記号の変換を、予め設定した一又は二以上の回
数、繰り返したときの最終位置を、前記最終位置と判定
して処理を終了することを特徴とする請求項4記載のラ
テン方陣の作成装置。
5. The processing unit according to claim 1, wherein the final position when the conversion of all the symbols of the n-th Latin square is repeated one or more predetermined times is determined as the final position. 5. The apparatus according to claim 4, wherein the processing is terminated.
【請求項6】 前記演算部は、前記最終位置であると判
定されたときの前記ラテン方陣記憶用配列におけるn次
ラテン方陣に対して、更に該n次ラテン方陣の各位置の
配列要素として記号を順に選択決定するに際して、選択
決定を、前記指定手段を制御して行及び列の最後の位置
から始めて、行又は列に沿って行又は列の最後の位置ま
で順に行うと共に、各位置毎に同一行、及び同一列の前
の位置の既に決定されている配列要素と同一記号となら
ないように、記号を選択順に選択して、その位置で選択
決定することのできる記号が無いときには、その位置よ
り前の位置で既に決定されている配列要素の記号を、該
記号よりも順が下位である選択できる記号に代えて選択
決定を継続することでラテン方陣を作成することを特徴
とする請求項4又は5記載のラテン方陣の作成装置。
6. The n-th latin square in the latin-square storage array when the arithmetic unit is determined to be the final position, further includes a symbol as an array element at each position of the n-th latin square. When selecting and determining in order, the selection is determined starting from the last position of a row and a column by controlling the specifying means, and sequentially performed up to the last position of a row or a column along a row or a column. The symbols are selected in the order of selection so that they do not have the same symbol as the already determined array element at the same position before the same row and column, and if there is no symbol that can be selected and determined at that position, that position The Latin square is created by replacing the symbol of an array element already determined at an earlier position with a selectable symbol whose order is lower than the symbol and continuing the selection decision. 4 or 5. A Latin square creation device according to 5.
JP2001044174A 2001-02-20 2001-02-20 Method and device for preparing latin square Pending JP2002247027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001044174A JP2002247027A (en) 2001-02-20 2001-02-20 Method and device for preparing latin square

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001044174A JP2002247027A (en) 2001-02-20 2001-02-20 Method and device for preparing latin square

Publications (1)

Publication Number Publication Date
JP2002247027A true JP2002247027A (en) 2002-08-30

Family

ID=18906207

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001044174A Pending JP2002247027A (en) 2001-02-20 2001-02-20 Method and device for preparing latin square

Country Status (1)

Country Link
JP (1) JP2002247027A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7228311B2 (en) * 2003-03-11 2007-06-05 Netcomsec Co., Ltd. Creation method of table, creation apparatus, creation program and program storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7228311B2 (en) * 2003-03-11 2007-06-05 Netcomsec Co., Ltd. Creation method of table, creation apparatus, creation program and program storage medium

Similar Documents

Publication Publication Date Title
EP3611799A1 (en) Array element arrangement method for l-type array antenna based on inheritance of acquired characteristics
JP2003108297A5 (en)
JP2654328B2 (en) Cascade furnace temperature control device using adjustment input
CN110166238A (en) The generation method and device of quantum key
CN101292223A (en) Method of generating pseudo-random numbers
CN110532291B (en) Method and system for converting deep learning frame model based on minimum execution cost
WO2008133463A1 (en) Method and device for inputting chinese character
JP2002247027A (en) Method and device for preparing latin square
JP3862328B2 (en) Latin square creation device
JP2001195388A (en) Method and device for producing latin square
JP2001243018A (en) Data converting device
JP2001175169A (en) Method and device for creating euler square
JP2002149628A (en) Method and device for preparing latin square
JP2005301349A (en) Generation support device for analytic model
JP2002359561A (en) Crc processor
JPH08315028A (en) Method and device for scheduling job shop
KR102143562B1 (en) Apparatus and method for multiple calculation of ab multiplication and ab^2 multiplication
JP2001067339A (en) Latin square preparing method
JP4334278B2 (en) Method and program for analyzing sequential system
JPH01228064A (en) Element arranging device for hierarchically oriented graph
CN116307082A (en) Prediction model generation method based on data processing
JPH07141316A (en) Observation system for learning state of neural network
JP2000286203A (en) Diffusion simulation device and the diffusion simulation method
CN116962058A (en) Block chain generation method, system and storage medium applied to real-time storage data
CN117591652A (en) Data processing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041005

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050308