JPH01291322A - Sorting system for data - Google Patents
Sorting system for dataInfo
- Publication number
- JPH01291322A JPH01291322A JP12265988A JP12265988A JPH01291322A JP H01291322 A JPH01291322 A JP H01291322A JP 12265988 A JP12265988 A JP 12265988A JP 12265988 A JP12265988 A JP 12265988A JP H01291322 A JPH01291322 A JP H01291322A
- Authority
- JP
- Japan
- Prior art keywords
- data
- classification
- storage means
- classified
- indicator
- 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
Links
- 238000013500 data storage Methods 0.000 claims description 34
- 238000013075 data extraction Methods 0.000 claims description 10
- 238000000034 method Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 230000010365 information processing Effects 0.000 description 2
- 230000001174 ascending effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置分野に利用される。[Detailed description of the invention] [Industrial application field] INDUSTRIAL APPLICABILITY The present invention is utilized in the field of information processing equipment.
本発明は、情報処理装置の利用におけるデータの分類方
式に関し、特に分類処理時間を高速化したデータの分類
方式に関する。なお、本発明において、分類データとは
分類対象データに対して指定された分類キーフィールド
に対応するデータをいう。The present invention relates to a data classification method when using an information processing device, and particularly to a data classification method that speeds up the classification processing time. Note that in the present invention, classification data refers to data corresponding to a classification key field specified for data to be classified.
本発明は、記憶手段に格納された分類対象データから分
類データを取り出し、分類データの大小およびその分類
データに対応する分類対象データのアドレスデータの大
小比較により入れ換えを行い分類するデータの分類方式
において、分類データおよびアドレスデータを直接入れ
換えする代わりに、分類データとアドレスデータとを結
合して一つの表示子(番号)を与え、この表示子を入れ
換えるようにすることにより、処理の高速化を図ったも
のである。The present invention provides a data classification method in which classified data is retrieved from classified data stored in a storage means and replaced by comparing the size of the classified data and the address data of the classified data corresponding to the classified data. , instead of directly exchanging the classification data and address data, the classification data and address data are combined and given a single indicator (number), and this indicator is exchanged, thereby speeding up the processing. It is something that
従来この種のデータの分類では、記憶装置に格納されて
いる分類対象データから取り出した分類データの大小比
較およびアドレスデータの大小比較の比較結果により、
分類データ格納領域内の分類データおよびアドレスデー
タの入れ換えを行っていた。Conventionally, in the classification of this type of data, based on the comparison results of the size comparison of the classification data extracted from the data to be classified stored in the storage device and the size comparison of the address data,
The classification data and address data in the classification data storage area were replaced.
前述した従来のデータ分類方式では、記憶装置内に格納
されている分類対象データから取り出した分類データと
アドレスデータとを分類データ格納領域内に取り込み、
分類データの大小比較およびアドレスデータの大小比較
の結果に従って分類データ格納領域内の分類データおよ
びアドレスを入れ換えているので、分類処理時間が分類
データの長さに大きく影響される欠点がある。In the conventional data classification method described above, the classification data and address data extracted from the classification target data stored in the storage device are imported into the classification data storage area,
Since the classification data and addresses in the classification data storage area are exchanged according to the results of the size comparison of the classification data and the size comparison of the address data, there is a drawback that the classification processing time is greatly affected by the length of the classification data.
本発明の目的は、前記の欠点を除去することにより、分
類処理時間が分類データの長さに影響されることなく、
処理を高速化できるデータの分類方式を提供することに
ある。An object of the present invention is to eliminate the above drawbacks so that the classification processing time is not affected by the length of the classification data.
The purpose of this invention is to provide a data classification method that can speed up processing.
本発明は、分類対象データおよびこの分類対象データを
分類した分類後データをそれぞれ格納する第一および第
二の記憶手段を備えたデータの分類方式において、分類
データとこの分類データに対応した分類対象データのア
ドレスデータとを結合して格納する分類データ格納手段
と、この分類データ格納領域のアドレスデータを示す表
示子を格納する表示子格納手段と、前記第一の記憶手段
から分類データおよびそのアドレスデータを読み出し前
記分類データ格納手段に格納するとともにその表示子を
前記表示子格納手段に格納する分類データ抽出手段と、
前記分類データ格納手段に格納された分類データの大小
比較およびアドレスデータの大小比較を行いその結果に
従って前記表示子格納手段に格納された表示子の入れ換
えを行う分類処理手段と、前記表示子格納手段内の表示
子が示す前記分類データ格納手段内のアドレスデータに
従って前記第一の記憶手段から分類対象データを読み出
し分類後データとして前記第二の記憶手段に格納する分
類結果出力手段とを備えたことを特徴とする。The present invention provides a data classification method that includes first and second storage means for respectively storing data to be classified and classified data obtained by classifying the data to be classified. a classified data storage means for storing combined data with address data; an indicator storage means for storing an indicator indicating address data of the classified data storage area; and a classified data storage means for storing the classified data and its address from the first storage means. Classification data extraction means for reading out data and storing it in the classification data storage means, and storing the indicator in the indicator storage means;
a classification processing means for comparing the magnitudes of the classification data stored in the classification data storage means and comparing the magnitudes of the address data and replacing the indicators stored in the indicator storage means according to the results; and the indicator storage means and a classification result output means for reading the classification target data from the first storage means and storing it in the second storage means as classified data according to the address data in the classification data storage means indicated by the indicator inside. It is characterized by
分類データ抽出手段は、第一の記憶手段から分類データ
とそれに対応する分類対象データのアドレスデータとを
結合させて読み出し、分類データ格納手段に格納し、そ
の格納したアドレスデータを示す表示子を表示子格納手
段に格納する。そして分類処理手段は、前記分類データ
格納手段に格納すれた分類データの大小比較およびアド
レスデータの大小比較を行いその結果に従って例えば大
きい順に表示子の入れ換えを行う。そして分類結果出力
手段は、この入れ換えられた表示子の系す前記分類デー
タ格納手段内のアドレスデータに従って前記第一の記憶
手段から分類対象データを読み出し分類後データとして
第二の記憶手段に格納する。The classified data extraction means combines and reads out the classified data and the corresponding address data of the classified data from the first storage means, stores the combined data in the classified data storage means, and displays an indicator indicating the stored address data. Store in child storage means. Then, the classification processing means compares the size of the classification data stored in the classification data storage means and the size of the address data, and replaces the indicators according to the results, for example, in descending order. Then, the classification result output means reads the classification target data from the first storage means according to the address data in the classification data storage means associated with the replaced indicator and stores it in the second storage means as classified data. .
従って、従来分類データおよびアドレスデータを直接入
れ換えていたのに対し、一定長の表示子を入れ換えれば
よくなり、処理時間が分類データの長さに大きく影響さ
れることはな(なり、処理の高速化を図ることが可能と
なる。Therefore, whereas in the past classification data and address data were directly exchanged, it is now sufficient to replace indicators of a certain length, and processing time is not greatly affected by the length of classification data. It becomes possible to increase the speed.
以下、本発明の実施例について図面を参照して説明する
。Embodiments of the present invention will be described below with reference to the drawings.
第1図は本発明の一実施例の要部を示すブロック構成図
である。FIG. 1 is a block diagram showing the main parts of an embodiment of the present invention.
本実施例は、分類対象データおよびこの分類対象データ
を分類した分類後データをそれぞれ格納する第一および
第二の記憶手段としての記憶装置(A)1および記憶装
置(B)7を備えたデータの分類方式において、
分類データとこの分類データに対応した分類対象データ
のアドレスデータとを結合して格納する分類データ格納
手段3と、この分類データ格納手段3のアドレスデータ
を示す表示子を格納する表示子格納手段4と、記憶装置
(A)1から分類データおよびそのアドレスデータを読
み出し分類データ格納手段3に格納するとともにその表
示子を表示子格納手段4に格納する分類データ抽出手段
2と、分類データ格納手段3に格納された分類データの
大小比較およびアドレスデータの大小比較を行いその結
果に従って表示子格納手段4に格納された表示子の入れ
換えを行う分類処理手段5と、表示子格納手段4内の表
示子が示す分類データ格納手段2内のアドレスデータに
従って記憶装置(A)1から分類対象データを読み出し
分類後データとして記憶装置(B)7に格納する分類結
果出力手段6とを備えている。In this embodiment, data is provided with a storage device (A) 1 and a storage device (B) 7 as first and second storage means for respectively storing classification target data and classified data obtained by classifying the classification target data. In the classification method, a classification data storage means 3 which combines and stores classification data and address data of classification target data corresponding to this classification data, and an indicator indicating the address data of this classification data storage means 3 are stored. an indicator storage means 4; a classification data extraction means 2 for reading classification data and its address data from the storage device (A) 1 and storing them in the classification data storage means 3, and storing the indicators in the indicator storage means 4; A classification processing means 5 that compares the size of the classification data stored in the classification data storage means 3 and the size of the address data, and replaces the indicators stored in the indicator storage means 4 according to the results; and an indicator storage means. and a classification result output means 6 for reading the classification target data from the storage device (A) 1 according to the address data in the classification data storage means 2 indicated by the indicator in 4 and storing it in the storage device (B) 7 as classified data. ing.
本発明の特徴は、第1図において、分類データ抽出手段
2、分類データ格納手段3、表示子格納手段4、分類処
理手段5および分類結果出力手段6を設けたことにある
。The feature of the present invention is that, in FIG. 1, classification data extraction means 2, classification data storage means 3, indicator storage means 4, classification processing means 5, and classification result output means 6 are provided.
次に、本実施例の動作の概要について、第2図に示す流
れ図を参照して説明する。Next, an overview of the operation of this embodiment will be explained with reference to the flowchart shown in FIG.
記憶装置(A)1上の分類対象データを、分類データ抽
出手段2によって、記憶装置(A)1上の分類対象デー
タに対して指定された分類キーフィールドに対応するデ
ータ(分類データ)とこの分類データに対応した分類対
象データの記憶装置(A)1内のアドレスをアドレステ
′−夕として結合し分類データ格納手段3内への格納、
およびその分類データとアドレスデータとが分類データ
格納手段3内の何番目に入っているかを示す表示子を表
示子格納手段4への格納を記憶装置(A)1上の分類対
象データがなくなるまで繰り返す(ステップSl)。The classification target data on the storage device (A) 1 is extracted by the classification data extracting means 2 with data (classification data) corresponding to the classification key field specified for the classification target data on the storage device (A) 1. combining the addresses in the storage device (A) 1 of the classification target data corresponding to the classification data as an address table and storing them in the classification data storage means 3;
and an indicator indicating where in the classification data storage means 3 the classification data and address data are stored in the indicator storage means 4 until there is no more data to be classified on the storage device (A) 1. Repeat (step Sl).
分類データ抽出手段2によって分類データおよびアドレ
スデータの格納と表示子の格納とが終了した後に、分類
処理手段5によって、分類データ格納手段3内の分類デ
ータの大小比較およびアドレスデータの大小比較を行い
、その結果に従って例えば大きい順に表示子格納手段4
内の表示子の入れ換えを行う(ステップS2)。すべて
の入れ換えが終了した後に、分類結果出力手段6によっ
て、表示子格納手段4内の表示子が示す分類データ格納
手段3内のアドレスデータに従って分類対象データを記
憶装置(A)1から読み出し、分類後データとして記憶
装置(B)7に格納する(ステップS3)。After the classification data extraction means 2 finishes storing the classification data and address data and storing the indicators, the classification processing means 5 compares the classification data in the classification data storage means 3 and the address data. , according to the results, the indicator storage means 4 is stored, for example, in descending order.
The indicators within are replaced (step S2). After all the replacements are completed, the classification result output means 6 reads out the classification target data from the storage device (A) 1 according to the address data in the classification data storage means 3 indicated by the indicator in the indicator storage means 4, and classifies the data. The data is stored in the storage device (B) 7 as subsequent data (step S3).
第3図により分類データ抽出手段2の動作について説明
する。分類対象データ8に指定される分類キーフィール
ドは、分類対象データ8中に幾つあってもよいが、例と
して昇順に分類する分類キーフィールドが商品名と数量
に指定された場合について示す。なお分類対象データ8
は、記憶装置(A)1中にN件のレコードとして存在し
、ルコードは複数のフィールドからなっている。The operation of the classification data extraction means 2 will be explained with reference to FIG. Although there may be any number of classification key fields specified in the classification target data 8, as an example, a case will be shown in which the classification key fields for classifying in ascending order are specified for product name and quantity. Furthermore, classification target data 8
exists as N records in the storage device (A) 1, and the code consists of a plurality of fields.
分類データ抽出手段2は、分類対象データ8からルコー
ドずつ読み取り、そのレコードから商品名および数量に
対応するデータ(分類データ)と、そのレコードの記憶
装置(A)1内アドレスをアドレスデータとして結合し
分類データ格納手段3へ格納するとともに、分類データ
格納手段3へ格納した分類データとアドレスデータとが
分類データ格納手段3の何番目に入っているかを示す表
示子を表示子格納手段4へ格納する。The classification data extraction means 2 reads the classification data 8 code by code, and combines the data (classification data) corresponding to the product name and quantity from the record with the address in the storage device (A) 1 of the record as address data. The data is stored in the classified data storage means 3, and an indicator indicating the position of the classified data storage means 3 in which the classified data and address data stored in the classified data storage means 3 are stored is stored in the indicator storage means 4. .
この動作すなわち分類データ格納手段3への分類データ
およびアドレスデータの格納と、表示子格納手段4への
表示子の格納とを、分類対象データ8がなくなるまで(
記憶装置(A)1内アドレスN000番地のレコードま
で)繰り返す。This operation, that is, storing the classification data and address data in the classification data storage means 3 and storing the indicators in the indicator storage means 4, is continued until the classification target data 8 is exhausted (
Repeat up to the record at address N000 in storage device (A) 1).
第4図により分類処理手段5の動作について説明する。The operation of the classification processing means 5 will be explained with reference to FIG.
分類処理手段5は、表示子格納手段4内の分類前表示子
9が示す分類データ格納手段3内の商品名、数量の大小
比較(商品名が同値のとき数量を比較)を行い、同値で
ないときには比較結果に従って分類前表示子9を入れ換
える。また同値のときには分類対象データを出現類に並
べるためにアドレスデータの大小比較を行い結果に従っ
て分類前表示子9を入れ換える。分類処理手段5の結果
が分類機表示子10である。The classification processing means 5 compares the product name and quantity in the classification data storage means 3 indicated by the pre-classification indicator 9 in the indicator storage means 4 (comparing the quantities when the product names have the same value), and compares the quantities if the product names are the same. Sometimes, the pre-classification indicator 9 is replaced according to the comparison result. When the values are the same, the address data is compared in size in order to arrange the data to be classified into the occurrence class, and the pre-classification indicator 9 is replaced according to the result. The result of the classification processing means 5 is a classifier indicator 10.
第5図により分類結果抽出手段6の動作について説明す
る。The operation of the classification result extraction means 6 will be explained with reference to FIG.
分類結果出力手段6は、表示子格納手段4内の分類機表
示子10が分類結果を表しているため、分類機表示子1
0を一つずつ読み込み、その表示子が示す分類データ格
納手段3内の分類対象データを示すアドレスデータに従
って、記憶装置(A)1よりそのレコードを読み取り記
憶装置(B)7に分類後データ11として出力する。The classification result output means 6 outputs the classification machine indicator 1 because the classifier indicator 10 in the indicator storage means 4 represents the classification result.
0 one by one, and according to the address data indicating the classification target data in the classification data storage means 3 indicated by the indicator, the record is read from the storage device (A) 1 and the classified data 11 is stored in the storage device (B) 7. Output as .
なお本実施例では、記憶装置(A)1および記憶装置(
B)7と二つにわけたが、同一の記憶装置であってもか
まわない。Note that in this embodiment, the storage device (A) 1 and the storage device (
B) 7 is divided into two, but it does not matter if they are the same storage device.
以上説明したように、本発明は、分類対象データから取
り出した分類データ格納手段内の分類データおよびアド
レスデータを直接入れ換えるのではなく、分類データお
よびアドレスデータを示す表示子格納手段内の長さの一
定な表示子を入れ換えることにより、分類時間が分類デ
ータの長さに大きく影響されなくなり、また分類データ
およびアドレスデータより短い表示子を入れ換えること
によりデータ分類時間が従来の方法より短くなり、処理
を高速化できる効果がある。As explained above, the present invention does not directly replace the classification data and address data in the classification data storage means extracted from the data to be classified, but instead replaces the length of the classification data and address data in the indicator storage means. By exchanging constant indicators, the classification time is no longer greatly affected by the length of the classification data, and by exchanging indicators that are shorter than the classification data and address data, the data classification time is shorter than with conventional methods, making processing easier. This has the effect of increasing speed.
第1図は本発明の一実施例の要部を示すブロック構成図
。
第2図はその動作を示す流れ図。
第3図はその分類データ抽出部の動作を示す説明図。
第4図はその分類処理部の動作を示す説明図。
第5図はその分類結果出力部の動作を示す説明図。
1・・・記憶装置(A)、2・・・分類データ抽出手段
、3・・・分類データ格納手段、4・・・表示子格納手
段、5・・・分類処理手段、6・・・分類結果出力手段
、7・・・記憶装置(B)、訃・・分類対象データ、9
・・・分類前表示子、10・・・分類機表示子、11・
・・分類後データ、81〜S3・・・ステップ。FIG. 1 is a block diagram showing the main parts of an embodiment of the present invention. FIG. 2 is a flowchart showing the operation. FIG. 3 is an explanatory diagram showing the operation of the classification data extraction section. FIG. 4 is an explanatory diagram showing the operation of the classification processing section. FIG. 5 is an explanatory diagram showing the operation of the classification result output section. DESCRIPTION OF SYMBOLS 1... Storage device (A), 2... Classified data extraction means, 3... Classified data storage means, 4... Indicator storage means, 5... Classification processing means, 6... Classification Result output means, 7...Storage device (B), deceased...Data to be classified, 9
...Pre-classification indicator, 10...Classifier indicator, 11.
...Data after classification, 81-S3...Step.
Claims (1)
た分類後データをそれぞれ格納する第一および第二の記
憶手段(1、7)を備えたデータの分類方式において、 分類データとこの分類データに対応した分類対象データ
のアドレスデータとを結合して格納する分類データ格納
手段(3)と、 この分類データ格納領域のアドレスデータを示す表示子
を格納する表示子格納手段(4)と、前記第一の記憶手
段から分類データおよびそのアドレスデータを読み出し
前記分類データ格納手段に格納するとともにその表示子
を前記表示子格納手段に格納する分類データ抽出手段(
2)と、前記分類データ格納手段に格納された分類デー
タの大小比較およびアドレスデータの大小比較を行いそ
の結果に従って前記表示子格納手段に格納された表示子
の入れ換えを行う分類処理手段(5)と、 前記表示子格納手段内の表示子が示す前記分類データ格
納手段内のアドレスデータに従って前記第一の記憶手段
から分類対象データを読み出し分類後データとして前記
第二の記憶手段に格納する分類結果出力手段(6)と を備えたことを特徴とするデータの分類方式。[Claims] 1. A data classification method comprising first and second storage means (1, 7) for respectively storing data to be classified and classified data obtained by classifying the data to be classified, comprising: classified data; classified data storage means (3) that combines and stores address data of data to be classified that corresponds to this classified data; and indicator storage means (4) that stores an indicator that indicates address data of this classified data storage area. ), and classification data extraction means (
2), and a classification processing means (5) for comparing the magnitudes of the classification data stored in the classification data storage means and the magnitudes of the address data, and replacing the indicators stored in the indicator storage means according to the results. and a classification result of reading the classification target data from the first storage means and storing it in the second storage means as classified data according to the address data in the classification data storage means indicated by the indicator in the indicator storage means. A data classification method characterized by comprising: an output means (6).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12265988A JPH01291322A (en) | 1988-05-18 | 1988-05-18 | Sorting system for data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12265988A JPH01291322A (en) | 1988-05-18 | 1988-05-18 | Sorting system for data |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01291322A true JPH01291322A (en) | 1989-11-22 |
Family
ID=14841455
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP12265988A Pending JPH01291322A (en) | 1988-05-18 | 1988-05-18 | Sorting system for data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01291322A (en) |
-
1988
- 1988-05-18 JP JP12265988A patent/JPH01291322A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH02178730A (en) | Internal sorting system using dividing method | |
| CN114330608B (en) | Method and system for batch code writing by using RFID group reading technology | |
| JPS59121436A (en) | Sorting method of data group | |
| JPS6266326A (en) | Array processing system for japanese data | |
| JPH01171021A (en) | Sorting processor | |
| JPH01173230A (en) | Merge processing system | |
| JPS6024631A (en) | Registering and retrieving system of information | |
| JPS62121532A (en) | Data search method | |
| JPH01270127A (en) | Data retrieval processing system | |
| JP3018579B2 (en) | Name search processor | |
| JPH06168270A (en) | Character string retrieval system using index and preparing device for index | |
| JPS61278932A (en) | Method of processing data addition | |
| JP2586172B2 (en) | Table search device with learning function | |
| JPS62285185A (en) | Circuit diagram preparing system | |
| JPH06274391A (en) | Master file quick update processing system | |
| JPH02127725A (en) | Record retrieving system | |
| JPH09330322A (en) | Data retrieval device | |
| JPS58146927A (en) | Method for generating word dictionary having information on relative term | |
| JPH03216729A (en) | Elctronic computer | |
| JPH01177124A (en) | Sorter memory control system | |
| JPS6375928A (en) | Comprehensive type sorting system | |
| JPH05143603A (en) | Character string data classifying processing system | |
| JPS63263590A (en) | Character recognizing system | |
| JPH04308926A (en) | Data comparator | |
| JPH05342278A (en) | File data extraction device |