JPS583035A - Tree structure information searching control system - Google Patents

Tree structure information searching control system

Info

Publication number
JPS583035A
JPS583035A JP56101507A JP10150781A JPS583035A JP S583035 A JPS583035 A JP S583035A JP 56101507 A JP56101507 A JP 56101507A JP 10150781 A JP10150781 A JP 10150781A JP S583035 A JPS583035 A JP S583035A
Authority
JP
Japan
Prior art keywords
pointer
information
register
tree structure
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP56101507A
Other languages
Japanese (ja)
Other versions
JPS6326411B2 (en
Inventor
Akio Shinagawa
明雄 品川
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP56101507A priority Critical patent/JPS583035A/en
Publication of JPS583035A publication Critical patent/JPS583035A/en
Publication of JPS6326411B2 publication Critical patent/JPS6326411B2/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/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees

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)

Abstract

PURPOSE:To prevent a page fault, by providing a non-selective register for storing a pointer which has not been selected during the search processing, and searching other output information being adjacent to one extracted output information. CONSTITUTION:A data 4 read out to a data register 3 by an address register from a tree structure storage information storing part 1 is made to branch and is decided by a branching and deciding circuit part 4. In accordance with its decision, a controlling circuit 5 controls multiplexers (MPX)6-9, selects a left or right pointer, and sets it to the register. A left non-selective register 10 and a right non-selective register 11 store a pointer which has not been selected, respectively. In one address in the information storing part 1, an information F containing a key information, a branch information, etc., a left pointer LPT and a right pointer RPT are stored.

Description

【発明の詳細な説明】 本発明は、木構造情報探索制御方式、4!に木構造に展
開されて格納部れている末端ノードの出力情報を抽出し
た後に、隣接する末端ノードの出力情報を高速度でアク
セスできるように、少表くとも最も近い時点において選
択されなかったパスに関するポインタの値を残しておき
、当該値を利用して他の出力情報探索を行なわせるよう
にした木構造情報探索制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides a tree structure information search control method, 4! After extracting the output information of the end node expanded into a tree structure and stored in the storage area, the output information of the adjacent end node can be accessed at high speed. The present invention relates to a tree structure information search control method in which a pointer value related to a path is left and the value is used to search for other output information.

従来から1例えば英語辞書の場合のように複数側のキー
情報あ列に対応して出力情−が対応づけられている如き
、木構造に展開される対応関係を情報格納部に格納して
おき、検索に当って入力され九検索コード列に本とづい
て上記情報格納部をアクセスし、上記キー情報と上記検
索コード列上のブードとを対比しつつ出力情報を抽出す
ることが行表われている。
Conventionally, for example, in the case of an English dictionary, a correspondence relationship expanded into a tree structure is stored in an information storage unit, where output information is associated with a column of key information on multiple sides. , the information storage section is accessed based on the nine search code strings input during the search, and output information is extracted while comparing the key information with the bood on the search code string. ing.

このような木構造検索処理装置において1例えば第1図
図示の如き゛木構造上で末端ノードN5に対応する出力
情報を抽出した段階で、あわせて末端ノードN511C
@接する末端ノードN4やNak対応している出力情報
を抽出したい場合が生じる。
In such a tree structure search processing device, for example, at the stage of extracting the output information corresponding to the end node N5 on the tree structure as shown in FIG.
There may be a case where it is desired to extract output information corresponding to the terminal node N4 or Nak in contact with @.

このような場合におけるアクセスを有効に行なわせる方
式として、従来、(1)第1図を参照して後述される逆
ポインタを用いる方式、 (If)第2図を参照して後
述される水平ポインタを用いる方式、(1)第3図を参
照して後述されるスタックを用いる方式、←)上記第1
図図示の末端ノード例えばN5を探索する処理の間にポ
インタを逆向きkしておいてこれを利用する方式などが
知られている。
Conventionally, methods for effectively performing access in such cases include (1) a method using an inverse pointer, which will be described later with reference to FIG. 1, and (If) a method using a horizontal pointer, which will be described later with reference to FIG. (1) A method using a stack described later with reference to FIG. 3, ←) A method using the above first method.
A method is known in which the pointer is turned in the opposite direction during the process of searching for the end node shown in the figure, for example N5, and this is utilized.

しかし、これら各方式においても夫々難点が存在する。However, each of these methods has its own drawbacks.

以下この点について先に簡単に述べておく。I will briefly discuss this point below.

(1)上記第(1)の方式。(1) Method (1) above.

一般に木構造を格納するKmつては、第1図図示のノー
ドAO,A1.・・・・・・N12  を木の根から末
端に向う方向にポインタpO,νl・・・・・・を社る
ようKされ、末端ノード例えばN5を探索するに当って
は、各ノードに対応するキー情報を調べつつポインタ9
0. pL pL tsの如く選択してノードN5に到
達する。峡第(1)の方式においては。
In general, Km that stores a tree structure is nodes AO, A1, . ......N12 is set to create pointers pO, νl... in the direction from the root of the tree to the end, and when searching for the end node, for example N5, the key corresponding to each node is Pointer 9 while looking up information
0. pL pL ts to reach node N5. In the method of Kyōdai (1).

末端ノードN5に達した後に、隣接する。末端ノードN
4やN6を効率よく調べ得るようにする九めに、上記ポ
インタνO,j11.・・・・・・k対応して逆方向の
ポインタpOニジl;・・・・・・を木構造に附加して
おくようKする。そして、末端ノードN5から末端ノー
ドN6を探す場合には、末端ノードN5“から逆ポイン
タt3′・・・・・・と遍ってゆき、1つのノード(例
えば図示A6)K違したときに。
After reaching the terminal node N5, it becomes adjacent. terminal node N
4 and N6 efficiently, the above pointer νO,j11. . . . A corresponding backward pointer pOnijil; . . . is added to the tree structure. When searching for the terminal node N6 from the terminal node N5, the pointer goes from the terminal node N5'' to the reverse pointer t3', and when one node (for example, A6 in the figure) is different.

下向きのポインタであって遡ってきた方向でなくかつ最
も左側に向うポインタ(図示の場合p4)elK無を調
べ、存在すればそのノード(図示A6)からいわば左へ
左へたどってゆくようKされる。
A pointer pointing downward, not in the backward direction, and pointing to the leftmost point (p4 in the diagram) is checked for absence of elK, and if it exists, it is set to trace to the left, so to speak, from that node (A6 in the diagram). Ru.

この方式の場合には、木構造内に逆ポインタを附加して
いるために、木構造を格納する丸めの記憶容量が大と表
る。tたこのために、木構造が複数のページKtたがっ
て格納されることが生じ易くなり、 s際のアクセス処
理Kmつていわゆるページ・フォールトが生じ易くなる
In this method, since an inverse pointer is added to the tree structure, the rounding storage capacity for storing the tree structure appears to be large. Because of this, the tree structure is likely to be stored in a plurality of pages Kt, and a so-called page fault is likely to occur during the access process Km during s.

〔璽〕上記第(1)の方式。[Seal] Method (1) above.

この方式の場合には、第2図図示の如く、末端ノードN
O,Nl、・・・・・・間に水平方向ポインタ(図示点
m>をはっておくようにする。そして、今。
In this method, as shown in Figure 2, the terminal node N
Place a horizontal pointer (point m> in the diagram) between O, Nl, and so on.And now.

1つの末端ノードN5に到達した状態で、隣接するノー
ドN4を調べたい場合には、上記水平方向ポインタの内
容にもとづいて即ノードN4をアクセスできるようにす
る。勿論図示における水平方向ポインタは一方向のみで
あって本よ<、また両方向ある場合にはノードN8とN
Oとを結ぶポインタは必らずしも必要としない。
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 in the illustration is only in one direction, and if there is a horizontal pointer in both directions, nodes N8 and N
A pointer connecting to O is not necessarily required.

この方式の場合にも、木構造内に水平方向ポインタを附
加するものであシ、記憶容量の増大とページ・フォルト
発生頻度の増大をまねく。
In this method as well, a horizontal pointer is added to the tree structure, resulting in an increase in storage capacity and an increase in the frequency of page fault occurrence.

〔厘〕上記館(―)の方式。[Rin] Method of the above building (-).

第3図(Aにおいて根のノードAOから末端ノードN4
に向って探索した際に、その間に通過し九ノードから出
ているどのポインタを選択したかを、第3図ω)図示の
スタックSTK内KJ[に格納してゆく。蚊スタックS
TK内にはポインタν1とmlポインタの方向とが格納
される。
Figure 3 (from the root node AO to the terminal node N4 in A)
When searching toward , which pointer selected from the nine nodes passed during that time is stored in KJ[ in the stack STK shown in FIG. 3 ω). Mosquito stack S
The pointer ν1 and the direction of the ml pointer are stored in TK.

なお1例えばポインタp0は蟲レボインタによって指示
されるノードA1が格納されている記憶アドレスそのも
のであり、方向「10」は左、方向「11」は中、方向
「01」は右を示している。
Note that, for example, the pointer p0 is the storage address itself where the node A1 pointed to by the insect revo pointer is stored, and the direction "10" indicates the left, the direction "11" indicates the middle, and the direction "01" indicates the right.

第3図(A)(B)図示の場合に末端ノードN4に至る
過@において、ノードAOにおいて左方向ポインタνO
が選択づれたためにこの旨をスタックSTK上に格納し
9次いでノードAIにおいて右方向ポインタp3が選択
されたためにこの旨を格納し9次いでノードA2におい
て右方向ポインタt−が選択されえ九めにこの旨を格納
している。そして例えば末端ノードN3を調べるKは、
上記スタックの内容を利用し、1つ上のノードにおいて
ポインタの存在方向を調べてノードN3に向うようにす
る。図示の場合には。
In the case shown in FIGS. 3(A) and 3(B), the left direction pointer νO at the node AO in the path to the terminal node N4.
is selected, so this fact is stored on the stack STK9.Next, the right pointer p3 is selected at the node AI, so this fact is stored,9Then, the right pointer t- is selected at the node A2. This information is stored. For example, K, which examines the terminal node N3, is
Using the contents of the stack, the direction in which the pointer exists at the node one level higher is checked and it is directed to node N3. In the case shown.

ノードN4.  ノードA2.  ノードN3と向うよ
うにする。な−お図示スタックSTK中の矢印Xの情報
は必らずしもスタック中に必要としない。
Node N4. Node A2. Make it face node N3. Note that the information indicated by arrow X in the illustrated stack STK is not necessarily required in the stack.

この方式の場合には、木構造とは別個にスタックを4う
けている九め1/C(l#にこれがハードウェアスタッ
クであれば)上述のページ・フォールトなどの発生頻度
は少ないが、木構造の段数が大になるKつれて、スタッ
ク87KK要する段数が大となる。
In the case of this method, the number of page faults mentioned above occurs less frequently (if this is a hardware stack in l#), which has four stacks separate from the tree structure, but As the number of stages in the structure increases, the number of stages required for the stack 87KK increases.

(W)上記第←)の方式。(W) Method number ← above.

この方式の場合には1例えば第il1図示において末端
ノードN5を探索する処理の関に通過してきたポインタ
90.シ1,9鵞、 tSの方向を夫々逆方向に変更せ
しめるようKする(逆方向ポインタ90−ν1′・・・
は用いない)。そして、当該逆方向に向きを変えたポイ
ンタをちょうど逆方向ポインタと同じように利用してゆ
くようにする。
In the case of this method, for example, the pointer 90 . 1, 9, K to change the direction of tS to the opposite direction (reverse direction pointer 90-ν1'...
is not used). Then, the pointer whose direction has been changed in the opposite direction is used in the same way as the backward pointer.

この方式の場合には、上述の逆方向ポインタを附−加し
な匹ので、上述の記憶容量増大なくの難点は存在し危い
、しかし、上述の如く逆方向にはシ直したポインタを元
通りに戻す必要があり、この処理の際に非所望にページ
・7オ一ル本発明は、上記の点を考慮してなされたもの
であシ、上述の問題点を解決した木構造情報探索制御方
式を提供することを目的としている。そしてそのため9
本発明の木構造情報探索制御方丈は。
In the case of this method, since the above-mentioned reverse direction pointer is not added, the above-mentioned problem of increasing the storage capacity exists and it is dangerous. The present invention has been made in consideration of the above points, and is a tree-structured information search method that solves the above problems. The purpose is to provide a control method. And for that reason9
The tree structure information search control method of the present invention is as follows.

ノードに対応したキー情報と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 is based on multiple key codes; The tree structure search processing device extracts the output information while comparing it with the key information set in the tree structure, and includes a tree structure storage information storage section that stores the key information and the pointer based on the tree structure.

該木構造格納情報格納部を探索するillの関に選択さ
れなかったポインタを格納する左非選択レジスタおよび
/または右非選択レジスタをもうけ。
A left non-selection register and/or a right non-selection register are provided to store pointers that are not selected when ill searches the tree structure storage information storage section.

抽出され九1つの出力情報kli*する他の出力情報を
抽出するに幽って、上記左非選択レジスタおよび/ま丸
線右非選択レジスタの内容にもとづいて上記本構造格納
情報格納部をアクセスしめ1他の出力情報を探索する処
理を行なうようKしたことを特徴としている。以下図面
を参照しつつ説明する。
In order to extract other output information to be extracted, the main structure storage information storage section is accessed based on the contents of the left unselected register and the circled right unselected register. The present invention is characterized in that it performs processing to search for other output information. This will be explained below with reference to the drawings.

第4図は本発明の一集施例制御方式の概念を説明する説
明図、第5図は本発明の一実施例構成を示す。
FIG. 4 is an explanatory diagram illustrating the concept of the integrated control method of the present invention, and FIG. 5 shows the configuration of one embodiment of the present invention.

本発明の場合9例えば第4図において、ノードAOから
末端ノードN5に至る探索の間に次のような処理を行な
う。即ち (1)  ノードAOにおいて左ポインタ10が選択さ
れたとき1図示レジスタR(右非選択レジスタ)K選択
されなかつ九右ポインタp1Bをセットする。
In the case of the present invention 9 For example, in FIG. 4, the following processing is performed during the search from node AO to terminal node N5. That is, (1) when the left pointer 10 is selected at the node AO, the register R (right unselected register) K is not selected and the right pointer p1B is set.

(2)  ノードAljおいて右ポインタj6が選択さ
れたとき1図示レジスタL(左非選択レジスタ)K選択
されなかった左ポインタ141をセットする。
(2) When right pointer j6 is selected at node Alj, 1 register L (left non-selection register) K is set to the left pointer 141 that was not selected.

(3)  ノードA4において、右ポインタを口が選択
され九ことから1図示レジスタLm左ポインタpフをオ
ーバ・ライトする。
(3) At node A4, since the right pointer is selected, 1 register Lm and left pointer p are overwritten.

(4)  ノードA5において、右ポインタp10が選
択されたことから9図示レジスタLK左ボ・fンタp會
をオーバ・ライトする。
(4) At node A5, since the right pointer p10 is selected, the register LK shown in FIG. 9 overwrites the left pointer p.

(jl)  ノードA6において、左ポインタ911が
選択されたことから1図示レジスタRK右ポインタtt
Sをオーバ・ライトする。
(jl) At node A6, since the left pointer 911 is selected, 1 illustrated register RK right pointer tt
Overwrite S.

このようkして、末端ノードN5に達し九とき。In this way, the terminal node N5 is reached at 9 o'clock.

図示レジスタLKはポインタシ会がセットされ。The illustrated register LK is set to pointer status.

かつレジスタRKはポインタplsがセットされている
形となる。こめ状11において9例えば左IIりのノー
ドN4を調べるkはレジスタLの内容lIC4とづ−て
(当該内容はポインタp9が指しているノードの格納ア
ドレスである)、ノードN4に至シ、ノードN4から更
に右方向に下るポイントが存在するか否かを調べ、最後
的に左隣シのノードN4に至る。
In addition, the pointer pls is set in the register RK. In case 11, for example, k which checks node N4 on the left side is based on the content lIC4 of register L (the content is the storage address of the node pointed to by pointer p9), and reaches node N4. It is checked whether there is a point further down to the right from N4, and finally the node N4 on the left is reached.

このようにするととkよって、木構造を格納する記憶容
量の増大に関して社問題がなく、ま九必要とするものと
しては例えば左右隣績のものを調べる場合には2伽程度
のレジスタを用意すれば足シる。勿論、レジスタLとし
て2個のレジスタを用意し、レジスタRとして2個のレ
ジスタを用意することkよって、左隣接、その左隣接、
右隣接。
By doing this, there is no problem with increasing the storage capacity for storing the tree structure, and for example, if you want to check the left and right neighbors, you need about 2 registers. It's a shame. Of course, by preparing two registers as register L and two registers as register R, the left neighbor, its left neighbor,
Adjacent to the right.

その右隣接の各末端ノードを調べることも容易となる。It also becomes easy to examine each terminal node of its right neighbor.

この場合Kd、例えば第4図図示のレジスタLそのもの
をレジスタL1とし、#レジスタL1の元の内容が転送
されるレジスタL2を用意し。
In this case, Kd, for example, the register L shown in FIG. 4 is used as the register L1, and a register L2 is prepared to which the original contents of the #register L1 are transferred.

スタL2に移せばよい。All you have to do is move it to Star L2.

第5図は本発明の一実施例構成を示す0図中の符号1は
木構造格納情報格納部 、2けアドレス・レジスタ、3
はデータ・レジスタ、4は分岐判定回路部、5は制御回
路部であってマルチプレクサ(MPX)を制御するもの
、6ないし9は夫々!ルチプレクサ、10は左非選択レ
ジスタであって第4図図示の「レジスタL」に相轟する
亀の、11紘右非選択レジスタであって第4図図示の「
レジスタRJK相当するもの、12.13は夫々ゲート
を表わしている。
FIG. 5 shows the configuration of an embodiment of the present invention. Reference numeral 1 in the figure indicates a tree structure storage information storage unit, a 2-digit address register, and 3
is a data register, 4 is a branch decision circuit, 5 is a control circuit that controls the multiplexer (MPX), and 6 to 9 are respectively! Multiplexer, 10 is a left non-selection register, which corresponds to "register L" shown in FIG. 4; 11 is a right non-selection register, which is "register L" shown in FIG.
The registers RJK and 12 and 13 respectively represent gates.

舷情報等゛を含む情報Fと左ポインタLPTと右ポイン
タRPTとが格納されている。以下、末端ノードN5に
至る探索処理について説明する。
Information F including ship information, etc., a left pointer LPT, and a right pointer RPT are stored. The search process leading to the terminal node N5 will be described below.

(6)  最初アドレス・レジスタ2に木の機のアドレ
ススAOがセットされる。これによって、情報格納部l
内の番地AOの内容がデータ・レジスタ3に読出される
(6) First, address register 2 is set to address AO of the wooden machine. As a result, the information storage section l
The contents of address AO within are read to data register 3.

(7)分岐判定回路部4Fi、読出された情報FOのう
ちのキー情報と検索コード列の上位部分とを比較する。
(7) The branch determination circuit unit 4Fi compares the key information of the read information FO with the upper part of the search code string.

この場合には一致しておシ、制御回路部5は、情報FO
中の分岐情報から左ポインタ10をマルチプレクサ6に
おいて選択し、かつ右ポインタν13をマルチプレクサ
7において選択する。
In this case, the control circuit unit 5 automatically outputs the information FO.
The left pointer 10 is selected at the multiplexer 6 and the right pointer ν13 is selected at the multiplexer 7 from the branch information inside.

(8)そして今の場合には探索モードであることから、
上記左ポインタyoFiマルチプレクサ8を介してレジ
スタ2にセットされる。一方左ポインタが選択されたこ
とからゲート13をオンしてレジスタllk右ポインタ
P13をセットする。
(8) And in this case, since we are in search mode,
The left pointer yoFi is set in the register 2 via the multiplexer 8. On the other hand, since the left pointer has been selected, the gate 13 is turned on to set the register llk right pointer P13.

(・)次いで情報格納部1の゛番地A1の内容が読出さ
れる。
(.) Next, the contents of address A1 of the information storage section 1 are read out.

10)  このとき分岐判定回路4は、読出されたキー
情報と検索コード列の1つ上位のノードで比較した部分
(1次いで比較すべき部分とを比較する。
10) At this time, the branch determination circuit 4 compares the read key information and the portion compared at the next higher node of the search code string (the portion to be compared first).

この場合にも一致であり、情報Fl中の分岐情報に基づ
いてマルチプレクサ6は右ポインタP6を選択しかつマ
ルチプレクサ7は左ポインタt1を選択するようkされ
る。そして右ポインタ?−はマルチプレクサ8を介して
レジスタ2にセット嘔れ、左ポインタ21はゲー)12
を介してレジスタIOKセットされる。
In this case as well, there is a coincidence, and based on the branch information in the information Fl the multiplexer 6 is directed to select the right pointer P6 and the multiplexer 7 is directed to select the left pointer t1. And the right pointer? - is set in register 2 via multiplexer 8, and left pointer 21 is set to 12
Register IOK is set via .

い)次いで情報格納部1の番地A4の内容が読出される
b) Next, the contents of address A4 of the information storage section 1 are read out.

(ロ) このときも一致であることから、情報F4中の
分岐情報に基づいて右ポインタシ専がアドレス・レジス
タ2にセットされ、かつ左ポインタg7がレジスタIO
Kオーバ・ライトされる。
(b) Since there is a match at this time as well, the right pointer g7 is set to address register 2 based on the branch information in information F4, and the left pointer g7 is set to register IO.
K overwritten.

(ロ) 次いで情報格納部10番地A5の内容が読出さ
れる。
(b) Next, the contents of the information storage section 10 address A5 are read out.

Q4  このときも一致であることから、情報F5中の
分岐情報に基づいて右ポインタp1Gがアドレス・レジ
スタ2にセットされ、かつ左ポインタP9がレジスタI
OKオーバ・ライトされる。
Q4 Since there is a match at this time as well, the right pointer p1G is set in address register 2 based on the branch information in information F5, and the left pointer P9 is set in register I.
OK Overwritten.

θ呻 次いで情報格納部1の番地A6の内容が読出きれ
る。
Next, the contents of address A6 of the information storage section 1 can be read out.

(ロ) このときに屯一致であることから、情報F6中
の分岐情報に基づき左ポインタpimがアドレス・レジ
スタ2にセットされ、かつ右ポインタtl!がレジスタ
11上にオーバ・ライト、される。
(b) Since there is a match at this time, the left pointer pim is set in address register 2 based on the branch information in information F6, and the right pointer tl! is overwritten on register 11.

Qf)そして9次に出方情報抽出モードに入り番地N5
の内容DNSが出方情報として読出される。しかし、こ
のモードについては第5図上から省略されている。この
とき、レジスタ10上にはポインタν・が残シ、レジス
タ11上にはポインタt1!が残っている。
Qf) Then enters the 9th exit information extraction mode and addresses N5.
The content DNS is read out as the output information. However, this mode is omitted from the top of FIG. At this time, pointer ν・ remains on register 10, and pointer t1! remains on register 11. remains.

(ロ)次k例えば左lIシの末端ノードN4を調べる場
合Ka、  レジスタ1oの内容ν・がアドレス・レジ
スタ2にセットされ、情報格納部10番地N4の内容を
読出す。
(b) Next, for example, when checking the terminal node N4 on the left side, the contents ν of the register 1o are set in the address register 2, and the contents of the information storage section 10 address N4 are read out.

以上説明した如く1本発明によれば、記憶容量の増大を
きたすことなく、シかも簡単なレジスタをもうけるとと
Kよって隣接する末端ノードに関する情報を保持してお
くことができる。
As explained above, according to the present invention, information regarding adjacent end nodes can be held by providing a simple register without increasing the storage capacity.

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

第1図ないし第3図は本発明の前提問題を説明する説明
図、第4図は本発明の一実施例制御方式の概念を説明す
る説明図、第5図は本発明の一笑施例構成を示す。 図中、1は木構造格納情報格納部、2はアドレス・レジ
スタ、3はデータ・レジスタ、4は分岐判定回路部、5
は制御回路部、6ないし9は!ルチプレクサ、10は左
非選択レジスタ、11は右非選択レジスタを表わす。 特許出願人 富士通株式会社 代理人弁理士 森 1) 寛 −jr2闇 す3図 (B)
Figures 1 to 3 are explanatory diagrams explaining the prerequisite problems of the present invention, Figure 4 is an explanatory diagram explaining the concept of a control system of an embodiment of the present invention, and Figure 5 is a simplified embodiment configuration 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, and 5 is a tree-structured information storage section.
is the control circuit section, and 6 to 9 are! In the multiplexer, 10 represents a left non-selection register, and 11 represents a right non-selection register. Patent Applicant: Fujitsu Ltd. Representative Patent Attorney Mori 1) Hiro-JR2 Yamisu 3 Diagram (B)

Claims (1)

【特許請求の範囲】[Claims] ノードに対応したキー情報と1つまたは複数のポインタ
とが設定された木構造をもって出力情報が格納きれてな
り、複数のキー・コードにもとづくコード列の各コード
を上記ノードに対応して設定されているキー情報と対比
しつつ上記出力情報を抽出する木構造検索処理装置にお
いて、上記木構造にもとづいて上記キー情報と上記ポイ
ンタとを格納した木構造格納情報格納部をそなえると共
に、該木構造格納情報格納部を探索する処理の間に選択
されなかったポインタを格納する左非選択レジスタおよ
び/lたは右非選択レジスタを4うけ、抽出された1つ
の出力情報にie*する他の出力情報を抽出するに当っ
て、上記左非選択レジスタおよび/lたは右非選択レジ
スタの内容にもとづいて上記木構造格納情報格納部をア
クセスし当骸他の出力情報を探索する処理を行なうよう
Kしたことを特徴とする木構造情報探索制御方式。
Output information can be stored in a tree structure in which key information and one or more pointers are set corresponding to nodes, and each code of a code string based on multiple key codes is set corresponding to the above node. The tree structure search processing device extracts the output information while comparing the output information with the key information stored in the tree structure. The left non-select register and /l or right non-select register that stores the pointer that was not selected during the process of searching the stored information storage section are received, and the other output is ie* to the extracted one output information. When extracting information, the tree structure storage information storage section is accessed based on the contents of the left non-selection register and /l or the right non-selection register to search for other output information. A tree-structured information search control method characterized by K.
JP56101507A 1981-06-30 1981-06-30 Tree structure information searching control system Granted JPS583035A (en)

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 true JPS583035A (en) 1983-01-08
JPS6326411B2 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61141035A (en) * 1984-12-14 1986-06-28 Hitachi Ltd Data retrieval system
JPH02112067A (en) * 1988-10-21 1990-04-24 Nec Corp System for checking matching between tables

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61141035A (en) * 1984-12-14 1986-06-28 Hitachi Ltd Data retrieval system
JPH02112067A (en) * 1988-10-21 1990-04-24 Nec Corp System for checking matching between tables

Also Published As

Publication number Publication date
JPS6326411B2 (en) 1988-05-30

Similar Documents

Publication Publication Date Title
Rosenfeld Isotonic grammars, parallel grammars, and picture grammars
CA1288871C (en) Method for verifying spelling of compound words
US5323310A (en) Analyzing textual documents
EP0179214A2 (en) Method of verifying the compound word spelling
JPS63254559A (en) Spelling aid for compound word
US5268840A (en) Method and system for morphologizing text
Apostolico et al. Structural properties of the string statistics problem
US7933885B1 (en) Longest matching prefix search engine with hierarchical decoders
JP2693914B2 (en) Search system
JPS583035A (en) Tree structure information searching control system
Milintsevich et al. Enhancing sequence-to-sequence neural lemmatization with external resources
US4524427A (en) Method for making comparisons between reference logical entities and logical entities proceeding from a file
JPH024026B2 (en)
King Table Look-up Procedures in Language Processing—Part I: The Raw Text
EP0145202B1 (en) Word spelling checking system
JP2729491B2 (en) Variable length character string detector
JPH03116375A (en) Information retriever
CN116910182B (en) Cross-language code searching method and device
JP3317904B2 (en) Abbreviated name extraction device, method and recording medium
CN118333053B (en) Language data processing method, device, computer equipment and storage medium
JPH0746362B2 (en) String matching method
JPH0644264B2 (en) Word memory system
EP0178651B1 (en) Data retrieving apparatus
AU659639B2 (en) Analysing textual documents
JPH0259513B2 (en)