JPS6180424A - Data input method of electronic computer - Google Patents

Data input method of electronic computer

Info

Publication number
JPS6180424A
JPS6180424A JP59203501A JP20350184A JPS6180424A JP S6180424 A JPS6180424 A JP S6180424A JP 59203501 A JP59203501 A JP 59203501A JP 20350184 A JP20350184 A JP 20350184A JP S6180424 A JPS6180424 A JP S6180424A
Authority
JP
Japan
Prior art keywords
key code
data
input
key
code
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
JP59203501A
Other languages
Japanese (ja)
Inventor
Satoru Kato
悟 加藤
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP59203501A priority Critical patent/JPS6180424A/en
Publication of JPS6180424A publication Critical patent/JPS6180424A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To reduce greatly the collating time by collating a key code with another key code of 1/2 position of registered data and reducing by half the collation record position for each time according to the result of collation of said two key codes. CONSTITUTION:When data are supplied from an input device, the key code of these data is collated with another key code of 1/2 position of all key codes stored in a memory in a regular order. Then the key code of the input data is collated with the 1/2 remaining stored record to which the input key code is possibly belonging in accordance with the result of collation of said two key codes. Such collations are repeated to reduce by half the subject range for each collation. In such a way, the collating time is greatly reduced compared with a conventional case.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、電子計算機によるデータ処理に際し、主記
憶装置の記憶容量の無駄を減少し、かつデータの処理速
度の向上を図った電子計算機のデータ入力方法に関する
ものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides an electronic computer which reduces wasteful storage capacity of a main storage device and improves data processing speed when processing data by an electronic computer. This relates to data input methods.

〔従来の技術〕[Conventional technology]

第5図は従来の電子計算機の構成を示すブロック図であ
る0図において、1は中央処理装置(CPU)11と、
書き替え可能な主メモリ12等を内蔵する電子計算機、
2は磁気ディスク、フロッピーディスク等の補助メモリ
、3はキーボード等のデータの入力装置、4は表示装置
等の陰極線管(CRT)である。
FIG. 5 is a block diagram showing the configuration of a conventional electronic computer. In FIG. 0, 1 is a central processing unit (CPU) 11;
An electronic computer with a built-in rewritable main memory 12, etc.
2 is an auxiliary memory such as a magnetic disk or a floppy disk; 3 is a data input device such as a keyboard; and 4 is a cathode ray tube (CRT) such as a display device.

上記第5図に示す様な電子計算機を用いて1例えば部品
の在庫管理を行う場合に、第6図に示す様に1部品ごと
に付けられた部品区分を示す部品番号1〜n、その部品
の名称M、〜Mn 、その部品の在庫数2.〜Znを一
つのレコードとし1部品番号1〜nのソート順に1〜n
のレコードの部品台帳として補助メモリ2に記録し1台
帳の書き替えに際しては、n個のレコードより成るデー
タファイルを電子計算機1の主メモリ12に転送して、
下記の様な操作を行っていた。
For example, when managing the inventory of parts using a computer as shown in Fig. 5 above, part numbers 1 to n indicating the parts classification assigned to each part as shown in Fig. 6, and the parts Name of M, ~Mn, number of parts in stock2. ~Zn is considered as one record, and 1 part number is 1 to n in the sort order of 1 to n.
When rewriting one ledger, a data file consisting of n records is transferred to the main memory 12 of the computer 1,
The following operations were performed.

まず、新規部品の登録時には、台帳メンテナンスプログ
ラムにより、n+1番目のレコードに新規部品の部品番
号1部品名称2部品在庫数を入力し、その後、部品番号
順にレコードをソートし。
First, when registering a new part, the ledger maintenance program inputs the part number, part name, and part inventory quantity of the new part into the (n+1)th record, and then sorts the records in order of part number.

補助メモリ2のファイルに書キ替よる。The file in auxiliary memory 2 is rewritten.

また、既登録部品の仕入れ、払い出しの場合には、第7
図に示す様に、仕入れ、払い出しの入力プログラムによ
り、仕入れ、払い出し伝票を1性別に部品番号に対応し
て、仕入れ(ト)又は払い出し→数及び日付けを入力し
、「仕入れ、払い出しデータファイル」として補助メモ
リ2に記憶する。
In addition, in the case of purchasing and dispensing registered parts, the 7th
As shown in the figure, using the input program for purchasing and dispensing, input the purchase and dispensing slips for one gender and the number and date of the purchase or dispensing, corresponding to the part number, and then create the "Purchasing and Dispatch Data File" ” is stored in the auxiliary memory 2.

また、仕入れ、払い出しデータの入力に際しては、その
部品が部品台帳に登録されているかどうかを確認するた
め、部品台帳に登録されている部品番号を主メモリ12
に転送して記憶させ、入力された仕入れ、又は払い出し
伝票の部品番号と1〜n番の台帳部品番号を順次に比較
して、既登録の場合には入力を受は入れ、台帳に登録さ
れていない時にはCBr4に未登録であることを表示し
て。
In addition, when inputting purchasing and dispensing data, in order to check whether the part is registered in the parts ledger, the part number registered in the parts ledger is stored in the main memory 12.
The part number of the input purchase or disbursement slip is compared with the ledger part numbers 1 to n in sequence, and if the part number is already registered, the input is accepted and the part number is registered in the ledger. When it is not registered, it is displayed on CBr4 that it is not registered.

台帳メンテナンスプログラムを起動して台帳に登録する
様に指示をする。
Start the ledger maintenance program and instruct it to register in the ledger.

また、仕入れ、払い出しの集計及び台帳の在庫量変更の
時には、台帳ファイルを補助メモリ2から主メモリ12
に転送後に、補助メモリ2の[仕入れ、払い出しファイ
ル」から仕入れ、払い出しデータを1件づつ読み込み、
仕入れ、払い出しデータと部品番号と、0件の台帳の部
品番号をl−nまで順次に照合し1部品番号が合致した
時には、台帳の在庫数を仕入れ又は払い出し個数にしだ
がつて増減すると共に、部品番号別の仕入れ、払い出し
個数集計ファイルを作成し、CRT4に表示したり、プ
リンタ装置(図示しない)にプリントアウトする。
Also, when aggregating purchases and disbursements and changing the inventory amount in the ledger, the ledger file is transferred from the auxiliary memory 2 to the main memory 12.
After transferring it to , read the purchasing and dispensing data one by one from the [Purchasing and dispensing file] in auxiliary memory 2,
The purchasing and dispensing data and part numbers are sequentially compared with the part numbers in the 0 ledger up to ln, and when one part number matches, the inventory quantity in the ledger is increased or decreased according to the number of purchased or disbursed items, and the parts A file for counting the number of items purchased and delivered by number is created and displayed on the CRT 4 or printed out on a printer device (not shown).

〔発明の解決し様とする問題点〕[Problems to be solved by the invention]

上記の様な従来の電子計算機では、仕入れ、払い出し数
の入力時の台帳登録の有無の確認、及び台帳の在庫数変
更の処理時の部品番号の照合を。
Conventional electronic computers such as those mentioned above check whether the ledger has been registered when inputting purchasing and disbursing quantities, and verify part numbers when changing the number of stocks in the ledger.

1からnまで台帳のレコード全件を対象として順次に照
合を行っているので、非常に時間がかかるという問題点
があった。また1台帳に新規部品を登録する時、あるい
は台帳を部品番号順に出力する時には、部品番号順にソ
ートする必要があり。
Since all records in the ledger from 1 to n are checked sequentially, there is a problem in that it takes a very long time. Also, when registering new parts in a ledger or outputting a ledger in order of part number, it is necessary to sort in order of part number.

この場合にも長い時間がかかるという問題点があった。In this case as well, there was a problem that it took a long time.

また、仕入れ、払い出し伝票の入力時及び集計時には1
台帳ファイルと仕入れ、払い出しデータファイルの複数
のファイルを主メモリ12に記憶する必要があり、この
ため、取り扱い得るデータ量が少なくなるという問題点
があった。
In addition, when inputting and aggregating purchasing and disbursing slips, 1
It is necessary to store a plurality of files in the main memory 12, including the ledger file and the purchase and payout data files, resulting in a problem that the amount of data that can be handled is reduced.

この発明は、かかる問題点を解決するためになされたも
ので、検索時における入力されたデータのキーコードの
照合を対象とする全キーコードに対して行うことなく処
理できる様にして、照合処理時間を大幅に短縮できる電
子計算機のデータ入力方法を得ることを目的とするもの
である。
This invention was made in order to solve this problem, and it is possible to perform the process of matching the key code of input data at the time of search without having to perform the matching process on all the target key codes. The purpose of this invention is to obtain a data input method for an electronic computer that can significantly reduce time.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る電子計算機のデータ入力方法は。 A data input method for a computer according to the present invention.

入力されたデータのキーコードと、既登録されたデータ
のキーコードを照合する時に、この既登録されたデータ
の1/2の位置のキーコードと照合し。
When comparing the key code of input data with the key code of already registered data, it is compared with the key code at the 1/2 position of this already registered data.

両者のキーコードの大小関係により、照合するレコード
位置を1回ごとにHに減じる様にする。
Depending on the magnitude relationship between the two key codes, the record position to be compared is reduced to H each time.

〔作用〕[Effect]

この発明の電子計算機のデータ入力方法においては、入
力されたデータのキーコードを、記憶装置にキーコード
順に既に記憶されている全キーコードの1/2の位置の
キーコードと照合し、入力されたキーコードと記憶装置
のキーコードの大小関係により、照合するレコード位置
を1回ごとに号に減じる様にすることにより、照合処理
時間を大幅に短縮することができる。
In the computer data input method of the present invention, the key code of the input data is compared with the key code at the 1/2 position of all the key codes already stored in the key code order in the storage device, and the input data is By reducing the number of record positions to be collated into numbers each time based on the size relationship between the key code obtained and the key code of the storage device, the collation processing time can be significantly shortened.

〔実施例〕〔Example〕

第1図及び第2図は、それぞれこの発明の一実施例であ
る電子計算機のデータ入力方法において。
FIGS. 1 and 2 each show a data input method for an electronic computer, which is an embodiment of the present invention.

データの新規登録時及びその集計時の各手順を示すフロ
ーチャート、第3図は、第1図及び第2図の電子計算機
のデータ入力方法で用いられるデータファイルの一例を
示す図である。第3図に示す様なデータファイルは、相
互に重複のないN個のキーコードに対応したN個のレコ
ードより成り、各レコードにはキーコードA(t、)及
び各データBか)。
FIG. 3 is a flowchart showing each procedure at the time of new data registration and its aggregation, and is a diagram showing an example of a data file used in the data input method of the computer shown in FIGS. 1 and 2. A data file as shown in FIG. 3 consists of N records corresponding to N key codes that are mutually non-overlapping, and each record includes a key code A(t,) and each data B?).

C(n) 、 D(n)  が記録されている。C(n) and D(n) are recorded.

まず、新規のキーコードA、c及びデータBX、 Cx
First, new key codes A, c and data BX, Cx
.

Dxを登録する場合を、第1図に示すフローチャートに
したがって説明する。最初に、ステップ51で、補助メ
モリ2より主メモリ12に既に登録されているN個のレ
コードより成るデータファイルを読み込む。ステップ5
2で、キーボードの入力装置3より新しいキーコードA
x  及びこのキーコードAxに関連する各データBx
、Cx、Dxを入力する。
The case of registering Dx will be explained according to the flowchart shown in FIG. First, in step 51, a data file consisting of N records already registered in the main memory 12 is read from the auxiliary memory 2. Step 5
2, key code A newer than keyboard input device 3
x and each data Bx related to this key code Ax
, Cx, and Dx.

ステップ53で1Mレジスタに既登録の全レコード数N
を入れ、Yレジスタに全登録数Nの1/2の値を入れる
。ステップ54で、キーコードAxが、レコード番号が
y番目のキーコード〜)と、レコード番号がy+1番目
のキーコードA(y+1)  の間のソート順位にある
かどうかを比較する。キーコードAxが各キーコード〜
)とA(ア+1)の間でない時は。
In step 53, the total number of records N registered in the 1M register
and enter the value of 1/2 of the total number of registrations N into the Y register. In step 54, it is compared whether the key code Ax is in the sorting order between the key code with the y-th record number ~) and the key code A (y+1) with the y+1-th record number. Key code Ax is each key code~
) and A (A+1).

ステップ55で、キーコードAxが、各レコード番号が
y及びy−1番目の各キーコード〜)とA(アー1)の
間にあるかどうかを比較する。キーコードAXが各キー
コードAty)とA(y−1)の間でない時は、ステッ
プ56で、キーコードAxがキーコード〜)より大きい
かどうかを比較し、キーコードAxがキーコード〜)よ
り小さい場合は、ステップ57で、Mレジスタにyの数
値を入れ、キーコードAx がキーコード〜)より大き
い場合は、ステップ59で、MレジスタにM+yの数値
を入れる。ステップ58で、次に照合するキーコードA
(y)のレコード番号のyをM/2と定義し、Yレジス
タにM/2の数値を入れ、処理をステップ54に戻す、
ステツブシで。
In step 55, the key code Ax is compared to see if each record number is between y and y-1th key code ~) and A (A1). When the key code AX is not between each key code Aty) and A(y-1), in step 56, it is compared whether the key code Ax is larger than the key code ~), and the key code Ax is compared with the key code ~). If it is smaller, the value of y is entered into the M register in step 57, and if the key code Ax is greater than the key code ~), the value of M+y is entered into the M register in step 59. In step 58, the key code A to be checked next
Define record number y of (y) as M/2, enter the value of M/2 in the Y register, and return the process to step 54.
At Stetsubushi.

新規のキーコードA8が既登録の各キーコード〜)とA
(ア+1)の間であると判断された場合は、Yレジスタ
にy+1の数値を入れ、ステップ55で、キーコードA
Xが各キーコード八〇とA(y−1)  の間にあると
判断された場合は、yの値はそのままとし。
New key code A8 is each registered key code~) and A
If it is determined that the value is between (A+1), the value of y+1 is entered into the Y register, and in step 55, the key code A
If it is determined that X is between each key code 80 and A(y-1), leave the value of y as is.

ステップ62で、Y番から最後のN番までのレコード番
号を+1して、各キーコードへからA(へ)までの各レ
コードを1つづらせ、総件数Nを+1する。ステップ臼
で、新規のキーコードAx  及び各データB、 、 
C,、Dxをレコード番号yの位置に記録する。ステッ
プ図で、新規登録処理が完了し、キーコード順に主メモ
リ12上に記録されたファイルを補助メモリ2に転送、
記録して終る。
At step 62, the record numbers from number Y to the last number N are incremented by 1, each record from each key code to A (to) is added by 1, and the total number N is incremented by 1. With the step mill, new key code Ax and each data B, ,
C, , Dx are recorded at the position of record number y. In the step diagram, the new registration process is completed, the files recorded in the main memory 12 are transferred to the auxiliary memory 2 in the order of key codes,
Record and finish.

次に、データの集計をする場合を、第2図に示すフロー
チャートにしたがって説明する。第3図に示すレコード
に記録されているキーコードA6.)が部品番号、デー
タDCII)が在庫量の場合を想定し、部品番号として
部品コードAxの部品をDx個払い出した時の処理を順
を追って述べる。ステップ71で、補助メモリ2に既に
登録されている部品台帳を主メモリ12に読み込む。ス
テップ72で、キーボードの入力装置3より払い出した
部品の部品コードAxとその個数Dxを入力する。ステ
ップ73で。
Next, the case of data aggregation will be explained according to the flowchart shown in FIG. Key code A6 recorded in the record shown in FIG. ) is the part number and data DCII) is the inventory amount, and the processing when Dx parts of part code Ax are paid out as the part number will be described step by step. In step 71, the parts ledger already registered in the auxiliary memory 2 is read into the main memory 12. At step 72, the part code Ax and the number Dx of the delivered part are input using the input device 3 of the keyboard. In step 73.

Mレジスタに総レコード数Nの値を入れ、Yレジスタに
総レコード数NのHの値を入れる。ステップ74で、y
番目のレコードの部品コードA(y)と払い出した部品
の部品コードAxが等しいかどうかを確かめる0等しく
ない時は、ステップ75で、部品コード人、が部品コー
ド〜)よりソート順が大きいかどうかを確かめる0部品
コードAxが部品コードA(y)より小さい場合は、ス
テップ76で、Mレジスタにyの値を入れ、部品コード
Axが部品コードA(y)より大きい場合は、ステップ
78で9MレジスタにM+7の値を入れ、ステップ77
で、Yレジスタの値をM/2に変更し、ステップ74に
戻す。
Put the value of the total number of records N into the M register, and put the H value of the total number of records N into the Y register. In step 74, y
Check whether the part code A(y) of the th record and the part code Ax of the delivered part are equal.0 If they are not equal, in step 75, check whether the part code ``person'' is greater in the sort order than the part code ~). If the part code Ax is smaller than the part code A(y), the value of y is placed in the M register in step 76, and if the part code Ax is larger than the part code A(y), the value of y is entered in the M register in step 78. Put the value of M+7 into the register, step 77
Then, the value of the Y register is changed to M/2, and the process returns to step 74.

ステップ74で、部品コードA工が部品コードA(y)
と同じ時は、部品コードA(y)の在庫数D(y)  
より払い出し数Dxを減じる。主メモリ12において、
上記した様に、在庫数Dωを変更された部品台帳ファイ
ルを、ステップ80で、補助メモリ2に記憶し。
At step 74, part code A is changed to part code A(y).
When is the same, the inventory quantity of part code A(y) is D(y)
The number of payouts Dx is reduced. In the main memory 12,
As described above, the parts ledger file in which the inventory quantity Dω has been changed is stored in the auxiliary memory 2 in step 80.

これにより、払い出し処理が終了する。This completes the payout process.

第4図は、この発明の他の実施例である電子計算機のデ
ータ入力方法において、データの集計時の手順を示すフ
ローチャートである。第4図に示すフローチャートは、
レコードの照合範囲を1回ごとに号に縮める方法と、照
合の結果、該当するキーコードがあった時には、既登録
量に新規登録量を加算する方法と、及び該当するキーコ
ードがない時には、新規入力キーコードが位置すべき2
つのレコードの間に割り込む方法を組み合わせた場合を
示しており、この場合は、新規キーコードの登録と、同
一のキーコードに属する数値の演算を同時に行うことが
できるが、その詳細な説明は省略する。
FIG. 4 is a flowchart showing the procedure for data aggregation in a data input method for a computer according to another embodiment of the present invention. The flowchart shown in Figure 4 is as follows:
One method is to reduce the range of records to be compared to an issue each time, one method is to add the newly registered amount to the existing registered amount when the matching key code is found as a result of matching, and another method is to add the newly registered amount to the existing registered amount, and when there is no corresponding key code. New input key code should be located 2
This example shows a case in which the method of intervening between two records is combined, and in this case, it is possible to register a new key code and calculate the numerical value belonging to the same key code at the same time, but detailed explanations are omitted. do.

上述した様に、この発明の電子計算機のデータ入力方法
では。
As mentioned above, in the data input method for an electronic computer of the present invention.

(1)入力されたデータのキーコードを、ソート順に並
べられた既に入力されているキーコードのレコード数の
Hの位置lこあるキーコードと比較し。
(1) Compare the key code of the input data with the key code located at position H of the number of records of already input key codes arranged in sort order.

合致するキーコードでない場合は、照合ごとJ(%に縮
められる照合対象キーコード群の1/2の位置のキーコ
ードと比較することにより、従来の方法の様に、1から
総レコード数Nまでのすべてのキーコードと照合する方
法と比較して、照合時間を大幅に短縮することができる
。このことは、従来の方法では、レコード数が2倍にな
ると平均照合時間が2倍になるのに対し、この発明の方
法では。
If the key code does not match, by comparing it with the key code at the 1/2 position of the key code group to be matched, which is reduced to J (%) for each match, the total number of records is reduced from 1 to N, as in the conventional method. Compared to the method of matching all the key codes in In contrast, in the method of this invention.

照合が1回増えるのみで済み、処理するデータ量が大き
い場合に、照合時間を大幅に短縮することができる。
Only one more verification is required, and the verification time can be significantly reduced when the amount of data to be processed is large.

(2)毎回、照合対象レコードの1/2の位置のキーコ
ードと比較する上記(1)のキーコード照合方法と、該
当するキーコードがない時は、ソートの順から入力され
たデータのキーコードが位置すべきレコード位置に割り
込んでデータを記録する方法を用いることにより、デー
タファイルは、キーコード順に並べられ1台帳のソーテ
ングを省略することができると共に、上記(1)のキー
コードがソーテング順に並んでいる条件を、別の処理手
段を用いることなく自然に整えることができる。
(2) The key code matching method of (1) above, which compares with the key code at 1/2 position of the record to be matched each time, and when there is no corresponding key code, the key code of the data input from the sort order By using the method of recording data by interrupting the record position where the code should be located, the data file is arranged in the order of the key code, and the sorting of one ledger can be omitted. Conditions arranged in order can be arranged naturally without using any other processing means.

(3ン上記第4図1ζ示す様に、上記(1ンのキーコー
ド照合方法と、上記(2)のレコード割り込み記録方法
と、上記第2図に示す演算データ処理方法を組み合わせ
ることlこより1例えば部品の仕入れ、払い出しデータ
を集計する場合に。
(3) As shown in Figure 4 above, the key code verification method in Figure 1 above, the record interrupt recording method in (2) above, and the calculation data processing method shown in Figure 2 above are combined. For example, when compiling parts purchasing and dispensing data.

■入力されたキーコード及び数値データを1次々にソー
ト順に記録しながら数値データの演算を行うことができ
るので、レコード数は、今回の集計期間に仕入れ、払い
出しがあったキーコードの数を主メモIJ 12に保持
するのみで済み、従来の方法の様に、仕入れ、払い出し
の実績のなかった部品台帳全体を主メモリ12に読み込
まなくも良いので、パソコン等の主メモIJ 12の小
さな計算機で多くのデータを処理することができる。
■Numerical data calculations can be performed while recording input key codes and numerical data one after another in sorted order, so the number of records is mainly based on the number of key codes purchased and paid out during the current aggregation period. It only needs to be stored in the memo IJ 12, and there is no need to read into the main memory 12 the entire parts ledger that has no track record of purchasing or dispensing, as is the case with conventional methods. Can process a lot of data.

■従来の方法の様に、登録されているキーコード総数の
レコードに対して入力キーコードを照合した後、該当す
るキーコードの数値データを演算処理する方法に比較し
て、照合対象レコード量が少なくなり、データ処理がこ
の点でも速くなる。
■Compared to the conventional method, which collates the input key code against the total number of registered key code records and then processes the numerical data of the corresponding key code, the amount of records to be collated is reduced. This also speeds up data processing.

■登録されている全キーコードを含む台帳のレコードl
ζ対して、演算処理をするのではないから。
■Ledger record containing all registered key codes
This is because we do not perform arithmetic processing on ζ.

特に台帳との照合を必要としない様なデータ処理の場合
、キーコードを台帳に登録しないと集計処理ができない
といった不都合がない。
Especially in the case of data processing that does not require verification with a ledger, there is no inconvenience such as not being able to perform aggregation processing unless the key code is registered in the ledger.

なお、上記実施例では、入力装置としてキーボードを用
いた場合について説明したが、入力装置は、伝票単位で
のキーコードとデータが別の手段で既に記録されている
記憶装置からデータを転送して入力する構成としても良
く、上記実施例と同様の効果を奏する。
In the above embodiment, a case was explained in which a keyboard was used as an input device, but the input device can transfer data from a storage device in which key codes and data for each slip have already been recorded by another means. A configuration in which input is performed may also be used, and the same effects as in the above embodiment can be achieved.

〔発明の効果〕〔Effect of the invention〕

この発明は以上説明したとおり、電子計算機のデータ入
力方法において、入力されたデータのキーコードと、既
登録されたデータのキーコードを照合する時に、この既
登録されたデータの1/2の位置のキーコードと照合し
、両者のキーコードの大小関係により、照合するレコー
ド位置を1回ごとにHに減じる様にしたので、この種の
従来の方法と比べて、照合処理時間を大幅に短縮するこ
とができるという優れた効果を奏するものである。
As explained above, in the data input method of a computer, when the key code of the input data and the key code of the already registered data are compared, the position of 1/2 of the already registered data is The record position to be compared is reduced to H each time depending on the size relationship between the two key codes, which greatly reduces the matching process time compared to this type of conventional method. It has the excellent effect of being able to

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

第1図及び第2図は、それぞれこの発明の一実施例であ
る電子計算機のデータ入力方法において、データの新規
登録時及びその集計時の各手順を示すフローチャート、
第3図は、第1図及び第2図の電子計算機のデータ入力
方法で用いられるデータファイルの一例を示す図、第4
図は、この発明の他の実施例である電子計算機のデータ
入力方法において、データの集計時の手順を示すフロー
チャート、第5図は従来の電子計算機の構成を示すブロ
ック図、第6図及び第7図は、それぞれ第5図の電子計
算機に用いられる在庫管理台帳ファイル及び仕入れ、払
い出しデータファイルの一例を示す図である。 図において、1・・・電子計算機、2・・・補助メモリ
、3・・・入力装置、4・・・陰極線管(CRT)、1
1・・・中央処理装置(CPU)、12・・・主メモリ
である。
FIGS. 1 and 2 are flowcharts showing each procedure at the time of new data registration and the time of aggregation, respectively, in a data input method for a computer which is an embodiment of the present invention;
Figure 3 is a diagram showing an example of a data file used in the computer data input method of Figures 1 and 2;
FIG. 5 is a flowchart showing the procedure for aggregating data in a data input method for a computer according to another embodiment of the present invention, FIG. 5 is a block diagram showing the configuration of a conventional computer, and FIGS. FIG. 7 is a diagram showing an example of an inventory management ledger file and a purchasing and dispensing data file used in the computer shown in FIG. 5, respectively. In the figure, 1...Electronic computer, 2...Auxiliary memory, 3...Input device, 4...Cathode ray tube (CRT), 1
1... central processing unit (CPU), 12... main memory.

Claims (3)

【特許請求の範囲】[Claims] (1)書き替え可能な記憶装置を有するデータ処理装置
と、データの入力装置を有する電子計算機において、前
記入力装置よりデータを入力した際に、入力されたデー
タのキーコードを、前記記憶装置にキーコード順に既に
記憶されている全キーコードの1/2の位置のキーコー
ドと照合し、入力されたキーコードと前記記憶装置のキ
ーコードの大小関係により、前記入力されたキーコード
が属すると思はれる残り1/2の記憶されたレコードの
1/2の位置のキーコードと照合し、かつこの照合を繰
り返えすことにより、一つの照合ごとに対象範囲を1/
2づつ減じる様にしたことを特徴とする電子計算機のデ
ータ入力方法。
(1) In a data processing device having a rewritable storage device and an electronic computer having a data input device, when data is input from the input device, the key code of the input data is transferred to the storage device. The input key code is compared with the key code at the 1/2 position of all the key codes already stored in the key code order, and the input key code is determined to belong according to the magnitude relationship between the input key code and the key code of the storage device. By comparing the key code at the 1/2 position of the remaining 1/2 recorded record and repeating this process, the target range is reduced by 1/2 for each comparison.
A data input method for an electronic computer characterized by subtracting data by two.
(2)前記照合の結果、該当するキーコードがあつた時
は、この該当するキーコードに属するデータを演算する
様にしたことを特徴とする特許請求の範囲第1項記載の
電子計算機のデータ入力方法。
(2) When a corresponding key code is found as a result of the verification, data belonging to the corresponding key code is calculated. input method.
(3)前記照合の結果、該当するキーコードがない時は
、入力されたキーコードより大きいキーコードに属する
データの順位を1つづつ増加し、前記入力されたキーコ
ードに属するデータを割り込んで記憶させる様にしたこ
とを特徴とする特許請求の範囲第1項記載の電子計算機
のデータ入力方法。
(3) As a result of the above verification, if there is no corresponding key code, increase the rank of data belonging to a key code larger than the input key code one by one, and insert the data belonging to the input key code. A data input method for an electronic computer according to claim 1, characterized in that the data is stored.
JP59203501A 1984-09-28 1984-09-28 Data input method of electronic computer Pending JPS6180424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59203501A JPS6180424A (en) 1984-09-28 1984-09-28 Data input method of electronic computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59203501A JPS6180424A (en) 1984-09-28 1984-09-28 Data input method of electronic computer

Publications (1)

Publication Number Publication Date
JPS6180424A true JPS6180424A (en) 1986-04-24

Family

ID=16475197

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59203501A Pending JPS6180424A (en) 1984-09-28 1984-09-28 Data input method of electronic computer

Country Status (1)

Country Link
JP (1) JPS6180424A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6348263U (en) * 1986-09-12 1988-04-01

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6348263U (en) * 1986-09-12 1988-04-01

Similar Documents

Publication Publication Date Title
JP2006073031A5 (en)
CN109242672A (en) Refund information forecasting method, device and the computer readable storage medium of loan
JPS6180424A (en) Data input method of electronic computer
CN107392745A (en) One kind accounting checking fragmentation of data processing method
JPH11328292A (en) Installment erasure system
JPH11161396A (en) Paperless account system
JP3030299U (en) Accounting information processing device
JP3070093B2 (en) Record processing device
JPS61136166A (en) Data processing system for medical insurance processing system
US4524267A (en) Cash accounting system having data compiling capability
JP3631505B2 (en) Inventory management method
JPS59156477A (en) Cargo transport control apparatus
JP7117197B2 (en) Data creation device, data creation method and data creation program
JP3047397B2 (en) File processing device
JP3334148B2 (en) Automatic bill splitting device
US8315924B1 (en) Method and apparatus for automating accounting with check vouchers
Banham et al. Design features of a real-time check-clearing system
JP3324563B2 (en) Value-added tax import method and device, and recording medium recording a program for the device
JPS59106073A (en) Electronic register
JPH01112364A (en) Data processor
JP2605669B2 (en) Data processing device
JPH0934950A (en) Observed data update processing method
JP3736053B2 (en) Data item approximation analysis apparatus and method
JPH0194499A (en) Plu location processing system
JP2003140934A (en) Information collation processing device