JPH03192437A - String directory sort merging system - Google Patents
String directory sort merging systemInfo
- Publication number
- JPH03192437A JPH03192437A JP1334386A JP33438689A JPH03192437A JP H03192437 A JPH03192437 A JP H03192437A JP 1334386 A JP1334386 A JP 1334386A JP 33438689 A JP33438689 A JP 33438689A JP H03192437 A JPH03192437 A JP H03192437A
- Authority
- JP
- Japan
- Prior art keywords
- string
- directory
- stage
- length
- auxiliary storage
- 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
- 238000000034 method Methods 0.000 claims description 12
- 230000001174 ascending effect Effects 0.000 abstract description 4
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 238000007796 conventional method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000003672 processing method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、データ処理システムの分類、併合に関し、特
に分類処理時に一時的装置として補助記憶装置を必要と
する大量のデータの分類において第一段階で作成された
長さの不均一なストリグ(主記憶装置を有効に活用して
作成された整順化されているデータの列)を第二段階で
併合処理するときの処理方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to the classification and merging of data processing systems, and particularly to the classification of large amounts of data that requires an auxiliary storage device as a temporary device during the classification process. This invention relates to a processing method when strings of non-uniform length (sequences of ordered data created by effectively utilizing the main memory) created in the first stage are merged in the second stage.
従来、この種の処理方式は、第一段階で作成し、−時的
に補助記憶装置に退避されたn本のストリングを第二段
階で退避された順序でm(m<n〉通り(n本のストリ
ングを1本に併合する〉にて併合処理し、ストリングが
m本以下になった段階で、第三段階の最終併合処理をす
るようになっている。Conventionally, this type of processing method has been used to store n strings created in the first stage and temporarily saved in the auxiliary storage device in m (m<n> ways (n The merging process is performed in ``Merge strings of books into one'', and when the number of strings becomes m or less, the third stage final merging process is performed.
上述した従来の第二段階での併合処理は、退避した順序
でストリングが併合されるため、入力データの内容によ
っては、退避する初期にデータ件数の多い、長いストリ
ングが作成された場合、これらを併合することで入出力
回数が多くなるという欠点がある。In the conventional merging process in the second stage described above, strings are merged in the order in which they were saved, so depending on the content of the input data, if long strings with a large number of data items are created at the beginning of saving, these strings may be merged. The disadvantage of merging is that the number of inputs and outputs increases.
本発明によれば、「主記憶装置だけでなく補助記憶装置
をも必要とするような大量のデータの分類処理において
、補助記憶装置に一時的に退避しておくストリングの各
々の補助記憶装置内の先頭アドレスを持つストリングデ
ィレクトリを、各ストリングの長さをキーとして、並び
換えた後併合処理をすることを特徴とするストリングデ
ィレクトリソート併合方式」が得られる。According to the present invention, ``In the classification process of a large amount of data that requires not only the main memory but also the auxiliary memory, each auxiliary memory stores a string that is temporarily saved in the auxiliary memory. A string directory sorting and merging method is obtained, which is characterized in that string directories having the start address of are rearranged using the length of each string as a key, and then merged.
次に、本発明の一実施例を示した図面を参照して、本発
明をより詳細に説明する。Next, the present invention will be described in more detail with reference to the drawings showing one embodiment of the present invention.
第1図を参照すると、本発明の一実施例において、点線
で囲まれた部分が本発明によって追加された部分である
。第一段階の分類処理後、補助記憶装置に一時的にスト
リングとして退避するとともに主記憶装置にそのストリ
ングの先頭アドレスとストリング長を持ったストリング
ディレクトリを作成する。第二段階で、そのストリング
ディレクトリをストリング長で分類し昇順に並び換える
。その後、併合処理を実行する。Referring to FIG. 1, in one embodiment of the present invention, the portion surrounded by dotted lines is the portion added according to the present invention. After the first stage classification process, the string is temporarily saved as a string in the auxiliary storage device, and a string directory with the start address and string length of the string is created in the main storage device. In the second step, the string directory is sorted by string length and sorted in ascending order. After that, merge processing is executed.
第2図は従来方式による第二段階の処理を行なった場合
を説明する図である。ストリングが7本作成され、これ
を4通りにて併合処理した場合、図示の例では18人出
力単位で入力および出力が行なわれる。FIG. 2 is a diagram illustrating a case where the second stage processing is performed according to the conventional method. When seven strings are created and these strings are merged in four ways, input and output are performed in units of 18 people in the illustrated example.
第3図は、本実施例における第二段階の処理を行なった
場合を示し、第2図のストリング7本をストリング長で
分類後に4通りにて併合処理した場合、9人出単車位で
入力および出力が行なわれる。したがって、従来の方式
に比べて、第二段階での入出力が半減している。Figure 3 shows the case where the second stage processing in this embodiment is performed, and when the seven strings in Figure 2 are classified by string length and merged in four ways, the input is performed in a single car position with nine people. and output is performed. Therefore, compared to the conventional method, the input/output in the second stage is halved.
第3図の併合処理の後、第三段階の最終併合処理が4通
りで実行されるが、このときの入出力回数は、従来方式
の場合と同じである。After the merging process shown in FIG. 3, the final merging process at the third stage is executed in four ways, but the number of inputs and outputs at this time is the same as in the conventional method.
以上説明したように、本発明によれば、併合処理前にス
トリグ長をキーとしてストリングディレクトリを昇順に
並び換えることにより、入出力回数を減らすことができ
、分類処理時間の短縮化が実現できる。As described above, according to the present invention, by rearranging string directories in ascending order using the string length as a key before merging processing, it is possible to reduce the number of inputs and outputs, and shorten the classification processing time.
第1図は本発明の一実施例の動作を示すフローチャート
、第2図は従来の方式における第二段階の併合処理を説
明する図、第3図は本実施例における第二段階の併合処
理を説明する図である。FIG. 1 is a flowchart showing the operation of an embodiment of the present invention, FIG. 2 is a diagram explaining the second-stage merging process in the conventional method, and FIG. 3 is a diagram explaining the second-stage merging process in the present embodiment. FIG.
Claims (1)
な大量のデータの分類処理において、補助記憶装置に一
時的に退避しておくストリングの各々の補助記憶装置内
の先頭アドレスを持つストリングディレクトリを、各ス
トリングの長さをキーとして、並び換えた後併合処理を
することを特徴とするストリングディレクトリソート併
合方式。A string directory with the start address of each string in the auxiliary storage device that is temporarily saved in the auxiliary storage device when classifying a large amount of data that requires not only the main storage device but also the auxiliary storage device. A string directory sorting and merging method is characterized in that the strings are sorted using the length of each string as a key and then merged.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1334386A JPH03192437A (en) | 1989-12-21 | 1989-12-21 | String directory sort merging system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1334386A JPH03192437A (en) | 1989-12-21 | 1989-12-21 | String directory sort merging system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03192437A true JPH03192437A (en) | 1991-08-22 |
Family
ID=18276793
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1334386A Pending JPH03192437A (en) | 1989-12-21 | 1989-12-21 | String directory sort merging system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03192437A (en) |
-
1989
- 1989-12-21 JP JP1334386A patent/JPH03192437A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH02178730A (en) | Internal sorting system using dividing method | |
JPH03192437A (en) | String directory sort merging system | |
JP3061486B2 (en) | Data sort processing system | |
JPS6266326A (en) | Array processing system for japanese data | |
JPH01173230A (en) | Merge processing system | |
JPH03259329A (en) | Key relative address classifying system for bulk data | |
JP2926803B2 (en) | Sorting method | |
JPH0324617A (en) | Data processing system | |
JPH03216730A (en) | Electronic computer | |
JPS6385823A (en) | Multi-key sorter | |
JPH0378666B2 (en) | ||
JPH01288920A (en) | Data sorting device | |
JPH02294729A (en) | Sort processing system | |
JPH04195427A (en) | Two-dimensional table data comparing system | |
JPH05241785A (en) | Sorting processing system | |
JPS62157942A (en) | Record linking system in two files | |
JPH03290730A (en) | System for sorting data classification | |
JPS62212726A (en) | Compression processing system for index key | |
JPH0199125A (en) | Link classifying system | |
JPH04102918A (en) | Sorting processing system | |
JPH0324629A (en) | Method for controlling task | |
JPH06274391A (en) | Master file quick update processing system | |
JPH0683683A (en) | File name change processing device/method | |
JPH03260722A (en) | Sorting system | |
JPS63226729A (en) | Linkage editor processing system |