Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0516607B2 - - Google Patents
[go: Go Back, main page]

JPH0516607B2 - - Google Patents

Info

Publication number
JPH0516607B2
JPH0516607B2 JP58006557A JP655783A JPH0516607B2 JP H0516607 B2 JPH0516607 B2 JP H0516607B2 JP 58006557 A JP58006557 A JP 58006557A JP 655783 A JP655783 A JP 655783A JP H0516607 B2 JPH0516607 B2 JP H0516607B2
Authority
JP
Japan
Prior art keywords
data
memory
priority
stored
search
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
JP58006557A
Other languages
Japanese (ja)
Other versions
JPS59133640A (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 JP58006557A priority Critical patent/JPS59133640A/en
Publication of JPS59133640A publication Critical patent/JPS59133640A/en
Priority to US07/186,731 priority patent/US4937779A/en
Publication of JPH0516607B2 publication Critical patent/JPH0516607B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

【発明の詳細な説明】 技術分野 本発明は情報検索装置の検索データ及び検索デ
ータの該当データを格納するメモリ制御方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a memory control method for storing search data of an information search device and corresponding data of the search data.

従来技術 従来多量情報が格納されている磁気デイスク等
を用いた情報検索装置において、オペレータが要
求する情報を得る場合該磁気デイスク装置の制御
装置に所望する情報の特徴(あるいは「キー」と
呼ばれる見出し)を与え、該磁気デイスク装置へ
アクセスし、与えた情報と一致した情報を、ある
いは最も近い情報等を抽出し、要求のあつたオペ
レータに知らせている。抽出されたデータはあら
かじめ決められたバツフアメモリに格納され、上
位装置からの要求により抽出される。すなわちバ
ツフアメモリと、検索データ格納メモリとが各々
別個に存在している為、極小値、極大値検索(ソ
ーテイング)を磁気デイスク等を用いた装置でリ
アルタイムに処理する時に所望する情報が格納さ
れているメモリから順次データを読み出しながら
ソーテイングを実施する場合には、ある時間帯
(仮りにtxとする)に被検索データである情報が
tx+1の時間には検索データとして利用される事
があり、連続時間で被検索データと検索データと
が切替わらなければならない。一般に連続的に処
理が不可能な装置では、該磁気デイスク上のセク
タフオーマツトをスプリツトセクタ方式(読出し
順番が基点から1セクタ飛びあるいは複数セクタ
飛びで読出し、ある領域全てを読出すのに、1個
飛びなら2倍、n個飛びならn倍の時間を要す
る)等を用い、読出し以外の時間で処理し、デー
タの移動を行うといつた欠点を有しており、高速
処理が困難であつた。
Prior Art Conventionally, in an information retrieval device using a magnetic disk or the like in which a large amount of information is stored, when obtaining the information requested by an operator, the control device of the magnetic disk device is asked to identify the characteristics of the desired information (or a heading called a "key"). ), accesses the magnetic disk device, extracts information that matches the provided information, or extracts information that is closest to the provided information, and notifies the operator who made the request. The extracted data is stored in a predetermined buffer memory, and is extracted upon request from the host device. In other words, since the buffer memory and the search data storage memory exist separately, the desired information is stored when processing minimum value and maximum value searches (sorting) in real time with a device using a magnetic disk or the like. When sorting is performed while sequentially reading data from memory, if the information that is the searched data is
The data may be used as search data during the time tx+1, and the searched data and search data must be switched continuously. In general, devices that cannot perform continuous processing use a split sector method to read the sector format on the magnetic disk (the read order is one sector or multiple sectors from the base point, and one If the data is skipped, it takes twice as long, and if it skips n items, it takes n times as long), etc., and the process is performed in time other than reading, and the data is moved, making high-speed processing difficult. .

目 的 本発明は前述した従来の欠点を除去することを
目的とし、連続セクタ方式で情報が格納されてい
る磁気デイスク等を用いた情報処理装置において
空時間が生じる事なく磁気デイスク等の実時間で
所望するデータが抽出でき、しかも磁気デイスク
装置へのデータの登録も、読出しを考慮する事な
く自由に、任意なアドレスにでき、情報検索装置
への登録及び出力も高速に処理できるメモリ制御
方式を提供する。
Purpose The present invention aims to eliminate the above-mentioned drawbacks of the conventional technology, and is aimed at eliminating the occurrence of idle time in an information processing device using a magnetic disk, etc., in which information is stored in a continuous sector format, and using the real time information of the magnetic disk, etc. A memory control method that allows you to extract the desired data using a magnetic disk drive, and also allows data to be registered in a magnetic disk device at any address without having to worry about reading it, and that allows high-speed processing of registration and output to an information retrieval device. I will provide a.

実施例 以下に本発明の一実施例を図面を参照して説明
する。第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)はメモリJM6、メ
モリ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(11)、
CM3(12)の各比較器出力の論理制御を司り
LC13の動作を制御し、後述する該当レコード
アドレス格納メモリADM16及び該当レコード
ステータス格納メモリSTM17に所定の制御情
報を送出する検索論理回路制御部IRCT。15は
MCT4の出力情報に従い、被検索データの区切り
をカウントし、各データの一連のまとまり(レコ
ード)毎に該アドレスとして保持し、IRCT14
の指示によりADM16へ送出するレコードアド
レスカウンタRADC。16は前述した如く、
RADC16の内容を、IRCT14の指示により一
時的にレコードアドレスを格納するメモリ
ADM。17は被検索データの状態(該当の有無
や、以前に同一データが存在した事を表わす複数
該当の有無情報等)を格納するメモリSTM。1
8は本発明の情報検索装置と上位装置等を接続す
る為のバスインタフエイスBIF。19は前述した
外部記憶装置1からの生情報が行きかう高速バス
ラインMBUS。20はMLT4の制御下で各メモ
リの状態及びカウンタ値や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 MCT which controls the above-mentioned 1, 2, 3 and the entire information retrieval device of the present invention.
Reference numeral 5 denotes a three-state gate that switches internal bus lines, which will be described later, and also controls the direction of data according to instructions from the control unit MCT4. 6 is a memory JM that temporarily stores information instructing a search method for search information. Reference numeral 7 denotes a memory Q1 that stores initial values of search information. Memory Q2 (8) and memory Q3 (9) temporarily store searched data extracted from external storage device 1, or temporarily store searched data, according to the contents of memory JM6 and memory Q1 (7). This is a buffer memory/search register that serves as a search data storage memory for searching the second and third extracted data. 10
Comparator CM1 compares data read from external storage device 1 via interface A (2) with data read from memory Q1 (7).
11 and 12 are comparators CM2 or CM3 that compare the read data with the data read from memory Q2 (8) or memory Q3 (9) like the above-mentioned CM1 (10). 13 is memory JM6, memory Q1 (7), A length counter (L/C) that controls the address of memory Q2 (8) and memory Q3 (9) and the length of the searched data. 14 is CM1 (10), CM2 (11),
Controls logic control of each comparator output of CM3 (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 STM17, 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 IRCT14
Record address counter RADC sent to ADM16 according to instructions from RADC. 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 MBUS 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 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 described in detail with reference to the drawings.

第2図は本発明の動作フローチヤートである。
第1図のLBUS21を介し所定フオーマツトで本
情報処理装置へインストラクシヨン及び検索すべ
き被検索データの格納されている外部記憶装置1
のアドレス又は各フアイル単位のフアイル名等が
上位装置より送出され、送出された情報は制御部
(MCT)4にて解読され、各検索レジスタ及びイ
ンタフエイスB3を介して外部記憶装置1への制
御等が実行され検索処理が開始となる。検索レジ
スタJM、Q1に所定の初期値が設定されると(ス
テツプ100、101)、外部記憶装置1はデータの読
み出しサイクルに入る(ステツプ102)。そして外
部記憶装置1が検索をすべきアドレスに到達する
まで待ち時間となり、検索指示アドレスに到達す
ると(ステツプ103−Y)、MCT4よりLC13及
びRADC15に検索開始指令が送出され(ステ
ツプ104)、外部記憶装置1の読み出し速度に同期
して、JM6の内容に従い、Q1(7)とインタフ
エイスA2を介し、MBUS19上に出力されて
いる外部記憶装置1の読み出しデータとの比較が
実行される(ステツプ105)。この比較は1クロツ
クサイクルの前後半を利用して、被検索データに
対し上限値(又は下限値)、下限値(又は上限値)
の初期値である2値情報を比較し、被検索データ
が初期設定した値の中に含まれるか否かを判別す
る。次に“Q1にて該当あり”と判断されると、
該データが第一優先順位のデータか否か選択され
る(ステツプ106)。第一優先順位でない場合は次
に第二優先順位のデータか否か選択される(ステ
ツプ107)。
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 starts. 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 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), a search start command is sent from the MCT 4 to the LC 13 and RADC 15 (Step 104), and the external In synchronization with the read speed of the storage device 1, a comparison is performed between Q1 (7) and the read data of the external storage device 1 output on the MBUS 19 via the interface A2 according to the contents of JM6 (step 105). This comparison uses the first and second half of one clock cycle to determine the upper limit value (or lower limit value) and lower limit value (or upper limit value) for the searched data.
The binary information that is the initial value of is compared, and it is determined whether the searched data is included in the initially set values. Next, if it is determined that “applicable in Q1”,
It is selected whether the data has first priority (step 106). If the data is not the first priority, then it is selected whether the data is the second priority (step 107).

第一優先順位として選択される条件は (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) From the corresponding data stored in Q2 and Q3,
If it is closer to the limit value.

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

(2) Q2、Q3に格納されている第一優先、第二優
先順位のデータに対し、既第一優先順位データ
より極限値から遠く既第二優先順位データより
極限値に近い場合(この場合該データは既第二
優先順位データにかわり、第二優先順位データ
となる)。
(2) For the first priority and second priority data stored in Q2 and Q3, if the data is closer to 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), a flag indicating whether the data stored in Q2 (8) and Q3 (9) have the same content; determines the FSDB ( Step 108), if FSDB
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 corresponding 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 is 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).

次に第一優先順位でないと判断されると(ステ
ツプ106−N)、前述した第二優先順位の条件を満
足しているか否かを判別し(ステツプ107)、第二
優先順位のデータと判断されると、該第二優先順
位データが既第一優先順位データと等しいか判断
し(ステツプ115)、等しければQ2(8)、Q3(9)
レジスタに格納されているデータが等しい事を意
味し、次に該当データが第一優先順位データとし
て上位に割込んできたときに、前記FDBLをセツ
トする為のフラツグ、FSDB(Q2、Q3の既該当デ
ータが等しい事を表わす。)をセツトし(ステツ
プ116)、レコードアドレスカウンタの値をメモリ
ADMにセツトし(ステツプ111)、今まで第二優
先順位のデータが格納されていた領域を新たにワ
ーク領域とし、被検索データの格納されていた領
域を新たな第二優先順位のデータの検索データと
する(ステツプ112)。
Next, if it is determined that the data is not the first priority (step 106-N), it is determined whether the above-mentioned second priority conditions are satisfied (step 107), and the data is determined to be second priority. Then, it is determined whether the second priority data is equal to the first priority data (step 115), and if they are equal, Q2 (8) and Q3 (9) are performed.
This means that the data stored in the registers are equal, and the next time the corresponding data interrupts the upper level as first priority data, the flag for setting the FDBL, FSDB (existing 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).

又第二優先順位データが第一優先順位データと
異なつた場合 例えば小順ソート処理で、 第一優先順位データ<第二優先順位データの時
は、通常の該当ありデータとして処理され特別な
フラツグのセツトやリセツトを伴わない。すなわ
ちレコードアドレスをメモリ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(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 performed. The FDBL flag is set to indicate that the same data as the corresponding data stored in the file exists (step 118). Thereafter, it is processed as "not applicable" (step 119).

次に第3図を用いて実際のデータの格納状態及
び比較状態を時間の流れにそつて説明する。第3
図は任意な数値情報を50〜125まで小順ソートを
実行した時のデータの流れとQ1(7)、Q2(8)、
Q3(9)のデータの格納状態及びレコードアドレ
スの格納状態を表わす。図において時間はT0〜
T1,T2,…Tnと流れ、被検索データはデイ
スク装置等の外部記憶装置からのリード出力、各
データの区別としてレコードNo.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が第一優先順位データとなりR0=123は第二
優先順位データとなる。又各該当レコードアドレ
スは第3図のレコードアドレスの格納状態に示さ
れており上が第一優先、下が第二優先順位を表わ
す。T2ではQ1で50<105<125ゆえ『該当あり』
であるが、Q2及びQ3では、99<105<123が成立
するゆえ、今まで第二優先順位であつたR0=
123が削除される。レコードアドレスもR1とR
2を格納する。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がセツトされ、FSDBはリセツトされ、レ
ジスタに格納されたデータ以外に等しいデータの
存在を知ることができる。T6ではQ1の条件は
満足するがQ2、Q3で91<R6≦99はR6=100
ゆえ成立しない為、『該当なし』となる。T7で
はQ1の条件は満足、Q2、Q3ではR7(85)<91
<99が成立するゆえ、第一優先順位データとなり
R7=85が第一で、R5=91が第二優先順位とな
り、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 data flow when arbitrary numerical information is sorted in descending order from 50 to 125, Q1 (7), Q2 (8),
Indicates the data storage status and record address storage status of Q3 (9). In the figure, the time is T0~
The flow is T1, T2, ...Tn, and the searched data is read output from an external storage device such as a disk device, and record numbers R0, R1, ... are used to distinguish each data.
There is 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 at T0, 50<123<125, so R0=
123 is determined to be "applicable" and is stored in the work area W of Q2 (8). In T1, 50<99< in Q1
125, and similarly, R1=99 is determined to be "applicable", and 99<123 holds true in Q2 (8), so R1=
99 is the first priority data and R0=123 is the 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 "applicable"
However, in Q2 and Q3, 99 < 105 < 123 holds, so R0 = which was the second priority until now.
123 will be deleted. The record address is also R1 and R
Store 2. In T3, the conditions for Q1 are the same as in T2, but in Q2 and Q3, 99=99<105, R2=105, is deleted, and the first and second priority data are equal.
FSDB is set. In T4, the condition of Q1 is satisfied, but in Q2 and Q3, the condition 99=99<102, and the data of R4 has a low priority, so it is determined as "not applicable". In T5, Q1 is “applicable”
Since 91<99=99 holds true for Q2 and Q3, it becomes first priority data and R3=99 is deleted. R3=99
and R1=99 are equal, so as mentioned above, FSDB=1
So, since the first priority data has newly appeared,
FDBL is set, FSDB is reset, and the existence of equivalent data other than the data stored in the register can be known. In T6, the condition of Q1 is satisfied, but in Q2 and Q3, 91<R6≦99 means R6=100
Therefore, it does not hold, so it becomes ``Not applicable.'' In T7, the condition of Q1 is satisfied, and in Q2 and Q3, R7 (85) < 91
Since <99 holds, the first priority data is R7=85, the second priority is R5=91, and R1=99 is deleted. Therefore, (99) disappears in Q2 and Q3, so 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の始
く論理和検索が可能な一情報の単位である。この
様な検索は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, information on whether or not there is a match is added to the beginning of the record address.
Stored in ADM. The ADM has an n-stage stack structure, and the MCT can check the data in the ADM at any time (any time until the reading of this record is finished), and as described above, multiple records can be sorted in one sort process. (searched data)
You can also extract the record and find out the address of that record. 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, it is possible to rearrange information stored randomly in a disk device or the like (representing random order when numerically representing a magnitude relationship) in ascending order or ascending order by searching the disk once. 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,...
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 a search, and it is possible to perform a logical product search of each item such as I1, I2, and I3, and a logical sum search starting with I1+I2+I3. In such a search, high-speed search processing can be realized by comparing a plurality of comparison search data for the same search target data in a time-sharing manner depending on the sizes of Q2 and Q3.

効 果 以上述べた様に本発明によれば、検索対象のデ
ータを順次1つずつ読み出して、指定された位置
に格納するとともに、この読み出されたデータ
と、それまでに格納された順位付けられた複数の
データのそれぞれとを比較し、この比較の結果、
読み出されたデータより順位の低いデータが1つ
以上あつた時、そのうちで順位つけられた順位の
最も低いデータの格納位置を、次に読み出される
検索対象のデータの格納位置に指定し、順位付け
を変更し、また、この時、読み出されたデータの
格納・比較の処理が、読み出しに同期して行われ
ることにより、処理が検索対象の全データについ
て一巡した時に、順位の高い順に複数個(n個と
する)のデータを順位つけて検索することが可能
となる。
Effects As described above, according to the present invention, data to be searched is sequentially read out one by one and stored in a designated position, and this read data and the ranking stored so far are As a result of this comparison,
When there is one or more pieces of data with a lower rank than the read data, the storage position of the data with the lowest rank among them is specified as the storage position of the search target data to be read next, and the rank is set. At this time, the processing of storing and comparing the read data is performed in synchronization with the reading, so that when the processing goes through all the data to be searched, multiple It becomes possible to rank and search data (assuming n data).

更に、これを利用して全データのソーテイング
を行なうことにより、全データについて一巡する
毎に1つのデータしか検索できない従来の方法に
比べて、処理時間がn分の1となるメモリ制御方
式を提供できる。
Furthermore, by using this to sort all data, we provide a memory control method that reduces the processing time to one-nth compared to the conventional method, which allows searching for only one piece of data each time it goes through all the data. can.

また、読み出されたデータが、それまでに格納
されたデータより高い順位のデータであるか否か
によらず、同じように格納処理が行われるため、
高い順位のデータである場合にも、その後格納位
置を移動することなく、以後の比較処理に利用で
きる高速な処理が実現したメモリ制御方式を提供
できる。
In addition, storage processing is performed in the same way regardless of whether the read data is of a higher rank than the previously stored data.
It is possible to provide a memory control method that realizes high-speed processing that can be used for subsequent comparison processing without moving the storage location even when the data is of a high rank.

そして更にまた、この比較・格納の処理を読み
出しに同期して行う様にしたので、高速な処理が
実現できるメモリ制御方式が提供できる。
Furthermore, since this comparison and storage processing is performed in synchronization with reading, a memory control system that can realize high-speed processing 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のメモリ
の前記指定格納位置以外の格納位置に記憶されて
いるデータのそれぞれとの順位を比較し、各比較
の結果、前記第2のメモリの前記指定格納位置以
外の格納位置に記憶されているデータの内に、前
記読み出されたデータよりより順位の低いデータ
があつた場合には、前記第1のメモリからの次の
データの読み出しに先立つて、前記順位付けによ
る順位の最も低いデータの格納位置を新たな指定
格納位置とし、前記順位付けを変更することを特
徴とするメモリ制御方式。
[Scope of Claims] 1. Data is sequentially read one by one from a first memory that stores search target data, and the read data is placed into a predetermined number of ranked data in synchronization with the reading of the data. The data is stored in a designated storage location in a second memory having storage locations for the predetermined number of pieces of data, and the read data and the designated storage location of the second memory are stored in a designated storage location. As a result of each comparison, among the data stored in a storage location other than the specified storage location of the second memory, the readout data is compared with the data stored in the storage location of the second memory. If there is data with a lower rank than the data that has been ranked, the storage position of the data with the lowest rank according to the ranking is set as a new designated storage position before reading the next data from the first memory. and changing the ranking.
JP58006557A 1983-01-20 1983-01-20 Memory control system Granted JPS59133640A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP58006557A JPS59133640A (en) 1983-01-20 1983-01-20 Memory 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
JP58006557A JPS59133640A (en) 1983-01-20 1983-01-20 Memory control system

Publications (2)

Publication Number Publication Date
JPS59133640A JPS59133640A (en) 1984-08-01
JPH0516607B2 true JPH0516607B2 (en) 1993-03-04

Family

ID=11641627

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58006557A Granted JPS59133640A (en) 1983-01-20 1983-01-20 Memory control system

Country Status (1)

Country Link
JP (1) JPS59133640A (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS504499A (en) * 1973-03-13 1975-01-17
GB1485616A (en) * 1973-04-19 1977-09-14 Post Office Apparatus for displaying an extreme value among a succession of digital values and method of testing pulse code modulation equipment using such apparatus
JPS53108743A (en) * 1977-03-04 1978-09-21 Canon Inc Retrieval system
JPS57137938A (en) * 1981-02-20 1982-08-25 Nec Corp Data processor
JPS586558A (en) * 1981-07-06 1983-01-14 Victor Co Of Japan Ltd Reproducer for information signal recording disc
JPS5864549A (en) * 1981-10-13 1983-04-16 Fujitsu Ltd Selecting circuit

Also Published As

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

Similar Documents

Publication Publication Date Title
US5410694A (en) File access processing system of a computer enabling high-speed sequential access for a stream file
JPH0516607B2 (en)
US4332014A (en) Data retrieval system
JPH0365571B2 (en)
JPH0516608B2 (en)
US4937779A (en) Information retrieving apparatus capable of rearranging information stored in memory
JPH04340163A (en) Keyword retrieval system
JPS61262924A (en) electronic file device
US3274563A (en) Sorter system
JPH04112253A (en) Data accessing method using multilayer buffer
JPH0642248B2 (en) Information retrieval device
JPH03196260A (en) Full sentence retrieving device
JPS5822773B2 (en) Jiyouhoukensakuuchi
JPS62205590A (en) Image information search time reduction device
JPS633351A (en) Buffer retrieving control system
JPH0752451B2 (en) Information retrieval device
JPH09330322A (en) Data retrieval device
JPH043251A (en) Method and processor for retrieving document
JPS5917649A (en) Device for retrieving data base
JPH06161709A (en) Key extracting device, key extracting method, sort processing device, and database processing device
JPH0228846A (en) Data storing system
JPS61178788A (en) Document file retrieving system
GB2262370A (en) Database management.
JPH03290730A (en) System for sorting data classification
JPH07129467A (en) Memory management method for information processing apparatus