JPS6326411B2 - - Google Patents
Info
- Publication number
- JPS6326411B2 JPS6326411B2 JP56101507A JP10150781A JPS6326411B2 JP S6326411 B2 JPS6326411 B2 JP S6326411B2 JP 56101507 A JP56101507 A JP 56101507A JP 10150781 A JP10150781 A JP 10150781A JP S6326411 B2 JPS6326411 B2 JP S6326411B2
- Authority
- JP
- Japan
- Prior art keywords
- information
- pointer
- register
- node
- tree structure
- 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
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/901—Indexing; Data structures therefor; Storage structures
- G06F16/9027—Trees
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (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 The present invention provides a tree structure information search control method, in particular, after extracting output information of a terminal node expanded and stored in a tree structure, output information of adjacent terminal nodes is extracted at high speed. This relates to a tree-structured information search control method in which a pointer value related to a path that was not selected at least at the closest point in time is left in order to be accessible, and the pointer value is used to search for other output information. be.
従来から、例えば英語辞書の場合のように複数
個のキー情報の列に対応して出力情報が対応づけ
られている如き、木構造に展開される対応関係を
情報格納部に格納しておき、検索に当つて入力さ
れた検索コード列にもとづいて上記情報格納部を
アクセスし、上記キー情報と上記検索コード列上
のコードとを対比しつつ出力情報を抽出すること
が行なわれている。 Conventionally, for example, in the case of an English dictionary, a correspondence relationship developed in a tree structure is stored in an information storage unit, in which output information is associated with a plurality of columns of key information. The information storage section is accessed based on a search code string input during a search, and output information is extracted while comparing the key information with the code on the search code string.
このような木構造検索処理装置において、例え
ば第1図図示の如き木構造上で末端ノードN5に
対応する出力情報を抽出した段階で、あわせて末
端ノードN5に隣接する末端ノードN4やN6に
対応している出力情報を抽出したい場合が生じ
る。 In such a tree structure search processing device, for example, at the stage of extracting output information corresponding to the end node N5 on the tree structure shown in FIG. There may be cases where you want to extract the output information that is displayed.
このような場合におけるアクセスを有効に行な
わせる方式として、従来、(i)第1図を参照して後
述される逆ポインタを用いる方式、(ii)第2図を参
照して後述される水平ポインタを用いる方式、(iii)
第3図を参照して後述されるスタツクを用いる方
式、(iv)上記第1図図示の末端ノード例えばN5を
探索する処理の間にポインタを逆向きにしておい
てこれを利用する方式などが知られている。 Conventionally, methods for effectively performing access in such cases include (i) a method using a reverse pointer, which will be described later with reference to FIG. 1, and (ii) a method using a horizontal pointer, which will be described later with reference to FIG. (iii)
There are two methods: a method using a stack, which will be described later with reference to FIG. Are known.
しかし、これらの方式においても夫々難点が存
在する。以下この点について先に簡単に述べてお
く。 However, each of these methods has its own drawbacks. I will briefly discuss this point below.
〔〕 上記第(i)の方式
一般に木構造を格納するに当つては、第1図図
示のノードA0,A1,……N12を木の根から
末端に向う方向にポインタp0,p1……をはるよう
にされ、末端ノード例えばN5を探索するに当つ
ては、各ノードに対応するキー情報を調べつつポ
インタp0,p1,p2,p3の如く選択してノードN5
に到達する。該第(i)の方式においては、末端ノー
ドN5に達した後に、隣接する末端ノードN4や
N6を効率よく調べ得るようにするため、上記ポ
インタp0,p1,……に対応して逆方向のポインタ
p0′,p1′,……を木構造に附加しておくようにす
る。そして、末端ノードN5から末端ノードN6
を探す場合には、末端ノードN5から逆ポインタ
p3′……と遡つてゆき、1つのノード(例えば図
示A6)に達したときに、下向きのポインタであ
つて遡つてきた方向でなくかつ最も左側に向うポ
インタ(図示の場合p4)の有無を調べ、存在すれ
ばそのノード(図示A6)からいわば左へ左へた
どつてゆくようにされる。[] Method (i) above Generally, when storing a tree structure, pointers p 0 , p 1 . . . are moved from the nodes A0, A1, . When searching for the end node, for example N5, select the pointers p 0 , p 1 , p 2 , p 3 while checking the key information corresponding to each node and search for the node N5.
reach. In the method (i), in order to efficiently check the adjacent terminal nodes N4 and N6 after reaching the terminal node N5, the inverse operation is performed corresponding to the pointers p 0 , p 1 , . . . direction pointer
Add p 0 ′, p 1 ′, ... to the tree structure. Then, from the terminal node N5 to the terminal node N6
When searching, use the reverse pointer from the end node N5.
p 3 '..., and when one node (for example, A6 in the figure) is reached, the pointer that is pointing downward, not in the direction of going back, and pointing to the leftmost side (p 4 in the figure) The presence or absence of the node is checked, and if the node exists, the path is traced to the left from that node (A6 in the figure).
この方式の場合には、木構造内に逆ポインタを
附加しているために、木構造を格納するための記
憶容量が大となる。またこのために、木構造が複
数のページにまたがつて格納されることが生じ易
くなり、実際のアクセス処理に当つていわゆるペ
ージ・フオールトが生じ易くなる。 In this method, since a reverse pointer is added to the tree structure, the storage capacity for storing the tree structure is large. Moreover, for this reason, the tree structure is likely to be stored across a plurality of pages, and a so-called page fault is likely to occur during actual access processing.
〔〕 上記第(ii)の方式
この方式の場合には、第2図図示の如く、末端
ノードN0,N1,……間に水平方向ポインタ
(図示点線)をはつておくようにする。そして、
今、1つの末端ノードN5に到達した状態で、隣
接するノードN4を調べたい場合には、上記水平
方向ポインタの内容にもとづいて即ノードN4を
アクセスできるようにする。勿論図示における水
平方向ポインタは一方向のみであつてもよく、ま
た両方向ある場合にはノードN8とN0とを結ぶ
ポインタは必らずしも必要としない。[] Method (ii) above In this method, as shown in FIG. 2, a horizontal pointer (indicated by a dotted line in the figure) is placed between the end nodes N0, N1, . . . . and,
Now, when one terminal node N5 has been reached and it is desired to examine the adjacent node N4, the node N4 can be accessed immediately based on the contents of the horizontal pointer. Of course, the horizontal pointer shown in the figure may be in only one direction, and if there is a pointer in both directions, a pointer connecting nodes N8 and N0 is not necessarily required.
この方式の場合にも、木構造内に水平方向ポイ
ンタを附加するものであり、記憶容量の増大とペ
ージ・フオルト発生頻度の増大をまねく。 In this method as well, a horizontal pointer is added to the tree structure, leading to an increase in storage capacity and an increase in the frequency of page fault occurrence.
〔〕 上記第(iii)の方式。[] Method (iii) above.
第3図Aにおいて根のノードA0から末端ノー
ドN4に向つて探索した際に、その間に通過した
ノードから出ているどのポインタを選択したか
を、第3図B図示のスタツクSTK内に順に格納
してゆく。該スタツクSTK内にはポインタpiと
当該ポインタの方向とが格納される。なお、例え
ばポインタp0は当該ポインタによつて指示される
ノードA1が格納されている記憶アドレスそのも
のであり、方向「10」は左、方向「11」は
中、方向「01」は右を示している。 When searching from the root node A0 to the end node N4 in FIG. 3A, which pointers from the nodes passed during the search are selected are stored in order in the stack STK shown in FIG. 3B. I will do it. A pointer pi and the direction of the pointer are stored in the stack STK. For example, the pointer p0 is the storage address itself where the node A1 pointed to by the pointer is stored, and the direction "10" indicates left, the direction "11" indicates middle, and the direction "01" indicates right. ing.
第3図A,B図示の場合に末端ノードN4に至
る過程において、ノードA0において左方向ポイ
ンタp0が選択されたためにこの旨をスタツク
STK上に格納し、次いでノードA1において右
方向ポインタp3が選択されたためにこの旨を格納
し、次いでノードA2において右方向ポインタp6
が選択されたためにこの旨を格納している。そし
て例えば末端ノードN3を調べるには、上記スタ
ツクの内容を利用し、1つ上のノードにおいてポ
インタの存在方向を調べてノードN3に向うよう
にする。図示の場合には、ノードN4、ノードA
2、ノードN3と向うようにする。なお図示スタ
ツクSTK中の矢印×の情報は必らずしもスタツ
ク中に必要としない。 In the case shown in FIGS. 3A and 3B, in the process of reaching the end node N4, the left direction pointer p 0 was selected at the node A0, so this fact is not displayed in the stack.
STK, then at node A1 we store this because right pointer p 3 was selected, then at node A2 we store right pointer p 6
This information is stored because it was selected. For example, to check the end node N3, the contents of the stack are used to check the direction of the pointer at the node one level above and direct it to the node N3. In the case shown, node N4, node A
2. Make it face node N3. Note that the information indicated by the arrow x in the illustrated stack STK is not necessarily required in the stack.
この方式の場合には、木構造とは別個にスタツ
クをもうけているために(特にこれがハードウエ
アスタツクであれば)上述のページ・フオールト
などの発生頻度は少ないが、木構造の段数が大に
なるにつれて、スタツクSTKに要する段数が大
となる。 In this method, since the stack is created separately from the tree structure (especially if this is a hardware stack), the frequency of page faults mentioned above occurs less frequently, but the number of stages in the tree structure is large. As the number of stages increases, the number of stages required for stack STK increases.
〔〕 上記第(iv)の方式。[] Method (iv) above.
この方式の場合には、例えば第1図図示におい
て末端ノードN5を探索する処理の間に通過して
きたポインタp0,p1,p2,p3の方向を夫々逆方向
に変更せしめるようにする(逆方向ポインタp0′,
p1′…は用いない)。そして、当該逆方向に向きを
変えたポインタをちようど逆方向ポインタと同じ
ように利用してゆくようにする。 In the case of this method, for example, the directions of the pointers p 0 , p 1 , p 2 , and p 3 that have passed during the process of searching for the end node N5 in FIG. 1 are changed to opposite directions. (backward pointer p 0 ′,
p 1 ′... is not used). Then, the pointer whose direction has been changed to the opposite direction is used in the same way as the backward pointer.
この方式の場合には、上述の逆方向ポインタを
附加しないので、上述の記憶容量増大などの難点
は存在しない。しかし、上述の如く逆方向にはり
直したポインタを元通りに戻す必要があり、この
処理の際に非所望にページ・フオールトが発生す
ることが生じる。 In the case of this method, since the above-mentioned backward pointer is not added, there is no problem such as the above-mentioned increase in storage capacity. However, as described above, it is necessary to restore the pointer that has been redirected in the opposite direction, and during this process, an undesired page fault may occur.
本発明は、上記の点を考慮してなされたもので
あり、上述の問題点を解決した木構造情報探索制
御方式を提供することを目的としている。そして
そのため、本発明の木構造情報探索制御方式は、
ノードに対応したキー情報と1つまたは複数のポ
インタとが設定された木構造をもつて出力情報が
格納されてなり、複数のキー・コードにもとづく
コード列の各コードを上記ノードに対応して設定
されているキー情報と対比しつつ上記出力情報を
抽出する木構造検索処理装置において、上記木構
造にもとづいて上記キー情報と上記ポインタとを
格納した木構造格納情報格納部をそなえると共
に、該木構造格納情報格納部を探索する処理の間
に選択されなかつたポインタを格納する左非選択
レジスタおよび/または右非選択レジスタをもう
け、抽出された1つの出力情報に隣接する他の出
力情報を抽出するに当つて、上記左非選択レジス
タおよび/または右非選択レジスタの内容にもと
づいて上記木構造格納情報格納部をアクセスし当
該他の出力情報を探索する処理を行なうようにし
たことを特徴としている。以下図面を参照しつつ
説明する。 The present invention has been made in consideration of the above points, and an object of the present invention is to provide a tree structure information search control method that solves the above problems. Therefore, the tree structure information search control method of the present invention is
Output information is stored in a tree structure in which key information corresponding to nodes and one or more pointers are set, and each code of a code string based on multiple key codes is associated with the above node. A tree structure search processing device for extracting the output information while comparing it with the set key information, further comprising a tree structure storage information storage unit storing the key information and the pointer based on the tree structure, and A left non-selection register and/or a right non-selection register are provided to store pointers that were not selected during the process of searching the tree-structured storage information storage section, and other output information adjacent to one extracted output information is provided. When extracting, the tree structure storage information storage section is accessed based on the contents of the left unselected register and/or the right unselected register to search for other output information. It is said that This will be explained below with reference to the drawings.
第4図は本発明の一実施例制御方式の概念を説
明する説明図、第5図は本発明の一実施例構成を
示す。 FIG. 4 is an explanatory diagram illustrating the concept of a control method according to an embodiment of the present invention, and FIG. 5 shows the configuration of an embodiment of the present invention.
本発明の場合、例えば第4図において、ノード
A0から末端ノードN5に至る探索の間に次のよ
うな処理を行なう。即ち
(1) ノードA0において左ポインタp0が選択され
たとき、図示レジスタR(右非選択レジスタ)
に選択されなかつた右ポインタp13をセツトす
る。 In the case of the present invention, for example in FIG. 4, the following processing is performed during the search from node A0 to terminal node N5. That is, (1) When the left pointer p 0 is selected at node A0, the illustrated register R (right unselected register)
Set the right pointer p13 that was not selected.
(2) ノードA1において右ポインタp6が選択され
たとき、図示レジスタL(左非選択レジスタ)
に選択されなかつた左ポインタP1をリセツト
する。(2) When the right pointer p6 is selected in node A1, the illustrated register L (left unselected register)
The left pointer P1 that was not selected is reset.
(3) ノードA4において、右ポインタp8が選択さ
れたことから、図示レジスタLに左ポインタp7
をオーバ・ライトする。(3) Since the right pointer p8 is selected at node A4, the left pointer p7 is stored in the illustrated register L.
overwrite.
(4) ノードA5において、右ポインタp10が選択
されたことから、図示レジスタLに左ポインタ
p9をオーバ・ライトする。(4) Since the right pointer p10 is selected at node A5, the left pointer is stored in the illustrated register L.
Overwrite p 9 .
(5) ノードA6において、左ポインタp11が選択
されたことから、図示レジスタRに右ポインタ
p12をオーバ・ライトする。(5) Since the left pointer p11 is selected at node A6, the right pointer is stored in the illustrated register R.
Overwrite p 12 .
このようにして、末端ノードN5に達したと
き、図示レジスタLにはポインタp9がセツトさ
れ、かつレジスタRにはポインタp12がセツト
されている形となる。この状態において、例え
ば左隣りのノードN4を調べるにはレジスタL
の内容にもとづいて(当該内容はポインタp9が
指しているノードの格納アドレスである)、ノ
ードN4に至り、ノードN4から更に右方向に
下るポイントが存在するか否かを調べ、最後的
に左隣りのノードN4に至る。 In this way, when the end node N5 is reached, the pointer p9 is set in the register L shown, and the pointer p12 is set in the register R. In this state, for example, to check the left neighbor node N4, register L
Based on the content of (the content is the storage address of the node pointed to by pointer p9 ), it is checked whether there is a point that reaches node N4 and further descends to the right from node N4, and finally It reaches the node N4 on the left.
このようにすることによつて、木構造を格納
する記憶容量の増大に関しては問題がなく、ま
た必要とするものとしては例えば左右隣接のも
のを調べる場合には2個程度のレジスタを用意
すれば足りる。勿論、レジスタLとして2個の
レジスタを用意し、レジスタRとして2個のレ
ジスタを用意することによつて、左隣接、その
左隣接、右隣接、その右隣接の各末端ノードを
調べることも容易となる。この場合には、例え
ば第4図図示のレジスタLそのものをレジスタ
L1とし、該レジスタL1の元の内容が転送さ
れるレジスタL2を用意し、レジスタL1の内
容が第4図に関連して説明した如く更新される
ときに当該レジスタL1に入つていた内容をレ
ジスタL2に移せばよい。 By doing this, there is no problem with increasing the storage capacity for storing the tree structure, and if you need, for example, to check the left and right adjacent items, you only need to prepare about two registers. Enough. Of course, by preparing two registers as register L and two registers as register R, it is also easy to check the left neighbor, its left neighbor, right neighbor, and each end node of its right neighbor. becomes. In this case, for example, the register L shown in FIG. 4 itself is set as register L1, a register L2 is prepared to which the original contents of register L1 are transferred, and the contents of register L1 are as explained in relation to FIG. 4. When the register L1 is updated, the contents stored in the register L1 may be moved to the register L2.
第5図は本発明の一実施例構成を示す。図中
の符号1は木構造格納情報格納部、2はアドレ
ス・レジスタ、3はデータ・レジスタ、4は分
岐判定回路部、5は制御回路部であつてマルチ
プレクサ(MPX)を制御するもの、6ないし
9は夫々マルチプレクサ、10は左非選択レジ
スタであつて第4図図示の「レジスタL」に相
当するもの、11は右非選択レジスタであつて
第4図図示の「レジスタR」に相当するもの、
12,13は夫々ゲートを表わしている。 FIG. 5 shows the configuration of an embodiment of the present invention. In the figure, numeral 1 is a tree-structured information storage section, 2 is an address register, 3 is a data register, 4 is a branch judgment circuit section, 5 is a control circuit section that controls the multiplexer (MPX), 6 9 to 9 are multiplexers, 10 is a left non-selection register, which corresponds to "register L" shown in FIG. 4, and 11 is a right non-selection register, which corresponds to "register R" shown in FIG. 4. thing,
12 and 13 represent gates, respectively.
情報格納部1内の1つの番地には、キー情報
分岐情報等を含む情報Fと左ポインタLPTと
右ポインタRPTとが格納されている。以下、
末端ノードN5に至る探索処理について説明す
る。 At one address in the information storage section 1, information F including key information branch information, etc., a left pointer LPT, and a right pointer RPT are stored. below,
The search process leading to the terminal node N5 will be explained.
(6) 最初アドレス・レジスタ2に木の根のアドレ
スA0がセツトされる。これによつて、情報格
納部1内の番地A0の内容がデータ・レジスタ
3に読出される。(6) First, address register 2 is set to address A0 of the root of the tree. As a result, the contents of address A0 in information storage section 1 are read to data register 3.
(7) 分岐判定回路4は、読出された情報F0のう
ちのキー情報と検索コード列の上位部分とを比
較する。この場合には一致しており、制御回路
部5は、情報F0中の分岐情報から左ポインタ
p0をマルチプレクサ6において選択し、かつ右
ポインタp13をマルチプレクサ7において選択
する。(7) The branch determination circuit 4 compares the key information of the read information F0 with the upper part of the search code string. In this case, they match, and the control circuit unit 5 determines the left pointer from the branch information in the information F0.
p 0 is selected in multiplexer 6 and the right pointer p 13 is selected in multiplexer 7.
(8) そして今の場合には探索モードであることか
ら、上記左ポインタp0はマルチプレクサ8を介
してレジスタ2にセツトされる。一方左ポイン
タが選択されたことからゲート13をオンして
レジスタ11に右ポインタp13をセツトする。(8) Since the present case is the search mode, the left pointer p0 is set in register 2 via multiplexer 8. On the other hand, since the left pointer has been selected, the gate 13 is turned on and the right pointer p13 is set in the register 11.
(9) 次いで情報格納部1の番地A1の内容が読出
される。(9) Next, the contents of address A1 of the information storage section 1 are read out.
(10) このとき分岐判定回路4は、読出されたキー
情報と検索コード列の1つ上位のノードで比較
した部分に次いで比較すべき部分とを比較す
る。この場合にも一致であり、情報F1中の分
岐情報に基づいてマルチプレクサ6は右ポイン
タp6を選択しかつマルチプレクサ7は左ポイン
タp1を選択するようにされる。そして右ポイン
タp6はマルチプレクサ8を介してレジスタ2に
セツトされ、左ポインタp1はゲート12を介し
てレジスタ10にセツトされる。(10) At this time, the branch determination circuit 4 compares the read key information with the portion to be compared next to the portion compared at the next higher node in the search code string. In this case as well, there is a coincidence, and on the basis of the branch information in the information F1 the multiplexer 6 is caused to select the right pointer p 6 and the multiplexer 7 is caused to select the left pointer p 1 . The right pointer p 6 is then set in register 2 via multiplexer 8, and the left pointer p 1 is set in register 10 via gate 12.
(11) 次いで情報格納部1の番地A4の内容が読出
される。(11) Next, the contents of address A4 of the information storage section 1 are read out.
(12) このときも一致であることから、情報F4中
の分岐情報に基づいて右ポインタp8がアドレ
ス・レジスタ2にセツトされ、かつ左ポインタ
p7がレジスタ10にオーバ・ライトされる。(12) Since there is a match at this time as well, the right pointer p8 is set in address register 2 based on the branch information in information F4, and the left pointer p8 is set in address register 2.
p7 is overwritten into register 10.
(13) 次いで情報格納部1の番地A5の内容が読
出される。(13) Next, the contents of address A5 of the information storage section 1 are read out.
(14) このときも一致であることから、情報F5
中の分岐情報に基づいて右ポインタp10がアド
レス・レジスタ2にセツトされ、かつ左ポイン
タp9がレジスタ10にオーバ・ライトされる。(14) Since there is a match in this case as well, information F5
The right pointer p 10 is set in address register 2 based on the branch information therein, and the left pointer p 9 is overwritten in register 10.
(15) 次いで情報格納部1の番地A6の内容が読
出される。(15) Next, the contents of address A6 of the information storage section 1 are read out.
(16) このときにも一致であることから、情報F
6中の分岐情報に基づき左ポインタp11がアド
レス・レジスタ2にセツトされ、かつ右ポイン
タp12がレジスタ11上にオーバ・ライトされ
る。(16) Since there is a match in this case as well, information F
Based on the branch information in 6, the left pointer p11 is set in address register 2, and the right pointer p12 is overwritten onto register 11.
(17) そして、次に出力情報抽出モードに入り、
番地N5の内容DN5が出力情報として読出さ
れる。しかし、このモードについては第5図上
から省略されている。このとき、レジスタ10
上にはポインタp9が残り、レジスタ11上には
ポインタp12が残つている。(17) Then, enter the output information extraction mode,
The content DN5 at address N5 is read out as output information. However, this mode is omitted from the top of FIG. At this time, register 10
Pointer p9 remains on top, and pointer p12 remains on register 11.
(18) 次に例えば左隣りの末端ノードN4を調べ
る場合には、レジスタ10の内容p9がアドレ
ス・レジスタ2にセツトされ、情報格納部1の
番地N4の内容を読出す。(18) Next, when checking the terminal node N4 on the left, for example, the contents p9 of the register 10 are set in the address register 2, and the contents of the address N4 of the information storage section 1 are read out.
以上説明した如く、本発明によれば、記憶容量
の増大をきたすことなく、しかも簡単なレジスタ
をもうけることによつて隣接する末端ノードに関
する情報を保持しておくことができる。 As explained above, according to the present invention, information regarding adjacent terminal nodes can be held without increasing the storage capacity and by providing a simple register.
第1図ないし第3図は本発明の前提問題を説明
する説明図、第4図は本発明の一実施例制御方式
の概念を説明する説明図、第5図は本発明の一実
施例構成を示す。
図中、1は木構造格納情報格納部、2はアドレ
ス・レジスタ、3はデータ・レジスタ、4は分岐
判定回路部、5は制御回路部、6ないし9はマル
チプレクサ、10は左非選択レジスタ、11は右
非選択レジスタを表わす。
Figures 1 to 3 are explanatory diagrams for explaining the prerequisite problems of the present invention, Figure 4 is an explanatory diagram for explaining the concept of a control method of an embodiment of the present invention, and Figure 5 is an explanatory diagram for explaining the configuration of an embodiment of the present invention. shows. In the figure, 1 is a tree-structured information storage section, 2 is an address register, 3 is a data register, 4 is a branch judgment circuit section, 5 is a control circuit section, 6 to 9 are multiplexers, 10 is a left non-selection register, 11 represents a right non-selection register.
Claims (1)
のポインタとが設定された木構造をもつて出力情
報が格納されてなり、複数のキー・コードにもと
づくコード列の各コードを上記ノードに対応して
設定されているキー情報と対比しつつ上記出力情
報を抽出する木構造検索処理装置において、上記
木構造にもとづいて上記キー情報と上記ポインタ
とを格納した木構造格納情報格納部をそなえると
共に、該木構造格納情報格納部を探索する処理の
間に選択されなかつたポインタを格納する左非選
択レジスタおよび/または右非選択レジスタをも
うけ、抽出された1つの出力情報に隣接する他の
出力情報を抽出するに当つて、上記左非選択レジ
スタおよび/または右非選択レジスタの内容にも
とづいて上記木構造格納情報格納部をアクセスし
当該他の出力情報を探索する処理を行なうように
したことを特徴とする木構造情報探索制御方式。1 Output information is stored in a tree structure in which key information corresponding to a node and one or more pointers are set, and each code of a code string based on multiple key codes is associated with the above node. A tree structure search processing device for extracting the output information while comparing it with key information set in the tree structure, further comprising a tree structure storage information storage section storing the key information and the pointer based on the tree structure, A left non-selection register and/or a right non-selection register are provided to store pointers that were not selected during the process of searching the tree-structured information storage section, and other output information adjacent to the extracted one output information is provided. In extracting the information, the tree structure storage information storage section is accessed based on the contents of the left non-selection register and/or the right non-selection register to search for the other output information. Features a tree-structured information search control method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56101507A JPS583035A (en) | 1981-06-30 | 1981-06-30 | Tree structure information searching control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56101507A JPS583035A (en) | 1981-06-30 | 1981-06-30 | Tree structure information searching control system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS583035A JPS583035A (en) | 1983-01-08 |
| JPS6326411B2 true JPS6326411B2 (en) | 1988-05-30 |
Family
ID=14302502
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56101507A Granted JPS583035A (en) | 1981-06-30 | 1981-06-30 | Tree structure information searching control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS583035A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61141035A (en) * | 1984-12-14 | 1986-06-28 | Hitachi Ltd | Data retrieval system |
| JPH0758493B2 (en) * | 1988-10-21 | 1995-06-21 | 日本電気株式会社 | Inter-table consistency check method |
-
1981
- 1981-06-30 JP JP56101507A patent/JPS583035A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS583035A (en) | 1983-01-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4417321A (en) | Qualifying and sorting file record data | |
| US4996663A (en) | Methods and apparatus for decontaminating hash tables | |
| US3197740A (en) | Data storage and processing machine | |
| KR890007156A (en) | How to fetch, insert, and delete key record data | |
| US4368532A (en) | Memory checking method | |
| US3699528A (en) | Address manipulation circuitry for a digital computer | |
| KR0159533B1 (en) | Small level parity protection method and apparatus for storing data in random access memory | |
| Mauchly | Preparation of problems for EDVAC-type machines | |
| US5379407A (en) | Error handling in a state-free system | |
| JPS6326411B2 (en) | ||
| US3633179A (en) | Information handling systems for eliminating distinctions between data items and program instructions | |
| US6311266B1 (en) | Instruction look-ahead system and hardware | |
| JP2925042B2 (en) | Information link generation method | |
| KR100289087B1 (en) | A new metod for adding multiple keys into a-b-cpls tree | |
| JP2822869B2 (en) | Library file management device | |
| US4125879A (en) | Double ended stack computer store | |
| JPH03202934A (en) | Data processor | |
| JPS6266326A (en) | Array processing system for japanese data | |
| EP0065114A2 (en) | Method of qualifying and sorting file record data in a text processing system | |
| JPS61278932A (en) | Method of processing data addition | |
| JPS59212972A (en) | Effective use of memory | |
| JPH0145648B2 (en) | ||
| JPS5836372B2 (en) | Data Process Souch | |
| JPH04250568A (en) | record search device | |
| JPS62217495A (en) | associative memory device |