JPH1063675A - Data retrieving method and data retrieving device applying the method - Google Patents

Data retrieving method and data retrieving device applying the method

Info

Publication number
JPH1063675A
JPH1063675A JP8217547A JP21754796A JPH1063675A JP H1063675 A JPH1063675 A JP H1063675A JP 8217547 A JP8217547 A JP 8217547A JP 21754796 A JP21754796 A JP 21754796A JP H1063675 A JPH1063675 A JP H1063675A
Authority
JP
Japan
Prior art keywords
search
data
program
storage device
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.)
Pending
Application number
JP8217547A
Other languages
Japanese (ja)
Inventor
Noritake Yonezawa
典剛 米澤
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP8217547A priority Critical patent/JPH1063675A/en
Publication of JPH1063675A publication Critical patent/JPH1063675A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a data retrieving device capable of executing data retrieval at a high speed without being influenced by the processing speed of a data storage device. SOLUTION: The data retrieving device is provided with a data storage device 11 for storing data to be retrieved as a data base of tree structure, a retrieving program generating part 12 for generating a retrieving program having a conditional branch corresponding to the tree structure from the data base, a program storage part 13 for storing the retrieving program, a retrieving program executing part 14 for executing data retrieval by executing the retrieving program in accordance with the input of a retrieval key, and an I/O interface 15 for outputting the retrieved result of the data retrieval of the execution part 14. Since the use of the data storage device 11 is not unnecessary at the time of executing the retrieving program, high speed data retrieval can be attained independently of the processing speed of the device 11.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、主としてLSI等
のレイアウトにおける大容量の図形データの高速な探索
が可能なデータベースに関するデータ探索方法及びそれ
を適用したデータ探索装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a data search method for a database capable of high-speed search of large-capacity graphic data in a layout of an LSI or the like and a data search apparatus to which the method is applied.

【0002】[0002]

【従来の技術】従来、この種のデータベースに関するデ
ータ探索は、LSIレイアウトにおけるチップ内配線や
検証システム等において与えられた点を含む図形や近傍
の図形を探索するために適用されている。このような関
連技術としては、例えば特開平7−319894号公報
に開示された高速データ探索装置および高速データ探索
方法が挙げられる。
2. Description of the Related Art Heretofore, this kind of data search for a database has been applied to search for a figure including a given point or a nearby figure in an LSI layout, a chip wiring, a verification system or the like. Such a related technique includes, for example, a high-speed data search device and a high-speed data search method disclosed in Japanese Patent Application Laid-Open No. 7-319894.

【0003】図9は、この高速データ探索装置の基本構
成を示したブロック図である。この高速データ探索装置
は、データベース中の特定の一部のデータ集合を対象と
して図形探索を行うものであり、探索範囲決定部92,
探索範囲記憶用レジスタ93,探索処理部95,データ
格納用メモリ93,及び入出力インターフェイス91か
ら構成されている。
FIG. 9 is a block diagram showing a basic configuration of the high-speed data search device. This high-speed data search device performs a graphic search on a specific partial data set in a database.
It comprises a search range storage register 93, a search processing unit 95, a data storage memory 93, and an input / output interface 91.

【0004】この高速データ探索装置では、探索範囲及
び探索キーを入出力インターフェイス91に入力し、探
索範囲決定部92で探索範囲アドレスを決定し、このア
ドレスを探索範囲記憶用レジスタ94に記憶し、探索処
理部95でこのアドレスを用いて探索し、入出力インタ
ーフェイス91から探索結果を出力することにより、デ
ータベースの木構造の根元よりも末端方向の特定の節部
から探索を行うようになっている。
In this high-speed data search device, a search range and a search key are input to an input / output interface 91, a search range determining unit 92 determines a search range address, and stores this address in a search range storage register 94. The search processing unit 95 performs a search using this address, and outputs a search result from the input / output interface 91, so that a search is performed from a specific node part closer to the end than the root of the tree structure of the database. .

【0005】[0005]

【発明が解決しようとする課題】上述した高速データ探
索装置による高速データ探索の場合、データ格納用メモ
リに記憶されたデータベースの木構造を探索するために
データ格納用メモリ及び探索処理部間のデータ転送が頻
繁に行われることにより、データ探索速度がデータ格納
用メモリ,即ち、データ記憶装置の処理速度の影響を受
けてしまうため、探索処理部の演算処理速度を速くして
もデータ探索速度が速くならないという問題がある。
In the case of the high-speed data search by the high-speed data search apparatus described above, the data between the data storage memory and the search processing unit is searched for searching the tree structure of the database stored in the data storage memory. Frequent transfers cause the data search speed to be affected by the processing speed of the data storage memory, that is, the data storage device. Therefore, even if the arithmetic processing speed of the search processing unit is increased, the data search speed is reduced. There is a problem that it is not fast.

【0006】本発明は、このような問題点を解決すべく
なされたもので、その技術的課題は、データ記憶装置の
処理速度の影響を受けずに高速にデータ探索を実行でき
るデータ探索方法及びそれを適用したデータ探索装置を
提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve such a problem, and its technical problem is to provide a data search method and a data search method capable of executing a high-speed data search without being affected by the processing speed of a data storage device. It is an object of the present invention to provide a data search device to which the above is applied.

【0007】[0007]

【課題を解決するための手段】本発明によれば、木構造
を用いてデータが格納されたデータベースから木構造に
対応する条件分岐を有する探索プログラムを生成する探
索プログラム生成段階と、探索プログラムに探索キーを
入力して該探索プログラムを実行し、且つ探索結果を出
力する探索結果出力段階とを有するデータ探索方法が得
られる。
According to the present invention, a search program generating step of generating a search program having a conditional branch corresponding to a tree structure from a database in which data is stored using the tree structure; A search result inputting a search key, executing the search program, and outputting a search result.

【0008】一方、本発明によれば、木構造を用いてデ
ータが格納されたデータベースから木構造に対応する条
件分岐を有する探索プログラムを生成する探索プログラ
ム生成部と、探索プログラムを格納するプログラム記憶
装置と、探索キーの入力に従って探索プログラムを実行
してデータ探索を行う探索プログラム実行部と、探索キ
ーを入力すると共に、探索プログラム実行部によるデー
タ探索の探索結果を出力する入出力インターフェイスと
を備えたデータ探索装置が得られる。
On the other hand, according to the present invention, a search program generator for generating a search program having a conditional branch corresponding to a tree structure from a database storing data using the tree structure, and a program storage for storing the search program A search program execution unit that executes a search program in accordance with an input of a search key to perform a data search; and an input / output interface that inputs a search key and outputs a search result of the data search by the search program execution unit. A data search device is obtained.

【0009】又、本発明によれば、上記データ探索装置
において、探索プログラム実行部によりデータ探索を行
ったときの探索キーと探索結果のデータとを格納する探
索結果記憶装置を備え、探索プログラム実行部は現行の
データ探索に際して探索結果記憶装置を参照して探索キ
ーに関する同一なものに対しては探索プログラムの実行
を省略するデータ探索装置が得られる。
Further, according to the present invention, in the above data search device, a search result storage device for storing a search key and data of a search result when the data search is performed by the search program execution unit is provided. The unit obtains a data search device that skips the execution of the search program for the same search key by referring to the search result storage device during the current data search.

【0010】[0010]

【発明の実施の形態】以下に実施例を挙げ、本発明のデ
ータ探索方法及びそれを適用したデータ探索装置につい
て、図面を参照して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A data search method and a data search apparatus to which the present invention is applied will be described in detail below with reference to the drawings.

【0011】最初に、本発明のデータ探索方法の概要を
簡単に説明する。このデータ探索方法は、木構造を用い
てデータが格納されたデータベースから木構造に対応す
る条件分岐を有する探索プログラムを生成する探索プロ
グラム生成段階と、探索プログラムに探索キーを入力し
て該探索プログラムを実行し、且つ探索結果を出力する
探索結果出力段階とを実行するものである。
First, the outline of the data search method of the present invention will be briefly described. This data search method includes a search program generating step of generating a search program having a conditional branch corresponding to a tree structure from a database in which data is stored using a tree structure, and inputting a search key to the search program to execute the search program. And outputting a search result.

【0012】このようなデータ探索方法に従えば、デー
タベースから木構造に対応する条件分岐構造をもった探
索プログラムを生成し、その探索プログラムを実行する
ことによりデータの探索を行うため、探索プログラムの
実行に際してデータ記憶装置を使用する必要が無く、こ
れによりデータ記憶装置の速度に依存しない高速なデー
タ探索が可能となる。
According to such a data search method, a search program having a conditional branch structure corresponding to a tree structure is generated from a database, and data is searched for by executing the search program. There is no need to use a data storage device for execution, which enables high-speed data search independent of the speed of the data storage device.

【0013】図1は、このデータ探索方法を適用した一
実施例に係るデータ探索装置の基本構成を示したもので
ある。
FIG. 1 shows a basic configuration of a data search apparatus according to an embodiment to which the data search method is applied.

【0014】このデータ探索装置は、探索対象となるデ
ータを木構造でデータベースとして格納したデータ記憶
装置11と、木構造を用いてデータが格納されたデータ
ベースから木構造に対応する条件分岐を有する探索プロ
グラムを生成する探索プログラム生成部12と、探索プ
ログラムを格納するプログラム記憶装置13と、探索キ
ーの入力に従って探索プログラムを実行してデータ探索
を行う探索プログラム実行部14と、探索キーを入力す
ると共に、探索プログラム実行部14によるデータ探索
の探索結果を出力する入出力インターフェイス15とを
備えて構成される。
This data search device includes a data storage device 11 in which data to be searched is stored as a database in a tree structure, and a search having a conditional branch corresponding to the tree structure from a database in which data is stored using the tree structure. A search program generation unit 12 for generating a program, a program storage device 13 for storing a search program, a search program execution unit 14 for executing a search program in accordance with a search key input and performing a data search, and inputting a search key. And an input / output interface 15 for outputting a search result of the data search by the search program execution unit 14.

【0015】このデータ探索装置では、データ記憶装置
11に探索対象となるデータが木構造でデータベースと
して格納されているため、探索プログラム生成部12が
データ記憶装置11から木構造のデータを読み出し、生
成した探索プログラムをプログラム記憶装置13に格納
する。探索プログラム実行部14は、プログラム記憶装
置13から探索プログラムを読み出し、入出力インター
フェイス15から探索キーを入力し、探索プログラムを
実行すると共に、探索結果を入出力インターフェイス1
5に出力する。
In this data search device, since the data to be searched is stored in the data storage device 11 as a database in a tree structure, the search program generation unit 12 reads the tree structure data from the data storage device 11 and generates the data. The retrieved search program is stored in the program storage device 13. The search program execution unit 14 reads the search program from the program storage device 13, inputs a search key from the input / output interface 15, executes the search program, and outputs the search result to the input / output interface 1.
5 is output.

【0016】図2は、データ記憶装置11に格納された
探索対象となるデータの多分木構造を例示したものであ
る。ここで多分木とは1個以下の親とn個以下の子とを
含む複数のノード21から構成される木構造であり、各
ノード21にはそのノードへのデータ格納条件22とそ
の条件を満たす任意個のデータ23とが格納されてい
る。因みに、多分木構造において親を持たないノードは
根と呼ばれる。
FIG. 2 illustrates a multi-tree structure of data to be searched stored in the data storage device 11. Here, the multitree is a tree structure composed of a plurality of nodes 21 including one or less parents and n or less children. Each node 21 includes a data storage condition 22 for the node and a condition for the data storage. Any number of data 23 to be satisfied is stored. Incidentally, a node having no parent in the tree structure is called a root.

【0017】上述したデータ探索装置の場合、探索プロ
グラム生成部12が多分木構造のデータをデータ記憶装
置11から読み出し、その多分木構造の各ノード21を
根から再帰的に辿りながら多分木構造に対応する条件分
岐構造を持つ探索プログラムを生成し、その探索プログ
ラムをプログラム格納メモリ13に格納する。そこで、
以降の処理は上述したように、探索プログラム実行部1
4が生成された探索プログラムをプログラム記憶装置1
3から読み出し、入出力インターフェイス15から入力
した探索キーを探索プログラムに入力し、探索プログラ
ムを実行する。最後に探索プログラムの出力結果,即
ち、探索結果を入出力インターフェイス15へ出力す
る。
In the case of the above-described data search device, the search program generator 12 reads the data of the multi-tree structure from the data storage device 11, and recursively traces each node 21 of the multi-tree structure from the root to the multi-tree structure. A search program having a corresponding conditional branch structure is generated, and the search program is stored in the program storage memory 13. Therefore,
Subsequent processing is performed by the search program execution unit 1 as described above.
4 is stored in the program storage device 1
3, the search key input from the input / output interface 15 is input to the search program, and the search program is executed. Finally, the output result of the search program, that is, the search result is output to the input / output interface 15.

【0018】図3は、探索プログラム生成部12におけ
る多分木構造のデータに対応する条件分岐構造を持つ探
索プログラムの生成処理を示したフローチャートであ
る。
FIG. 3 is a flowchart showing a process of generating a search program having a conditional branch structure corresponding to data having a multi-tree structure in the search program generation unit 12.

【0019】ここでの本手続きは再帰的手続きであり、
最初に多分木の根のノードに対して本手続きを呼び出し
てノードのデータ格納条件を調べ、「探索キーがノード
のデータ格納条件を満たすデータに対応するならば次の
命令文を実行せよ」という命令文を生成(ステップS3
1)する。
This procedure is a recursive procedure,
First, call this procedure for the root node of the tree, check the data storage condition of the node, and execute the following statement if the search key corresponds to data that satisfies the data storage condition of the node. (Step S3)
1) Yes.

【0020】次に、ノードにデータが格納されているか
否かを判定(ステップS32)し、データが格納されて
いれば、そのすべてのデータを出力する命令文又は命令
文の列を生成(ステップS33)するが、データが格納
されていなければ、何も実行しない命令文を生成(ステ
ップS34)する。
Next, it is determined whether data is stored in the node (step S32). If the data is stored, a command statement or a sequence of command statements for outputting all the data is generated (step S32). S33), but if no data is stored, a command statement that executes nothing is generated (step S34).

【0021】引き続き、そのノードの子のノードがある
か否かを判定(ステップS35)し、子のノードがなけ
れば本手続きを終了(ステップS39)するが、子のノ
ードがあれば、そのうちの一つを選択(ステップS3
6)し、そのノードに対して本手続きを再帰的に呼び出
す(ステップS37)処理を行う。
Subsequently, it is determined whether or not there is any child node of the node (step S35). If there is no child node, this procedure is terminated (step S39). Select one (Step S3
6) Then, the procedure is recursively called for the node (step S37).

【0022】更に、選択されていない子のノードがある
か否かを判定(ステップS38)し、なければ本手続き
を終了(ステップS39)するが、あれば子のノードの
一つを選択(ステップS36)する処理にリターンし、
ステップS36〜ステップS38の処理を繰り返すこと
で現在のノードのすべての子のノードについて本手続き
を再帰的に呼び出す。
Further, it is determined whether or not there is any unselected child node (step S38). If not, the procedure is terminated (step S39). If there is, one of the child nodes is selected (step S38). S36) Return to the processing to be performed,
This procedure is recursively called for all child nodes of the current node by repeating the processing of steps S36 to S38.

【0023】このようにして探索対象となるデータから
探索プログラムを生成し、その探索プログラムを直接実
行してデータ探索を行えば、データ探索時にデータ記憶
装置11を使用する必要が無く、このためにデータ記憶
装置11の処理速度の影響を受けずに高速なデータ探索
が具現される。
In this way, if a search program is generated from the data to be searched and the data search is performed by directly executing the search program, there is no need to use the data storage device 11 at the time of data search. A high-speed data search is realized without being affected by the processing speed of the data storage device 11.

【0024】ところで、図1に示したデータ探索装置を
具体的に構築すれば、図4のような細部構成となる。
By the way, if the data search apparatus shown in FIG. 1 is concretely constructed, a detailed configuration as shown in FIG. 4 is obtained.

【0025】ここでは、先のデータ記憶装置11にはデ
ータRAM41が用いられ、プログラム記憶装置13に
は探索プログラム・オブジェクトファイル43が用いら
れ、入出力インターフェイス15には入出力端末45が
用いられている。又、探索プログラム生成部12を具体
化した探索プログラム生成部42は、探索プログラム生
成プログラム421,探索プログラム・ソースファイル
422,及びコンパイラ423から構成されており、探
索プログラム実行部14を具体化した探索プログラム実
行部44は、プログラム・ローダ441及びプログラム
RAM442から構成されている。
Here, a data RAM 41 is used for the data storage device 11, a search program object file 43 is used for the program storage device 13, and an input / output terminal 45 is used for the input / output interface 15. I have. The search program generation unit 42 that embodies the search program generation unit 12 includes a search program generation program 421, a search program source file 422, and a compiler 423. The program execution unit 44 includes a program loader 441 and a program RAM 442.

【0026】そこで、以下はこのデータ探索装置の動作
について詳細に説明する。但し、ここでは探索対象とな
るデータが1次元の線分であり、探索キーとして与えら
れた1点を含む線分をすべて探索するものとする。又、
図5は探索対象となる線分データA〜Gを例示したもの
であり、図6は図5で示した探索対象となる線分データ
を2分木構造で表現したものである。
The operation of the data search apparatus will be described in detail below. Here, it is assumed that the data to be searched is a one-dimensional line segment, and all the line segments including one point given as a search key are searched. or,
FIG. 5 illustrates the line segment data A to G to be searched, and FIG. 6 illustrates the line segment data to be searched shown in FIG. 5 in a binary tree structure.

【0027】先ず図6を参照すると、2分木構造の各ノ
ードのデータ格納条件として1次元の区間[i,j]が
割り当てられており、各ノードの左の子のノードのデー
タ格納条件には区間[i,(i+j)/2],右の子の
ノードのデータ格納条件には区間[(i+j)/2+
1,j]が割り当てられている。ある線分に区間[i,
j]が含まれる場合、具体的にはある線分の両端の座標
x1,x2(但し、x1≦x2)がx1≦i,且つj≦
x2である場合、その線分のデータは区間[i,j]を
格納条件として持つノードに格納される。この2分木で
表現された線分データがデータRAM41に格納されて
いるものとする。
First, referring to FIG. 6, a one-dimensional section [i, j] is assigned as a data storage condition of each node of the binary tree structure, and a data storage condition of a left child node of each node is assigned. Is the interval [i, (i + j) / 2], and the data storage condition of the right child node is the interval [(i + j) / 2 +
[1, j]]. A section [i,
j], specifically, the coordinates x1 and x2 (where x1 ≦ x2) at both ends of a line segment are x1 ≦ i and j ≦
If it is x2, the data of the line segment is stored in a node having the section [i, j] as a storage condition. It is assumed that the line segment data represented by the binary tree is stored in the data RAM 41.

【0028】又、図4を参照すると、探索プログラム生
成プログラム421はデータRAM41から2分木のデ
ータを読み出し、2分木の根から各ノードを再帰的に辿
り、2分木の構造に対応する条件分岐の構造を有する探
索プログラム・ソースファイル422を生成する。
Referring to FIG. 4, the search program generation program 421 reads the binary tree data from the data RAM 41 and recursively traces each node from the root of the binary tree, and executes conditional branching corresponding to the binary tree structure. A search program source file 422 having the following structure is generated.

【0029】図7は、2分木構造のノードから探索プロ
グラムを生成する再帰的手続きの動作処理を示したフロ
ーチャートである。
FIG. 7 is a flowchart showing an operation process of a recursive procedure for generating a search program from nodes having a binary tree structure.

【0030】ここでの本手続きは最初に2分木の根のノ
ードに対して呼び出される。先ずノードのデータ格納条
件を[i,j]とすると、「探索キーの点の座標がi以
上j以下ならば次の命令文を実行せよ」という命令文を
生成(ステップS71)する。次に、ノードにデータが
格納されているか否かを判定(ステップS72)し、ノ
ードにデータが格納されていればそのすべての線分デー
タを出力する命令文又は命令文の列を出力(ステップS
73)するが、ノードにデータが格納されていなけれ
ば、何も実行しない命令文を生成(ステップS74)す
る。
This procedure is first called for the root node of the binary tree. First, assuming that the data storage condition of the node is [i, j], a command sentence "If the coordinates of the search key point is not less than i and not more than j, execute the next command sentence" is generated (step S71). Next, it is determined whether or not data is stored in the node (step S72). If data is stored in the node, a command statement or a sequence of command statements for outputting all the line segment data is output (step S72). S
73) However, if no data is stored in the node, a statement that does nothing is generated (step S74).

【0031】次に、ノードに左の子のノードがあるか否
かを判定(ステップS75)し、あればその左の子のノ
ードに対して本手続きを再帰的に呼び出す(ステップS
76)処理を行ってから、左の子のノードが無い場合と
同様に、引き続いてノードに右の子のノードがあるか否
かを判定(ステップS77)し、あればその右の子のノ
ードに対して本手続きを再帰的に呼び出す(ステップS
78)処理を行ってから、右の子のノードが無い場合と
同様に、一連の処理をリターン(ステップS79)す
る。
Next, it is determined whether or not the node has a left child node (step S75), and if so, this procedure is recursively called for the left child node (step S75).
76) After performing the processing, similarly to the case where there is no left child node, it is subsequently determined whether or not the node has a right child node (step S77). Call this procedure recursively (step S
78) After performing the processing, a series of processing is returned (step S79), as in the case where there is no right child node.

【0032】図4に示すデータ探索装置では、探索プロ
グラム生成プログラム421から生成された探索プログ
ラム・ソースファイル422がコンパイラ423により
コンパイルされ、探索プログラム・オブジェクトファイ
ル43が生成される。プログラム・ローダ441は探索
プログラム・オブジェクトファイル43をプログラムR
AM442に格納した後、探索プログラムを起動して入
出力端末45から探索キー,即ち、点の座標のデータを
入力して探索プログラムに入力する。探索プログラムの
実行結果,即ち、探索された結果である線分データは入
出力端末35へ出力される。
In the data search apparatus shown in FIG. 4, a search program source file 422 generated from a search program generation program 421 is compiled by a compiler 423, and a search program object file 43 is generated. The program loader 441 stores the search program object file 43 in the program R
After the data is stored in the AM 442, the search program is started, and a search key, that is, data of point coordinates is input from the input / output terminal 45 and input to the search program. The execution result of the search program, that is, the line segment data as the searched result is output to the input / output terminal 35.

【0033】図8は、本発明の他の実施例に係るデータ
探索装置の基本構成を示したブロック図である。
FIG. 8 is a block diagram showing a basic configuration of a data search apparatus according to another embodiment of the present invention.

【0034】このデータ探索装置は、図1に示した一実
施例のものと比べ、同等な機能のデータ記憶装置81,
探索プログラム生成部82,プログラム記憶装置83,
探索プログラム実行部84,及び入出力インターフェイ
ス85を備える他、探索プログラム実行部84により以
前にデータ探索を行ったときの探索キーと探索結果のデ
ータとを格納する探索結果記憶装置86を備えて構成さ
れる。
This data search device is different from the data search device of the embodiment shown in FIG.
A search program generator 82, a program storage device 83,
In addition to a search program execution unit 84 and an input / output interface 85, the search program execution unit 84 includes a search result storage device 86 that stores search keys and data of search results when data search was previously performed. Is done.

【0035】このデータ探索装置においても、データ記
憶装置81には探索対象となるデータが木構造で格納さ
れているため、探索プログラム生成部82がデータ記憶
装置81から木構造のデータを読み出し、生成した探索
プログラムをプログラム記憶装置83に格納する。探索
プログラム実行部84は、入出力インターフェイス85
から探索キーを入力し、その探索キーが探索結果記憶装
置86に存在するか否かを検索する。この結果、存在し
ていれば対応する探索結果データを探索結果記憶装置8
6から読み出して入出力インターフェイス85に出力す
ると共に、探索プログラムの実行を省略するが、存在し
ていなければプログラム記憶装置83から探索プログラ
ムを読み出して実行し、探索結果を入出力インターフェ
イス85に出力すると共に、その探索キーと探索結果の
データとを探索結果記憶装置86に格納する。
Also in this data search device, since the data to be searched is stored in the data storage device 81 in a tree structure, the search program generation unit 82 reads the tree structure data from the data storage device 81 and generates the data. The retrieved search program is stored in the program storage device 83. The search program execution unit 84 includes an input / output interface 85
, A search key is searched for whether or not the search key exists in the search result storage device 86. As a result, if it exists, the corresponding search result data is stored in the search result storage device 8.
6 and outputs the search program to the input / output interface 85 while omitting the execution of the search program. If the search program does not exist, the search program is read from the program storage device 83 and executed, and the search result is output to the input / output interface 85. At the same time, the search key and search result data are stored in the search result storage device 86.

【0036】即ち、このデータ探索装置の場合、先の一
実施例のものと同様な働きを有する他、同一な探索キー
に対しては探索プログラムの実行を省略できる機能が構
築されているため、一層高速な探索を行うことができ
る。
That is, this data search device has the same function as that of the first embodiment, and also has a function capable of omitting the execution of the search program for the same search key. A faster search can be performed.

【0037】[0037]

【発明の効果】以上に述べた通り、本発明のデータ探索
方法及びそれを適用したデータ探索装置によれば、木構
造を用いてデータが格納されたデータベースから探索プ
ログラムを生成し、その探索プログラムを直接実行する
ため、データ探索時にデータ記憶装置を使用する必要が
無く、データ記憶装置の処理速度の影響を受けずに高速
にデータ探索を実行できるようになる。又、データ探索
装置では、更に探索プログラム実行部により以前にデー
タ探索を行ったときの探索キーと探索結果のデータとを
格納する探索結果記憶装置を備え、探索プログラム実行
部による探索プログラムの実行に際して探索結果記憶装
置を参照して同一な探索キーに対しては探索プログラム
の実行を省略できるようにしているため、一層高速な探
索を行うことができるようになる。
As described above, according to the data search method and the data search apparatus to which the present invention is applied, a search program is generated from a database in which data is stored using a tree structure, and the search program is executed. Is directly executed, there is no need to use a data storage device during data search, and data search can be performed at high speed without being affected by the processing speed of the data storage device. Further, the data search device further includes a search result storage device for storing a search key and data of a search result obtained when the search program was previously searched by the search program execution unit, and the search program execution unit executes the search program. Since the execution of the search program can be omitted for the same search key with reference to the search result storage device, a higher speed search can be performed.

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

【図1】本発明のデータ探索方法を適用した一実施例に
係るデータ探索装置の基本構成を示したブロック図であ
る。
FIG. 1 is a block diagram showing a basic configuration of a data search device according to an embodiment to which a data search method of the present invention is applied.

【図2】図1に示すデータ探索装置のデータ記憶装置に
格納されるデータの多分木構造を例示したものである。
FIG. 2 illustrates a multi-tree structure of data stored in a data storage device of the data search device shown in FIG.

【図3】図1に示すデータ探索装置の探索プログラム生
成部における多分木構造のデータに対応する条件分岐構
造を持つ探索プログラムの生成処理を示したフローチャ
ートである。
FIG. 3 is a flowchart showing a process of generating a search program having a conditional branch structure corresponding to data having a multi-tree structure in a search program generation unit of the data search device shown in FIG.

【図4】図1に示したデータ探索装置を具体的に構築し
た細部構成を示したブロック図である。
FIG. 4 is a block diagram showing a detailed configuration of the data search device shown in FIG. 1 specifically constructed;

【図5】図4に示すデータ探索装置において探索対象と
なる線分データを例示したものである。
5 illustrates line segment data to be searched in the data search device illustrated in FIG.

【図6】図5に示す線分データを2分木構造で表現した
ものである。
FIG. 6 is a representation of the line segment data shown in FIG. 5 in a binary tree structure.

【図7】図4に示すデータ探索装置において図6に示す
2分木構造のノードから探索プログラムを生成する再帰
的手続きの動作処理を示したフローチャートである。
7 is a flowchart showing an operation process of a recursive procedure for generating a search program from nodes having a binary tree structure shown in FIG. 6 in the data search device shown in FIG. 4;

【図8】本発明の他の実施例に係るデータ探索装置の基
本構成を示したブロック図である。
FIG. 8 is a block diagram showing a basic configuration of a data search device according to another embodiment of the present invention.

【図9】従来の高速データ探索装置の基本構成を示した
ブロック図である。
FIG. 9 is a block diagram showing a basic configuration of a conventional high-speed data search device.

【符号の説明】[Explanation of symbols]

11,81 データ記憶装置 12,42,82 探索プログラム生成部 13,83 プログラム記憶装置 14,44,84 探索プログラム実行部 15,85,91 入出力インターフェイス 21 ノード 22 データ格納条件 23 データ 41 データRAM 43 探索プログラム・オブジェクトファイル 45 入出力端末 86 探索結果記憶装置 92 探索範囲決定部 93 データ格納用メモリ 94 探索範囲記憶用レジスタ 95 探索処理部 421 探索プログラム生成プログラム 422 探索プログラム・ソースファイル 423 コンパイラ 441 プログラム・ローダ 442 プログラムRAM 11, 81 Data storage device 12, 42, 82 Search program generation unit 13, 83 Program storage device 14, 44, 84 Search program execution unit 15, 85, 91 Input / output interface 21 Node 22 Data storage condition 23 Data 41 Data RAM 43 Search program / object file 45 Input / output terminal 86 Search result storage device 92 Search range determination unit 93 Data storage memory 94 Search range storage register 95 Search processing unit 421 Search program generation program 422 Search program source file 423 Compiler 441 Program / Loader 442 Program RAM

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 木構造を用いてデータが格納されたデー
タベースから木構造に対応する条件分岐を有する探索プ
ログラムを生成する探索プログラム生成段階と、前記探
索プログラムに探索キーを入力して該探索プログラムを
実行し、且つ探索結果を出力する探索結果出力段階とを
有することを特徴とするデータ探索方法。
1. A search program generating step of generating a search program having a conditional branch corresponding to a tree structure from a database in which data is stored using a tree structure, and inputting a search key to the search program to execute the search program And outputting a search result.
【請求項2】 木構造を用いてデータが格納されたデー
タベースから木構造に対応する条件分岐を有する探索プ
ログラムを生成する探索プログラム生成部と、前記探索
プログラムを格納するプログラム記憶装置と、探索キー
の入力に従って前記探索プログラムを実行してデータ探
索を行う探索プログラム実行部と、前記探索キーを入力
すると共に、前記探索プログラム実行部による前記デー
タ探索の探索結果を出力する入出力インターフェイスと
を備えたことを特徴とするデータ探索装置。
2. A search program generator for generating a search program having a conditional branch corresponding to a tree structure from a database storing data using a tree structure, a program storage device storing the search program, and a search key. A search program execution unit for executing the search program in accordance with the input of the search program to perform a data search, and an input / output interface for inputting the search key and outputting a search result of the data search by the search program execution unit. A data search device, characterized in that:
【請求項3】 請求項2記載のデータ探索装置におい
て、前記探索プログラム実行部により前記データ探索を
行ったときの前記探索キーと前記探索結果のデータとを
格納する探索結果記憶装置を備え、前記探索プログラム
実行部は現行のデータ探索に際して前記探索結果記憶装
置を参照して前記探索キーに関する同一なものに対して
は前記探索プログラムの実行を省略することを特徴とす
るデータ探索装置。
3. The data search device according to claim 2, further comprising: a search result storage device that stores the search key and the data of the search result when the data search is performed by the search program execution unit. A data search device, wherein a search program execution unit refers to the search result storage device at the time of current data search and omits execution of the search program for the same search key.
JP8217547A 1996-08-19 1996-08-19 Data retrieving method and data retrieving device applying the method Pending JPH1063675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8217547A JPH1063675A (en) 1996-08-19 1996-08-19 Data retrieving method and data retrieving device applying the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8217547A JPH1063675A (en) 1996-08-19 1996-08-19 Data retrieving method and data retrieving device applying the method

Publications (1)

Publication Number Publication Date
JPH1063675A true JPH1063675A (en) 1998-03-06

Family

ID=16705976

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8217547A Pending JPH1063675A (en) 1996-08-19 1996-08-19 Data retrieving method and data retrieving device applying the method

Country Status (1)

Country Link
JP (1) JPH1063675A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6742018B1 (en) * 1999-01-08 2004-05-25 International Business Machines Corporation System and method for storing and retrieving data by keywords converted into divided long integers
JP2019144705A (en) * 2018-02-16 2019-08-29 富士通株式会社 Bus distribution search program, bus distribution search method and information processing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6742018B1 (en) * 1999-01-08 2004-05-25 International Business Machines Corporation System and method for storing and retrieving data by keywords converted into divided long integers
JP2019144705A (en) * 2018-02-16 2019-08-29 富士通株式会社 Bus distribution search program, bus distribution search method and information processing apparatus

Similar Documents

Publication Publication Date Title
JPH02264329A (en) Automatic program generating device
EP0369699A2 (en) Updating pattern-matching networks
JPH06290086A (en) Structure data processor
JPH1063675A (en) Data retrieving method and data retrieving device applying the method
JP2002527816A (en) Program optimization apparatus and method
JPH06274328A (en) Execution method for program consisting of plural processing modules
JP3602231B2 (en) Test pattern creation device
JP3502440B2 (en) High-speed data search device and high-speed data search method
JP2722684B2 (en) File system search device
JP2714015B2 (en) Logic circuit synthesizer
JP2932987B2 (en) Automatic test equipment for computer systems
JPS6015772A (en) Processing system for inter-loop array processing vector
JP3111081B2 (en) Data retrieval device
JP2001075831A (en) Program processor, ic test system, program processing method and storage medium
JP2835082B2 (en) Logic circuit synthesizer
JP2021002276A (en) Analysis program, program analyzing method, and program analyzing apparatus
JP3018579B2 (en) Name search processor
JP2626549B2 (en) Horizontal microprogram optimization method and apparatus
JPH06332719A (en) Compiler code generating device
JPH06103113A (en) Difference test debug supporting method
JPS62210538A (en) Method and device for code string search
JPH09128406A (en) Device and method for retrieving document
JPH09160937A (en) State simplifying device reducing number of state of finite state machine and method therefor
JPH07141178A (en) Object accessing device
JPS63132335A (en) Executing system for computer language processing system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990526