JPH01232436A - Selecting device for unifying candidate term - Google Patents

Selecting device for unifying candidate term

Info

Publication number
JPH01232436A
JPH01232436A JP63058493A JP5849388A JPH01232436A JP H01232436 A JPH01232436 A JP H01232436A JP 63058493 A JP63058493 A JP 63058493A JP 5849388 A JP5849388 A JP 5849388A JP H01232436 A JPH01232436 A JP H01232436A
Authority
JP
Japan
Prior art keywords
data
term
unification
hash
term data
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
JP63058493A
Other languages
Japanese (ja)
Inventor
Akihiko Nakase
仲瀬 明彦
Shigeki Shibayama
柴山 茂樹
Hiroshi Sakai
浩 酒井
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.)
National Institute of Advanced Industrial Science and Technology AIST
Original Assignee
Agency of Industrial Science and Technology
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 Agency of Industrial Science and Technology filed Critical Agency of Industrial Science and Technology
Priority to JP63058493A priority Critical patent/JPH01232436A/en
Publication of JPH01232436A publication Critical patent/JPH01232436A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To accurately select a unifying candidate term even when a hash value collides by expanding term data into hash vectors while discriminating a variable, a constant, and their low-order free elements, and deciding the vectors. CONSTITUTION:An expansion part 1 expands the term data A and B into the hash vectors P and Q and assigns hash values to the respective elements. Namely, 0 is the low-order free element of the variable, 1 the variable, 2 a node below the constant, and >=3 the constant. Then a decision part 12 compares the elements Pk and Qk of the hash vectors P and Q and makes a decision according to the reference shown in a table. In this table, O indicates that there is the possibility of unification, X indicates no possibility, and indicates the possibility of unification while both elements are under the same conditions. Consequently, even if a hash value collides, a unifying candidate is accurately selected.

Description

【発明の詳細な説明】 ルシステムなどの単一化を伴う検索に際し、項データの
集合から単一化候補を選択する単一化候補項の選択装置
に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a unification candidate term selection device that selects unification candidates from a set of term data during a search involving unification in a system or the like.

(従来の技術) 演鐸データベース、知識データベース等のデータベース
システムでは、変数を含む項データのqt−化を伴う検
索に際し、検索対象を絞り込んで検索処理の効率を高め
るために、予め検索対象となる類データ集合の中から検
索項データと単一化可能性のあるtドー化候補項を選択
することが前処理として行われる。この種の単一化候補
の選択方式としては、従来より、人前、■中等による1
1ツシユ&ソート法が知られている(情報処理学会第3
3口金国大会、5L−6,人前、田中「単一化バタン検
索の最適化」)。この方式では、検歯頂データと被検歯
頂データとを、予め設定された木構造に基づいてベクト
ルデータに展開し、この展開されたベクトルデータの各
要素を1組ずつ比較し、両要素が定数で且つ異なる定数
である場合にか割当てられたハツシュベクトルの形態で
取扱われる。これにより検索効率の向上化が図られてい
る。
(Prior art) In database systems such as entaku databases and knowledge databases, when searching with qt-formation of term data including variables, in order to narrow down the search targets and improve the efficiency of the search process, the search targets are set in advance. Preprocessing is performed to select t-do conversion candidate terms that can be unified with the search term data from the class data set. Conventionally, the selection method for this type of unification candidate has been 1 by public,
1. The stacking and sorting method is known (Information Processing Society of Japan Vol. 3).
3-Cash Country Conference, 5L-6, Public, Tanaka ``Optimization of unified button search''). In this method, the inspected tooth crown data and the examined tooth crown data are developed into vector data based on a preset tree structure, and each element of the developed vector data is compared one set at a time. is a constant and a different constant, it is handled in the form of an assigned hash vector. This is intended to improve search efficiency.

第8図乃至第15図を用いてこの方式を更に詳細に説明
する。いま、第8図の(A)で示す検歯頂データと単一
化可能な類データを、類データ(B)、(C)、(D)
からなる項データ集合から選択するものとする。なお、
ここで類データの表記は、DBC10−Prologの
表記法に準拠している。
This method will be explained in more detail using FIGS. 8 to 15. Now, the dental examination data shown in (A) in Fig. 8 and the class data that can be unified are classified into class data (B), (C), and (D).
Suppose that the selection is made from a term data set consisting of . In addition,
Here, the notation of class data is based on the notation of DBC10-Prolog.

従って、小文字で始まるシンボルは定数、人文字で始ま
るシンボルは変数である。第9図はこれら類データの展
開方法を示す木構造である。この木構造の各ノードに付
された番号は、類データをベクトルデータに変換する際
の要素番号を示す。今、類データ(A)、(B)、(C
)、(D)を第9図の本構造に括づいてベクトルデータ
に展開すると、第10図の(−A)、(B)、(C)、
  (D)のような形になる。本構造の下位のノードは
、その上位のノードの引き数となっている。各要素をで
示している。これらベクトルデータは、実際には計算機
内部においてはハツシュベクトルの形態で取扱われる。
Therefore, symbols starting with a lowercase letter are constants, and symbols starting with a lowercase letter are variables. FIG. 9 is a tree structure showing how to develop these types of data. The number assigned to each node of this tree structure indicates the element number when converting class data into vector data. Now, class data (A), (B), (C
), (D) into vector data based on the main structure in Figure 9, (-A), (B), (C), in Figure 10,
It will look like (D). A lower node in this structure is an argument for a higher node. Each element is indicated by . These vector data are actually handled in the form of hash vectors inside the computer.

即ち、各類データは、変数要素及び空き要素については
O1小文字で始まる定数要素については0以外のハツシ
ュ値が割当てられられた第12図に示すような形態で扱
われる。
That is, each type of data is handled in the form shown in FIG. 12, in which hash values other than 0 are assigned to variable elements and empty elements, and to constant elements starting with a lowercase letter O1.

なお、ここで、hはハツシュ関数を示しており、h (
al)、h (a2)は、それぞれal、a2をハツシ
ュした数値を示す。
Note that here, h indicates a hash function, and h (
al) and h(a2) represent numerical values obtained by hashing al and a2, respectively.

次にハツシュベクトルに展開された被検歯頂データ(B
)、(C)、(D)が検歯頂データ(A)と単一化可能
であるかどうかがチエツクされる。
Next, the test tooth crest data (B
), (C), and (D) are checked to see if they can be unified with the dental crown data (A).

即ち、検歯頂データのハツシュベクトルをPlそのl(
番目の要素をPk、彼検歯頂データのハツシュベクトル
をQlそのに番目の要素をQkとすると、ハツシュベク
トルP、Qの先頭要素から順に全ての要素について比較
したとき、Pk−Qk≠0で且つPk≠Qkとなる要素
が存在しなければ、ハツシュベクトルPとQとは単一化
可能であると一化候補が外され、他の類データ(B)、
(D)についてはζドー化可能であると判定される。
That is, the hash vector of the dental apex data is Pl(
Assuming that the th element is Pk, the hash vector of the dental crown data is Ql, and the th element is Qk, when all elements of the hash vectors P and Q are compared in order from the first element, Pk - Qk ≠ 0 and there is no element such that Pk≠Qk, the hash vectors P and Q can be unified, and the unification candidate is removed, and other class data (B),
Regarding (D), it is determined that ζ-do conversion is possible.

ところが、上記の方式においては、ハツシュベクトルの
各要素のハツシュ値に衝突が発生した場合、単一化可能
でないものが単一化可能であるとして選択されてしまう
という問題があった。
However, in the above method, there is a problem in that when a collision occurs in the hash values of each element of the hash vector, a value that cannot be unified is selected as one that can be unified.

例えば被検索データが第13図に示す類データ(E)、
(F)であるとする。これら類データ(E)、(F)と
類データ(A)とを比較すると、類データ(A)の検索
a2と類データ(E)の検索a7、及び類データ(A)
の要素C1と類データ(F)の要素e1は、それぞれ引
き数が異なっているので、本来単一化の可能性はない。
For example, the searched data is the type data (E) shown in FIG.
Suppose (F). Comparing these class data (E), (F) and class data (A), search a2 of class data (A), search a7 of class data (E), and class data (A)
Since the element C1 of and the element e1 of class data (F) have different arguments, there is originally no possibility of unification.

類データ(E)、(F)を前述した木構造に当はめて展
開した形態は第14図に示される。これら類データ(E
)、(F)がハツシュベクトルに展開されると第15図
のようになる。このとき、ハツシュ値の衝突が発生し、
本来異なるべき筈のh(a2)とh(a7)が等しくな
ったり、h(cl)と可能であると判定するミスを犯す
。このような判定ミスは、項データの空き要素や変数要
素が多ければ多い程発生し易くなる。
FIG. 14 shows a form developed by applying the class data (E) and (F) to the tree structure described above. These types of data (E
), (F) are expanded into hash vectors as shown in Fig. 15. At this time, a collision of hash values occurs,
A mistake is made in determining that h(a2) and h(a7), which should originally be different, are equal, or that h(cl) is possible. Such judgment errors are more likely to occur as the number of empty elements and variable elements in the term data increases.

(発明が解決しようとする課題) このように、従来の単一化候補の選択方式においては、
ハツシュ値の衝突が起こった場合に、単一化不可能な項
データを単一化可能な項データであると誤って判定して
しまい、検索紋補を正確に抽出することができないとい
う問題があった。
(Problem to be solved by the invention) As described above, in the conventional unification candidate selection method,
When a collision of hash values occurs, term data that cannot be unified is incorrectly determined to be term data that can be unified, and the search pattern complement cannot be extracted accurately. there were.

特に従来の111.−化候補の選択方式では、ハツシュ
ベクトルの空き要素及び変数要素にハツシュ値“0”を
与えていることから、類データ中に空き要素や変数値が
多く含まれる程、この種のミスが発生し易いという問題
があった。
Especially the conventional 111. In the selection method for conversion candidates, a hash value of "0" is given to empty elements and variable elements of the hash vector, so the more empty elements and variable values are included in the similar data, the more likely this type of mistake will be. There was a problem that it was easy to occur.

本発明は、ハツシュ値の衝突が起こった場合でも、単一
化候補を正しく選択できる単一化候補項の選択装置を[
(34することを目的とする。
The present invention provides a unification candidate term selection device that can correctly select unification candidates even when hash value collisions occur.
(The purpose is to

[発明の構成] (課題を解決するための手段) 本発明は、変数及び/又は定数の要素から構夕と被検歯
頂データとを比較して両頂データの単、−化n1能性を
判定する判定手段とを備えた単一化・候補項の選択装置
において、上記展開手段と判定手段とを次のような機能
を持たせたことを特徴としている。
[Structure of the Invention] (Means for Solving the Problems) The present invention compares the structure and the test tooth crest data from variables and/or constant elements, and calculates the single and -n1 potential of both crest data. The unification/candidate term selection device is characterized in that the expanding means and the determining means have the following functions.

即ち、展開手段は、ベクトルデータを構成する要素が前
記本構造における変数要素の下位の空き要素であるとき
は第1の識別子を割当て、該要素が変数要素であるとき
は第2の識別子を割当て、該要素が前記本構造における
定数要素の下位の空き要素であるときは第3の識別子を
割当て、該要素が定数要素であるときは上記第1乃至第
3の識別子とは異なるハツシュ値を割当てる。
That is, the expansion means assigns a first identifier when the element constituting the vector data is an empty element below the variable element in the main structure, and assigns a second identifier when the element is a variable element. , when the element is a free element below the constant element in the main structure, a third identifier is assigned, and when the element is a constant element, a hash value different from the first to third identifiers is assigned. .

また、判定手段は前記検歯頂データと被検歯頂データと
を比較したとき、一方の項データの要素が第3の識別子
で他方の項データの要素が前記第1及び第3の識別子以
外である場合、又は上記両要素が前記第1乃至第3の識
別子とは異なり且つ互いに異なるハツシュ値である場合
に、両頂データは単一化不[I)能であると判定する。
Further, when the determining means compares the inspected tooth apex data and the test tooth apex data, an element of one term data is a third identifier and an element of the other term data is other than the first and third identifiers. If , or if both of the above elements are different from the first to third identifiers and have different hash values from each other, it is determined that the bivertical data cannot be unified [I).

−□ 5の空き要素をそれぞれ区別し得るようなハツシュ値を
与えるので、ハツシュベクトルへ展開する際°に引き数
の個数の違う要素のハツシュ値が衝突していた場合でも
、その要素の下位の要素を比較することにより、単一化
可能でないことを容易に判定できる。つまり、比較する
要素の組が“定数。
−□ Since hash values are given that can distinguish between the empty elements of 5, even if the hash values of elements with different numbers of arguments collide when expanding into a hash vector, the lower order of that element By comparing the elements of , it can be easily determined that unification is not possible. In other words, the set of elements to be compared is a "constant".

と“定数の下の要素″、又は“変数”と“定数の下の要
素”である場合、明らかにそれらの要素の上位の要素の
引き数の数が違うので、項同士が単一化可能ではないと
判定することができる。
and “an element below a constant”, or “variable” and “an element below a constant”, the terms can be unified because the number of arguments of the elements above them is obviously different. It can be determined that this is not the case.

(実施例) 以下、本発明の一実施例について説明する。(Example) An embodiment of the present invention will be described below.

第1図に本実施例に係る単一化候補項の選択装置の構成
を示す。この装置は、展開部11と、判定部12とによ
り構成されている。
FIG. 1 shows the configuration of a unitization candidate term selection device according to this embodiment. This device includes a developing section 11 and a determining section 12.

展開部11は、図示しないデータベースから単一化可能
性を検証する一対の項データA、Bを入ニの装置の動作
フローを第2図に示す。先ず、展開部11において、項
データA、BのハツシュベクトルP、Qへの展開が行わ
れる(Sl)。この展開において各要素には次のような
ハツシュ値が割当てられる。
FIG. 2 shows the operation flow of the device in which the expansion unit 11 inputs a pair of term data A and B for verifying unification possibility from a database (not shown). First, the expansion unit 11 expands term data A and B into hash vectors P and Q (Sl). In this expansion, each element is assigned a hash value as follows:

0・・・変数の下位の空き要素 1・・・変数、 2・・・定数の下のノード 3以上・・・定数 続いて判定部12において、ハッシュベクトルP、Qの
各要素Pk 、 Qk  (k=1. 2.−・−、n
’)(nはハツシュベクトルの要素数)の比較処理が行
われる。判定は、第3図に表で示した基章に従って行わ
れる。なお、この表において、Oは単一化可能性有り、
×は単一化可能性無し、Δは両要素同−の条件付きで単
一化の可能性有りを示している。さて、まず始めにkが
1にセットされると(、S2)、要素Pk、Qkが次の
■〜■の条件のいずれか一つにマツチするかが調べられ
る(S3゜S4.S5)。
0...Empty element below the variable 1...Variable, 2...3 or more nodes below the constant...Constant Subsequently, in the determination unit 12, each element Pk, Qk ( k=1. 2.-・-, n
') (n is the number of elements of the hash vector) is compared. Judgment is made according to the basics shown in the table in Figure 3. In addition, in this table, O has the possibility of being unified,
× indicates that there is no possibility of unification, and Δ indicates that there is a possibility of unification under the same condition for both elements. First, when k is set to 1 (, S2), it is checked whether the elements Pk and Qk match any one of the following conditions 1 to 2 (S3, S4, S5).

上記■〜■の条件のいずれか一つにマツチしたら、項デ
ータA、Bは単一化不可能である旨を判定結果として出
力する(S6)。一方、上記■〜■のいずれの条件にも
マツチしなければ、kをカウントアツプしくS7)、同
様の処理をkがnを超えるまで続ける(S8)。l(が
nを超えるまで処理が進んだら、項データA、Bは単一
化可能な候補である旨を判定結果として出力する(S9
)。
If any one of the conditions (1) to (2) above is met, a determination result indicating that term data A and B cannot be unified is output (S6). On the other hand, if none of the conditions (1) to (2) above are met, k is counted up (S7), and the same process is continued until k exceeds n (S8). When the processing progresses until l( exceeds n, the determination result that term data A and B are candidates that can be unified is output (S9
).

いま、第4図に示す項データ(1)を検歯頂データ、項
データ(2)〜(6)を彼検歯頂データであるとする。
Now, it is assumed that the term data (1) shown in FIG. 4 is the inspected tooth apex data, and the term data (2) to (6) are the inspected tooth apex data.

これら項データを第9図の木構造に基づいて展開した状
態を第5図に示す。更に、これら本構造に展開された項
データ(1)〜(6)を、本構造の各ノードの番号に従
ってベクトル化すると、第6図のようになる。更に、こ
のベクトルの各要素に前述した基桑でハツシュ値を割当
てると、第7図のようになる。
FIG. 5 shows a state in which these term data are developed based on the tree structure of FIG. 9. Furthermore, when the term data (1) to (6) expanded into this structure are vectorized according to the number of each node of this structure, the result is as shown in FIG. Furthermore, if a hash value is assigned to each element of this vector using the above-mentioned standard, the result will be as shown in FIG.

項データ(1)のハツシュベクトルをP、項データ(2
)〜(6)のハツシュベクトルをQとすに−2: P2
 、  Q2≧3.P2−02に−3: P3 、  
Q3≧3.P3−03に−4:P4寓1.Q4≠2 に=5:P5  ≠2.Q5−1 に−[i  :  PG  、  Q[i  ≧3. 
PG 膿Q6に−7:  P7 −1.  Q7  ≠
2また、項データ(1)と(3)とは、k−1〜5にお
いて、以下の比較により単一化不可能であると判定され
る。
The hash vector of term data (1) is P, term data (2
) to (6), let Q be the hash vector -2: P2
, Q2≧3. -3 to P2-02: P3,
Q3≧3. P3-03-4: P4 fable 1. Q4≠2=5:P5≠2. Q5-1 - [i: PG, Q[i ≧3.
PG Pus Q6 -7: P7 -1. Q7 ≠
2 Furthermore, term data (1) and (3) in k-1 to k-5 are determined to be unable to be unified by the following comparison.

k−17PI 、 Ql≧3.PI −Qlk−2: 
P2 、 Q2≧3.P2−Q2に−3: P3 、 
Q3≧3.P3−03に−4: P4−1.Q4≠2 に−5: P5 、 Q5≧3.P5≠Q5(単一化不
可能の条件■を満たした) 次に、項データ(1)と項データ(4)との比較につい
て述べる。いま、項データ(1)の第3要素h(a2)
と、項データ(4)の第3要素h(a7)との間でハツ
シュ値の衝突が生じてぃたに−2:  P2  、  
Q2  ≧3.  P2 −Q2に−3:  P3  
、  Q3  ≧3.  P3 −Q3に−4二 P4
  −1.   Q4  ≠ 2に−5:P5  ≠2
.Q5−1 に−8:PG  ≠0. 2.  QB  −2(単一
化不可能の条件■を満たした) また、項データ(1)と(5)についても、各第1要素
のh (cl)=h (el)であるようなハツシュ値
の衝突が生じているとすると、以下の比較により単一化
不可能であると判定される。
k-17PI, Ql≧3. PI-Qlk-2:
P2, Q2≧3. -3 to P2-Q2: P3,
Q3≧3. -4 to P3-03: P4-1. -5 for Q4≠2: P5, Q5≧3. P5≠Q5 (condition (2) of non-unification is satisfied) Next, a comparison between the term data (1) and the term data (4) will be described. Now, the third element h(a2) of term data (1)
There is a collision of hash values between and the third element h (a7) of term data (4) -2: P2 ,
Q2 ≧3. P2 -Q2-3: P3
, Q3 ≧3. P3 -Q3-42 P4
-1. -5 to Q4 ≠ 2: P5 ≠ 2
.. Q5-1 -8: PG ≠0. 2. QB -2 (satisfies the condition ■ of ununification) Also, for term data (1) and (5), the hash value such that h (cl) = h (el) of each first element If a collision occurs, it is determined that unification is not possible by the following comparison.

k−1: PI 、 Ql≧3.PI −Qlk−2;
 P2 、  Q2≧3.P2−Q2に園3 :P3≠
0.2.03−2 (単一化不可能の条件■を満たした) 更に、項データ(1)と項データ(6)については、k
−1〜7において、以下の比較により単一化可能である
と判定される。
k-1: PI, Ql≧3. PI-Qlk-2;
P2, Q2≧3. P2-Q2 to garden 3: P3≠
0.2.03-2 (Satisfies the condition ■ of non-unification) Furthermore, for term data (1) and term data (6), k
-1 to 7, it is determined that unification is possible by the following comparison.

k−1: PI 、 Ql≧3.PI −Qlk−2:
P2≠2.Q2−1 に−3: P3 、  Q3≧3.P3−03U\1 −Y−4:  P4 − 1.  Q、4  ≠2に−
5:P5  ≠2.  Q5 −0k−8:  P(i
  、  QB  ≧3.  PQ  −QBk=7 
 :  P7 −1.  Q7  ≠2このように、本
実施例に係る単一候補項の選択装置を用いることにより
、ハツシュ値が衝突した場合でも、定数の引数の数が合
わないものについては単一化不可能であると判定するこ
とができる。
k-1: PI, Ql≧3. PI-Qlk-2:
P2≠2. Q2-1 to -3: P3, Q3≧3. P3-03U\1 -Y-4: P4 - 1. Q, 4 ≠ 2 -
5:P5≠2. Q5 -0k-8: P(i
, QB ≧3. PQ-QBk=7
: P7-1. Q7 ≠2 In this way, by using the single candidate term selection device according to this embodiment, even if hash values collide, it is impossible to unify constants whose numbers of arguments do not match. It can be determined that

[発明の効果] 以上のように、本発明によれば、展開手段によって変数
、定数及びこれらの下位の空き要素を明確に区別して項
データをハツシュベクトルに展開し、判定手段で引数の
異なる要素が存在する項データ同士の単一化可能性を否
定するようにしているので、ハツシュ値の衝突が発生し
ている場合でも正確に単一化候補項を選択することがで
きる。
[Effects of the Invention] As described above, according to the present invention, the expansion means clearly distinguishes between variables, constants, and free elements below these, and term data is expanded into hash vectors, and the determination means Since the possibility of unification of term data in which elements exist is denied, it is possible to accurately select unification candidate terms even when a collision of hash values occurs.

この結果、本発明によれば、データベースシステムにお
ける単一化処理の効率向上に寄与することができる。
As a result, the present invention can contribute to improving the efficiency of unification processing in a database system.

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

第1図〜第7図は本発明の一実施例に係る単一化候補項
の選択装置を説明するための図で、第1す図、第5図は
同項データを本構造に展開した図、第6図は同項データ
を本構造のノード番号に従ってベクトルデータ化した図
、第7図は同ベクトルデータにハツシュ値を割当てたハ
ツシュベクトルを示す図、第8図〜第15図は従来の単
一化候補項の選択方式を説明する為の図で、第8図は項
データの例を示す図、第9図は項データの展開基準とな
る木構造を示す図、第10図は同項データを木構造に展
開した図、第11図は同項データを木構造のノード番号
に従ってベクトルデータ化した図、第12図は同ベクト
ルデータにハツシュ値を割当てたハツシュベクトルを示
す図、第13図は従来判定ミスを犯し易い項データの例
を示す図、第14図は同項データを本構造に展開した図
、第15図は同ベクトルデータにハツシュ値を割当てた
ハツシュベクトルを示す図である。 1・・・展開部、2・・・判定部。 出願人  工業技術院長 飯塚幸三 第1図 b 第3図 第4図 第8図 第9 図 (A)      (B)      (C)    
  (D)第10図
1 to 7 are diagrams for explaining a selection device for unification candidate terms according to an embodiment of the present invention. Figure 6 is a diagram in which the same term data is converted into vector data according to the node number of this structure, Figure 7 is a diagram showing a hash vector in which hash values are assigned to the same vector data, and Figures 8 to 15 are These are diagrams for explaining the conventional unification candidate term selection method, in which Fig. 8 shows an example of term data, Fig. 9 shows a tree structure serving as a criterion for expanding term data, and Fig. 10. Figure 11 shows the same term data expanded into a tree structure, Figure 11 shows the same term data converted into vector data according to the node number of the tree structure, and Figure 12 shows a hash vector in which hash values are assigned to the same vector data. Figure 13 shows an example of term data that is prone to conventional judgment errors, Figure 14 shows the same term data developed into this structure, and Figure 15 shows the hash value assigned to the same vector data. FIG. 3 is a diagram showing vectors. 1... Development section, 2... Judgment section. Applicant: Director of the Agency of Industrial Science and Technology Kozo Iizuka Figure 1 b Figure 3 Figure 4 Figure 8 Figure 9 (A) (B) (C)
(D) Figure 10

Claims (1)

【特許請求の範囲】 変数及び/又は定数の要素から構成される項データを木
構造に当てはめてベクトルデータに展開する展開手段と
、この展開手段によって各々ベクトルデータに展開され
た検索項データと被検索項データとを比較して両項デー
タの単一化可能性を判定する判定手段とを備えた単一化
候補項の選択装置において、 前記展開手段は、ベクトルデータを構成する要素が前記
木構造における変数要素の下位の空き要素であるときは
第1の識別子を割当て、該要素が変数要素であるときは
第2の識別子を割当て、該要素が前記木構造における定
数要素の下位の空き要素であるときは第3の識別子を割
当て、該要素が定数要素であるときは上記第1乃至第3
の識別子とは異なるハッシュ値を割当てるものであり、
前記判定手段は前記検索項データと被検索項データとを
比較したとき、一方の項データの要素が第3の識別子で
他方の項データの要素が前記第1及び第3の識別子以外
である場合、又は上記両要素が前記第1乃至第3の識別
子とは異なり且つ互いに異なるハッシュ値である場合に
、両項データは単一化不可能であると判定するものであ
ることを特徴とする単一化候補項の選択装置。
[Scope of Claims] Expansion means for applying term data composed of variables and/or constant elements to a tree structure and expanding it into vector data; In the unification candidate term selection device, the unification candidate term selection device includes a determination unit that compares search term data to determine the possibility of unification of both term data, and the unification candidate term selection device comprises: When the element is a free element below the variable element in the structure, a first identifier is assigned, when the element is a variable element, a second identifier is assigned, and when the element is a free element below the constant element in the tree structure, a first identifier is assigned. , the third identifier is assigned, and when the element is a constant element, the above first to third identifiers are assigned.
It assigns a hash value different from the identifier of
When the determining means compares the search term data and the searched term data, if an element of one term data is a third identifier and an element of the other term data is other than the first and third identifiers. , or when both of the above elements are different from the first to third identifiers and have different hash values from each other, it is determined that both term data cannot be unified. Unification candidate term selection device.
JP63058493A 1988-03-14 1988-03-14 Selecting device for unifying candidate term Pending JPH01232436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63058493A JPH01232436A (en) 1988-03-14 1988-03-14 Selecting device for unifying candidate term

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63058493A JPH01232436A (en) 1988-03-14 1988-03-14 Selecting device for unifying candidate term

Publications (1)

Publication Number Publication Date
JPH01232436A true JPH01232436A (en) 1989-09-18

Family

ID=13085950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63058493A Pending JPH01232436A (en) 1988-03-14 1988-03-14 Selecting device for unifying candidate term

Country Status (1)

Country Link
JP (1) JPH01232436A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0573618A (en) * 1991-09-11 1993-03-26 Agency Of Ind Science & Technol Retrieval method for structural body
JPH06124304A (en) * 1991-02-05 1994-05-06 Agency Of Ind Science & Technol Retrieving method using overlap code for extended item
WO1996010227A1 (en) * 1994-09-28 1996-04-04 Hideki Iwanishi Method of selecting rule used in bottom-up reasoning in system based on knowledge base

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06124304A (en) * 1991-02-05 1994-05-06 Agency Of Ind Science & Technol Retrieving method using overlap code for extended item
JPH0573618A (en) * 1991-09-11 1993-03-26 Agency Of Ind Science & Technol Retrieval method for structural body
WO1996010227A1 (en) * 1994-09-28 1996-04-04 Hideki Iwanishi Method of selecting rule used in bottom-up reasoning in system based on knowledge base

Similar Documents

Publication Publication Date Title
Boedigheimer et al. Customer-driven reliability models for multistate coherent systems
Nucera et al. Observability analysis: a new topological algorithm
JP3201945B2 (en) How to compare database tables
JPH1063707A (en) Device and method for logic circuit verification
Minton et al. Commitment Strategies in Planning: A Comparative Analysis.
EP0726538A2 (en) Topology-based computer-aided design system for digital circuits and method thereof
US6581026B2 (en) Method and configuration for comparing a first characteristic with predetermined characteristics of a technical system
CN107016018B (en) Database index creation method and device
Nikolopoulos et al. Hole and antihole detection in graphs
JPH01232436A (en) Selecting device for unifying candidate term
Karp et al. Deferred data structuring
CN110941831A (en) Vulnerability matching method based on fragmentation technology
CN115130043A (en) Database-based data processing method, device, equipment and storage medium
JPH1153383A (en) Plural database retrieval method and recording medium recording plural database retrieval program or the like
Irani et al. A methodology for solving problems: problem modeling and heuristic generation
US20030109940A1 (en) Device, storage medium and a method for detecting objects strongly resembling a given object
JPH0664534B2 (en) Device for selecting unification candidate terms
CN112765174B (en) Hash connection-based detection method, device, equipment and storage medium
US5212783A (en) System which directionally sums signals for identifying and resolving timing inconsistencies
CN116302994B (en) Hierarchical matching method, device and equipment for program paths and storage medium
JP2853649B2 (en) How to create a logic simulation model
Fernández-Baca et al. Linear-time algorithms for parametric minimum spanning tree problems on planar graphs
CN114595464A (en) Intelligent contract reentry vulnerability detection method and device, storage medium and related equipment
JPS62274345A (en) Fuzzy inference system
KR101696433B1 (en) Method for minimizing size of minimal cut sets by identifying independent modules and minimal cut set analyzer for executing the method