[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JPH0516608B2 - - Google Patents

Info

Publication number
JPH0516608B2
JPH0516608B2 JP58006558A JP655883A JPH0516608B2 JP H0516608 B2 JPH0516608 B2 JP H0516608B2 JP 58006558 A JP58006558 A JP 58006558A JP 655883 A JP655883 A JP 655883A JP H0516608 B2 JPH0516608 B2 JP H0516608B2
Authority
JP
Japan
Prior art keywords
data
storage
information
storage means
memory
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
Application number
JP58006558A
Other languages
Japanese (ja)
Other versions
JPS59133641A (en
Inventor
Kenzo Ina
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP58006558A priority Critical patent/JPS59133641A/en
Publication of JPS59133641A publication Critical patent/JPS59133641A/en
Priority to US07/186,731 priority patent/US4937779A/en
Publication of JPH0516608B2 publication Critical patent/JPH0516608B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query 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

【発明の詳細な説明】 技術分野 本発明は電子機器における極限値抽出制御方式
において、外部記憶装置等への1回のアクセスに
対し、複数件の該当情報を抽出する情報検索装置
に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to an information retrieval device that extracts a plurality of pieces of corresponding information for one access to an external storage device or the like in a limit value extraction control method for electronic equipment.

従来技術 従来大容量情報が格納されている磁気デイスク
等を用いた情報検索装置において、オペレータが
要求する情報を得る場合、該磁気デイスク装置の
制御装置に所望する情報の特徴(あるいは
“KEY”と呼ばれる見出し)を与え該磁気デイス
ク装置へアクセスするが、一般的には、該磁気デ
イスク装置内の情報を制御装置内の主記憶装置に
転写し、該磁気デイスク装置へのアクセスが終了
した後該主記憶装置内の情報を前記した特徴に基
づいて検索を実行する。この為要求した情報を得
るのに不必要な情報をも一度主記憶装置内に格納
する必要と、該磁気デイスク装置へのアクセスと
該主記憶装置での情報検索時間とが必要になり、
該主記憶装置の容量を大きく必要とする欠点があ
る。
Prior Art Conventionally, in an information retrieval device using a magnetic disk or the like that stores a large amount of information, when an operator obtains requested information, the control device of the magnetic disk device is asked to identify the characteristics (or "KEY") of the desired information. Generally, the information in the magnetic disk device is transferred to the main storage device in the control device, and after access to the magnetic disk device is completed, the information in the magnetic disk device is accessed. The information in the main memory is searched based on the characteristics described above. Therefore, it is necessary to once store unnecessary information in the main memory to obtain the requested information, and it is necessary to access the magnetic disk device and search for information in the main memory.
There is a drawback that a large capacity of the main storage device is required.

又他の方式としては該磁気デイスク装置へのア
クセスタイム内に処理し、リアルタイムに該当情
報を得る方式がある。この方式は、該磁気デイス
ク装置から読み出される情報を該磁気デイスク装
置のアクセス中に実時間内に、前述した情報の特
徴と比較する事により、比較結果が該磁気デイス
クからの読出しデータと同期して得られ、即座に
該当情報か否かの判別がつくが、極小値、極大値
検索においては該磁気デイスク装置1回のアクセ
スにおいて得られる情報には複数件抽出する事は
困難であり、実現の為には複雑なハードウエアの
構成及びスペースを必要とした。
Another method is to perform processing within the access time to the magnetic disk device and obtain the relevant information in real time. This method compares the information read from the magnetic disk drive with the characteristics of the information described above in real time while the magnetic disk drive is being accessed, so that the comparison result is synchronized with the data read from the magnetic disk. However, in local minimum value and local maximum value searches, it is difficult to extract multiple items from the information obtained in one access to the magnetic disk device, and it is difficult to realize this. This required a complex hardware configuration and space.

目 的 本発明は、前述したリアルタイムに処理する情
報検索方式の欠点に鑑み成されたもので、ハード
ウエアの簡単な構成でかつ高速で極小値、極大値
検索(ソーテイング)にきわめて有効な情報検索
装置を提供することを目的とする。
Purpose The present invention was created in view of the drawbacks of the information retrieval method that processes in real time as described above, and is an information retrieval method that has a simple hardware configuration, is fast, and is extremely effective for local minimum and maximum value searches (sorting). The purpose is to provide equipment.

実施例 以下に本発明の一実施例を図面を参照して説明
する。第1図は本発明を実現した情報検索装置の
ブロツクダイヤグラムである。
Embodiment An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of an information retrieval device implementing 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)はメモリJM
6、メモリQ1(7)の内容に従つて、外部記憶装
置1より抽出された被検索データが一時格納、も
しくは一時格納された被検索データが第2、第3
の抽出データを検索する為の検索データ格納メモ
リとなるバツフアメモリ兼用検索レジスタであ
る。10は外部記憶装置1からインタフエイスA
2を介して読み出されるデータと、メモリQ1
(7)から読出されるデータとを比較する比較器
CM1。11及び12は上述のCM1(10)同様
読み出しデータとメモリQ2(8)又はメモリQ3
(9)より読出されるデータとを比較する比較器
CM2又はCM3。13はメモリJM6、メモリQ1
(7)、メモリQ2(8)、メモリQ3(9)のアドレ
ス及び被検索データの長さを制御するレングスカ
ウンタ(L・C)。14はCM1(10)、CM2(1
1)、CM3(12)の各比較器出力の論理制御を
司どりLC13の動作を制御し、後述する該当レ
コード、アドレス格納メモリ・ADM16及び該
当レコードステータス格納メモリSTM17に所
定の制御情報を送出する検索論理回路制御部
IRCT。15はMCT4の出力情報に従い、被検
索データの区切りをカウントし、各データの一連
のまとまり(レコード)毎に該アドレスとして保
持し、IRCT14の指示によりADM16へ送出
するレコードアドレスカウンタRADC。16は
前述した如く、RADC16の内容を、IRCT14
の指示により一時的にレコードアドレスを格納す
るメモリADM。17は被検索データの状態(該
当の有無や、以前に同一データが存在した事を表
わす複数該当の有無情報等)を格納するメモリ
STM。18は本発明の情報検索装置と上位装置
等を接続する為のバスインタフエイスBIF。19
は前述した外部記憶装置1からの生情報が行きか
う高速バスラインMBUS。20はMCT4の制御
下で各メモリの状態及びカウンタ値やBIF18へ
の情報が行きかうSBUS。21は本情報検索装置
と上位装置間の通信手段LBUSで、BIF18によ
り任意な通信手段を構築することが出来る。
1 is an external storage device under the control of this information retrieval device. Reference numeral 2 denotes an interface A for controlling, transmitting and receiving data and clocks of the external storage device 1 mentioned above. 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 that controls the above-mentioned 1, 2, 3 and the entire information retrieval device of the present invention.
M.C.T. 5 switches the internal bus line, which will be described later.
A three-state gate that also controls the direction of data according to instructions from the control unit MCT4. 6 is a memory JM that temporarily stores information instructing how to search for search information.
Reference numeral 7 denotes a memory Q1 that stores initial values of search information. Memory Q2 (8) and memory Q3 (9) are memory JM
6. According to the contents of memory Q1 (7), the searched data extracted from the external storage device 1 is temporarily stored, or the temporarily stored searched data is stored in the second or third
This is a search register that also serves as a buffer memory and serves as a search data storage memory for searching extracted data. 10 is from external storage device 1 to interface A
2 and memory Q1
(7) A comparator that compares the data read from
CM1.11 and 12 are read data and memory Q2 (8) or memory Q3 like CM1 (10) above.
(9) Comparator to compare data read from
CM2 or CM3.13 is memory JM6, memory Q1
(7) A length counter (L/C) for controlling the address of memory Q2 (8) and memory Q3 (9) and the length of the searched data. 14 is CM1 (10), CM2 (1
1), manages the logic control of each comparator output of CM3 (12), controls the operation of LC13, and sends predetermined control information to the corresponding record and address storage memory ADM16 and the corresponding record status storage memory STM17, which will be described later. Search logic circuit control section
I.R.C.T. 15 is a record address counter RADC which counts the break of searched data according to the output information of the MCT 4, holds it as an address for each set of data (record), and sends it to the ADM 16 according to instructions from the IRCT 14; 16, as mentioned above, the contents of RADC16, IRCT14
A memory ADM that temporarily stores record addresses according to instructions from the ADM. 17 is a memory that stores the state of the 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.);
STM. 18 is a bus interface BIF for connecting the information retrieval device of the present invention and higher-level devices, etc.; 19
MBUS is a high-speed bus line 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 BIF 18 are exchanged under the control of the MCT4. 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
はデータの読み出しサイクルに入る(ステツプ
102)。そして外部記憶装置1が検索をすべきアド
レスに到達するまで、待ち時間となり検索指示ア
ドレスに到達すると(ステツプ103−Y)、MCT
4よりLC13及びRADC15に検索開始指令が
送出され(ステツプ104)、外部記憶装置1の読出
し速度に同期して、JM6の内容に従い、Q1(7)
とインタフエイスA2を介し、MBUS19上に
出力されている外部記憶装置1の読出しデータと
の比較が実行される(ステツプ105)。この比較は
1クロツクサイクルの前後半を利用して、被検索
データに対し、上限値(又は下限値)、下限値
(又は上限値)の初期値である2値情報を比較し、
被検索データが初期設定した値の中に含まれるか
否かを判別する。次に“Q1にて該当あり”と判
断されると、該データが第一優先順位のデータか
否か選択される(ステツプ106)。第一優先順位で
ない場合は次に第2優先順位のデータか否か選択
される(ステツプ107)。
FIG. 2 is an operational flowchart of the present invention.
Via the LBUS 21 in FIG. 1, instructions are sent to the information processing apparatus in a predetermined format, and the address of the external storage device 1 storing the searched data to be searched or the file name of each file is stored in the host device. The sent information is decoded by the control unit (MCT) 4, and control, etc. to the external storage device 1 is executed via each search register and interface B3, and the search process is started. When predetermined initial values are set in search registers JM and Q1 (steps 100 and 101), external storage device 1
enters a data read cycle (step
102). 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), the MCT
4, a search start command is sent to LC13 and RADC15 (step 104), and in synchronization with the read speed of external storage device 1, according to the contents of JM6, Q1 (7) is sent.
A comparison is performed between the read data of the external storage device 1 and the read data of the external storage device 1 outputted on the MBUS 19 via the interface A2 (step 105). This comparison uses the first and second half of one clock cycle to compare the upper limit value (or lower limit value) and binary information, which is the initial value of the lower limit value (or upper limit value), with respect to the searched data.
It is determined whether the searched data is included in the initially set values. Next, if it is determined that "Q1 is applicable", it is selected whether the data is the first priority data (step 106). If the data is not in the first priority order, then it is selected whether the data is in the second priority order (step 107).

第一優先順位として選択される条件は、 (1) 検索指示された範囲内で最初に該当があつた
場合。
The conditions to be selected as the first priority are: (1) When the first match is found within the specified search range.

(2) Q2、Q3に格納されている該当データより、
より極限値に近い場合。
(2) From the corresponding data stored in Q2 and Q3,
If it is closer to the limit value.

第2優先順位として選択される条件は、 (1) 検索指示された範囲内で、2ケ目に該当があ
つた場合でかつ1ケ目の該当データより極限値
から遠いか、もしくは、1ケ目の該当データと
等しい場合。
The conditions to be selected as the second priority are as follows: (1) Within the specified search range, the second position is found and the corresponding data is further from the limit value than the first position, or If it is equal to the corresponding data of the eye.

(2) Q2、Q3に格納されている、第一優先、第二
優先順位のデータに対し、既第一優先順位デー
タより極限値から遠く既第二優先順位データよ
り極限値に近い場合(この場合該データは既第
二優先順位データにかわり、第二優先順位デー
タとなる。) もし第一優先順位のデータと判断されると(ス
テツプ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)。
(2) When the first priority and second priority data stored in Q2 and Q3 are closer to the extreme value than the existing first priority data and closer to the extreme value than the existing second priority data (this If the data is determined to be the first priority data (step 106-Y), Q2 (8) and Q3 (9) A flag indicating whether the data stored in the FSDB has the same content;
If ≠1 (if not the same content), it is the first applicable data from the start of the search, or Q2 (8) and Q3
Data with a higher priority than any of the data stored in (9) is input as the searched data, and the new data with the second priority does not have the same data. Therefore, it is determined whether the FDBL flag indicating that there was searched data that is the same as the second priority data in the past has been set (step 113), and if it has been set, it is reset (step 113). 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 ADM (step 111), Q2
(8), the work area where the searched data in Q3(9) is stored is the search data area, and Q2(8),
Data that is farther than the limit value in Q3 (9) is 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 already applicable data stored in Q2 (8) and Q3 (9) are equally searched data, that is, the first priority data, which is closer to the limit value than the already applicable data, so one of the already applicable data must be deleted, but the FDBL flag is set to indicate that data equal to the existing applicable data existed in the past (step 109), and the FSDB flag is then reset to indicate that the existing applicable data is the same (step 109). 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 previous applicable data that is later in time (referring to the existing applicable data that is near the end of the address within the search instruction range) is deleted ( Step 111), Q2 or Q3 mentioned above
The deleted data area is secured as a work area for the next record (step 112).

次に第1優先順位でないと判断されると(ステ
ツプ106−N)前述した第2優先順位の条件を満
足しているか否かを判別し(ステツプ107)、第2
優先順位のデータと判断されると、該第2優先順
位データが既第1優先順位データと等しいか判断
し(ステツプ115)、等しければQ2(8),Q3(9)
レジスタに格納されているデータが等しい事を意
味し、次に該当データが第1優先順位データとし
て上述に割込んできたときに、前記FDBLをセツ
トする為のフラツグ、FSDB(Q2、Q3の既該当デ
ータが等しい事を表わす。)をセツトし(ステツ
プ116)、レコードアドレスカウンタの値をメモリ
ADMにセツトし(ステツプ111)、今まで第2優
先順位のデータが格納されていた領域を新たにワ
ーク領域とし、被検索データの格納されていた領
域を新たな第2優先順位のデータの検索データと
する(ステツプ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 107), and the
When it is determined that the second priority data is equal to the first priority data (step 115), if they are equal, Q2 (8) and Q3 (9) are performed.
This means that the data stored in the registers are equal, and when the corresponding data interrupts as the first priority data as described above, the flag for setting the FDBL, FSDB (already present in Q2 and Q3) is set. ) (indicates that the corresponding data are equal) (step 116), and stores the value of the record address counter in memory.
ADM (step 111), the area where second-priority data was previously stored is set as a new work area, and the area where the searched data was stored is used to search for new second-priority data. data (step 112).

又第2優先順位データが第1優先順位データと
異なつた場合、 例えば小順ソート処理で、 第1優先順位データ<第2優先順位データの時
は、ノーマルな該当ありデータとして処理され、
特別なフラツグのセツトやリセツトを伴なわな
い。すなわちレコードアドレスをメモリADMに
セツトし(ステツプ111)、削除されたデータ領域
が新たなワーク領域として確保される(ステツプ
112)。
In addition, 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 is processed as normal matching data,
Does not involve setting or resetting special flags. 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 111).
112).

又ステツプ107で第2優先順位でないと判断さ
れた場合は、該データが第2優先順位データと等
しいか否かを判断し(ステツプ117)、もし等しい
ならば、Q2(8)、Q3(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, Q2 (8) and Q3 (9) are determined. ) indicates that the same data as the corresponding data stored in ) exists.
Set the FDBL flag (step 118). After that, it will be treated as “not applicable” (step
119).

次に第3図を用いて実際のデータの格納状態及
び比較状態を時間の流れにそつて説明する。第3
図は任意な数値情報を50から125まで小順ソート
を実行した時のデータの流れと、Q1(7)、Q2
(8)、Q3(9)のデータの格納状態及びレコード
アドレスの格納状態を表わす。図において時間は
T0からT1,T2…Tnと流れ、被検索データ
はデイスク装置の外部記憶装置からのリード出
力、各データの区別としてレコードN0,R0,
R1…Rnがある。Q1(7)にはソートする場合
の極限値、下限と上限が格納され、第1図比較器
7により被検索データが所望の値の中に含まれて
いるかをチエツクする。すなわちフローチヤート
のステツプ105であり、T0では50<123<125ゆ
えR0=123は『該当あり』と判別され、Q2(8)
のワーク領域Wに格納される。T1ではQ1で50
<99<125であり同様にR1=99は『該当あり』
と判別されQ2(8)で99<123が成立するゆえ、
R1=99が第1優先順位データとなりR0=123
は第2優先順位データとなる。又各該当レコード
アドレスは第3図のレコードアドレスの格納状態
に示されており上が第1優先、下が第2優先順位
を表わす。T2ではQ1で50<105<125ゆえ『該
当あり』であるが、Q2及びQ3では、99<105<
123が成立するゆえ、今まで第2優先順位であつ
たR0=123が削除される。レコードアドレスも
R1とR2を格納する。T3ではQ1の条件はT
2同様であるがQ2、Q3では99=99<105となり
R2=105が削除され、第1、第2優先順位デー
タが等しい為、FSDBがセツトされる。T4では
Q1の条件では満足されるが、Q2、Q3での条件99
=99<102となりR4のデータは優先順位が低い
為『該当なし』と判別される。T5では、Q1は
『該当あり』Q2、Q3では91<99=99が成立する
為第1優先順位データとなり、R3=99が削除さ
れる。R3=99とR1=99は等しい為前述の如く
FSDB=1で、第1優先順位データが新たに出現
したゆえ、FDBLがセツトされ、FSDBはリセツ
トされ、レジスタに格納されたデータ以外に等し
いデータの存在を知る事ができる。T6ではQ1
の条件は満足するがQ2、Q3で91<R6≦=99は
R6=100ゆえ成立しない為、『該当なし』とな
る、T7ではQ1の条件は満足、Q2、Q3ではR7
(85)<91<99が成立するゆえ、第1優先順位デー
タとなりR7=85が第1で、R5=91が第2優先
順位となり、R1=99が削除される。よつてQ2、
Q3には(99)がなくなる為、FDBLはリセツト
する。
Next, using FIG. 3, the actual data storage state and comparison state will be explained along 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), represents the data storage state and record address storage state of Q3 (9). In the figure, time flows from T0 to T1, T2...Tn, the data to be searched is read output from the external storage device of the disk device, and records N0, R0, and R0 are distinguished from each other.
There is R1...Rn. Q1 (7) stores the limit value, lower limit and upper limit for sorting, and the comparator 7 in FIG. 1 checks whether the data to be searched is included in the desired values. In other words, it is step 105 of the flowchart, and since 50<123<125 at T0, R0=123 is determined to be "applicable", and Q2 (8)
is stored in the work area W of. 50 in Q1 in T1
<99<125 and similarly R1=99 is "applicable"
It is determined that 99<123 holds true in Q2(8), so
R1=99 is the first priority data and R0=123
becomes the second priority data. Each corresponding record address is shown in the storage state of record addresses in FIG. 3, with the top one representing the first priority and the bottom one representing the second priority. In T2, 50 < 105 < 125 in Q1, so it is "applicable", but in Q2 and Q3, 99 < 105 <
Since 123 holds true, R0=123, which has been the second priority, is deleted. The record address also stores R1 and R2. In T3, the condition of Q1 is T
2 is similar, but in Q2 and Q3, 99=99<105, R2=105 is deleted, and the first and second priority data are equal, so FSDB is set. In T4
Conditions in Q1 are satisfied, but conditions in Q2 and Q3 are 99
=99<102, and the data in R4 has a low priority, so it is determined as "not applicable". In T5, Q1 is "applicable" in Q2, and in Q3, 91<99=99 holds, so it becomes the first priority data, and R3=99 is deleted. Since R3=99 and R1=99 are equal, as mentioned above
Since FSDB=1 and first priority data has newly appeared, FDBL is set, FSDB is reset, and it is possible to know the existence of equivalent data other than the data stored in the register. Q1 at T6
The condition is satisfied, but in Q2 and Q3, 91<R6≦=99 does not hold because R6=100, so it is "not applicable".In T7, the condition of Q1 is satisfied, but in Q2 and Q3, R7
(85) Since <91<99 holds true, the first priority data is R7=85, the second priority is R5=91, and R1=99 is deleted. Yotsute Q2,
Since (99) disappears in Q3, FDBL is reset.

レコードアドレスは、毎レコードメモリADM
へ格納されるが、『該当あり』と判断されると、
レコードアドレスの先頭に該当有無情報を付加し
て、ADMへ格納されるADMはn段のスタツク
構造で、任意な時間(このレコードの読み取りが
終了するまでの任意な時間)に、MCTがADM
のデータをチエツクする事により前述した如く、
1回のソート処理で複数件のレコード(被検索デ
ータ)を抽出し、そのレコードのアドレスも知る
事ができる。物理的にQ2、Q3の大きさを外部記
憶装置の大きさに近づける事により、より多くの
データが1回で抽出可能となる。すなわち、デイ
スク装置等にランダムに記憶(数値的に大小関係
を表わした場合の順不同を表わす。)された情報
をデイスクの1回サーチにより小順あるいは大順
にならびかえる事が可能となる。ことレコードア
ドレスの構成を第4図に示す。また第5図に各レ
ジスタと被検索データとの関係を表わす。I1,I2
…I5は各レコード(RN、RN+1…)内のアイ
テムを表わす。各アイテムは、各々が検索時のキ
ー対照となりうると共にI1・I2・I3の如く各アイ
テムの論理積検索及びI1+I2+I3の始く論理和検
索が可能な一情報の単位である。
Record address is stored in each record memory ADM
However, if it is determined that it is applicable,
The ADM that is stored in the ADM by adding matching information to the beginning of the record address has an n-stage stack structure.
As mentioned above, by checking the data of
It is possible to extract multiple records (searched data) with one sorting process and also know the addresses of the records. By physically bringing the size 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 or the like (representing random order when numerically representing a magnitude relationship) can be rearranged in ascending order or ascending order by searching the disk once. The structure of the record address is shown in FIG. Further, FIG. 5 shows the relationship between each register and the data to be searched. I 1 , I 2
... I5 represents an item within each record (RN, RN+1...). Each item is a unit of information that can be used as a key reference at the time of searching, and can be searched by conjunction of each item such as I 1 , I 2 , I 3 , and logical OR search starting from I 1 + I 2 + I 3 . It is.

効 果 上記述べた如く本発明によれば磁気デイスク装
置等の大容量外部記憶装置への1回のアクセスで
複数件の該当情報が得られる事により、磁気デイ
スク装置等を用いた情報検索装置のデイスクキヤ
ツシヤーとしての機能をもはたし、高速処理を期
待でき、処理系のスループツト向上に寄与する情
報検索装置が実現する。さらに本発明は近年注目
するところのデータベースマシンのハードウエア
として種々の用途に適用できる。
Effects As described above, according to the present invention, a plurality of pieces of relevant information can be obtained with one access to a large-capacity external storage device such as a magnetic disk device, thereby improving the performance of an information retrieval device using a magnetic disk device or the like. An information retrieval device that also functions as a disk cache, can be expected to perform high-speed processing, and contributes to improving the throughput of a processing system is realized. Furthermore, the present invention can be applied to various uses as hardware for database machines, which have been attracting attention in recent years.

また本発明によれば、検索対象データを記憶す
るアドレス付けられた弟1の記憶手段よりデータ
を順次1つずつ読み出して、第2の記憶手段の指
定された位置に格納すると共に、この読み出され
たデータと、それまでに格納された順位付けられ
た複数のデータのそれぞれとを比較し、この比較
の結果、読み出されたデータより順位の低いデー
タが1つ以上あつた時、そのうちで順位付けられ
た順位の最も低いデータの格納位置を、次に読み
出される検索対象のデータの格納位置に指定し、
順位付けを変更し、また、この格納されたデータ
の第1の記憶手段におけるアドレスをアドレス格
納手段に格納する構成を備えることにより、処理
が検索対象の全データについて一巡した時に、順
位の高い順に複数個(n個とする)のデータを順
位付けて検索することが可能となる情報検索装置
を提供できる。
Further, according to the present invention, the data is sequentially read out one by one from the storage means of the younger brother 1 which is addressed to store the data to be searched, and is stored in the designated position of the second storage means, and this readout data is The read data is compared with each of the previously stored ranked data, and as a result of this comparison, if there is one or more data with a lower rank than the read data, the Specify the storage location of the lowest ranked data as the storage location of the search target data to be read next,
By changing the ranking and also having a configuration in which the addresses of the stored data in the first storage means are stored in the address storage means, when the process goes through all the data to be searched, the data is sorted in the order of the highest ranking. It is possible to provide an information search device that can rank and search a plurality of pieces of data (n pieces).

従つて、例えばこれを利用して全データのソー
テイングを行つた場合、全データについて一巡す
る毎に1つのデータしか検索できない従来の方法
に比べて、処理時間はn分の1となる。
Therefore, for example, when all data is sorted using this method, the processing time is reduced to 1/n compared to the conventional method in which only one piece of data can be retrieved every time all data are passed around.

また、読み出されたデータが、それまでに格納
されたデータより高い順位のデータであるか否か
によらず、同じように格納処理が行われ、高い順
位のデータである場合にも、その後格納位置を移
動することなく、以後の比較処理に利用できるの
で、高速な処理が実現できる。
In addition, storage processing is performed in the same way regardless of whether the read data has a higher rank than the previously stored data. Since it can be used for subsequent comparison processing without moving the storage location, high-speed processing can be achieved.

そして更にまた、検索によつて得られたデータ
について全データを記憶するメモリにおけるアド
レスも得られるので、このメモリの各アドレスに
検索対象データをキーとしてさらに情報を格納さ
せておき、このキーの順位に従つてこの情報を並
べ換えることができる情報検索装置が提供でき
る。
Furthermore, since the address in the memory that stores all the data obtained by the search is also obtained, further information is stored in each address of this memory using the search target data as a key, and the order of this key is An information retrieval device capable of sorting this information according to the following can be provided.

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

第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...Memory Q3, 10...Comparator CM1, 11...Comparator CM2, 12...Comparator
CM3, 13...Length counter, 14...Search logic circuit control section, 15...Record address counter, 16...Memory ADM, 17...Memory
STM, 18... bus interface.

Claims (1)

【特許請求の範囲】 1 検索対象データを記憶するアドレス付けられ
た第1の記憶手段と、 前記第1の記憶手段より読み出され、順位付け
がなされた所定の複数個のデータを記憶するため
の当該所定個の格納位置を具えた第2の記憶手段
と、 前記第2の記憶手段に記憶された複数のデータ
のアドレスを前記順位付けによる順位に従つて格
納するアドレス格納手段と、 前記第1の記憶手段より順次1つずつデータを
読み出す読み出し手段と、 該読み出し手段により読み出されたデータを、
前記第2の記憶手段の前記所定個の格納位置の内
の指定位置に記憶させる記憶制御手段と、 前記読み出し手段により読み出されたデータと
前記第2の記憶手段の前記指定位置以外の格納位
置に記憶されているデータのそれぞれとの順位を
比較する比較手段と、 該比較手段による各比較の結果前記第2の記憶
手段の前記指定位置以外の格納位置に記憶されて
いるデータの内に、前記読み出されたデータより
順位の低いデータがあつた場合に前記順位付けに
よる順位の最も低いデータの格納位置を新たな指
定位置とし、前記順位付けを変更し、変更された
順位に従つて前記アドレス格納手段の内容を更新
する制御手段とを備えることを特徴とする情報検
索装置。
[Claims] 1. A first storage means with an address for storing search target data; and for storing a plurality of predetermined pieces of data read from the first storage means and ranked. a second storage means having the predetermined number of storage locations; an address storage means for storing addresses of a plurality of data stored in the second storage means in accordance with the ranking according to the ranking; a reading means for sequentially reading out data one by one from the first storage means; and a reading means for reading data one by one from the first storage means;
storage control means for storing the data in a designated position among the predetermined storage positions of the second storage means; and storage control means for storing the data read by the reading means and a storage position other than the designated position in the second storage means. a comparison means for comparing the ranking with each of the data stored in the second storage means; If there is data with a lower rank than the read data, the storage position of the data with the lowest rank according to the ranking is set as a new specified position, the ranking is changed, and the data is stored according to the changed ranking. An information retrieval device comprising: control means for updating the contents of address storage means.
JP58006558A 1983-01-20 1983-01-20 Information retrieving device Granted JPS59133641A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP58006558A JPS59133641A (en) 1983-01-20 1983-01-20 Information retrieving device
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
JP58006558A JPS59133641A (en) 1983-01-20 1983-01-20 Information retrieving device

Publications (2)

Publication Number Publication Date
JPS59133641A JPS59133641A (en) 1984-08-01
JPH0516608B2 true JPH0516608B2 (en) 1993-03-04

Family

ID=11641656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58006558A Granted JPS59133641A (en) 1983-01-20 1983-01-20 Information retrieving device

Country Status (1)

Country Link
JP (1) JPS59133641A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS504499A (en) * 1973-03-13 1975-01-17
JPS5048818A (en) * 1973-04-19 1975-05-01
JPS53108743A (en) * 1977-03-04 1978-09-21 Canon Inc Retrieval system
JPS57137938A (en) * 1981-02-20 1982-08-25 Nec Corp Data processor
JPS586557A (en) * 1981-07-02 1983-01-14 Nec Corp Magnetic disc device
JPS5864549A (en) * 1981-10-13 1983-04-16 Fujitsu Ltd Selecting circuit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS504499A (en) * 1973-03-13 1975-01-17
JPS5048818A (en) * 1973-04-19 1975-05-01
JPS53108743A (en) * 1977-03-04 1978-09-21 Canon Inc Retrieval system
JPS57137938A (en) * 1981-02-20 1982-08-25 Nec Corp Data processor
JPS586557A (en) * 1981-07-02 1983-01-14 Nec Corp Magnetic disc device
JPS5864549A (en) * 1981-10-13 1983-04-16 Fujitsu Ltd Selecting circuit

Also Published As

Publication number Publication date
JPS59133641A (en) 1984-08-01

Similar Documents

Publication Publication Date Title
US4916655A (en) Method and apparatus for retrieval of a search string
US5410694A (en) File access processing system of a computer enabling high-speed sequential access for a stream file
JPH10260876A (en) Data structure of database, and data processing method for database
JPH0516608B2 (en)
US4937779A (en) Information retrieving apparatus capable of rearranging information stored in memory
JPS6258351A (en) Optical disk cache system
JPH04340163A (en) Keyword retrieval system
JPH0516607B2 (en)
JPH0365571B2 (en)
JP3459049B2 (en) Character string search method and device
JPS61262924A (en) Electronic file device
JP3260743B2 (en) Information search method
JPH04112253A (en) Data accessing method using multilayer buffer
JPS633351A (en) Buffer search control method
JPH01297724A (en) Learning type character string retriever and control system for the same
JPS62121532A (en) Data retrieving method
JPH03196260A (en) Full sentence retrieving device
JPH043251A (en) Method and processor for retrieving document
JPH01129324A (en) Data retrieving device
JPH0279163A (en) Information retrieving method
JPH0642248B2 (en) Information retrieval device
JPH0752451B2 (en) Information retrieval device
JPH06149897A (en) Document image retrieval method for electronic filing device
JPH0264832A (en) Disk cache memory control device
JPH08190501A (en) Data storing method for data base