JPH0365571B2 - - Google Patents
Info
- Publication number
- JPH0365571B2 JPH0365571B2 JP58006556A JP655683A JPH0365571B2 JP H0365571 B2 JPH0365571 B2 JP H0365571B2 JP 58006556 A JP58006556 A JP 58006556A JP 655683 A JP655683 A JP 655683A JP H0365571 B2 JPH0365571 B2 JP H0365571B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- search
- priority
- comparison
- address
- 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 - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90344—Query processing by using string matching techniques
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【発明の詳細な説明】
技術分野
本願発明は、検索対象のデータから優先順位に
複数個のデータを順位付けて検索するための該当
データのアドレス格納制御方式に関するものであ
る。DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to an address storage control method for data to be searched by ranking and searching a plurality of pieces of data in priority order.
従来技術
従来ハードウエアを用いて情報検索を行う場
合、検索データと一致のとれた被検索データのア
ドレスを格納する方法として、アドレス格納専用
メモリを用意し、該当のとれたレコードアドレス
を格納すると共に処理を一時的に終了するか、も
しくは順次新規該当レコードアドレスを更新する
方法がある。但し従来の検索手法では単一処理内
に抽出可能なレコード数は1件であり、複数件数
をリアルタイムに抽出する事は困難であり、可能
ならしめるには大きなハードウエアを必要とし
た。Prior Art When performing information retrieval using conventional hardware, as a method of storing addresses of searched data that match the search data, a memory dedicated to storing addresses is prepared, and the matching record address is stored. There are two methods: to temporarily end the process, or to sequentially update new corresponding record addresses. However, with conventional search methods, the number of records that can be extracted in a single process is one, making it difficult to extract multiple records in real time and requiring large hardware to make it possible.
磁気デイスク等の外部記憶装置を備えた情報検
索装置では所望の情報を抽出する場合、外部記憶
装置内の多量な情報を一担中央処理装置内の主メ
モリに格納し、メモリ内で検索する方法がとられ
ていた。又磁気デイスクからの読み出し情報をリ
アルタイムに処理し、所望の情報を抽出するに
は、1回のアクセスに対し1件の情報しか得られ
ず、多量の件数を必要とするアプリケーシヨンに
おいては、その件数分だけ前記外部記憶装置への
アクセスを必要とし、多くの時間を要する欠点が
あつた。 When extracting desired information from an information retrieval device equipped with an external storage device such as a magnetic disk, there is a method of storing a large amount of information in the external storage device in the main memory of a central processing unit and searching within the memory. was taken. In addition, in order to process the read information from the magnetic disk in real time and extract the desired information, only one piece of information can be obtained per access, and in applications that require a large number of pieces of information, it is difficult to extract the desired information. It is necessary to access the external storage device for the number of cases, which has the disadvantage of requiring a lot of time.
目 的
本発明は上述した従来の欠点を改良すると共
に、単一処理時間内に複数件の情報の抽出を可能
とし、検索の結果の該当レコードアドレスの格納
方式を柔軟なかつ安価で高速処理可能とする構成
のアドレス格納制御方式を提供することを目的と
する。Purpose The present invention improves the above-mentioned conventional drawbacks, makes it possible to extract multiple items of information within a single processing time, and makes it possible to store the corresponding record address of the search result in a flexible, inexpensive, and high-speed processing manner. The purpose of the present invention is to provide an address storage control method with a configuration of:
実施例
以下に本発明の一実施例を図面を参照して説明
する。Embodiment An embodiment of the present invention will be described below with reference to the drawings.
第1図は本発明を実現した情報検索装置のブロ
ツクダイヤフラムである。 FIG. 1 shows a block diaphragm of an information retrieval device embodying the present invention.
1は本情報検索装置の制御下にある外部記憶装
置、2は前述した外部記憶装置1のデータ及びク
ロツクを制御及び送受信用のインタフエイスA。
3は前述した外部記憶装置1のアドレス及び外部
記憶装置1からのリターン情報を送受信するイン
タフエイスB。4は前述の1,2,3及び本発明
情報検索装置全体の制御を司る制御部MCT。5
は後述する内部バスラインを切変え、前記制御部
MCT4の指示でデータの方向をも制御するスリ
ーステートゲート。6は検索情報の検索手法を指
示する情報を一時記憶するメモリJM。7は検索
情報の初期値を格納するメモリQ1である。メモ
リQ2,8、メモリQ3,9はメモリJM6、メ
モリQ1,7の内容に従つて、外部記憶装置1よ
り抽出された被検索データが一時格納、もしくは
一時格納された被検索データが第2、第3の抽出
データを検索する為の検索データ格納メモリとな
るバツフアメモリ兼用検索レジスタである。10
は外部記憶装置1からインタフエイスA2を介し
て読み出されるデータと、メモリQ1,7から読
み出されるデータとを比較する比較器CM1。1
1及び12は上述のCM1,10同様読み第しデ
ータとメモリQ2,8又はメモリQ3,9より読
み出されるデータとを比較する比較器CM2又は
CM3。13はメモリJM6、メモリQ1,7、
メモリQ2,8、メモリQ3,9のアドレス及び
被検索データの長さを制御するレングスカウンタ
L,C。14はCM1,10,CM2,11,
CM3,12の各比較器出力の論理制御を司り
LC13の動作を制御し、後述する該当レコード
アドレス格納メモリADM16及び該当レコード
ステータス格納メモリSTM7に所定の制御情報
を送出する検索論理回路制御部IRCT。15は
MCT4の出力情報に従い、被検索データの区切
りをカウントし、各データの一連のまとまり(レ
コード)毎に該アドレスとして保持し、IRCT1
4の指示によりAPM16へ送出するレコードア
ドレスカウンタRADC。16は前述した如く、
RADC16の内容を、IRCT14の指示により一
時的にレコードアドレスを格納するメモリ
ADM。17は被検索データの状態(該当の有無
や、以前に同一データが存在した事を表わす複数
該当の有無情報等)を格納するメモリSTM。1
8は本発明の情報検索装置と上位装置等を接続す
る為のバスインタフエイスBIF。19は前述した
外部記憶装置1からの生情報が行きかう高速バス
ラインMBCS。20はMLT4の制御下で各メモ
リの状態及びカウンタ値やBI18への情報が行
きかうSBUS。21は本情報検索装置と上位装置
間の通信手段LBUSで、BIF18により任意な通
信手段を構築することが出来る。 1 is an external storage device under the control of this information retrieval device; 2 is an interface A for controlling, transmitting and receiving data and clocks of the external storage device 1;
3 is an interface B for transmitting and receiving the address of the external storage device 1 and return information from the external storage device 1; 4 is a control unit MCT which controls the above-mentioned 1, 2, 3 and the entire information retrieval device of the present invention. 5
switches the internal bus line, which will be described later, and
A three-state gate that also controls the direction of data according to instructions from MCT4. 6 is a memory JM that temporarily stores information instructing a search method for search information. 7 is a memory Q1 that stores initial values of search information. The memories Q2, 8 and memories Q3, 9 temporarily store the searched data extracted from the external storage device 1, or temporarily store the temporarily stored searched data, according to the contents of the memories JM6 and memories Q1, 7. This is a search register that also serves as a buffer memory and serves as a search data storage memory for searching the third extracted data. 10
Comparator CM1.1 compares data read from external storage device 1 via interface A2 with data read from memories Q1 and 7.
1 and 12 are comparators CM2 or CM2, which compare the read data with the data read from the memories Q2, 8 or the memories Q3, 9, similar to the above-mentioned CM1, 10.
CM3.13 is memory JM6, memory Q1,7,
Length counters L, C that control the addresses of memories Q2, 8, memories Q3, 9 and the length of searched data. 14 is CM1, 10, CM2, 11,
Controls the logic control of each comparator output of CM3 and 12.
A search logic circuit control unit IRCT that controls the operation of the LC 13 and sends predetermined control information to a corresponding record address storage memory ADM16 and a corresponding record status storage memory STM7, which will be described later. 15 is
According to the output information of MCT4, the division of searched data is counted, each set of data (record) is held as the corresponding address, and IRCT1
Record address counter RADC sent to APM 16 according to the instruction of 4. 16, as mentioned above,
A memory that temporarily stores the contents of RADC16 and record addresses according to instructions from IRCT14.
ADM. Reference numeral 17 denotes a memory STM that stores the state of searched data (presence or absence of a match, information on the presence or absence of multiple matches indicating that the same data previously existed, etc.). 1
Reference numeral 8 denotes a bus interface BIF for connecting the information retrieval device of the present invention and higher-level devices. 19 is a high-speed bus line MBCS through which raw information from the external storage device 1 mentioned above is exchanged. 20 is an SBUS through which the status of each memory, counter values, and information to the BI 18 are exchanged under the control of the MLT4. 21 is a communication means LBUS between this information retrieval device and a host device, and an arbitrary communication means can be constructed using the BIF 18.
次に本発明の好適な実施例である情報検索装置
の動作原理を図面を参照して詳述する。 Next, the principle of operation of an information retrieval device according to a preferred embodiment of the present invention will be explained in detail with reference to the drawings.
第2図は本発明の動作フローチヤートである。
第1図のLBUS21を介し所定フオーマツトで本
情報処理装置へインストラクシヨン及び検索すべ
き被検索データの格納されている外部記憶装置1
のアドレス又は各フアイル単位のフアイル名等が
上位装置より送出され、出された情報は制御部
(MCT)4にて解読され、各検索レジスタ及びイ
ンタフエイスB3を介して外部記憶装置1への制
御等が実行され検索処理が開始となる。検索レジ
スタJM,Q1に所定の初期値が設定されると
(ステツプ100,101)、外部記憶装置1はデ
ータの読み出しサイクルに入る(ステツプ10
2)。そして外部記憶装置1が検索をすべきアド
レスに到達するまで待ち時間となり、検索指示ア
ドレスに到達すると(ステツプ103−Y)、
MCH4よりLC13及びRADC15に検索開始指
令が送出され(ステツプ104)、外部記憶装置
1の読み出し速度に同期して、JM6の内容に従
い、Q1,7とインタフエイスA2を介し、
MBUS19上に出力されている外部記憶装置1
の読み出しデータとの比較が実行される(ステツ
プ105)。この比較は1クロツクサイクルの前
後半を利用して、被検索データに対し上限値(又
は下限値)、下限値(又は上限値)の初期値であ
る2種情報を比較し、被検索データが初期設定し
た値の中に含まれるか否かを判別する。次に“Q
1にて該当あり”と判断されると、該データが第
一優先順位のデータか否か選択される(ステツプ
106)、第一優先順位でない場合は次に第二優
先順位のデータか否か選択される(ステツプ10
7)。 FIG. 2 is an operational flowchart of the present invention.
An external storage device 1 in which instructions and search data to be searched are stored in the information processing apparatus in a predetermined format via the LBUS 21 in FIG.
address or file name for each file is sent from the host device, the sent information is decoded by the control unit (MCT) 4, and controlled to the external storage device 1 via each search register and interface B3. etc., and the search process begins. When predetermined initial values are set in the search registers JM and Q1 (steps 100 and 101), the external storage device 1 enters a data read cycle (step 10).
2). There is a waiting time until the external storage device 1 reaches the address to be searched, and when the search instruction address is reached (step 103-Y),
A search start command is sent from MCH4 to LC13 and RADC15 (step 104), and in synchronization with the read speed of external storage device 1, according to the contents of JM6, via Q1, 7 and interface A2,
External storage device 1 output on MBUS19
A comparison with the read data is performed (step 105). This comparison uses the first and second half of one clock cycle to compare two types of information, which are the upper limit value (or lower limit value) and the initial value of the lower limit value (or upper limit value), to the searched data. is included in the initialized values. Next “Q
If it is determined that the data is applicable in step 1, it is selected whether the data has the first priority or not (step 106), and if it is not the first priority, then whether or not the data has the second priority is selected. selected (step 10)
7).
第一優先順位として選択される条件は
(1) 検索指示された範囲内で最初に該当があつた
場合。 The conditions for selection as the first priority are (1) When the first match is found within the specified search range.
(2) Q2,Q3に格納されている該当データよ
り、より極限値に近い場合。(2) When the value is closer to the limit value than the corresponding data stored in Q2 and Q3.
第二優先順位として選択される条件は、
(1) 検索指示された範囲内で、2回目に該当があ
つた場合でかつ1回目の該当データより極限値
から遠いか、もしくは1回目の該当データと等
しい場合。 The conditions to be selected as the second priority are: (1) If a match is found for the second time within the specified search range, and the corresponding data is further from the extreme value than the first time, or the first match data is found. If equal to .
(2) Q2,Q3に格納されている第一優先、第二
優先順位のデータに対し、既第一優先順位デー
タより極限値から遠く既第二優先順位データよ
り極限値に近い場合(この場合該データは既第
二優先順位データにかわり、第二優先順位デー
タとなる)。(2) When the first priority and second priority data stored in Q2 and Q3 are farther from the extreme value than the existing first priority data and closer to the extreme value than the existing second priority data (in this case This data replaces the existing second priority data and becomes second priority data).
もし第一優先順位のデータと判断されると(ス
テツプ106−Y)、Q2,8及びQ3,9に格
納されているデータが同一内容であるか否かのフ
ラツグ;FSDBを判断し(ステツプ108)、も
しFSDB≠1ならば(同一内容でなければ)検索
開始から最初の該当データか、もしくはQ2,8
及びQ3,9に格納されているデータより優先度
の高いデータが被検索データとして入力されたこ
とになる。このため、過去に第一優先順位データ
と同一データの被検索データがあつたことを示す
FDBLフラツグがセツトされているかを判断し
(ステツプ113)、もしセツトされていればそれ
をリセツトする(ステツプ114)。その後ワー
ク領域に格納されている被検索データを第一優先
順位のデータとするため被検索データの記録され
ていたレコードアドレスカウンタの値をメモリ
ADMにセツトする(ステツプ111)と共に、
Q2,8,Q3,9内の被検索データに格納され
ているワーク領域を検索データ領域とし、Q2,
8,Q3,9内の極限値より遠いデータを削除
し、該データ格納場所が新規ワーク領域となる
(ステツプ112)。 If it is determined that the data has the first priority (step 106-Y), the flag; FSDB is determined as to whether the data stored in Q2, 8 and Q3, 9 have the same content (step 108 ), if FSDB≠1 (if not the same content), it is the first corresponding data from the start of the search, or Q2, 8
This means that data with a higher priority than the data stored in Q3 and Q9 has been input as searched data. Therefore, it indicates that there was searched data with the same data as the first priority data in the past.
It is determined whether the FDBL flag is set (step 113), and if so, it is reset (step 114). After that, in order to make the searched data stored in the work area the first priority data, the value of the record address counter where the searched data was recorded is stored in memory.
In addition to setting it to ADM (step 111),
The work area stored in the searched data in Q2, 8, Q3, and 9 is set as the search data area, and Q2,
8, Q3, and 9 are deleted, and the data storage location becomes a new work area (step 112).
又FSDB=1ならQ2,8,Q3,9に格納さ
れている既該当データは等しく被検索データすな
わち該第一優先データが既該当データより極限値
に近い為、既該当データのうち一方を削除しなけ
ればならないが、過去に既該当データと等しいデ
ータが存在したことを示すためFDBLフラツグを
セツトし(ステツプ109)、その後既該当デー
タが同一であることを示すFSDBフラツグをリセ
ツトする(ステツプ110)。 Also, if FSDB=1, the corresponding data stored in Q2, 8, Q3, and 9 are equally searched data, that is, the first priority data is closer to the limit value than the existing data, so one of the existing data is deleted. However, the FDBL flag is set to indicate that data equal to the previously applicable data existed in the past (step 109), and then the FSDB flag is reset to indicate that the previously applicable data is the same (step 110). ).
そして前述したFSDB=1の時と同様レコード
アドレスカウンタの値をメモリADMにセツト時
間的に後ろの既該当データ(検索指示範囲内アド
レスの後方に近い既該当データをさす。)が削除
され(ステツプ111)、前述したQ2もしくは
Q3の削除されたデータ領域が次レコードの為の
ワーク領域として確保される(ステツプ112)。 Then, in the same way as when FSDB = 1 mentioned above, the value of the record address counter is set in the memory ADM, and the corresponding data that is later in time (referring to the existing data that is near the end of the address within the search instruction range) is deleted (the step is started). 111), the deleted data area of Q2 or Q3 mentioned above is secured as a work area for the next record (step 112).
次に第一優先順位でないと判断されると(ステ
ツプ106−N)、前述した第二優先順位の条件
を満足しているか否かを判別し(ステツプ10
7)、第二優先順位のデータと判断されると、該
第二優先順位データが既第一優先順位データと等
しいか判断し(ステツプ115)、等しければQ
2,8,Q3,9レジスタに格納されているデー
タが等しい事を意味し、次に該当データが第一優
先順位データとして上位に割込んできたときに、
前記FDBLをセツトする為のフラツグ、FSDB
(Q2,Q3の既該当データが等しい事を表わ
す。)をセツトし(ステツプ116)、レコードア
ドレスカウンタの値をメモリADMにセツトし
(ステツプ114)、今まで第二優先順位のデータ
が格納されていた領域を新たにワーク領域とし、
被検索データの格納されていた領域を新たな第二
優先順位のデータの検索データとする(ステツプ
112)。 Next, if it is determined that it is not the first priority (step 106-N), it is determined whether the above-mentioned conditions for the second priority are satisfied (step 106-N).
7) When it is determined that the second priority data is the second priority data, it is determined whether the second priority data is equal to the existing first priority data (step 115), and if they are equal, the Q
This means that the data stored in the 2, 8, Q3, and 9 registers are equal, and the next time the corresponding data interrupts the upper rank as first priority data,
Flag for setting the above FDBL, FSDB
(This indicates that the corresponding data of Q2 and Q3 are equal.) is set (step 116), and the value of the record address counter is set in the memory ADM (step 114). The area used to be used as a new work area,
The area where the searched data was stored is set as the new search data for the second priority data (step 112).
又第二優先順位データが第一優先順位データと
異なつた場合
例えば小順ソート処理で、
第一優先順位データ<第二優先順位データの時
は、通常の該当ありデータとして処理され特別な
フラツグのセツトやリセツトを伴わない。すなわ
ちレコードアドレスをメモリADMにセツトし
(ステツプ111)、削されたデータ領域が新たな
ワーク領域として確保される(ステツプ112)。 Also, if the second priority data is different from the first priority data, for example, in a descending sort process, if the first priority data < the second priority data, it will be treated as normal applicable data and a special flag will be set. Does not involve setting or resetting. That is, the record address is set in the memory ADM (step 111), and the deleted data area is secured as a new work area (step 112).
又ステツプ107で第二優先順位でないと判断
された場合は、該データが第二優先順位データと
等しいか否かを判断し(ステツプ117)、もし
等しいならばQ2,8Q3,9に格納されている
該当データと同じデータが存在する事を示す
FDBLフラツグをセツトする(ステツプ118)。
その後『該当なし』として処理される(ステツプ
119)。 If it is determined in step 107 that the data is not the second priority data, it is determined whether the data is equal to the second priority data (step 117), and if they are equal, the data is stored in Q2, 8, Q3, and 9. Indicates that the same data as the corresponding data exists.
Set the FDBL flag (step 118).
Thereafter, it is processed as "not applicable" (step 119).
次に第3図を用いて実際のデータの格納状態及
び比較状態を時間の流れによつて説明する。第3
図は任意な数値情報を50〜125まで小順ソートを
実行した時のデータの流れとQ1,7,Q2,
8,Q3,9のデータの格納状態及びレコードア
ドレスの格納状態を表わす。図において時間はT
0〜T1,T2,……Tnと流れ、被検索データ
はデイスク装置等の外部記憶装置からのリード出
力、各データの区別としてレコードN0,R0,
R1,……Rnがある。Q1,7にはソートする
場合の極限値、下限と上限が格納され第1図比較
器7により被検索データが所望の値の中に含まれ
ているかをチエツクする。すなわちフローチヤー
トのステツプ105であり、T0では50<123<
125ゆえR0=123は『該当あり』と判別され、Q
2,8のワーク領域Wに格納される。T1ではQ
1で50<99<125であり同様にR1=99は『該当
あり』と判別されQ2,8で99<123が成立する
ゆえ、R1=99が第一優先順位データとなりR0
=123は第二優先順位データとなる。又各該当レ
コードアドレスは第3図のレコードアドレスの格
納状態に示されており上が第一優先、下が第二優
先順位を表わす。T2ではQ1で50<105<125ゆ
え『該当あり』であるが、Q2及びQ3では、99
<105<123が成立するゆえ、今まで第二優先順位
であつたR0=123が削除される。レコードアド
レスも1とR2を格納する。T3ではQ1の条件
はT2同様であるがQ2,Q3では99=99<105
となるR2=105が削除され、第一、第二優先順
位データが等しい為FSDBがセツトされる。T4
ではQ1の条件では満足されるが、Q2,Q3で
の条件99=99<102となりR4のデータは優先順
位が低いため『該当なし』と判別される。T5で
はQ1は『該当あり』Q2,Q3では91<99=99
が成立する為第一優先順位データとなりR3=99
が削除される。R3=99とR1=99は等しい為前
述の如くFSDB=1で第一優先順位データが存在
したゆえ、FDBLがセツトされ、レジスタに格納
されたデータ以外に等しいデータの存在の有無を
知る事ができる。T6ではQ1の条件は満足する
がQ2,Q3で91<R6≦99はR6=100ゆえ成
立しない為、『該当なし』となる。T7ではQ1
の条件は満足、Q2,Q3ではR7(85)<91<
99が成立するゆえ、第一優先順位データとなりR
7=85が第一で、R5=91が第二優先順位とな
り、R1=99が削除される。よつてQ2,Q3に
は(99)がなくなる為FDBLはリセツトする。 Next, using FIG. 3, the actual data storage state and comparison state will be explained in terms of the flow of time. Third
The figure shows the flow of data when arbitrary numerical information is sorted in descending order from 50 to 125, and Q1, 7, Q2,
8, Q3, and 9, and the record address storage state. In the figure, time is T
0 to T1, T2, ...Tn, the data to be searched is read output from an external storage device such as a disk device, and records N0, R0, R0, etc. are used to distinguish each data.
There are R1,...Rn. The limit values, lower limit and upper limit for sorting are stored in Q1 and Q7, and the comparator 7 shown in FIG. 1 checks whether the data to be searched is included in the desired values. That is, step 105 of the flowchart, and at T0 50<123<
125, therefore R0=123 is determined to be “applicable” and Q
It is stored in work areas W 2 and 8. Q at T1
1, 50<99<125, and similarly, R1=99 is determined to be "applicable", and 99<123 holds true for Q2 and 8, so R1=99 becomes the first priority data and R0
=123 becomes second priority data. Further, each corresponding record address is shown in the storage state of record addresses in FIG. 3, with the upper one representing the first priority and the lower one representing the second priority. In T2, 50 < 105 < 125 in Q1, so it is "applicable", but in Q2 and Q3, 99
Since <105<123 holds, R0=123, which has been the second priority, is deleted. The record address also stores 1 and R2. In T3, the conditions of Q1 are the same as T2, but in Q2 and Q3, 99=99<105
R2=105 is deleted, and since the first and second priority data are equal, FSDB is set. T4
Then, the condition of Q1 is satisfied, but the condition of Q2 and Q3 is 99=99<102, and the data of R4 has a low priority, so it is determined as "not applicable". In T5, Q1 is "Applicable", in Q2, 91 < 99 = 99
Since this holds true, it becomes the first priority data and R3=99
will be deleted. Since R3 = 99 and R1 = 99 are equal, as mentioned above, FSDB = 1 and first priority data exists, so FDBL is set and it is possible to know whether or not equivalent data exists other than the data stored in the register. can. In T6, the condition of Q1 is satisfied, but in Q2 and Q3, 91<R6≦99 does not hold because R6=100, so it becomes "not applicable". Q1 at T7
conditions are satisfied, R7(85)<91< for Q2 and Q3
Since 99 holds, it becomes the first priority data and R
7=85 is the first priority, R5=91 is the second priority, and R1=99 is deleted. Therefore, since (99) is no longer present in Q2 and Q3, FDBL is reset.
レコードアドレスは毎レコードメモリADMへ
格納されるが、『該当あり』と判断されるとレコ
ードアドレスの先頭該当有無情報を付加して
ADMへ格納される。ADMはn段のスタツク構
造で、任意時間(このレコードの読み取りが終了
するまでの任意な時間)にACTがADMのデータ
がチエツクするより前述した如く1回のソート処
理で複数件のレコード(被検索データ)を抽出
し、そのレコードのアドレスも知る事ができる。
物理的にQ2,Q3の大きさを外部記憶装置の大
さに近づける事により、より多くのデータが1回
で抽出可能となる。すなわちデイスク装置等にラ
ンダムに記憶(数値的に大小関係を表わした場合
の順不同を表わす。)された情報をデイスクの1
回サーチにより小順あるいは大順にならびかえる
事が可能となる。このレコードアドレスの構成を
第4図に示す。また第5図に各レジスタと被検索
データとの関係を表わす。I1,I2,……15
は各レコード(RN,RN+1……)内のアイテ
ムを表わす。各アイテムは各々が検索時のキー対
称となりうると共にI1,I2,I3の如く各ア
イテムの論理積検索及びI1+I2+I3の始論
理和検索が可能な一情報の単位である。この様な
検索はQ2,Q3の大きさにより時分割にて同一
被検索データに対して複個の比較検索データを対
象として比較することによつて極めて容易な構成
で高速な検索処理が実現する。 The record address is stored in the record memory ADM for each record, but if it is determined that there is a match, matching information is added to the beginning of the record address.
Stored in ADM. ADM has an n-stage stack structure, and ACT checks the data in ADM at any time (any time until the end of reading this record). Search data) can be extracted and the address of that record can also be found.
By physically bringing the sizes of Q2 and Q3 closer to the size of the external storage device, more data can be extracted at one time. In other words, information stored randomly in a disk device, etc. (representing random order when numerically representing a magnitude relationship) is stored on one of the disks.
By searching twice, it is possible to sort the items in ascending or ascending order. The structure of this record address is shown in FIG. Further, FIG. 5 shows the relationship between each register and the data to be searched. I1, I2,...15
represents an item within each record (RN, RN+1...). Each item is a unit of information that can be used as a key symmetry at the time of a search, and it is possible to perform a logical product search of each item such as I1, I2, and I3, and a starting logical OR search of I1+I2+I3. In such a search, multiple comparison search data are compared against the same searched data in a time-sharing manner depending on the size of Q2 and Q3, thereby realizing high-speed search processing with an extremely simple configuration. .
効 果
以上述べた様に本発明のアドレス格納制御方式
を用いることにより単一処理時間内に複数件の情
報の検索を実現すると共に高速処理を可能とする
情報検索が実現し、検索対象のデータを順次1つ
ずつ処理し、処理が全対象データについて一巡し
たときに、優先順に複数個のデータを順位付けて
検索することが可能となる。Effects As described above, by using the address storage control method of the present invention, it is possible to search for multiple pieces of information within a single processing time, and also to realize an information search that enables high-speed processing. are sequentially processed one by one, and when the processing has completed one cycle for all target data, it becomes possible to rank and search a plurality of pieces of data in order of priority.
第1図は本実施例のブロツクダイヤグラム、第
2図は動作フローチヤート、第3図は小順ソート
実行時のデータの流れを示す図、第4図はレコー
ドアドレスの構成を示す図、第5図は被検索デー
タと各レジスタとの対応を示す図である。
図において、1……外部記憶装置、2……イン
タフエイスA、3……インタフエイスB、4……
制御部、6……メモリJM、7……メモリQ1、
8……メモリQ2、9……Q3、10……比較器
CM1、11……比較器CM2、12……比較器
CM3、13……レングスカウンタ、14……検
索論理回路制御部、15……レコードアドレスカ
ウンタ、16……メモリADM、17……メモリ
STM、18……バスインタフエイスである。
FIG. 1 is a block diagram of this embodiment, FIG. 2 is an operation flowchart, FIG. 3 is a diagram showing the flow of data when performing sorting in ascending order, FIG. 4 is a diagram showing the structure of record addresses, and FIG. The figure is a diagram showing the correspondence between searched data and each register. In the figure, 1...external storage device, 2...interface A, 3...interface B, 4...
Control unit, 6...Memory JM, 7...Memory Q1,
8...Memory Q2, 9...Q3, 10...Comparator
CM1, 11... Comparator CM2, 12... Comparator
CM3, 13...Length counter, 14...Search logic circuit control unit, 15...Record address counter, 16...Memory ADM, 17...Memory
STM, 18... bus interface.
Claims (1)
て、 前記外部記憶装置より読み出された1個の被検
索データ及び所定の複数個の検索データを格納す
るデータ格納手段と、 被検索データを、前記複数個の検索データと比
較する比較手段と、 該比較手段に比較条件を与える比較条件格納手
段と、 前記比較手段による比較により該当するデータ
のアドレスを優先順位に従つて複数個格納するア
ドレス格納手段とを備え、 前記被検索データが前記比較手段による比較に
より該当する場合は、当該データのアドレスを前
記アドレス格納手段に格納し、前記データ格納手
段に格納された当該データを以後の検索における
検索とし、これにより検索が前記所定の個数をこ
える場合は、前記優先順位において最下位の検索
データを検索データより除外することを特徴とす
るアドレス格納制御方式。[Scope of Claims] 1. An information retrieval device using an external storage device, comprising: data storage means for storing one piece of search target data read from the external storage device and a plurality of predetermined pieces of search data; a comparison means for comparing search data with the plurality of search data; a comparison condition storage means for providing a comparison condition to the comparison means; and a plurality of addresses of the corresponding data according to the comparison by the comparison means. and an address storage means for storing, if the searched data is found to be applicable as a result of the comparison by the comparison means, the address of the data is stored in the address storage means, and the data stored in the data storage means is subsequently stored. An address storage control method characterized in that when the number of items searched exceeds the predetermined number, the lowest search data in the priority order is excluded from the search data.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58006556A JPS59133659A (en) | 1983-01-20 | 1983-01-20 | Address storage control system |
| US07/186,731 US4937779A (en) | 1983-01-20 | 1988-04-22 | Information retrieving apparatus capable of rearranging information stored in memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58006556A JPS59133659A (en) | 1983-01-20 | 1983-01-20 | Address storage control system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS59133659A JPS59133659A (en) | 1984-08-01 |
| JPH0365571B2 true JPH0365571B2 (en) | 1991-10-14 |
Family
ID=11641600
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58006556A Granted JPS59133659A (en) | 1983-01-20 | 1983-01-20 | Address storage control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS59133659A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5864549A (en) * | 1981-10-13 | 1983-04-16 | Fujitsu Ltd | Selecting circuit |
-
1983
- 1983-01-20 JP JP58006556A patent/JPS59133659A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS59133659A (en) | 1984-08-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR0152979B1 (en) | Variable length data processing apparatus | |
| US3332069A (en) | Search memory | |
| JPS60105039A (en) | Collation system of character string | |
| US4332014A (en) | Data retrieval system | |
| JPH0365571B2 (en) | ||
| US4937779A (en) | Information retrieving apparatus capable of rearranging information stored in memory | |
| JPS6132695B2 (en) | ||
| JPH0516607B2 (en) | ||
| JPH0516608B2 (en) | ||
| JPH04340163A (en) | Keyword retrieval system | |
| JPS61262924A (en) | electronic file device | |
| JPS5853791B2 (en) | character recognition device | |
| JPS5853384B2 (en) | General information | |
| JPH0642248B2 (en) | Information retrieval device | |
| JPS5914193A (en) | Memory circuit | |
| JPS5822773B2 (en) | Jiyouhoukensakuuchi | |
| SU1442992A1 (en) | Device for loading and rearranging a file | |
| JPH0423143A (en) | Data storing system | |
| JPH03202934A (en) | Data processor | |
| JPH048816B2 (en) | ||
| JPH03196260A (en) | Full sentence retrieving device | |
| Cohen | Ferrite Core Associative Memory | |
| JPS6074074A (en) | Priority control system | |
| JPH0752451B2 (en) | Information retrieval device | |
| JPH06161709A (en) | Key extracting device, key extracting method, sort processing device, and database processing device |