+

JPS6191723A - Sequence monitor and classification processing system - Google Patents

Sequence monitor and classification processing system

Info

Publication number
JPS6191723A
JPS6191723A JP21386284A JP21386284A JPS6191723A JP S6191723 A JPS6191723 A JP S6191723A JP 21386284 A JP21386284 A JP 21386284A JP 21386284 A JP21386284 A JP 21386284A JP S6191723 A JPS6191723 A JP S6191723A
Authority
JP
Japan
Prior art keywords
string
merging
length
comparison
strings
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.)
Granted
Application number
JP21386284A
Other languages
Japanese (ja)
Other versions
JPH0436415B2 (en
Inventor
Tadayoshi Ideshita
井手下 忠良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP21386284A priority Critical patent/JPS6191723A/en
Publication of JPS6191723A publication Critical patent/JPS6191723A/en
Publication of JPH0436415B2 publication Critical patent/JPH0436415B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To shorten a processing time without reference to the arrangement of input data by changing the sequence of string generation or merging plural strings when the length of a string is longer than a specific length. CONSTITUTION:A string generating means 1 consists of a substitution and selection part 1a and a comparison part 1b; the substitution and selection part 1a constitutes a tournament tree on its internal storage element and determines winners and losers at respective nodes of the tree, and the comparison part 1b makes a record comparison on the basis of a classification key at each node. A string length monitoring means 2 detects the length of a string outputted to a string storage means 3 and compares it with a reference value; when it is smaller than the reference value, the comparison part 1b inverts the comparison of the next string of the tournament to generate a string in the reverse sequence. A string merging means 4 when all data are inputted reads strings out of the string storage means 3 and beings to merge them, the merged string is rewritten in the string storage means 3 newly, and the merging operation is repeated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、市、子計立様区二よる事務データの分類処理
方式に関し、0には入力データからある程度並んだデー
タの列(以下、ストリングと称する)を生成、併合する
こと1二より行う順序監視分類処理方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a classification processing method for office data based on a city, a sub-institutional district, etc. 0 is a sequence of data arranged to some extent from input data (hereinafter referred to as This invention relates to an order-monitoring classification processing method that generates and merges strings (referred to as strings).

〔従来の技術〕[Conventional technology]

事務処理分野でのデータの分類処理は頻繁に行なわれ、
常【二高遠の処理が秩求される。従来の分類処理方式で
は第4図C二示すように、入カフニーズ11、併合フェ
ーズ12、出カフニーズ13の6つの7エーズから麟成
されることが一般面である。入力フェーズ11では、入
力データを読み、内部記憶装は上の作業領域内でストリ
ングを作成し、このストリングを外部記憶装置に出力し
ておく、そしてすべてのデータの入力後、併合フェーズ
12でこれらのストリングの併合を繰り返し、最終的な
併合の後、出力フェーズ16でデータの出力を行なう。
Data classification processing is frequently performed in the office processing field.
[Two high and far processing is always required. In the conventional classification processing method, as shown in FIG. 4C-2, it is generally composed of six 7-A's: incoming cuff needs 11, merging phase 12, and out cuffing needs 13. In the input phase 11, the input data is read, the internal storage creates a string in the working area above, and this string is outputted to the external storage, and after inputting all the data, the merge phase 12 stores these. The merging of the strings is repeated, and after the final merging, the data is output in an output phase 16.

〔発明がカイ決しようとする問題点〕[Problems that the invention attempts to resolve]

高速な分類処理のためζ二は併合7エーズの時間の短縮
が不可欠であるが、併合処理の時間(・マ入カフニーズ
11で作成されるストリング数の対it−二例するため
、いかなる入力データの列(二対しても作成されるスト
リングc1は小さいことが望ましい。しη)し上記の従
来の方式では、通常人力フェーズ11で作成されるスト
リング数は入力データの並び(二値1fシ、特(二分類
すべき順と逆の順からなる入力データの並びに対しては
多くのストリングが生成され、分%J anr理時開時
間常に畏くかかるという欠点があったり 〔問題点を解決するための手段〕 本発明(2係る順序監視分類処理方式は、ストリングを
生)Xする手段と、該生成されたストリングの長すを監
視する手段と、該監視≦二より前記ストリングの長さが
所定の畏さを下まわる場合、次ストリングの生成m序を
変更する手段と、前記生成されたストリングを併合する
手段と1二より分類処理を行い、入力データの並びミニ
よらず処理時間の短縮化を図るようにしたものである。
For high-speed classification processing, it is essential to shorten the time required for merging 7Azes, but the time required for merging processing (the number of strings created by Ma input Cuff Needs 11) In the conventional method described above, the number of strings created in the manual phase 11 is usually determined by the sequence of input data (binary 1f, In particular, there is a drawback that many strings are generated for input data sequences that are in the opposite order to the order in which they should be classified, and that it takes a long time to complete the process. [Means for] The present invention (the order monitoring classification processing method according to 2) includes a means for generating a string, a means for monitoring the length of the generated string, and a means for monitoring the length of the string from ≦2. If the accuracy is lower than a predetermined value, a means for changing the generation order of the next string, a means for merging the generated strings, and a classification process are performed in order to shorten the processing time without depending on the input data arrangement. It was designed to make the

〔良廁例〕[Good example]

以下、本発明の実施例について、図面を参照しながら説
明する。
Embodiments of the present invention will be described below with reference to the drawings.

第1図は、本発明C係る順序監視分類処理方式の1実1
G 9iを示すブロック色である。本実か1例は、スト
リング生成手段1、ストリング長監視手段2、ストリン
グ記憶!+I:? 3、およびストリング併合手段4か
ら構成されている。
FIG. 1 shows one example of the order monitoring classification processing method according to the present invention C.
This is a block color indicating G 9i. An example of this is string generation means 1, string length monitoring means 2, string storage! +I:? 3, and string merging means 4.

ストリング生成手段1は翫換違択部1aと比較Bitl
bとからなる。置挽ゴh択部1aでは内部記憶素子上に
第2図区2示すようなトーナメント木を情成し、その木
の各ノードC″−おける勝者9敗者を決定してゆく。比
較部1bでは、各ノードでの分子J+キーによるレコー
ドの比較を行う。
The string generation means 1 compares the string change selection section 1a with the bitl
It consists of b. In the selection section 1a, a tournament tree as shown in section 2 of Figure 2 is created on the internal storage element, and winners and losers at each node C'' of the tree are determined.In the comparison section 1b, , records are compared using the molecule J+key at each node.

その具体的な流れを第21(二示し℃ある。トーナメン
ト木の最上位のノードでの勝者(同1m (17では″
U″′)が出力され、ストリングを形成してゆく。
The specific flow is shown in the 21st (2nd section).The winner at the top node of the tournament tree
U''') are output and form a string.

そし工勝者(”U”)の出力された後のtlDt二次の
入力レコード(同Uη(2)では1T”)が格納され、
トーナメントζ:参加する。このとき、新たな入力レコ
ード(I T I″)は先はど出力されたレコード(”
Uつと比較され、現在のストリング(回)(2絖くこと
ができるかどうか判定され、現在のストリングに続くこ
とができるなら現在ストリングC:属するレコードとし
て区別され、続くことができなければ同図の国のようC
二次のストリング(2属するレコードとじ℃区別される
0 トーナメント木の上では、現在のストリングに属す
るレコード同志、および次のストリング(:属するレコ
ード同志の比較のみが行われる。もし、各ノードで現在
のストリングf二属するレコードと次のストリングに属
するレコードとがぶつかった場合は、現在のストリング
区二属するレコードが勝者としてトーナメントを登って
ゆく。現在のストリングの最終レコード(′″X”)が
出力された時点で、ストリング凹rfflW”fm′は
ストリング記憶手段乙に格納される。なお、ストリング
記憶手段3は磁気ディスク等の外部記憶装置E;より構
成される◎現在のストリングが児結すると、トーナメン
ト木の次のストリングQが現在のストリングとして出力
されはじめ(第2図(5)〜(8) ) 、トーナメン
ト上にはさらに次のストリングlff1=−・が形成さ
れはじめる(同図(9)〜(11))。
Then, the tlDt secondary input record (1T” in Uη(2)) after the output of the winner (“U”) is stored,
Tournament ζ: Participate. At this time, the new input record (I T I'') is the previously output record (''
It is compared with the current string (times) (2), and if the current string can be continued, the current string is distinguished as a record that belongs to C:, and if it cannot be continued, it is distinguished as the same record. Like the country of C
On the tournament tree, only comparisons are made between records belonging to the current string and between records belonging to the next string (:).If each node If a record belonging to the string f2 of the string f2 collides with a record belonging to the next string, the record belonging to the current string f2 will advance through the tournament as the winner. The last record ('"X") of the current string will be output. At the point in time when the current string has converged, the string concave rfflW"fm' is stored in the string storage means B.The string storage means 3 is composed of an external storage device E such as a magnetic disk. The next string Q of the tournament tree begins to be output as the current string ((5) to (8) in Figure 2), and the next string lff1=-. begins to be formed on the tournament ((9) in the same figure). ~(11)).

ストリング長監視手段2は、ストリング記憶手段6に出
力されたストリングの長さを検出し、基準値との比較を
行jrう。F換?P部1aで生F:されるストリングの
長さは、トーナメント(=格納できるレコード数をGと
すると、入力データが完全にランダムである聯合2Gと
なるため、基準値はG<基準値<2Gの範囲に設足され
る。ストリング長が基準値以下である間合、現在のスト
リング生成順は、入力データの並び(2不適当と判断さ
れ、ストリング生成手段1の比較部1bC通知する。す
ると、ストリング生成手段1の比較部1bは、トーナメ
ントの次のストリングの比較を反転し、逆順のストリン
グを作成する。具体的にはi 21:’:I (5)の
時点で、このような作用によって次のストリングの生成
順を変更している。この作用は、入力データの部分的な
並びC二対応しつつストリングの生成順を変更してゆく
The string length monitoring means 2 detects the length of the string output to the string storage means 6 and compares it with a reference value. F exchange? The length of the string produced by F: in P part 1a is tournament (=If the number of records that can be stored is G, then the input data is completely random, which is Yonhap 2G, so the standard value is G<standard value<2G. During the period when the string length is less than the reference value, the current string generation order is determined as the input data arrangement (2) is determined to be inappropriate and is notified by the comparison unit 1bC of the string generation means 1. , the comparison unit 1b of the string generation means 1 reverses the comparison of the next string of the tournament and creates a string in the reverse order.Specifically, at the time of i21:':I (5), such an operation is performed. The generation order of the next string is changed by C2.This action changes the generation order of the strings while corresponding to the partial arrangement C2 of the input data.

ストリング併合手段4は、ストリング併合i4aとスト
リング出力部4bとからなっている、すべての入力デー
タの入力が終了すると、ストリング併合部4a+二通知
される。ストリング併合部4aはストリング記憶手段3
からストリングを読込み、併合を開山する。併合時、ス
トリング数生成順の異なる場合は、それぞれのストリン
グの先頭あるいは終端からの併合を二より処理が行なわ
れる。併ばされたストリングは、新たなストリングとし
てストリング記憶手段6に謎き戻され、併合が繰り返さ
れる。ストリング数が最終の併合により1本となる段階
で、ストリング出力部4bから公卿結果の出力が行われ
分類処理が終了する。
The string merging unit 4 is composed of a string merging unit i4a and a string output unit 4b. When inputting all input data is completed, the string merging unit 4a+2 is notified. The string merging section 4a is the string storage means 3
Read the string from and open the merge. When merging, if the number of strings is generated in a different order, merging is performed from the beginning or the end of each string. The merged strings are returned to the string storage means 6 as new strings, and the merge is repeated. When the number of strings becomes one after the final merging, the string output section 4b outputs the result of the court noble, and the classification process ends.

第り I’l (1) を二、第2図で示した入力デー
タ(二よる生成ストリングと併合過程の一例を示し、第
3図(2)に従来方式によるものを示す。これらの図を
比較すれば、従来方式では中間の併合処理が必要である
の≦二対し、本実施例では中間の併合をバイパスして短
時間で分類結果を出力することが可能となる。
Figure 2 shows an example of the generated string and merging process, and Figure 3 (2) shows the conventional method. In comparison, the conventional method requires intermediate merging processing of ≦2, whereas in this embodiment, intermediate merging can be bypassed and classification results can be output in a short time.

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

本発明は以上説明したよう(=、ストリング長を瞥親し
つつ、作成ストリングの順を動的ζ二変更すること(二
より長いストリングを作り出し、結果として全体のスト
リング数を減らし分類処理時間を短縮できるという効果
がある。
As explained above, the present invention dynamically changes the order of created strings while keeping an eye on the string length. This has the effect of shortening the time.

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

第1図は本発明の−す′施し:・を示1−ブロック区、
第2図は第1図の置換遠択部’Iat二おけるトーナメ
ント木の遷移状態を示す図、第6図(1)および■はそ
れぞれ第1図の実施例および従来方式で生成されるスト
リング例とそれらの併合過43を示す図、i4図は従来
方式の分′プ;処理の成れ図である。 1・・・ストリング生成手段、1a・・・帽撃A択部、
1b・・・比較部、 2・・・ストリング長監視手段、
3・・・ストリング記憶手段、 4・・・ストリング併合手段、 4a・・・ストリング9ト合iW s 4b・・・ストリング出力部。
FIG. 1 shows the application of the present invention: 1-block area,
Fig. 2 is a diagram showing the transition state of the tournament tree in the permutation remote selection part 'Iat2 of Fig. 1, and Fig. 6 (1) and ■ are examples of strings generated by the embodiment of Fig. 1 and the conventional method, respectively. Figure i4, which shows the merging process 43 and their merging process, is a diagram of the separation process in the conventional method. 1... String generation means, 1a... Cap A selection section,
1b... Comparison section, 2... String length monitoring means,
3... String storage means, 4... String merging means, 4a... String 9 to sum iWs 4b... String output section.

Claims (1)

【特許請求の範囲】 ストリングを生成し、併合することにより行う分類処理
方式において、 ストリングを生成する手段と、 この生成されたストリングの長さを監視する手段と、 該監視により前記ストリングの長さが所定の長さを下ま
わる場合、次ストリングの生成順序を変更する手段と、 前記の生成されたストリングを併合する手段とを具備し
たことを特徴とする順序監視分類処理方式。
[Claims] A classification processing method performed by generating and merging strings, comprising: means for generating a string; means for monitoring the length of the generated string; and determining the length of the string by the monitoring. An order monitoring classification processing method comprising: means for changing the generation order of the next string when the length of the string is less than a predetermined length; and means for merging the generated strings.
JP21386284A 1984-10-12 1984-10-12 Sequence monitor and classification processing system Granted JPS6191723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21386284A JPS6191723A (en) 1984-10-12 1984-10-12 Sequence monitor and classification processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21386284A JPS6191723A (en) 1984-10-12 1984-10-12 Sequence monitor and classification processing system

Publications (2)

Publication Number Publication Date
JPS6191723A true JPS6191723A (en) 1986-05-09
JPH0436415B2 JPH0436415B2 (en) 1992-06-16

Family

ID=16646249

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21386284A Granted JPS6191723A (en) 1984-10-12 1984-10-12 Sequence monitor and classification processing system

Country Status (1)

Country Link
JP (1) JPS6191723A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02308325A (en) * 1989-05-24 1990-12-21 Fujitsu Ltd Tag tournament sorting method
EP0481248A3 (en) * 1990-10-18 1993-07-28 International Business Machines Corporation Vector merge sort

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02308325A (en) * 1989-05-24 1990-12-21 Fujitsu Ltd Tag tournament sorting method
EP0481248A3 (en) * 1990-10-18 1993-07-28 International Business Machines Corporation Vector merge sort

Also Published As

Publication number Publication date
JPH0436415B2 (en) 1992-06-16

Similar Documents

Publication Publication Date Title
Gill et al. Multiple-entry finite automata
TW200401206A (en) Enhanced multiway radix tree and related methods
JP2020135207A (en) Route search method, route search program, route search device and route search data structure
JP3630057B2 (en) Data structure construction method for search, apparatus thereof, and machine-readable program recording medium
Echenique Extensive-form games and strategic complementarities
JPS6191723A (en) Sequence monitor and classification processing system
KR20030035890A (en) Method of forming, searching, or generating quasi-minimum tree providing optimum network configuration, and information recording medium which stores program thereof
CN111581946B (en) Language sequence model decoding method
JPH1166096A (en) Data storage method, database stored by the data storage method, and search method of the database
US20040215595A1 (en) Finite-state machine augmented for multiple evaluations of text
JPS6257020A (en) Merging process system for relational data base
Knuth Lexicographic permutations with restrictions
JPS6339029A (en) Production of data base
JP3824091B2 (en) Relational database system
CN120125131A (en) A weighted graph path enumeration connection method, device and storage medium
JPH0248771A (en) How to merge discrimination networks
JPH04130566A (en) System model preparation device
JP2519336B2 (en) Technology-mapping method
JPS6346537A (en) Method for deciding retrieving condition of retrieving processor
JPH0652503B2 (en) Inference processor
JPS60239126A (en) Josephson decoder circuit
JPS6162235A (en) Viterbi decoding method
JPH05158982A (en) System for connecting data retrieving result
JPH03260867A (en) data processing system
TW201207725A (en) Parallel multiple-character string matching device
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载