JP3905901B2 - Number generating apparatus, number inspection apparatus, method, program, and recording medium - Google Patents
Number generating apparatus, number inspection apparatus, method, program, and recording medium Download PDFInfo
- Publication number
- JP3905901B2 JP3905901B2 JP2004237694A JP2004237694A JP3905901B2 JP 3905901 B2 JP3905901 B2 JP 3905901B2 JP 2004237694 A JP2004237694 A JP 2004237694A JP 2004237694 A JP2004237694 A JP 2004237694A JP 3905901 B2 JP3905901 B2 JP 3905901B2
- Authority
- JP
- Japan
- Prior art keywords
- digit
- inspection
- basic
- derived
- information
- 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.)
- Expired - Fee Related
Links
- 238000007689 inspection Methods 0.000 title claims description 220
- 238000000034 method Methods 0.000 title claims description 56
- 238000012360 testing method Methods 0.000 claims description 57
- 238000009795 derivation Methods 0.000 claims description 50
- 238000013142 basic testing Methods 0.000 claims description 43
- 230000008569 process Effects 0.000 claims description 26
- 238000012545 processing Methods 0.000 claims description 9
- 238000000926 separation method Methods 0.000 claims description 7
- 238000001514 detection method Methods 0.000 description 163
- 230000006866 deterioration Effects 0.000 description 112
- 101001010731 Homo sapiens Intraflagellar transport protein 81 homolog Proteins 0.000 description 91
- 102100030001 Intraflagellar transport protein 81 homolog Human genes 0.000 description 91
- 230000017105 transposition Effects 0.000 description 64
- 230000008520 organization Effects 0.000 description 47
- 238000010586 diagram Methods 0.000 description 40
- 238000013518 transcription Methods 0.000 description 16
- 230000035897 transcription Effects 0.000 description 16
- 238000004364 calculation method Methods 0.000 description 10
- 230000015556 catabolic process Effects 0.000 description 10
- 238000006731 degradation reaction Methods 0.000 description 10
- 230000007423 decrease Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 229930091051 Arenine Natural products 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Detection And Correction Of Errors (AREA)
Description
本発明は、番号の入力エラーをチェックデジットによりどれだけ発見できるか、あるいはできないかの程度の算出結果に基づき、番号の生成を行なうことに関する。 The present invention relates to generating a number based on a calculation result of the extent to which a number input error can or cannot be found by a check digit.
従来より、銀行の口座番号や証券の保管口座番号などには、末尾にチェックデジット(CDV)が付されている。チェックデジットは、口座番号等から一意に決定される数字である。 Conventionally, check digits (CDV) are appended to bank account numbers and securities storage account numbers. The check digit is a number uniquely determined from an account number or the like.
例えば口座番号を銀行のATMにより入力する際に入力を間違える場合がある。この際、チェックデジットを正しく入力できれば、口座番号の入力の誤りを発見できる場合がある。誤って入力された口座番号からチェックデジットを求めると、正しく入力されたチェックデジットと異なることが多いからである。よって、口座番号の入力の誤りを発見できる。 For example, when entering an account number by bank ATM, there is a case where the input is wrong. At this time, if the check digit can be correctly input, an incorrect account number may be detected. This is because when a check digit is obtained from an account number that has been entered incorrectly, it is often different from a check digit that has been entered correctly. Therefore, an error in inputting the account number can be found.
チェックデジットを、どのようにして口座番号等から決定するかについては、色々な方法(例えば、モジュラス10)が知られている(例えば、非特許文献1を参照)。 Various methods (for example, the modulus 10) are known as to how the check digit is determined from the account number or the like (for example, see Non-Patent Document 1).
なお、口座番号にチェックデジットを付し、かつ、チェックデジットを正しく入力できたとしても、必ず口座番号の入力の誤りを発見できるとは限らない。そこで、上記のような色々なチェックデジット決定法ごとに、入力の誤りを発見できる割合(入力エラー発見率)が異なるので、入力エラー発見率が高い方法を採用することが好ましい。 Even if a check digit is added to the account number and the check digit is correctly input, it is not always possible to find an error in inputting the account number. Therefore, since the ratio (input error detection rate) at which an input error can be detected differs for each of the various check digit determination methods as described above, it is preferable to employ a method having a high input error detection rate.
しかしながら、入力エラー発見率が高いチェックデジット決定法を採用するためには、入力エラー発見率を客観的に求めなければならない。そして、客観的に求められた入力エラー発見率に基づきチェックデジット決定法を採用するのであるが、具体的に、どのようなチェックデジット決定法を採用すればよいかも明らかではない。 However, in order to employ a check digit determination method with a high input error detection rate, the input error detection rate must be objectively determined. The check digit determination method is adopted based on the objectively found input error detection rate, but it is not clear what specific check digit determination method should be adopted.
そこで、本発明は、どのようなチェックデジット決定法を採用すればよいかを明らかにすることを課題とする。 Therefore, an object of the present invention is to clarify what check digit determination method should be adopted.
本発明は、任意の情報数字に基づき基本検査数字を導出する基本検査数字導出手段と、任意の情報数字に基づき、基本検査数字とは異なる派生検査数字を導出する派生検査数字導出手段と、任意の情報数字に基本検査数字を付加して、第一組織数字を生成する第一組織数字生成手段と、任意の情報数字に派生検査数字を付加して、第二組織数字を生成する第二組織数字生成手段と、を備え、派生検査数字導出手段は、基本検査数字に、基本検査数字に応じて変動する所定の値を加えて、派生検査数字を導出するように構成される。 The present invention includes a basic check digit deriving unit for deriving a basic check digit based on an arbitrary information digit, a derived check digit deriving unit for deriving a derived check digit different from the basic check digit based on an arbitrary information digit, The first organization number generating means for generating the first organization number by adding the basic inspection number to the information number of the second, and the second organization for generating the second organization number by adding the derived inspection number to the arbitrary information number Number generation means, and the derived check number deriving means is configured to derive a derived check number by adding a predetermined value that varies in accordance with the basic check number to the basic check number.
本発明によれば、基本検査数字導出手段は、任意の情報数字に基づき基本検査数字を導出する。派生検査数字導出手段は、任意の情報数字に基づき、基本検査数字とは異なる派生検査数字を導出する。第一組織数字生成手段は、任意の情報数字に基本検査数字を付加して、第一組織数字を生成する。第二組織数字生成手段は、任意の情報数字に派生検査数字を付加して、第二組織数字を生成する。しかも、派生検査数字導出手段は、基本検査数字に、基本検査数字に応じて変動する所定の値を加えて、派生検査数字を導出する。 According to the present invention, the basic check digit deriving means derives a basic check digit based on an arbitrary information digit. The derived check number deriving means derives a derived check number different from the basic check number based on an arbitrary information number. The first organization number generation means generates a first organization number by adding a basic inspection number to an arbitrary information number. The second organization number generation means generates a second organization number by adding a derived inspection number to an arbitrary information number. In addition, the derived check digit deriving means derives the derived check digit by adding a predetermined value that varies according to the basic check digit to the basic check digit.
なお、本発明は、基本検査数字導出手段は、任意の情報数字の各桁の数値に、所定の重み付け係数を乗じた値の総和を10で割ったときの余りに基づき基本検査数字を決定し、任意の情報数字は10進数であるようにしてもよい。 The present invention is based on the check digit deriving means, each digit of the numerical value of any information numbers, determines a basic check digit based on the remainder when divided by 10 the sum of values obtained by multiplying the predetermined weighting factor The arbitrary information number may be a decimal number.
なお、本発明は、所定の重み付け係数が全ての桁について同じ偶数である場合に、所定の値を奇数とするようにしてもよい。 The present invention is the weighting factor of Jo Tokoro is the case is the same even number of all digits, may be an odd number a predetermined value.
なお、本発明は、所定の重み付け係数が全ての桁について同じ奇数である場合に、所定の値を奇数とするようにしてもよい。 The present invention is the weighting factor of Jo Tokoro is when the same odd for all digits, may be an odd number a predetermined value.
なお、本発明は、所定の重み付け係数が奇数桁については偶数、偶数桁については奇数である場合に、所定の値を5を除く奇数とするようにしてもよい。 The present invention is an even number for weighting coefficients Jo Tokoro odd digits, when the even digit is odd, it may be an odd number excluding 5 a predetermined value.
なお、本発明は、所定の重み付け係数が奇数桁については奇数、偶数桁については偶数である場合に、所定の値を5を除く奇数とするようにしてもよい。 The present invention is odd about the weighting coefficients Jo Tokoro odd digits, when the even digit is an even number, it may be an odd number excluding 5 a predetermined value.
なお、本発明は、所定の重み付け係数が最初の桁から、0、偶数、0、奇数の繰り返しである場合に、所定の値を5を除く奇数とするようにしてもよい。 The present invention is in the first column is the weighting coefficient of Jo Tokoro, 0, even, 0, if an odd number of repetitions may be an odd number excluding 5 a predetermined value.
なお、本発明は、所定の重み付け係数が最初の桁から、0、奇数、0、偶数の繰り返しである場合に、所定の値を奇数とするようにしてもよい。 The present invention is in the first column is the weighting coefficient of Jo Tokoro, 0, odd, 0, if it is repeated an even number may be an odd number a predetermined value.
なお、本発明は、所定の重み付け係数が最初の桁から、偶数、0、奇数、0の繰り返しである場合に、所定の値を奇数とするようにしてもよい。 The present invention is the first column weighting factor of Jo Tokoro is even, 0, odd, when a repeat of 0 may be an odd number a predetermined value.
なお、本発明は、所定の重み付け係数が最初の桁から、奇数、0、偶数、0の繰り返しである場合に、所定の値を5を除く奇数とするようにしてもよい。 The present invention is in the first column is the weighting coefficient of Jo Tokoro, odd, 0, an even number, when a repeat of 0 may be an odd number excluding 5 a predetermined value.
なお、本発明は、所定の重み付け係数が上記のいずれにも該当しない場合に、所定の値を奇数とするようにしてもよい。 The present invention, when the weighting coefficient of Jo Tokoro does not correspond to any of the above may be an odd number a predetermined value.
なお、本発明は、所定の値を、情報数字を入力するための入力機器における各数字の入力用キーどうしの距離が最大になるように決定するようにしてもよい。 The present invention is a Jo Tokoro value, the distance of the input key to each other for each digit in the input device for inputting information numbers may be determined so as to maximize.
本発明は、検査数字を含む番号を、検査数字と情報数字とに分離する検査数字分離手段と、情報数字に基づき基本検査数字を導出する基本検査数字導出手段と、情報数字に基づき、基本検査数字とは異なる派生検査数字を導出する派生検査数字導出手段と、検査数字が、基本検査数字および派生検査数字のいずれかに等しいか否かを検査する番号検査手段と、を備え、派生検査数字導出手段は、基本検査数字に、基本検査数字に応じて変動する所定の値を加えて、派生検査数字を導出するように構成される。 The present invention relates to a test number separating means for separating a number including a check number into a check number and an information number, a basic check number deriving means for deriving a basic check number based on the information number, and a basic test based on the information number Derived check digit derivation means for deriving a derived check digit different from the number, and number check means for checking whether the check digit is equal to either the basic check digit or the derived check digit, and the derived check digit The derivation means is configured to derive a derived check digit by adding a predetermined value that varies according to the basic check digit to the basic check digit.
本発明によれば、検査数字分離手段は、検査数字を含む番号を、検査数字と情報数字とに分離する。基本検査数字導出手段は、情報数字に基づき基本検査数字を導出する。派生検査数字導出手段は、情報数字に基づき、基本検査数字とは異なる派生検査数字を導出する。番号検査手段は、検査数字が、基本検査数字および派生検査数字のいずれかに等しいか否かを検査する。さらに、派生検査数字導出手段は、基本検査数字に、基本検査数字に応じて変動する所定の値を加えて、派生検査数字を導出する。 According to the present invention, the check digit separating means separates the number including the check digit into the check digit and the information digit. The basic inspection number deriving means derives a basic inspection number based on the information number. The derived check number deriving means derives a derived check number different from the basic check number based on the information number. The number checking means checks whether the check digit is equal to either the basic check digit or the derived check digit. Furthermore, the derived check digit deriving means derives a derived check digit by adding a predetermined value that varies according to the basic check digit to the basic check digit.
なお、本発明は、基本検査数字導出手段は、任意の情報数字の各桁の数値に、所定の重み付け係数を乗じた値の総和を10で割ったときの余りに基づき基本検査数字を決定し、任意の情報数字は10進数であるようにしてもよい。 The present invention is based on the check digit deriving means, each digit of the numerical value of any information numbers, determines a basic check digit based on the remainder when divided by 10 the sum of values obtained by multiplying the predetermined weighting factor The arbitrary information number may be a decimal number.
なお、本発明は、所定の重み付け係数が全ての桁について同じ偶数である場合に、所定の値を奇数とするようにしてもよい。 The present invention is the weighting factor of Jo Tokoro is the case is the same even number of all digits, may be an odd number a predetermined value.
なお、本発明は、所定の重み付け係数が全ての桁について同じ奇数である場合に、所定の値を奇数とするようにしてもよい。 The present invention is the weighting factor of Jo Tokoro is when the same odd for all digits, may be an odd number a predetermined value.
なお、本発明は、所定の重み付け係数が奇数桁については偶数、偶数桁については奇数である場合に、所定の値を5を除く奇数とするようにしてもよい。 The present invention is an even number for weighting coefficients Jo Tokoro odd digits, when the even digit is odd, it may be an odd number excluding 5 a predetermined value.
なお、本発明は、所定の重み付け係数が奇数桁については奇数、偶数桁については偶数である場合に、所定の値を5を除く奇数とするようにしてもよい。 The present invention is odd about the weighting coefficients Jo Tokoro odd digits, when the even digit is an even number, it may be an odd number excluding 5 a predetermined value.
なお、本発明は、所定の重み付け係数が最初の桁から、0、偶数、0、奇数の繰り返しである場合に、所定の値を5を除く奇数とするようにしてもよい。 The present invention is in the first column is the weighting coefficient of Jo Tokoro, 0, even, 0, if an odd number of repetitions may be an odd number excluding 5 a predetermined value.
なお、本発明は、所定の重み付け係数が最初の桁から、0、奇数、0、偶数の繰り返しである場合に、所定の値を奇数とするようにしてもよい。 The present invention is in the first column is the weighting coefficient of Jo Tokoro, 0, odd, 0, if it is repeated an even number may be an odd number a predetermined value.
なお、本発明は、所定の重み付け係数が最初の桁から、偶数、0、奇数、0の繰り返しである場合に、所定の値を奇数とするようにしてもよい。 The present invention is the first column weighting factor of Jo Tokoro is even, 0, odd, when a repeat of 0 may be an odd number a predetermined value.
なお、本発明は、所定の重み付け係数が最初の桁から、奇数、0、偶数、0の繰り返しである場合に、所定の値を5を除く奇数とするようにしてもよい。 The present invention is in the first column is the weighting coefficient of Jo Tokoro, odd, 0, an even number, when a repeat of 0 may be an odd number excluding 5 a predetermined value.
なお、本発明は、所定の重み付け係数が上記のいずれにも該当しない場合に、所定の値を奇数とするようにしてもよい。 The present invention, when the weighting coefficient of Jo Tokoro does not correspond to any of the above may be an odd number a predetermined value.
なお、本発明は、所定の値を、情報数字を入力するための入力機器における各数字の入力用キーどうしの距離が最大になるように決定するようにしてもよい。 The present invention is a Jo Tokoro value, the distance of the input key to each other for each digit in the input device for inputting information numbers may be determined so as to maximize.
本発明は、基本検査数字導出手段が、任意の情報数字に基づき基本検査数字を導出する基本検査数字導出工程と、派生検査数字導出手段が、任意の情報数字に基づき、基本検査数字とは異なる派生検査数字を導出する派生検査数字導出工程と、番号生成手段が、任意の情報数字に基本検査数字を付加して、第一組織数字を生成する第一組織数字生成工程と、第二組織数字生成手段が、任意の情報数字に派生検査数字を付加して、第二組織数字を生成する第二組織数字生成工程と、を備え、派生検査数字導出工程は、基本検査数字に、基本検査数字に応じて変動する所定の値を加えて、派生検査数字を導出するように構成される。 In the present invention, the basic check digit deriving means derives a basic check digit based on an arbitrary information digit, and the derived check digit deriving means is different from the basic check digit based on an arbitrary information digit. Derived inspection number derivation step for deriving derived inspection numbers, a first organization number generation step in which the number generation means adds a basic inspection number to an arbitrary information number to generate a first organization number, and a second organization number A generating means including a second organization number generating step for generating a second organization number by adding a derived inspection number to an arbitrary information number, and the derived inspection number deriving step includes the basic inspection number and the basic inspection number; The derived check digit is derived by adding a predetermined value that varies depending on
本発明は、任意の情報数字に基づき基本検査数字を導出する基本検査数字導出処理と、任意の情報数字に基づき、基本検査数字とは異なる派生検査数字を導出する派生検査数字導出処理と、任意の情報数字に基本検査数字を付加して、第一組織数字を生成する第一組織数字生成処理と、任意の情報数字に派生検査数字を付加して、第二組織数字を生成する第二組織数字生成処理と、をコンピュータに実行させるためのプログラムであって、派生検査数字導出処理は、基本検査数字に、基本検査数字に応じて変動する所定の値を加えて、派生検査数字を導出するプログラムである。 The present invention includes a basic check digit deriving process for deriving a basic check digit based on an arbitrary information digit, a derived check digit deriving process for deriving a derived check digit different from the basic check digit based on an arbitrary information digit, The first organization number generation process for generating the first organization number by adding the basic inspection number to the information number of the second, and the second organization for generating the second organization number by adding the derived inspection number to the arbitrary information number A derived number verification process is a program for causing a computer to execute a number generation process, and the derived check number derivation process derives a derived check number by adding a predetermined value that varies according to the basic check number to the basic check number. It is a program.
本発明は、任意の情報数字に基づき基本検査数字を導出する基本検査数字導出処理と、任意の情報数字に基づき、基本検査数字とは異なる派生検査数字を導出する派生検査数字導出処理と、任意の情報数字に基本検査数字を付加して、第一組織数字を生成する第一組織数字生成処理と、任意の情報数字に派生検査数字を付加して、第二組織数字を生成する第二組織数字生成処理と、をコンピュータに実行させるためのプログラムを記録したコンピュータによって読み取り可能な記録媒体であって、派生検査数字導出処理は、基本検査数字に、基本検査数字に応じて変動する所定の値を加えて、派生検査数字を導出する記録媒体である。 The present invention includes a basic check digit deriving process for deriving a basic check digit based on an arbitrary information digit, a derived check digit deriving process for deriving a derived check digit different from the basic check digit based on an arbitrary information digit, The first organization number generation process for generating the first organization number by adding the basic inspection number to the information number of the second, and the second organization for generating the second organization number by adding the derived inspection number to the arbitrary information number A computer-readable recording medium storing a program for causing a computer to execute a number generation process, wherein the derived check digit derivation process is a predetermined value that varies according to the basic check digit Is a recording medium for deriving a derived inspection number.
本発明は、検査数字分離手段が、検査数字を含む番号を、検査数字と情報数字とに分離する検査数字分離工程と、基本検査数字導出手段が、情報数字に基づき基本検査数字を導出する基本検査数字導出工程と、派生検査数字導出手段が、情報数字に基づき、基本検査数字とは異なる派生検査数字を導出する派生検査数字導出工程と、番号検査手段が、検査数字が、基本検査数字および派生検査数字のいずれかに等しいか否かを検査する番号検査工程と、を備え、派生検査数字導出工程は、基本検査数字に、基本検査数字に応じて変動する所定の値を加えて、派生検査数字を導出するように構成される。 The present invention provides a check digit separating step in which a check digit separating unit separates a number including a check digit into a check digit and an information digit, and a basic check digit deriving unit is a basic unit for deriving a basic check digit based on the information digit. The inspection number deriving step and the derived inspection number deriving means derive a derived inspection number based on the information number and different from the basic inspection number, and the number inspecting means includes the basic inspection number and the inspection number. A number inspection process for inspecting whether or not it is equal to any one of the derived inspection figures, and the derived inspection numeral derivation step is performed by adding a predetermined value that varies according to the basic inspection figures to the basic inspection figures. Configured to derive a check digit.
本発明は、検査数字を含む番号を、検査数字と情報数字とに分離する検査数字分離処理と、情報数字に基づき基本検査数字を導出する基本検査数字導出処理と、情報数字に基づき、基本検査数字とは異なる派生検査数字を導出する派生検査数字導出処理と、検査数字が、基本検査数字および派生検査数字のいずれかに等しいか否かを検査する番号検査処理と、をコンピュータに実行させるためのプログラムであって、派生検査数字導出処理は、基本検査数字に、基本検査数字に応じて変動する所定の値を加えて、派生検査数字を導出するプログラムである。 The present invention relates to a test digit separation process for separating a number including a test digit into a test digit and an information digit, a basic test digit derivation process for deriving a basic test digit based on the information digit, and a basic test based on the information digit. To cause a computer to execute a derived check digit derivation process for deriving a derived check digit that is different from a number, and a number check process for checking whether the check digit is equal to either the basic check digit or the derived check digit The derived check digit derivation process is a program for deriving a derived check digit by adding a predetermined value that varies according to the basic check digit to the basic check digit.
本発明は、検査数字を含む番号を、検査数字と情報数字とに分離する検査数字分離処理と、情報数字に基づき基本検査数字を導出する基本検査数字導出処理と、情報数字に基づき、基本検査数字とは異なる派生検査数字を導出する派生検査数字導出処理と、検査数字が、基本検査数字および派生検査数字のいずれかに等しいか否かを検査する番号検査処理と、をコンピュータに実行させるためのプログラムを記録したコンピュータによって読み取り可能な記録媒体であって、派生検査数字導出処理は、基本検査数字に、基本検査数字に応じて変動する所定の値を加えて、派生検査数字を導出する記録媒体である。 The present invention relates to a test digit separation process for separating a number including a test digit into a test digit and an information digit, a basic test digit derivation process for deriving a basic test digit based on the information digit, and a basic test based on the information digit. To cause a computer to execute a derived check digit derivation process for deriving a derived check digit that is different from a number, and a number check process for checking whether the check digit is equal to either the basic check digit or the derived check digit The computer-readable recording medium having the program recorded therein, the derived test digit derivation process adds a predetermined value that varies according to the basic test digit to the basic test digit to derive a derived test digit It is a medium.
なお、本発明は、入力用キーどうしの距離が最大になるように、所定の値を決定するようにしてもよい。 The present invention is such that the distance of the keys to each other for input is maximized, it may be determined a predetermined value.
なお、本発明は、入力用キーどうしの距離が最大になるように、所定の値を決定するようにしてもよい。 The present invention is such that the distance of the keys to each other for input is maximized, it may be determined a predetermined value.
以下、本発明の実施形態を図面を参照しながら説明する。なお、本発明は、どのようなチェックデジット決定法を採用すればよいかに関するものであるが、その前提として、エラー検出劣化個数の導出が必要となるので、エラー検出劣化数導出装置1(図4参照;第一の実施形態)およびエラー検出劣化数導出装置2(図16参照;第二の実施形態)の説明を行なう。 Embodiments of the present invention will be described below with reference to the drawings. The present invention relates to what kind of check digit decision method should be adopted. As the premise, it is necessary to derive the number of error detection deteriorations. 4; the first embodiment) and the error detection deterioration number deriving device 2 (see FIG. 16; the second embodiment) will be described.
本発明の実施形態にかかるエラー検出劣化数導出装置1(図4参照)を説明する前に、エラー検出劣化数導出装置1が適用されるチェックデジット(検査数字)の導出体系について説明する。
Before describing the error detection deterioration number deriving device 1 (see FIG. 4) according to the embodiment of the present invention, a check digit (check digit) deriving system to which the error detection deterioration
図1は、モジュラス10といわれるチェックデジットの導出法を説明するための図である。まず、図1(a)に示すように、銀行等の口座番号(情報数字)が店番号(三桁)および顧客番号(六桁)より構成されているとする。ここで、図1(b)に示すように、口座番号の各桁についてウェイト(重み付け係数)を割り当てる。なお、ウェイトは適宜設定できる。そして、図1(c)に示すように、口座番号の各桁の数値に、ウェイトを乗じた値の総和「41」(=1×1+0×3+…6×1)を求める。この総和「41」を、モジュラス「10」で割って、その余り「1」を得る(図1(d)参照)。ここで、DR方式(チェックデジット=余りそのもの)を用いれば、チェックデジット=1となる。しかし、本発明の実施形態においては、DSR方式(チェックデジット=モジュラス−余り)を用いるため、チェックデジット=10−1=9となる(図1(e)参照)。このようにして求めたチェックデジットを、本発明の実施形態においては、基本検査数字(CDV1)という。基本検査数字は、図1(f)に示すように、口座番号(情報数字)の末尾に付加される。このようなチェックデジットの導出法は、線形なものである。すなわち、検査数字が、情報数字の各桁の数値を取り出して求めた検査数字成分の総和となる。
FIG. 1 is a diagram for explaining a method of deriving a check digit called a
これにより、基本検査数字を正しく入力できれば、口座番号(情報数字)の入力の誤りを検出できる場合が多い。例えば、図1(a)に示す口座番号(101,123456)の末尾一桁を誤って入力し、“101,123455”と入力したとする。なお、口座番号等における「,」は、店番号、顧客番号、検査数字を区切って表示するために入れているが、実際のデータに「,」が入っているわけではない。実際には、「,」は入力されないし、「,」が入っていないデータが処理対象となる。基本検査数字を正しく入力できたと仮定するので、“101,123455,9”と入力したことになる。すると、口座番号の各桁の数値に、ウェイトを乗じた値の総和は「40」となる。よって、基本検査数字は、10−0=10の末尾一桁の「0」となる。すると、入力から求めた基本検査数字と、正しく入力できた基本検査数字「9」と異なる。よって、入力から求めた基本検査数字と、入力された基本検査数字とを比較して異なっていれば入力誤りと判定すれば、口座番号の入力の誤りを検出できる。 As a result, if the basic test numbers can be correctly input, it is often possible to detect an input error of the account number (information number). For example, assume that the last digit of the account number (101, 123456) shown in FIG. Note that “,” in the account number or the like is included to separate and display the store number, customer number, and inspection number, but “,” is not included in the actual data. Actually, “,” is not input, and data without “,” is processed. Since it is assumed that the basic check digit has been correctly input, “101, 123455, 9” is input. Then, the sum total of the values obtained by multiplying the numerical value of each digit of the account number by the weight is “40”. Therefore, the basic check digit is “0” as the last digit of 10−0 = 10. Then, the basic check number obtained from the input is different from the basic check number “9” that has been correctly input. Therefore, if the basic check number obtained from the input and the input basic check number are different from each other and determined to be an input error, an input error of the account number can be detected.
ここで、本発明の実施形態にかかるチェックデジット(検査数字)の導出体系においては、派生検査数字をさらに使用することが特徴である。 Here, the derivation system for check digits (check digits) according to the embodiment of the present invention is characterized in that the derived check digits are further used.
図2は、派生検査数字を説明するための図である。まず、図2(a)に示すように、ある口座番号(情報数字)に対し、基本検査数字(CDV1)「9」が付加されている。ここで、基本検査数字とは異なる派生検査数字(CDV2)を求める。例えば、CDV2=CDV1+4とする(図2(b)参照)。ただし、CDV1+4>9の場合は、末尾の一桁をCDV2とする。図2(b)の例では、派生検査数字(CDV2)は「3」である。そして、図2(c)に示すように、図2(a)と同じ口座番号に対し、派生検査数字(CDV2)「4」を付加する。このようにすると、異なる顧客に同じ口座番号を付与しても、基本検査数字(CDV1)と派生検査数字(CDV2)とを使い分ければ、いずれの顧客の口座番号かを識別できる。なお、派生検査数字(CDV2)は、基本検査数字(CDV1)に基づいて導出される。基本検査数字(CDV1)は、口座番号に基づいて導出される。よって、派生検査数字(CDV2)は、口座番号(情報数字)に基づいて導出される。 FIG. 2 is a diagram for explaining the derived check digit. First, as shown in FIG. 2A, a basic inspection number (CDV1) “9” is added to a certain account number (information number). Here, a derived inspection number (CDV2) different from the basic inspection number is obtained. For example, CDV2 = CDV1 + 4 (see FIG. 2B). However, if CDV1 + 4> 9, the last digit is CDV2. In the example of FIG. 2B, the derived check digit (CDV2) is “3”. Then, as shown in FIG. 2 (c), the derived inspection number (CDV2) “4” is added to the same account number as in FIG. 2 (a). In this way, even if the same account number is given to different customers, it is possible to identify which customer's account number by using the basic inspection number (CDV1) and the derived inspection number (CDV2). The derived test number (CDV2) is derived based on the basic test number (CDV1). The basic check number (CDV1) is derived based on the account number. Therefore, the derived inspection number (CDV2) is derived based on the account number (information number).
図3は、異なる顧客に同じ口座番号(情報数字)を付与して、基本検査数字(CDV1)と派生検査数字(CDV2)とを使い分けた状態と、その問題点を説明するための図である。例えば、口座番号(100,000000)の基本検査数字(CDV1)は「9」、派生検査数字(CDV2)は「3」である。そこで、基本検査数字(CDV1)を付加した口座番号(100,000000,9)をP様に(図3(a)参照)、派生検査数字(CDV2)を付加した口座番号(100,000000,3)をQ様(図3(b)参照)に付与すれば、同じ口座番号(100,000000)を二人で使用できる。 FIG. 3 is a diagram for explaining the problem and the state in which the same account number (information number) is assigned to different customers and the basic check number (CDV1) and the derived check number (CDV2) are used properly. . For example, the basic check number (CDV1) of the account number (100,000,000) is “9”, and the derived check number (CDV2) is “3”. Therefore, the account number (100,000,000) to which the basic check number (CDV1) is added is like P (see FIG. 3A), and the account number (100,000,000,3) to which the derived check number (CDV2) is added. ) To Q (see FIG. 3B), the same account number (100,000,000) can be used by two people.
このようなことを行なう利点を説明する。ある特定の本支店において使用できる顧客番号が106通りであるところ、顧客が多い店舗においては顧客番号が足りなくなる可能性がある。そこで、検査数字を使い分けて、同じ口座番号を二人で共用できれば、使用できる顧客番号が二倍に増加する。よって、顧客番号が足りなくなる可能性を減らすことができる。
The advantages of doing this will be described. Where a particular customer number that can be used in branch offices is a
しかし、その代償として、口座番号の入力エラー(入力者が本来、意図していない入力)を発見できる確率が減少するという現象が発生する。例えば、図3(c)に示すように、口座番号(500,000000)に派生検査数字(CDV2)「9」を付加した番号がR様に付与されるといったことが起こり得る。ここで、P様を示す意図で「100,000000,9」と入力すべきところ、最初の一桁目の入力を入力者が誤って「500,000000,9」と入力したとする(図3(d)参照)。基本検査数字(CDV1)だけを使用していれば、口座番号(500,000000)から求められる基本検査数字(CDV1)は「5」であり、実際に入力された検査数字「9」とは異なるので、P様を示す意図の入力においてエラーが発生したと判定できる。しかし、派生検査数字(CDV2)を併用しているので、口座番号(500,000000)から求められる派生検査数字(CDV2)は「9」であり、実際に入力された検査数字「9」と同じなので、R様を示す意図の入力であると判定してしまう。よって、P様を示す意図の入力においてエラーが発生したと判定することができない。これは、P様を指定したいという入力者の意図に反する。 However, as a price, there is a phenomenon in which the probability that an account number input error (input that the input person originally did not intend) can be found decreases. For example, as shown in FIG. 3 (c), it may happen that a number obtained by adding the derived inspection number (CDV2) “9” to the account number (500,000,000) is given in an R-like manner. Here, it is assumed that “100,000,000” is to be input for the purpose of indicating P-like, but the input user erroneously inputs “500,000,000” in the first digit entry (FIG. 3). (See (d)). If only the basic check number (CDV1) is used, the basic check number (CDV1) obtained from the account number (500,000,000) is “5”, which is different from the actually input check number “9”. Therefore, it can be determined that an error has occurred in the input of the intention indicating P. However, since the derived inspection number (CDV2) is used together, the derived inspection number (CDV2) obtained from the account number (500,000,000) is “9”, which is the same as the actually entered inspection number “9”. Therefore, it is determined that the input is an intention indicating R-like. Therefore, it cannot be determined that an error has occurred in the input of the intention indicating P. This is contrary to the intention of the input person who wants to designate P-like.
このように、基本検査数字(CDV1)と派生検査数字(CDV2)とを併用することにより、口座番号の入力エラーを発見できる確率が減少する。そこで、(1)どの程度、入力エラーを発見できる確率が減少するか、(2)派生検査数字(CDV2)の導出法をどのようにすれば、入力エラーを発見できる確率の減少を少なくできるか、などといったことを把握することが、基本検査数字(CDV1)と派生検査数字(CDV2)との併用において好ましい。そこで、エラー検出劣化数導出装置1(図4参照)により、基本検査数字(CDV1)と派生検査数字(CDV2)との併用にあたって、どれだけエラー検出劣化個数が増大するかを導出して、上記のようなデータを把握する。 Thus, the combined use of the basic check number (CDV1) and the derived check number (CDV2) reduces the probability of finding an account number input error. Therefore, (1) how much the probability that an input error can be found decreases, and (2) how the derivation check digit (CDV2) derivation method can reduce the decrease in the probability that an input error can be found. It is preferable to use the basic test number (CDV1) and the derived test number (CDV2) in combination. Therefore, the error detection deterioration number deriving device 1 (see FIG. 4) derives how much the error detection deterioration number increases when the basic check number (CDV1) and the derived check number (CDV2) are used together. To grasp such data.
第一の実施形態
図4は、第一の実施形態にかかるエラー検出劣化数導出装置1の構成を示す機能ブロック図である。エラー検出劣化数導出装置1は、エラー種類決定部10、全パターン数カウンタ12、真正情報数字生成部22、第一基本検査数字導出部24、第一基本検査数字記録部26、第一派生検査数字導出部27、第一派生検査数字記録部28、エラー情報数字生成部32、第二基本検査数字導出部34、第二基本検査数字記録部36、第二派生検査数字導出部37、第二派生検査数字記録部38、第一エラー検出劣化個数カウンタ44、第二エラー検出劣化個数カウンタ46を備える。なお、第一の実施形態にかかるエラー検出劣化数導出装置1は、トランスポジションエラー(Transposition Error)およびダブルトランスポジションエラー(Double Transposition Error)に関するものである。
First Embodiment FIG. 4 is a functional block diagram showing a configuration of an error detection deterioration
エラー種類決定部10は、エラー検出劣化個数の導出対象となるエラーの種類を決定する。エラーの種類には、例えば、トランスポジションエラー(Transposition Error)、ダブルトランスポジションエラー(Double Transposition Error)がある。なお、決定されたエラーの種類は、真正情報数字生成部22およびエラー情報数字生成部32に与えられる。
The error
図5および図6は、エラーの種類を説明するための図である。 5 and 6 are diagrams for explaining the types of errors.
図5は、トランスポジションエラーを示す図である。トランスポジションエラーは、隣り合う任意の二桁における数値が入れ替わるエラーをいう。図5に示す例では、口座番号「123,000000」において、最初(最も左)の一桁とそれに隣り合う一桁とにおいて、エラーが発生している。すなわち、「12」と入力すべきところ、「21」と入力されている。 FIG. 5 is a diagram illustrating a transposition error. A transposition error is an error in which numerical values in any two adjacent digits are interchanged. In the example shown in FIG. 5, in the account number “123,000,000”, an error has occurred in the first (leftmost) digit and the next digit. That is, where “12” should be input, “21” is input.
図6は、ダブルトランスポジションエラーを示す図である。ダブルトランスポジションエラーは、一桁離れた任意の二桁における数値が入れ替わるエラーをいう。図6に示す例では、口座番号「123,000000」において、最初(最も左)の一桁と一桁離れた桁(最初の桁から数えて三桁目)とにおいて、エラーが発生している。すなわち、「123」と入力すべきところ、「321」と入力されている。 FIG. 6 is a diagram illustrating a double transposition error. A double transposition error is an error in which numerical values in any two digits apart by one digit are interchanged. In the example shown in FIG. 6, in the account number “123,000,000”, an error has occurred in the first (leftmost) digit and the digit one digit away (the third digit counted from the first digit). . That is, where “123” should be input, “321” is input.
真正情報数字生成部22は、エラーの種類を受けて、エラーを発生させる桁を決める。そして、エラーを発生させる桁に任意の値を代入する。エラーを発生させる桁以外の桁は所定値に固定する。このようにして、口座番号((真正な)情報数字X)を生成する。(真正な)情報数字Xという表記は、情報数字Xを仮に真正なもの(正規なもの)とおくことを意味している。
The genuine information
エラー情報数字生成部32は、仮に真正なものとおいた情報数字Xにエラーを発生させる桁にエラーを発生させる。エラーを発生させる桁以外の桁は所定値に固定する。このようにして、口座番号(エラー情報数字Xerr)を生成する。
The error information
全パターン数カウンタ12は、(真正な)情報数字Xおよびエラー情報数字Xerrの全パターン数を数える。なお、全パターン数からは、情報数字Xとエラー情報数字Xerrとが等しくなる場合の数を減じる。トランスポジションエラーの場合は、トランスポジションエラーが発生する桁の双方(例えば、一桁目と二桁目)において同じ数字をとる場合の10通り(例えば、一桁目と二桁目とが共に、0,1,2,3,4,5,6,7,8,9となる)を減じる。ダブルトランスポジションエラーの場合も同様に10通りを減じる。 The total pattern number counter 12 counts the total number of patterns of the (genuine) information number X and the error information number Xerr. Note that the total number of patterns is subtracted when the information number X and the error information number Xerr are equal. In the case of a transposition error, there are 10 patterns (for example, both the first digit and the second digit) when the same number is taken in both digits (for example, the first digit and the second digit) where the transposition error occurs. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9). Similarly, in the case of a double transposition error, 10 patterns are reduced.
図7は、エラーの種類がトランスポジションエラーであると決定された場合の、(真正な)情報数字(図7(a))およびエラー情報数字(図7(b))を示す図である。まず、図7(a)に示すように、真正情報数字生成部22は、エラーを発生させる桁(例、最初の一桁とそれに隣り合う一桁)を決め、任意の値(例、「12」)を代入する。エラーを発生させる桁以外の桁は所定値(例、「0」)に固定する。これにより、(真正な)情報数字Xが生成される。これは、情報数字のある桁の数値についてのみ検査数字を導出するためのものである。
FIG. 7 is a diagram showing (genuine) information numbers (FIG. 7 (a)) and error information numbers (FIG. 7 (b)) when it is determined that the error type is a transposition error. First, as shown in FIG. 7A, the genuine information
次に、図7(b)に示すように、エラー情報数字生成部32は、エラーを発生させる桁にエラーを発生させる。すなわち、最初の一桁とそれに隣り合う一桁の値を入れ替える。すなわち「21」とする。エラーを発生させる桁以外の桁は所定値(例、「0」)に固定する。これにより、エラー情報数字Xerrが生成される。
Next, as shown in FIG. 7B, the error information
図7に示す例は、真正な情報数字「120,000000」があった場合、最初の一桁とそれに隣り合う一桁においてトランスポジションエラーが発生すれば、「210,000000」という誤った入力(エラー情報数字)が発生することを意味する。 In the example shown in FIG. 7, when there is a genuine information number “120,000,000”, if a transposition error occurs in the first digit and one digit adjacent thereto, an incorrect input “210,000,000” ( Error information number) occurs.
このとき、(真正な)情報数字は1パターンであり、それに対応してエラー情報数字が1パターン存在するので、1パターンの口座番号が考えられる。エラーを発生させる二桁における任意の値は10×10=100通り考えられるので、(真正な)情報数字およびエラー情報数字の全パターン数は、1×100=100パターンである。全パターン数カウンタ12は、全パターン数が100パターンであることを求める。ただし、トランスポジションエラーが発生する桁の双方において同じ数字をとる場合の10通りを減じるので、100−10=90通りを全パターン数とする。
At this time, there is one pattern of (genuine) information numbers, and there is one pattern of error information numbers corresponding to this, so one account number can be considered. Since there are 10 × 10 = 100 arbitrary values that cause an error, the total number of patterns of (authentic) information numbers and error information numbers is 1 × 100 = 100 patterns. The total
図8は、エラーの種類がダブルトランスポジションエラーであると決定された場合の、(真正な)情報数字(図8(a))およびエラー情報数字(図8(b))を示す図である。まず、図8(a)に示すように、真正情報数字生成部22は、エラーを発生させる桁(例、最初の一桁と一桁離れた桁)を決め、任意の値(例、「1」と「3」)を代入する。エラーを発生させる桁以外の桁は所定値(例、「0」)に固定する。これにより、(真正な)情報数字Xが生成される。
FIG. 8 is a diagram showing (genuine) information numbers (FIG. 8 (a)) and error information numbers (FIG. 8 (b)) when it is determined that the error type is a double transposition error. . First, as shown in FIG. 8A, the genuine information
次に、図8(b)に示すように、エラー情報数字生成部32は、エラーを発生させる桁にエラーを発生させる。すなわち、最初の一桁と一桁離れた桁の値を入れ替える。すなわち「3」と「1」とする。エラーを発生させる桁以外の桁は所定値(例、「0」)に固定する。これにより、エラー情報数字Xerrが生成される。
Next, as shown in FIG. 8B, the error information
図8に示す例は、真正な情報数字「103,000000」があった場合、最初の一桁と一桁離れた桁においてダブルトランスポジションエラーが発生すれば、「301,000000」という誤った入力(エラー情報数字)が発生することを意味する。 In the example shown in FIG. 8, when there is a genuine information number “103 million”, if a double transposition error occurs in a digit one digit away from the first digit, an incorrect input “301 million” is entered. (Error information number) occurs.
このとき、(真正な)情報数字は1パターンであり、それに対応してエラー情報数字が1パターン存在するので、1パターンの口座番号が考えられる。エラーを発生させる二桁における任意の値は10×10=100通り考えられるので、(真正な)情報数字およびエラー情報数字の全パターン数は、1×100=100パターンである。全パターン数カウンタ12は、全パターン数が100パターンであることを求める。ただし、ダブルトランスポジションエラーが発生する桁の双方において同じ数字をとる場合の10通りを減じるので、100−10=90通りを全パターン数とする。
At this time, there is one pattern of (genuine) information numbers, and there is one pattern of error information numbers corresponding to this, so one account number can be considered. Since there are 10 × 10 = 100 arbitrary values that cause an error, the total number of patterns of (authentic) information numbers and error information numbers is 1 × 100 = 100 patterns. The total
第一基本検査数字導出部24は、(真正な)情報数字Xに基づき、第一基本検査数字(CDV1)を導出する。第一基本検査数字(CDV1)の導出法は、図1を参照して説明したモジュラス10を用いる。ただし、ウェイトは適宜変更してもよいし、モジュラス11などを使用してもかまわない。
The first basic check
第二基本検査数字導出部34は、エラー情報数字Xerrに基づき、第二基本検査数字(CDV1’)を導出する。第二基本検査数字(CDV1’)の導出法は、第一基本検査数字導出部24と同じく、図1を参照して説明したモジュラス10を用いる。ただし、ウェイトは適宜変更してもよいし、モジュラス11などを使用してもかまわない。もちろん、第一基本検査数字導出部24と同じ方法でなければならない。
The second basic check
第一基本検査数字記録部26は、第一基本検査数字導出部24から第一基本検査数字(CDV1)を受けて、(真正な)情報数字Xに対応づけて記録する。第二基本検査数字記録部36は、第二基本検査数字導出部34から第二基本検査数字(CDV1’)を受けて、エラー情報数字Xerrに対応づけて記録する。
The first basic inspection
第一派生検査数字導出部27は、第一基本検査数字記録部26に記録された第一基本検査数字(CDV1)から第一派生検査数字(CDV2)を導出する。第一派生検査数字(CDV2)の導出法は、図2を参照して説明したように、CDV1+4の末尾一桁を第一派生検査数字(CDV2)とする。
The first derived inspection
第二派生検査数字導出部37は、第二基本検査数字記録部36に記録された第二基本検査数字(CDV1’)から第二派生検査数字(CDV2’)を導出する。第二派生検査数字(CDV2’)の導出法は、第一派生検査数字導出部27と同じく、図2を参照して説明したように、CDV1’+4の末尾一桁を第二派生検査数字(CDV2’)とする。
The second derived inspection
なお、第一派生検査数字導出部27および第二派生検査数字導出部37における派生検査数字の導出法は、エラー検出劣化数導出装置1の利用者によって適宜設定できる。例えば、CDV1+αの末尾一桁をCDV2とするようにして(α=1〜9までの整数)、αの各々の値に応じたCDV2、CDV2’を求めるようにしてもよい。
Note that the derivation test number derivation method in the first derivation test
第一派生検査数字記録部28は、第一派生検査数字導出部27から第一派生検査数字(CDV2)を受けて、(真正な)情報数字Xに対応づけて記録する。第二派生検査数字記録部38は、第二派生検査数字導出部37から第二派生検査数字(CDV2’)を受けて、エラー情報数字Xerrに対応づけて記録する。
The first derived inspection
図9および図10は、トランスポジションエラーの場合の、第一基本検査数字記録部26および第二基本検査数字記録部36の記録内容を説明するための図である。
FIG. 9 and FIG. 10 are diagrams for explaining the recorded contents of the first basic check
図9は、(真正な)情報数字Xの左から一桁目の値≦左から二桁目の値あるいは左から二桁目の値=0である場合を示す。図9(a)は、(真正な)情報数字Xに対応する第一基本検査数字(CDV1)を示す図である。図9(a)の読み方は、(真正な)情報数字Xの左から一桁目の値が「1」、左から二桁目の値が「2」であり、他の桁は「0」で固定した場合(すなわち、情報数字X=「120,000000」)、第一基本検査数字(CDV1)は、「3」ということを意味する。図9(b)は、エラー情報数字Xerrに対応する第二基本検査数字(CDV1’)を示す図である。図9(b)の読み方は、エラー情報数字Xerrの左から一桁目の値が「2」、左から二桁目の値が「1」であり、他の桁は「0」で固定した場合(すなわち、エラー情報数字Xerr=「210,000000」)、第二基本検査数字(CDV1’)は、「5」ということを意味する。 FIG. 9 shows a case where the value of the first digit from the left of the (genuine) information number X ≦ the value of the second digit from the left or the value of the second digit from the left = 0. FIG. 9A is a diagram showing the first basic check digit (CDV1) corresponding to the (genuine) information number X. FIG. The reading of FIG. 9A is as follows: (1) the first digit value from the left of the (genuine) information number X is “1”, the second digit value from the left is “2”, and the other digits are “0”. Means that the first basic inspection number (CDV1) is “3”. In other words, the information number X = “120,000,000”. FIG. 9B is a diagram showing a second basic check digit (CDV1 ′) corresponding to the error information number Xerr. In the reading of FIG. 9B, the error information number Xerr is fixed with the value of the first digit from the left being “2”, the value of the second digit from the left being “1”, and the other digits being fixed to “0”. In this case (that is, the error information number Xerr = “210,000,000”), the second basic check number (CDV1 ′) means “5”.
図10は、(真正な)情報数字Xの左から一桁目の値≧左から二桁目の値あるいは左から一桁目の値=0である場合を示す。図10(a)は、(真正な)情報数字Xに対応する第一基本検査数字(CDV1)を示す図である。図10(b)は、エラー情報数字Xerrに対応する第二基本検査数字(CDV1’)を示す図である。図10(a)および図10(b)の読み方は、図9と同様である。 FIG. 10 shows a case where the value of the first digit from the left of the (genuine) information number X ≧ the value of the second digit from the left or the value of the first digit from the left = 0. FIG. 10A is a diagram showing the first basic check digit (CDV1) corresponding to the (genuine) information number X. FIG. FIG. 10B is a diagram showing a second basic check digit (CDV1 ′) corresponding to the error information number Xerr. 10 (a) and 10 (b) are read in the same manner as in FIG.
なお、ダブルトランスポジションエラーについては、トランスポジションエラーの例(図9および図10参照)と同様である。すなわち、図9および図10における2桁目を3桁目に置き換え、しかも口座番号の3桁目に対応するウェイトを「3」にすれば、トランスポジションエラーの例と同様である。 The double transposition error is the same as the example of the transposition error (see FIGS. 9 and 10). That is, if the second digit in FIGS. 9 and 10 is replaced with the third digit, and the weight corresponding to the third digit of the account number is set to “3”, it is the same as the example of the transposition error.
第一エラー検出劣化個数カウンタ(第一エラー検出劣化個数計数手段)44は、第一基本検査数字記録部26の記録する第一基本検査数字(CDV1)と、第二派生検査数字記録部38の記録する第二派生検査数字(CDV2’)とが等しくなる個数を数える。数えた結果が、第一エラー検出劣化個数である。
The first error detection deterioration number counter (first error detection deterioration number counting means) 44 includes a first basic inspection number (CDV1) recorded by the first basic inspection
第二エラー検出劣化個数カウンタ(第二エラー検出劣化個数計数手段)46は、第一派生検査数字記録部28の記録する第一派生検査数字(CDV2)と、第二基本検査数字記録部36の記録する第二基本検査数字(CDV1’)とが等しくなる個数を数える。数えた結果が、第二エラー検出劣化個数である。
The second error detection deterioration number counter (second error detection deterioration number counting means) 46 includes a first derived inspection number (CDV2) recorded by the first derived inspection
図11および図12は、トランスポジションエラーにおける、第二エラー検出劣化個数カウンタ46の動作例を説明するための図である。
FIGS. 11 and 12 are diagrams for explaining an operation example of the second error detection
図11は、(真正な)情報数字Xの左から一桁目の値≦左から二桁目の値あるいは左から二桁目の値=0である場合を示す。図11(a)は、(真正な)情報数字Xに対応する第一派生検査数字(CDV2)を示す図である。読み方は図10と同様である。また、図11(b)は、トランスポジションエラーを検出できない(真正な)情報数字Xを表示した図である。例えば、CDV2(1,3)=CDV1’(3,1)=4であるので(CDV1’(3,1)の値については図9(b)を参照)、左から一桁目の値が「1」、左から二桁目の値が「3」である(真正な)情報数字Xにおいては、左から一桁目および二桁目において生じるトランスポジションエラーを発見できないことがわかる。CDV2(i,j)=CDV1’(j,i)となる(i,j)の組み合わせは図11においては11通りであり、第二エラー検出劣化個数=11となる。 FIG. 11 shows a case in which the value of the first digit from the left of the (authentic) information number X ≦ the value of the second digit from the left or the value of the second digit from the left = 0. FIG. 11A is a diagram showing the first derived check digit (CDV2) corresponding to the (genuine) information digit X. FIG. Reading is the same as in FIG. Further, FIG. 11B is a diagram displaying information numbers X (authentic) in which a transposition error cannot be detected. For example, since CDV2 (1,3) = CDV1 ′ (3,1) = 4 (see FIG. 9B for the value of CDV1 ′ (3,1)), the first digit value from the left is It can be seen that the transposition error occurring in the first and second digits from the left cannot be found in the (numeric) information number X having “1” and the second digit value from the left being “3”. In FIG. 11, there are 11 combinations of (i, j) such that CDV2 (i, j) = CDV1 ′ (j, i), and the second error detection deterioration number = 11.
図12は、(真正な)情報数字Xの左から一桁目の値≧左から二桁目の値あるいは左から一桁目の値=0である場合を示す。図12(a)は、(真正な)情報数字Xに対応する第一派生検査数字(CDV2)を示す図である。読み方は図10と同様である。また、図12(b)は、トランスポジションエラーを検出できない(真正な)情報数字Xを表示した図である。例えば、CDV2(4,1)=CDV1’(1,4)=7であるので(CDV1’(1,4)の値については図10(b)を参照)、左から一桁目の値が「4」、左から二桁目の値が「1」である(真正な)情報数字Xにおいては、左から一桁目および二桁目において生じるトランスポジションエラーを発見できないことがわかる。CDV2(i,j)=CDV1’(j,i)となる(i,j)の組み合わせは図12においては9通りであり、第二エラー検出劣化個数=9となる。 FIG. 12 shows a case in which the value of the first digit from the left of the (genuine) information number X ≧ the value of the second digit from the left or the value of the first digit from the left = 0. FIG. 12A is a diagram showing the first derived check digit (CDV2) corresponding to the (genuine) information digit X. FIG. Reading is the same as in FIG. FIG. 12 (b) is a diagram showing information numbers (X) in which a transposition error cannot be detected (authentic). For example, since CDV2 (4,1) = CDV1 ′ (1,4) = 7 (see FIG. 10B for the value of CDV1 ′ (1,4)), the first digit value from the left is It can be seen that a transposition error occurring in the first and second digits from the left cannot be found in the (numeric) information number X having a value of “4” and the second digit from the left is “1”. In FIG. 12, there are nine combinations of (i, j) such that CDV2 (i, j) = CDV1 ′ (j, i), and the second error detection deterioration number = 9.
よって、トランスポジションエラーにおいて、第二エラー検出劣化個数カウンタ46は、第二エラー検出劣化個数を11+9=20とする。
Therefore, in the transposition error, the second error detection
図13および図14は、トランスポジションエラーにおける、第一エラー検出劣化個数カウンタ44の動作例を説明するための図である。
FIGS. 13 and 14 are diagrams for explaining an operation example of the first error detection
図13は、(真正な)情報数字Xの左から一桁目の値≧左から二桁目の値あるいは左から一桁目の値=0である場合を示す。図13(a)は、エラー情報数字Xerrに対応する第二派生検査数字(CDV2’)を示す図である。読み方は図10と同様である。また、図13(b)は、トランスポジションエラーを検出できない(真正な)情報数字Xを表示した図である。例えば、CDV2’(4,1)=CDV1(1,4)=7であるので(CDV1(1,4)の値については図9(a)を参照)、左から一桁目の値が「1」、左から二桁目の値が「4」である(真正な)情報数字Xにおいては、左から一桁目および二桁目において生じるトランスポジションエラーを発見できないことがわかる。CDV2’(i,j)=CDV1(j,i)となる(i,j)の組み合わせは図13においては9通りであり、第一エラー検出劣化個数=9となる。 FIG. 13 shows a case in which the value of the first digit from the left of the (genuine) information number X ≧ the value of the second digit from the left or the value of the first digit from the left = 0. FIG. 13A is a diagram illustrating a second derived check digit (CDV2 ′) corresponding to the error information number Xerr. Reading is the same as in FIG. FIG. 13B is a diagram displaying information numbers X that cannot detect a transposition error (authentic). For example, since CDV2 ′ (4,1) = CDV1 (1,4) = 7 (see FIG. 9A for the value of CDV1 (1,4)), the first digit value from the left is “ It can be seen that the transposition error occurring in the first digit and the second digit from the left cannot be found in the (numeric) information number X having the value “1” and the second digit from the left “4”. In FIG. 13, there are nine combinations of (i, j) such that CDV2 ′ (i, j) = CDV1 (j, i), and the first error detection deterioration number = 9.
図14は、(真正な)情報数字Xの左から一桁目の値≧左から二桁目の値あるいは左から一桁目の値=0である場合を示す。図14(a)は、エラー情報数字Xerrに対応する第二派生検査数字(CDV2’)を示す図である。読み方は図10と同様である。また、図14(b)は、トランスポジションエラーを検出できない(真正な)情報数字Xを表示した図である。例えば、CDV2’(1,3)=CDV1(3,1)=4であるので(CDV1(3,1)の値については図10(a)を参照)、左から一桁目の値が「3」、左から二桁目の値が「1」である(真正な)情報数字Xにおいては、左から一桁目および二桁目において生じるトランスポジションエラーを発見できないことがわかる。CDV2’(i,j)=CDV1(j,i)となる(i,j)の組み合わせは図14においては11通りであり、第一エラー検出劣化個数=11となる。 FIG. 14 shows a case where the value of the first digit from the left of the (genuine) information number X ≧ the value of the second digit from the left or the value of the first digit from the left = 0. FIG. 14A is a diagram showing a second derivation check number (CDV2 ') corresponding to the error information number Xerr. Reading is the same as in FIG. FIG. 14 (b) is a diagram displaying information numbers X that cannot detect a transposition error (authentic). For example, since CDV2 ′ (1,3) = CDV1 (3,1) = 4 (see FIG. 10A for the value of CDV1 (3,1)), the first digit value from the left is “ It can be seen that the transposition error that occurs in the first and second digits from the left cannot be found in the (numeric) information number X in which the value of the third digit from the left is “1”. In FIG. 14, there are 11 combinations of (i, j) such that CDV2 ′ (i, j) = CDV1 (j, i), and the first error detection deterioration number = 11.
よって、トランスポジションエラーにおいて、第一エラー検出劣化個数カウンタ44は、第一エラー検出劣化個数を9+11=20とする。
Therefore, in the transposition error, the first error detection
なお、ダブルトランスポジションエラーにおいても、第一エラー検出劣化個数カウンタ44および第二エラー検出劣化個数カウンタ46は同様に動作する。
Note that the first error detection
トランスポジションエラーにおいて、全パターン数カウンタ12は、全パターン数が100パターンであることを求める。さらに、第一エラー検出劣化個数=第二エラー検出劣化個数=20である。
In the transposition error, the
よって、基本検査数字と派生検査数字とを併用した場合におけるエラーの発見確率は、第一エラー検出劣化個数(=第二エラー検出劣化個数)を全パターン数で割った値だけ劣化する。すなわち、20/(100−10)=およそ22%減少する。 Therefore, the error detection probability when the basic check number and the derived check number are used together deteriorates by a value obtained by dividing the first error detection deterioration number (= second error detection deterioration number) by the total number of patterns. That is, 20 / (100−10) = approximately 22%.
本発明の実施形態においては、ウェイト(重み付け係数)が1、3の繰り返しなので、上記の通りである。しかし、ウェイトが、繰り返しではない(例えば、乱数)場合は必ずしも上記のようにはならない。一桁目と二桁目とにおいてトランスポジションエラーが発生した場合の第一エラー検出劣化個数(=第二エラー検出劣化個数)が、他の桁(例えば、二桁目と三桁目)においてトランスポジションエラーが発生した場合の第一エラー検出劣化個数(=第二エラー検出劣化個数)とは異なるからである。そこで、口座番号の全ての桁数を9とし、n桁目とn+1桁目とにおいてトランスポジションエラーが発生した場合の第一エラー検出劣化個数の総和を、n桁目とn+1桁目とにおける全パターン数の総和で割ったものをエラーの発見確率が劣化する割合とする(ただし、9−1≧n≧1)。すなわち、(1桁目と2桁目においてトランスポジションエラーが発生した場合の第一エラー検出劣化個数)+(2桁目と3桁目においてトランスポジションエラーが発生した場合の第一エラー検出劣化個数)+…+(8桁目と9桁目においてトランスポジションエラーが発生した場合の第一エラー検出劣化個数)を、(1桁目と2桁目とにおける全パターン数)+(2桁目と3桁目とにおける全パターン数)+…+(8桁目と9桁目とにおける全パターン数)で割ったものをエラーの発見確率が劣化する割合とする。 In the embodiment of the present invention, since the weight (weighting coefficient) is a repetition of 1 and 3, it is as described above. However, when the weight is not repetitive (for example, a random number), the above does not necessarily occur. When a transposition error occurs in the first digit and the second digit, the first error detection deterioration number (= second error detection deterioration number) is the same in the other digits (for example, the second digit and the third digit). This is because the first error detection deterioration number (= second error detection deterioration number) when a position error occurs is different. Therefore, when the total number of digits of the account number is 9, and the transposition error occurs in the n-th and n + 1-th digits, the total number of first error detection deterioration numbers is the total in the n-th and n + 1-th digits. Divide by the sum of the number of patterns is the rate at which the error discovery probability deteriorates (where 9-1 ≧ n ≧ 1). That is, (the number of first error detection deterioration when a transposition error occurs in the first digit and the second digit) + (the number of first error detection deterioration when a transposition error occurs in the second and third digits) ) + ... + (the number of first error detection deterioration when a transposition error occurs in the 8th and 9th digits), (the total number of patterns in the 1st and 2nd digits) + (the 2nd digit and The total number of patterns in the third digit) +... + (The total number of patterns in the eighth and ninth digits) is taken as the rate at which the error detection probability deteriorates.
なお、エラー検出劣化数導出装置1は、さらに統計処理装置50を備えて、基本検査数字と派生検査数字とを併用した場合におけるエラーの発見確率が、基本検査数字のみを使用する場合のエラーの発見確率よりもどの程度減少するかを算出することが好ましい。
The error detection deterioration
図15は、統計処理装置50の構成を示す機能ブロック図である。統計処理装置50は、切替器54、エラー検出劣化率算出部56を有する。
FIG. 15 is a functional block diagram illustrating a configuration of the
切替器54は、第一エラー検出劣化個数カウンタ44から第一エラー検出劣化個数を、あるいは第二エラー検出劣化個数カウンタ46から第二エラー検出劣化個数を受けて、エラー検出劣化率算出部56に出力する。第一エラー検出劣化個数カウンタ44および第二エラー検出劣化個数カウンタ46は、いずれか一方が動作していればよいので、どちらか動作している方から第一(第二)エラー検出劣化個数を受ければよい。
The switch 54 receives the first error detection deterioration number from the first error detection
エラー検出劣化率算出部56は、全パターン数カウンタ12から全パターン数(90通り)を受け、切替器54から第一(あるいは第二)エラー検出劣化個数を受ける。そして、第一(あるいは第二)エラー検出劣化個数を基本エラー発見数で割る。割った値が、エラー検出劣化率である。すなわち、基本検査数字と派生検査数字とを併用した場合におけるエラーの発見確率が、基本検査数字のみを使用する場合のエラーの発見確率よりもどの程度減少するかを示す値である。
The error detection deterioration
なお、エラー検出劣化率算出部56は、口座番号の全ての桁数を9とし、n桁目とn+1桁目とにおいてトランスポジションエラーが発生した場合の第一エラー検出劣化個数の総和を、n桁目とn+1桁目とにおける全パターン数の総和で割ったものをエラーの発見確率が劣化する割合とするようにしてもよい(ただし、9−1≧n≧1)。
The error detection deterioration
次に、第一の実施形態の動作を説明する。 Next, the operation of the first embodiment will be described.
まず、エラー種類決定部10がエラー種類を決定する(図5および図6参照)。エラー種類は、真正情報数字生成部22およびエラー情報数字生成部32に与えられる。
First, the error
真正情報数字生成部22は(真正な)情報数字Xを、エラー情報数字生成部32はエラー情報数字Xerrを生成する(図7〜8参照)。また、全パターン数カウンタ12は、(真正な)情報数字Xおよびエラー情報数字Xerrの全パターン数を数える。
The genuine information
第一基本検査数字導出部24は、(真正な)情報数字Xに基づき、第一基本検査数字(CDV1)を導出する(図1参照)。第二基本検査数字導出部34は、エラー情報数字Xerrに基づき、第二基本検査数字(CDV1’)を導出する(図1参照)。第一基本検査数字(CDV1)は、(真正な)情報数字Xに対応づけられて、第一基本検査数字記録部26に記録される(図9〜10参照)。第二基本検査数字(CDV1’)は、エラー情報数字Xerrに対応づけられて、第二基本検査数字記録部36に記録される(図9〜10参照)。
The first basic check
第一派生検査数字導出部27は、第一基本検査数字記録部26に記録された第一基本検査数字(CDV1)から第一派生検査数字(CDV2)を導出する(図2参照)。第二派生検査数字導出部37は、第二基本検査数字記録部36に記録された第二基本検査数字(CDV1’)から第二派生検査数字(CDV2’)を導出する(図2参照)。第一派生検査数字(CDV2)は、(真正な)情報数字Xに対応づけられて、第一派生検査数字記録部28に記録される(図11〜12参照)。第二派生検査数字(CDV2’)は、エラー情報数字Xerrに対応づけられて、第二派生検査数字記録部38に記録される(図13、14参照)。
The first derived inspection
第一エラー検出劣化個数カウンタ(第一エラー検出劣化個数計数手段)44は、第一基本検査数字記録部26の記録する第一基本検査数字(CDV1)と、第二派生検査数字記録部38の記録する第二派生検査数字(CDV2’)とが等しくなる個数を数える。数えた結果が、第一エラー検出劣化個数である(図13、14参照)。
The first error detection deterioration number counter (first error detection deterioration number counting means) 44 includes a first basic inspection number (CDV1) recorded by the first basic inspection
第二エラー検出劣化個数カウンタ(第二エラー検出劣化個数計数手段)46は、第一派生検査数字記録部28の記録する第一派生検査数字(CDV2)と、第二基本検査数字記録部36の記録する第二基本検査数字(CDV1’)とが等しくなる個数を数える。数えた結果が、第二エラー検出劣化個数である(図11〜12参照)。
The second error detection deterioration number counter (second error detection deterioration number counting means) 46 includes a first derived inspection number (CDV2) recorded by the first derived inspection
次に、エラー検出劣化率算出部56が、第一エラー検出劣化個数カウンタ44から第一エラー検出劣化個数を、あるいは第二エラー検出劣化個数カウンタ46から第二エラー検出劣化個数を、切替器54を介して受ける。エラー検出劣化率算出部56は、さらに、基本エラー発見数を基本エラー発見数算出部52から受ける。そこで、エラー検出劣化率が下記の式により求められる。(第一(第二)エラー検出劣化個数)/(全パターン数)=(エラー検出劣化率)。例えば、トランスポジションエラーの場合、全パターン数=90、第一(第二)エラー検出劣化個数=20なので、エラー検出劣化率=20/90=およそ22%となる。
Next, the error detection deterioration
第一の実施形態によれば、基本検査数字(CDV1)と派生検査数字(CDV2)とを併用することにより、基本検査数字(CDV1)のみを使用する場合に比べて、口座番号の入力エラーを発見できる確率がどれほど減少するかを、エラー検出劣化率として求めることができる。 According to the first embodiment, by using the basic check number (CDV1) and the derived check number (CDV2) in combination, the input error of the account number is reduced as compared with the case where only the basic check number (CDV1) is used. How much the probability of discovery can be reduced can be obtained as an error detection deterioration rate.
第二の実施形態
図16は、第二の実施形態にかかるエラー検出劣化数導出装置2の構成を示す機能ブロック図である。エラー検出劣化数導出装置2は、エラー種類決定部10、全パターン数カウンタ12、情報数字生成部62、基本検査数字導出部64、基本検査数字記録部66、派生検査数字導出部68、CDV発生回数カウンタ72、CDV発生回数記録部74、エラー検出劣化数導出部82を備える。なお、第二の実施形態にかかるエラー検出劣化数導出装置1は、トランスクリプションエラー(Transcription Error)に関するものである。
Second Embodiment FIG. 16 is a functional block diagram showing a configuration of an error detection deterioration
エラー種類決定部10は、エラー検出劣化個数の導出対象となるエラーの種類を決定する。エラーの種類には、例えば、トランスクリプションエラー(Transcription Error)がある。なお、決定されたエラーの種類は、情報数字生成部62に与えられる。
The error
図17は、トランスクリプションエラーを示す図である。トランスクリプションエラーは、任意の一桁における数値の入力エラーをいう。図17に示す例では、口座番号「123,000000」において、最初(最も左)の一桁において、エラーが発生している。すなわち、「1」と入力すべきところ、「5」と入力されている。 FIG. 17 is a diagram showing a transcription error. A transcription error is an input error of a numerical value in an arbitrary single digit. In the example shown in FIG. 17, an error has occurred in the first (leftmost) digit of the account number “123,000,000”. That is, “5” is entered where “1” should be entered.
情報数字生成部62は、エラーの種類を受けて、ある桁(例えば、左から一桁目)に全ての値を代入する。その他の桁は所定値に固定する。
In response to the type of error, the information
図18は、エラーの種類がトランスクリプションエラーであると決定された場合の、情報数字生成部62の出力する情報数字Xを示す図である。まず、情報数字生成部62は、ある桁(例、最初(最も左)の一桁)を決め、全ての値を代入する。それ以外の桁は所定値(例、「0」)に固定する。これにより、情報数字Xが生成される。
FIG. 18 is a diagram illustrating the information number X output from the information
このとき、全部で10パターンの情報数字Xが存在するので、全パターン数カウンタ12は、全パターン数が10パターンであることを求める。
At this time, since there are 10 information numbers X in total, the
基本検査数字導出部64は、情報数字Xに基づき、基本検査数字(CDV1)を導出する。基本検査数字(CDV1)の導出法は、図1を参照して説明したモジュラス10を用いる。ただし、ウェイトは適宜変更してもよいし、モジュラス11などを使用してもかまわない。基本検査数字記録部66は、基本検査数字導出部64の出力を記録する。
The basic check
図19は、トランスクリプションエラーの場合の、基本検査数字記録部66の記録内容を説明するための図である。基本検査数字記録部66の記録内容によれば、情報数字Xは「100,000000」、「200,000000」、「300,000000」〜「900,000000」、「000,000000」であり、基本検査数字(CDV1)はそれぞれ「9」、「8」、「7」〜「1」、「0」である。
FIG. 19 is a diagram for explaining the recorded contents of the basic check
派生検査数字導出部67は、基本検査数字記録部66に記録された基本検査数字(CDV1)から派生検査数字(CDV2)を導出する。派生検査数字(CDV2)の導出法は、図2を参照して説明したように、CDV1+4の末尾一桁を派生検査数字(CDV2)とする。派生検査数字記録部68は、派生検査数字導出部67の出力を記録する。
The derived test
図20は、トランスクリプションエラーの場合の、派生検査数字記録部68の記録内容を説明するための図である。派生検査数字記録部68の記録内容によれば、情報数字Xは「100,000000」、「200,000000」、「300,000000」〜「900,000000」、「000,000000」であり、派生検査数字(CDV1)はそれぞれ「3」、「2」、「1」〜「5」、「4」である。
FIG. 20 is a diagram for explaining the recorded contents of the derived check
CDV発生回数カウンタ72は、基本検査数字記録部66における基本検査数字(CDV1)の発生回数を数える。しかも、CDV発生回数カウンタ72は、基本検査数字記録部66および派生検査数字記録部68における検査数字(CDV1、CDV2)の発生回数を数える。
The CDV occurrence number counter 72 counts the number of occurrences of the basic test number (CDV1) in the basic test
CDV発生回数記録部74は、CDV発生回数カウンタ72による計数結果を記録する。図21は、基本検査数字記録部66における基本検査数字(CDV1)の発生回数を示す図である。図19を参照すれば明らかなように、基本検査数字(CDV1)の「0」、「1」、…、「9」はそれぞれ一回しか現れていない。
The CDV occurrence
また、図22は、検査数字(CDV1、CDV2)をあわせて示す図である。例えば、情報数字の最初の一桁が「1」である場合、基本検査数字(CDV1)は「9」である。この「9」という数字は、派生検査数字(CDV2)に一回現れる(情報数字の最初の一桁が「5」である場合)。よって、「9」という数字は二回現れる。 Moreover, FIG. 22 is a figure which shows together the test | inspection number (CDV1, CDV2). For example, when the first digit of the information number is “1”, the basic check number (CDV1) is “9”. This number “9” appears once in the derived check digit (CDV2) (when the first digit of the information digit is “5”). Thus, the number “9” appears twice.
図23は、基本検査数字記録部66および派生検査数字記録部68における検査数字(CDV1、CDV2)の発生回数を示す図である。検査数字(CDV1、CDV2)の「0」、「1」、…、「9」はそれぞれ二回現れる。
FIG. 23 is a diagram illustrating the number of occurrences of test numbers (CDV1, CDV2) in the basic test
エラー検出劣化数導出部82は、基本検査数字(CDV1)のみを使用した場合のエラー検出率を導出し、さらに、基本検査数字(CDV1)および派生検査数字(CDV2)を使用した場合のエラー検出率を検査数字ごとに導出する。なお、エラー検出率は、以下のようにして求める。
The error detection deterioration
(1)検査数字の発生回数が1回である場合
1(=100%)
(2)検査数字の発生回数が2回以上である場合
1−(発生回数)/(全パターン数)
これは、下記のような理由による。検査数字の発生回数が1回である場合は、情報数字と検査数字との関係が一意に定まるため、入力エラーを確実に検出できる。検査数字の発生回数が2回以上である場合は、情報数字と検査数字との関係が一意に定まるもののみ入力エラーを確実に検出できるとみる。
(1) When the number of inspection digits generated is 1 (= 100%)
(2) When the number of occurrences of inspection numbers is 2 or more 1- (Number of occurrences) / (Total number of patterns)
This is due to the following reasons. When the number of occurrences of the check digit is 1, since the relationship between the information number and the check digit is uniquely determined, an input error can be reliably detected. When the number of occurrences of the check digit is two or more, it is assumed that the input error can be reliably detected only for the case where the relationship between the information number and the check digit is uniquely determined.
なお、検査数字の発生回数は錯誤が生じ得る個数であるといえる。また、錯誤とは、入力者が意図する情報数字と実際に入力された情報数字とが異なることをいう。 In addition, it can be said that the number of occurrences of the inspection number is a number that can cause an error. The error means that the information number intended by the input person is different from the information number actually input.
基本検査数字(CDV1)の「0」、「1」、…、「9」はそれぞれ一回しか現れていないため、基本検査数字(CDV1)のみを使用した場合のエラー検出率=1である。 Since the basic check digit (CDV1) “0”, “1”,..., “9” appears only once, the error detection rate = 1 when only the basic check digit (CDV1) is used.
検査数字(CDV1、CDV2)の「0」、「1」、…、「9」はそれぞれ二回現れるため、基本検査数字(CDV1)および派生検査数字(CDV2)を使用した場合のエラー検出率=1−2/10=0.8である。例えば、図22を参照して、検査数字「9」については、情報数字の最初の一桁が「1」、「5」の場合は、情報数字と検査数字との関係が一意に定まらないので、入力エラーを確実に検出できない。情報数字の最初の一桁が「1」、「5」の場合以外(8通り)は、情報数字と検査数字との関係が一意に定まるので、入力エラーを確実に検出できる。よって、エラー検出率=8/10=0.8である。 Since “0”, “1”,..., “9” of the check numbers (CDV1, CDV2) appear twice, the error detection rate when the basic check number (CDV1) and the derived check number (CDV2) are used = It is 1-2 / 10 = 0.8. For example, referring to FIG. 22, for the check digit “9”, when the first digit of the information digit is “1” and “5”, the relationship between the information digit and the check digit is not uniquely determined. An input error cannot be detected reliably. Except when the first digit of the information number is “1” or “5” (eight ways), the relationship between the information number and the check number is uniquely determined, so that an input error can be reliably detected. Therefore, error detection rate = 8/10 = 0.8.
なお、検査数字に関するエラー検出率の、全ての検査数字についての平均を求めるようにしてもよい。例えば、上記の例では、検査数字「9」については、エラー検出率=8/10=0.8であり、他の検査数字「0」、…、「8」についても、エラー検出率=0.8である。よって、平均もまた0.8である。なお、ウェイトおよびαを変えれば、検査数字「0」、「2」、…、「8」(0および偶数)についてはエラー検出率=0.6、検査数字「1」、「3」、…、「9」(奇数)についてはエラー検出率=1ということも生じ得る。この場合、平均=(0.6×5+1×5)/10=0.8ということになる。 In addition, you may make it obtain | require the average about all the test | inspection numbers of the error detection rate regarding a test | inspection number. For example, in the above example, the error detection rate = 8/10 = 0.8 for the check digit “9”, and the error detection rate = 0 for the other check digits “0”,. .8. Thus, the average is also 0.8. If the weight and α are changed, error check rate = 0.6, check numbers “1”, “3”,... For check numbers “0”, “2”,. , “9” (odd number) may have an error detection rate = 1. In this case, average = (0.6 × 5 + 1 × 5) /10=0.8.
また、全ての桁についての平均を求めるようにしてもよい。1,3,5,7,9桁目について平均=0.8であり、2,4,6,8桁目について平均=0.6である場合、平均=(0.8×5+0.6×4)/9=0.71ということになる。 Moreover, you may make it obtain | require the average about all the digits. Average = 0.8 for the first, third, fifth, seventh, and ninth digits, and average = 0.6 for the second, fourth, sixth, and eighth digits, average = (0.8 x 5 + 0.6 x 4) / 9 = 0.71 It turns out that.
次に、第二の実施形態の動作を説明する。 Next, the operation of the second embodiment will be described.
まず、エラー種類決定部10がエラー種類を決定する(図17参照)。エラー種類は、情報数字生成部62に与えられる。
First, the error
情報数字生成部62は情報数字Xを生成する(図18参照)。また、全パターン数カウンタ12は、情報数字Xの全パターン数を数える。
The information
基本検査数字導出部64は、情報数字Xに基づき、基本検査数字(CDV1)を導出する(図1参照)。基本検査数字(CDV1)は、情報数字Xに対応づけられて、基本検査数字記録部66に記録される(図19参照)。
The basic check
派生検査数字導出部67は、基本検査数字記録部66に記録された基本検査数字(CDV1)から派生検査数字(CDV2)を導出する(図2参照)。派生検査数字(CDV2)は、情報数字Xに対応づけられて、派生検査数字記録部68に記録される(図20参照)。
The derived test
CDV発生回数カウンタ72は、基本検査数字記録部66における基本検査数字(CDV1)の発生回数を数える。しかも、CDV発生回数カウンタ72は、基本検査数字記録部66および派生検査数字記録部68における検査数字(CDV1、CDV2)の発生回数を数える。計数結果は、CDV発生回数記録部74に記録される。CDV発生回数記録部74に記録された計数結果に基づき、エラー検出劣化数導出部82がエラー検出率を導出する。
The CDV occurrence number counter 72 counts the number of occurrences of the basic test number (CDV1) in the basic test
第二の実施形態によれば、基本検査数字(CDV1)と派生検査数字(CDV2)とを併用した場合のエラー検出率を導出することができる。 According to the second embodiment, it is possible to derive the error detection rate when the basic check digit (CDV1) and the derived check digit (CDV2) are used in combination.
以上、第一および第二の実施形態として、チェックデジット決定法を採用する際の前提となるエラー検出劣化数導出装置1、2を説明した。これより、好ましいチェックデジット決定法について説明し、さらに好ましいチェックデジット決定法を適用した口座番号付与装置3(図25参照)および口座番号検査装置4(図27参照)を説明する。
As described above, the error detection deterioration
ここで、CDV1+αの末尾一桁をCDV2とするようにして(α=1〜9までの整数)、αの各々の値に応じたCDV2、CDV2’を求めるようにしてもよいので、αの各々の値に応じたエラー検出劣化率を求めることもできる。これにより、エラー検出劣化率が低いαを決定することができる。 Here, the last digit of CDV1 + α is set to CDV2 (α is an integer from 1 to 9), and CDV2 and CDV2 ′ corresponding to each value of α may be obtained. It is also possible to obtain the error detection deterioration rate according to the value of. Thereby, α having a low error detection deterioration rate can be determined.
実際に、CDV1、CDV1’の求め方としてモジュラス10(DSR方式)を採用し、ウェイトを様々に変えて、本発明の実施形態にかかるエラー検出劣化数導出装置1により、エラー検出劣化率を求めてみたところ、任意の情報数字につき、αが5以外の奇数(1,3,7,9)であれば、それ以外の場合に比べて相対的にエラー検出劣化率が低い(あるいは同じ)ということがわかった。詳しくは、表1に記載の通りである。
Actually, the modulus 10 (DSR method) is adopted as a method for obtaining CDV1 and CDV1 ′, the weight is changed in various ways, and the error detection deterioration
なお、図29にウェイトが全ての桁について偶数または奇数の場合の一例を示す。図30にウェイトが奇数桁について偶数(奇数)、偶数桁について奇数(偶数)の場合の一例を示す。図31にウェイトが最初の桁から0、偶数、0、奇数あるいは0、奇数、0、偶数の繰り返しである場合の一例を示す。図32にウェイトが最初の桁から偶数、0、奇数、0あるいは奇数、0、偶数、0の繰り返しである場合の一例を示す。
FIG. 29 shows an example in which the weight is even or odd for all digits. FIG. 30 shows an example in which the weight is even (odd) for odd digits and odd (even) for even digits. FIG. 31 shows an example in which the weight is 0, even, 0, odd or 0, odd, 0, even from the first digit. FIG. 32 shows an example where the weight is repeated even, 0, odd, 0 or odd, 0, even, 0 from the first digit.
図24に、口座番号の入力に使用されるキーの配置を示す。パーソナルコンピュータ等に使用されるテンキーの配列を想定している。なお、正方形の各キーの一辺の長さを1とする。 FIG. 24 shows the arrangement of keys used for inputting account numbers. An arrangement of numeric keys used for a personal computer or the like is assumed. Note that the length of one side of each square key is 1.
本発明の実施形態においては検査数字(チェックデジット)の入力エラーは無いことが前提となっている。そこで、CDV1+αの末尾一桁をCDV2とした場合、CDV1のキーとCDV2のキーとがある程度離れていることが好ましい。CDV1のキーとCDV2のキーとの距離が近いと、CDV1(CDV2)のキーを打つつもりで、CDV2(CDV1)のキーを打ってしまうことが起きやすいからである。検査数字のミスについては担保しないので、物理的な距離により担保するということである。 In the embodiment of the present invention, it is assumed that there is no input error of a check digit (check digit). Therefore, when the last digit of CDV1 + α is CDV2, it is preferable that the CDV1 key and the CDV2 key are separated to some extent. This is because, if the distance between the CDV1 key and the CDV2 key is short, it is easy to hit the CDV2 (CDV1) key with the intention of hitting the CDV1 (CDV2) key. Since there is no security for mistakes in inspection numbers, it is guaranteed by physical distance.
このことをふまえてαを定めると、表2に記載のようにαが定まる。すなわち、CDV1に応じて、αを変更することが好ましい。CDV1が「1」の場合、αの候補(1,3,7,9)の内、α=7であれば、最もCDV2「8」のキーと、CDV1「1」のキーとが離れることになる。一方、CDV1が「3」の場合、αの候補(1,3,7,9)の内、α=1であれば、最もCDV2「4」のキーと、CDV1「3」のキーとが離れることになる。このように、キー間の距離が最大になるようにαを決めるとよい。なお、キー間の距離は、キーの図心間の距離である。キーの図心は、キーが正方形または長方形であれば、対角線の交点となる。 Based on this, α is determined as shown in Table 2. That is, α is preferably changed according to CDV1. When CDV1 is “1”, among α candidates (1, 3, 7, 9), if α = 7, the key of CDV2 “8” is farthest from the key of CDV1 “1”. Become. On the other hand, when CDV1 is “3”, among α candidates (1, 3, 7, 9), when α = 1, the key of CDV2 “4” is farthest from the key of CDV1 “3”. It will be. Thus, α should be determined so that the distance between the keys is maximized. The distance between the keys is the distance between the centroids of the keys. The centroid of the key is the intersection of diagonal lines if the key is square or rectangular.
なお、上記(表2参照)のように定めた基本検査数字(CDV1)と派生検査数字(CDV2)とを併用した口座番号を利用する装置の構成を示す。
In addition, the structure of the apparatus using the account number which used the basic inspection number (CDV1) and the derived inspection number (CDV2) determined as described above (see Table 2) is shown.
図25は、口座番号付与装置(番号生成装置)3の構成を示す機能ブロック図である。口座番号付与装置2は、同じ口座番号の情報部分に、基本検査数字(CDV1)を付与した第一組織数字と、派生検査数字(CDV2)を付与した第二組織数字とを生成するものである。
FIG. 25 is a functional block diagram showing the configuration of the account number assigning device (number generating device) 3. The account
口座番号付与装置3は、情報数字生成部62、基本検査数字導出部64、基本検査数字記録部66、派生検査数字導出部67、派生検査数字記録部68、第一組織数字生成部162、第二組織数字生成部164、口座情報記録部166を備える。
The account
情報数字生成部62、基本検査数字導出部64、基本検査数字記録部66、派生検査数字導出部67、派生検査数字記録部68は先に説明したエラー検出劣化数導出装置2と同様なので、説明を省略する。ただし、情報数字生成部62には、特にエラーを発生させる桁を決めて与えることは無い。
Since the information
第一組織数字生成部162は、情報数字生成部62が生成した(真正な)情報数字Xの末尾に、基本検査数字記録部66に記録された第一基本検査数字(CDV1)を付加して、第一組織数字を生成する。
The first organization
第二組織数字生成部164は、情報数字生成部62が生成した(真正な)情報数字Xの末尾に、派生検査数字記録部68に記録された第一派生検査数字(CDV2)を付加して、第二組織数字を生成する。
The second organization
口座情報記録部166は、第一組織数字および第二組織数字と、顧客情報(氏名など)とを対応づけて記録する。口座情報記録部166の記録内容を図26に示す。(真正な)情報数字Xが「100,000000」であるとする。第一基本検査数字(CDV1)は「9」、第一派生検査数字(CDV2)は「3」である。すると、図26(a)に示すように、第一組織数字は「100,000000,9」、図26(b)に示すように、第二組織数字は「100,000000,3」となる。第一組織数字に口座名義人P様を対応づけ、第二組織数字に口座名義人Q様を対応づけて口座情報記録部166に記録しておく。
The account
口座番号付与装置3の動作を説明する。
The operation of the account
まず、情報数字生成部62が(真正な)情報数字X(例えば、「100,000000」)を生成する。基本検査数字導出部64により第一基本検査数字(CDV1)「9」が求められ、基本検査数字記録部66に記録される。派生検査数字導出部67により第一派生検査数字(CDV2)「3」が求められ、派生検査数字記録部68に記録される。
First, the information
第一組織数字生成部162は、(真正な)情報数字Xの末尾に、第一基本検査数字(CDV1)「9」を付加して第一組織数字「100,000000,9」を生成する。第二組織数字生成部164は、(真正な)情報数字Xの末尾に、第一派生検査数字(CDV2)「3」を付加して第二組織数字は「100,000000,3」を生成する。
The first organization
口座情報記録部166は、第一組織数字「100,000000,9」に口座名義人P様を対応づけ、第二組織数字は「100,000000,3」に口座名義人Q様を対応づけて記録する。
The account
図27は、口座番号検査装置(番号検査装置)4の構成を示す機能ブロック図である。口座番号付与装置4は、第一組織数字および第二組織数字が正確に入力されたか否かを検査するためのものである。
FIG. 27 is a functional block diagram showing the configuration of the account number inspection device (number inspection device) 4. The account
ATM(入力機器)6には、図24に示すような配置のキーが設けられている。ATM6を利用する顧客は、ATM6に設けられたキー(図24参照)により口座番号(第一組織数字あるいは第二組織数字である)を入力する。入力された口座番号はネットワーク7を介して口座番号検査装置4に与えられる。
The ATM (input device) 6 is provided with keys arranged as shown in FIG. A customer who uses the
口座番号検査装置4は、検査数字分離部172、入力番号検査部174、基本検査数字導出部64、基本検査数字記録部66、派生検査数字導出部67、派生検査数字記録部68を備える。
The account
基本検査数字導出部64、基本検査数字記録部66、派生検査数字導出部67、派生検査数字記録部68は先に説明したエラー検出劣化数導出装置2と同様なので、説明を省略する。
Since the basic check
検査数字分離部172は、入力された口座番号から末尾一桁を分離して検査数字を得る。残りは、情報数字である。基本検査数字導出部64は、検査数字分離部172から情報数字を与えられ、第一基本検査数字(CDV1)を導出する。
The
入力番号検査部174は、検査数字分離部172から検査数字を得る。また、基本検査数字記録部66から第一基本検査数字(CDV1)を、派生検査数字記録部68から第一派生検査数字(CDV2)を得る。そして、検査数字が、第一基本検査数字(CDV1)あるいは第一派生検査数字(CDV2)と等しいならば、正当な入力であると判定する。検査数字が、第一基本検査数字(CDV1)および第一派生検査数字(CDV2)のいずれにも等しくないならば、誤った入力であると判定する。
The input
口座番号検査装置4の動作を図28を参照して説明する。
The operation of the account
ATM6により、口座番号(例えば、第一組織数字「100,000000,9」)と入力すべきところ、誤って「200,000000,9」と入力したとする。誤入力「200,000000,9」は、ネットワーク7を介して、検査数字分離部172に与えられる。検査数字分離部172は末尾一桁「9」を検査数字として、入力番号検査部174に与える。末尾一桁を除いた残り「200,000000」を基本検査数字導出部64に与える。
It is assumed that an account number (for example, the first organization number “100,000,000,9”) is to be input by
基本検査数字導出部64により第一基本検査数字(CDV1)「8」が求められ、基本検査数字記録部66に記録される。派生検査数字導出部67により第一派生検査数字(CDV2)「2」が求められ、派生検査数字記録部68に記録される。
The first basic test number (CDV1) “8” is obtained by the basic test
入力番号検査部174は、検査数字「9」を、第一基本検査数字(CDV1)「8」および第一派生検査数字(CDV2)「2」と比較して、いずれにも合致しないので、入力エラーであると判定する。
The input
なお、上記の口座番号付与装置3および口座番号検査装置4は、以下のようにして実現できる。CPU、ハードディスク、メディア(フロッピー(登録商標)ディスク、CD−ROMなど)読み取り装置を備えたコンピュータのメディア読み取り装置に、上記の各部分を実現するプログラムを記録したメディアを読み取らせて、ハードディスクにインストールする。このような方法でも、口座番号付与装置3および口座番号検査装置4を実現できる。
In addition, said account
ウェイトが左の桁から順に「8,5,2,4,1,3,4,3,8」であるとする。これは、ウェイトのパターンが乱数である場合の一例である。このような場合に、α=2としたときのエラー検出率およびα=7としたときのエラー検出率を示す。
(1)α=2としたときのエラー検出率
図33に、α=2としたときの各桁および各検査数字におけるトランスクリプションエラーの検出率を示す。図33の読み方を例示すると、左から一桁目において、検査数字「0」におけるエラー検出率は0.6であるとうことである。各桁および各検査数字におけるエラー検出率の平均をとると、0.8となる。
Assume that the weights are “8, 5, 2, 4, 1, 3, 4, 3, 8” in order from the left digit. This is an example when the weight pattern is a random number. In such a case, the error detection rate when α = 2 and the error detection rate when α = 7 are shown.
(1) Error detection rate when α = 2 FIG. 33 shows the detection rate of transcription error in each digit and each check digit when α = 2. To illustrate how to read FIG. 33, in the first digit from the left, the error detection rate for the check digit “0” is 0.6. The average error detection rate for each digit and each check digit is 0.8.
図34に、α=2としたときの各桁におけるトランスポジションエラーの検出劣化率を示す。図34の読み方を例示すると、左から一桁目および二桁目において、トランスポジションエラーが発生したときのエラー検出劣化率は10/90(第一エラー検出劣化個数/全パターン数)であるとうことである。平均をとると、90/720=0.125となる。すなわち、(10+10+20+10+20+10+10+0)/(90×8)である。よって、エラー検出率=1−エラー検出劣化率=0.875となる。 FIG. 34 shows the transposition error detection deterioration rate in each digit when α = 2. 34, the error detection deterioration rate when a transposition error occurs in the first and second digits from the left is 10/90 (the number of first error detection deterioration / the number of all patterns). That is. Taking the average, 90/720 = 0.125. That is, (10 + 10 + 20 + 10 + 20 + 10 + 10 + 0) / (90 × 8). Therefore, error detection rate = 1−error detection deterioration rate = 0.875.
図35に、α=2としたときの各桁におけるダブルトランスポジションエラーの検出劣化率を示す。図35の読み方を例示すると、左から一桁目および三桁目において、トランスポジションエラーが発生したときのエラー検出劣化率は20/90(第一エラー検出劣化個数/全パターン数)であるとうことである。平均をとると、80/630=0.127となる。よって、エラー検出率=1−エラー検出劣化率=0.873となる。
(2)α=7としたときのエラー検出率
図36に、α=7としたときの各桁および各検査数字におけるトランスクリプションエラーの検出率を示す。図33の読み方を例示すると、左から一桁目において、検査数字「0」におけるエラー検出率は0.8であるとうことである。各桁および各検査数字におけるエラー検出率の平均をとると、0.8となる。
FIG. 35 shows the detection deterioration rate of the double transposition error in each digit when α = 2. 35, the error detection deterioration rate when a transposition error occurs is 20/90 (first error detection deterioration number / total pattern number) in the first and third digits from the left. That is. Taking the average, 80/630 = 0.127. Therefore, error detection rate = 1−error detection deterioration rate = 0.873.
(2) Error detection rate when α = 7 FIG. 36 shows the detection rate of transcription error in each digit and each check digit when α = 7. To illustrate how to read FIG. 33, in the first digit from the left, the error detection rate for the check digit “0” is 0.8. The average error detection rate for each digit and each check digit is 0.8.
図37に、α=7としたときの各桁におけるトランスポジションエラーの検出劣化率を示す。図34の読み方を例示すると、左から一桁目および二桁目において、トランスポジションエラーが発生したときのエラー検出劣化率は10/90(第一エラー検出劣化個数/全パターン数)であるとうことである。平均をとると、50/720=0.0694となる。よって、エラー検出率=1−エラー検出劣化率=0.9306となる。 FIG. 37 shows the transposition error detection deterioration rate in each digit when α = 7. 34, the error detection deterioration rate when a transposition error occurs in the first and second digits from the left is 10/90 (the number of first error detection deterioration / the number of all patterns). That is. Taking the average, 50/720 = 0.0694. Therefore, error detection rate = 1−error detection deterioration rate = 0.9306.
図38に、α=7としたときの各桁におけるダブルトランスポジションエラーの検出劣化率を示す。図35の読み方を例示すると、左から一桁目および三桁目において、トランスポジションエラーが発生したときのエラー検出劣化率は0/90(第一エラー検出劣化個数/全パターン数)であるとうことである。平均をとると、40/630=0.0635となる。よって、エラー検出率=1−エラー検出劣化率=0.9365となる。 FIG. 38 shows the detection deterioration rate of the double transposition error in each digit when α = 7. 35, the error detection deterioration rate when a transposition error occurs is 0/90 (first error detection deterioration number / total pattern number) in the first and third digits from the left. That is. Taking the average, 40/630 = 0.0635. Therefore, error detection rate = 1−error detection deterioration rate = 0.9365.
(1)および(2)の結果を比較すると、トランスクリプションエラーの検出率はα=2でもα=7でも変わらない。しかし、トランスポジションエラーの検出率およびダブルトランスポジションエラーの検出率は、α=2の場合よりもα=7の場合の方が高い。よって、αが奇数(例えば、7)の方が、αが偶数(例えば、2)の方よりもエラー検出率が高いことがわかる。 Comparing the results of (1) and (2), the detection rate of the transcription error does not change even when α = 2 or α = 7. However, the transposition error detection rate and the double transposition error detection rate are higher when α = 7 than when α = 2. Therefore, it can be seen that an error detection rate is higher when α is an odd number (for example, 7) than when α is an even number (for example, 2).
X (真正な)情報数字
Xerr エラー情報数字
CDV1 第一基本検査数字
CDV2 第一派生検査数字
CDV1’ 第二基本検査数字
CDV2’ 第二派生検査数字
1 エラー検出劣化数導出装置
10 エラー種類決定部
12 全パターン数カウンタ
22 真正情報数字生成部
24 第一基本検査数字導出部
27 第一派生検査数字導出部
32 エラー情報数字生成部
34 第二基本検査数字導出部
37 第二派生検査数字導出部
44 第一エラー検出劣化個数カウンタ(第一エラー検出劣化個数計数手段)
46 第二エラー検出劣化個数カウンタ(第二エラー検出劣化個数計数手段)
50 統計処理装置
52 基本エラー発見数算出部
56 エラー検出劣化率算出部
62 情報数字生成部
64 基本検査数字導出部
66 基本検査数字記録部
68 派生検査数字導出部
72 CDV発生回数カウンタ
74 CDV発生回数記録部
82 エラー検出率導出部
3 口座番号付与装置(番号生成装置)
162 第一組織数字生成部
164 第二組織数字生成部
166 口座情報記録部
4 口座番号検査装置(番号検査装置)
172 検査数字分離部
174 入力番号検査部
X (genuine) information number
Xerr error information number CDV1 first basic inspection number CDV2 first derived inspection number CDV1 'second basic inspection number CDV2' second derived
46 Second error detection deterioration number counter (second error detection deterioration number counting means)
DESCRIPTION OF
162 First Organization
172 Inspection
Claims (15)
前記情報数字に基づき基本検査数字を導出する基本検査数字導出手段と、
前記情報数字に基づき、前記基本検査数字とは異なる派生検査数字を導出する派生検査数字導出手段と、
前記検査数字が、前記基本検査数字および前記派生検査数字のいずれかに等しいか否かを検査する番号検査手段と、
を備え、
前記派生検査数字導出手段は、前記基本検査数字に、前記基本検査数字に応じて変動する所定の値を加えて、前記派生検査数字を導出する、
番号検査装置。 Inspection number separating means for separating the number including the inspection number into the inspection number and the information number;
Basic test number deriving means for deriving a basic test number based on the information numbers;
Derived test number derivation means for deriving a derived test number different from the basic check number based on the information number;
Number inspection means for inspecting whether the inspection number is equal to either the basic inspection number or the derived inspection number;
With
The derived test digit deriving means derives the derived test digit by adding a predetermined value that varies according to the basic test digit to the basic test digit.
Number inspection device.
前記基本検査数字導出手段は、前記任意の情報数字の各桁の数値に、所定の重み付け係数を乗じた値の総和を10で割ったときの余りに基づき前記基本検査数字を決定し、
前記任意の情報数字は10進数である、
番号検査装置。 The number inspection device according to claim 1 ,
The basic check digit deriving means determines the basic check digit based on a remainder when a sum of values obtained by multiplying a numerical value of each digit of the arbitrary information digit by a predetermined weighting factor is divided by 10;
The arbitrary information number is a decimal number.
Number inspection device.
前記所定の重み付け係数が全ての桁について同じ偶数である場合に、前記所定の値を奇数とする、
番号検査装置。 The number inspection device according to claim 2 ,
If the predetermined weighting factor is the same even number for all digits, the predetermined value is an odd number;
Number inspection device.
前記所定の重み付け係数が全ての桁について同じ奇数である場合に、前記所定の値を奇数とする、
番号検査装置。 The number inspection device according to claim 2 ,
If the predetermined weighting factor is the same odd number for all digits, the predetermined value is an odd number;
Number inspection device.
前記所定の重み付け係数が奇数桁については偶数、偶数桁については奇数である場合に、前記所定の値を5を除く奇数とする、
番号検査装置。 The number inspection device according to claim 2 ,
When the predetermined weighting factor is even for odd digits and odd for even digits, the predetermined value is an odd number excluding 5,
Number inspection device.
前記所定の重み付け係数が奇数桁については奇数、偶数桁については偶数である場合に、前記所定の値を5を除く奇数とする、
番号検査装置。 The number inspection device according to claim 2 ,
When the predetermined weighting factor is odd for odd digits and even for even digits, the predetermined value is an odd number excluding 5,
Number inspection device.
前記所定の重み付け係数が最初の桁から、0、偶数、0、奇数の繰り返しである場合に、前記所定の値を5を除く奇数とする、
番号検査装置。 The number inspection device according to claim 2 ,
When the predetermined weighting coefficient is repetition of 0, even number, 0, odd number from the first digit, the predetermined value is an odd number excluding 5;
Number inspection device.
前記所定の重み付け係数が最初の桁から、0、奇数、0、偶数の繰り返しである場合に、前記所定の値を奇数とする、
番号検査装置。 The number inspection device according to claim 2 ,
When the predetermined weighting coefficient is a repetition of 0, odd, 0, even from the first digit, the predetermined value is an odd number.
Number inspection device.
前記所定の重み付け係数が最初の桁から、偶数、0、奇数、0の繰り返しである場合に、前記所定の値を奇数とする、
番号検査装置。 The number inspection device according to claim 2 ,
When the predetermined weighting coefficient is repetition of an even number, 0, odd number, and 0 from the first digit, the predetermined value is an odd number.
Number inspection device.
前記所定の重み付け係数が最初の桁から、奇数、0、偶数、0の繰り返しである場合に、前記所定の値を5を除く奇数とする、
番号検査装置。 The number inspection device according to claim 2 ,
When the predetermined weighting coefficient is an odd number, 0, even number, 0 repetition from the first digit, the predetermined value is an odd number excluding 5,
Number inspection device.
前記所定の重み付け係数が請求項3ないし10のいずれにも該当しない場合に、前記所定の値を奇数とする、
番号検査装置。 The number inspection device according to claim 2 ,
When the predetermined weighting coefficient does not correspond to any of claims 3 to 10 , the predetermined value is an odd number.
Number inspection device.
前記所定の値を、前記情報数字を入力するための入力機器における各数字の入力用キーどうしの距離に基づき決定する、
番号検査装置。 The number inspection device according to any one of claims 1 to 11 ,
The predetermined value is determined based on a distance between input keys for each number in an input device for inputting the information number.
Number inspection device.
基本検査数字導出手段が、前記情報数字に基づき基本検査数字を導出する基本検査数字導出工程と、
派生検査数字導出手段が、前記情報数字に基づき、前記基本検査数字とは異なる派生検査数字を導出する派生検査数字導出工程と、
番号検査手段が、前記検査数字が、前記基本検査数字および前記派生検査数字のいずれかに等しいか否かを検査する番号検査工程と、
を備え、
前記派生検査数字導出工程は、前記基本検査数字に、前記基本検査数字に応じて変動する所定の値を加えて、前記派生検査数字を導出する、
番号検査方法。 A test digit separating step, wherein the test digit separating means separates the number including the test digit into the test digit and the information digit;
A basic inspection number deriving means for deriving a basic inspection number based on the information number;
Derived test number derivation means for deriving a derived test number different from the basic test number based on the information number,
A number inspection step for inspecting whether or not the inspection number is equal to either the basic inspection number or the derived inspection number;
With
The derived check digit deriving step adds a predetermined value that varies according to the basic check digit to the basic check digit to derive the derived check digit.
Number inspection method.
前記情報数字に基づき基本検査数字を導出する基本検査数字導出処理と、
前記情報数字に基づき、前記基本検査数字とは異なる派生検査数字を導出する派生検査数字導出処理と、
前記検査数字が、前記基本検査数字および前記派生検査数字のいずれかに等しいか否かを検査する番号検査処理と、
をコンピュータに実行させるためのプログラムであって、
前記派生検査数字導出処理は、前記基本検査数字に、前記基本検査数字に応じて変動する所定の値を加えて、前記派生検査数字を導出する、
プログラム。 Inspection number separation processing for separating the number including the inspection number into the inspection number and the information number;
A basic inspection number derivation process for deriving a basic inspection number based on the information number;
Derived test number derivation processing for deriving a derived test number different from the basic check number based on the information number;
A number inspection process for inspecting whether the inspection number is equal to either the basic inspection number or the derived inspection number;
A program for causing a computer to execute
The derivation check digit derivation process derives the derivation check digit by adding a predetermined value that varies according to the basic check digit to the basic check digit.
program.
前記情報数字に基づき基本検査数字を導出する基本検査数字導出処理と、
前記情報数字に基づき、前記基本検査数字とは異なる派生検査数字を導出する派生検査数字導出処理と、
前記検査数字が、前記基本検査数字および前記派生検査数字のいずれかに等しいか否かを検査する番号検査処理と、
をコンピュータに実行させるためのプログラムを記録したコンピュータによって読み取り可能な記録媒体であって、
前記派生検査数字導出処理は、前記基本検査数字に、前記基本検査数字に応じて変動する所定の値を加えて、前記派生検査数字を導出する、
記録媒体。 Inspection number separation processing for separating the number including the inspection number into the inspection number and the information number;
A basic inspection number derivation process for deriving a basic inspection number based on the information number;
Derived test number derivation processing for deriving a derived test number different from the basic check number based on the information number;
A number inspection process for inspecting whether the inspection number is equal to either the basic inspection number or the derived inspection number;
A computer-readable recording medium storing a program for causing a computer to execute
The derivation check digit derivation process derives the derivation check digit by adding a predetermined value that varies according to the basic check digit to the basic check digit.
recoding media.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004237694A JP3905901B2 (en) | 2004-08-17 | 2004-08-17 | Number generating apparatus, number inspection apparatus, method, program, and recording medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004237694A JP3905901B2 (en) | 2004-08-17 | 2004-08-17 | Number generating apparatus, number inspection apparatus, method, program, and recording medium |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006331741A Division JP4069143B2 (en) | 2006-12-08 | 2006-12-08 | Number generating apparatus, number inspection apparatus, method, program, and recording medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006059401A JP2006059401A (en) | 2006-03-02 |
| JP3905901B2 true JP3905901B2 (en) | 2007-04-18 |
Family
ID=36106759
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2004237694A Expired - Fee Related JP3905901B2 (en) | 2004-08-17 | 2004-08-17 | Number generating apparatus, number inspection apparatus, method, program, and recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3905901B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012137217A1 (en) * | 2011-04-07 | 2012-10-11 | Infosys Limited | System and method for generating an account number automatically |
| JP6064385B2 (en) * | 2012-06-25 | 2017-01-25 | 沖電気工業株式会社 | Trading device |
-
2004
- 2004-08-17 JP JP2004237694A patent/JP3905901B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2006059401A (en) | 2006-03-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8838549B2 (en) | Detecting duplicate records | |
| US7672833B2 (en) | Method and apparatus for automatic entity disambiguation | |
| CN104169909B (en) | Context resolution device and context resolution method | |
| KR100911762B1 (en) | Address standardization system and method | |
| US20060173924A1 (en) | Calculating the quality of a data record | |
| JP3905901B2 (en) | Number generating apparatus, number inspection apparatus, method, program, and recording medium | |
| US7894360B2 (en) | Trouble-factor detecting device, trouble-factor detecting method, and computer product | |
| Mistry et al. | Document understanding for healthcare referrals | |
| JP4069143B2 (en) | Number generating apparatus, number inspection apparatus, method, program, and recording medium | |
| JP7592414B2 (en) | Named entity classification device and named entity classification method | |
| JP4069144B2 (en) | Error detection rate deriving device, method, program, and recording medium | |
| JP3905902B2 (en) | Error detection deterioration number deriving device, method, program, and recording medium | |
| JP2012181605A (en) | Data analysis support device and program | |
| US20240303726A1 (en) | An apparatus, method and computer program product for identifying a validation check for a set of numbers | |
| TW497048B (en) | Information processing system | |
| CN109829769B (en) | Method and system for electronic invoice checking | |
| Goyal | Duplicate record identification in bibliographic databases | |
| Siddharth | Error detection in numeric codes | |
| CN101882148B (en) | Method and system thereof for automatically identifying Uyghur in web page | |
| JP2010211256A (en) | Formal name determination system and program | |
| US20220253529A1 (en) | Information processing apparatus, information processing method, and computer readable medium | |
| JP5384060B2 (en) | Insider verification device, insider verification method and program thereof | |
| Kaspříková | The Data Analysis of Library Services in Regions of the Czech Republic: Library Services in Regions of the Czech Republic | |
| JPH11352985A (en) | Voice recognition device | |
| KR101425392B1 (en) | Method and Apparatus for providing bill counting history information |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20061101 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061208 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20070104 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070112 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130119 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20180119 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |