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

JPH0823822B2 - Hypothesis set contradiction check method - Google Patents

Hypothesis set contradiction check method

Info

Publication number
JPH0823822B2
JPH0823822B2 JP3081175A JP8117591A JPH0823822B2 JP H0823822 B2 JPH0823822 B2 JP H0823822B2 JP 3081175 A JP3081175 A JP 3081175A JP 8117591 A JP8117591 A JP 8117591A JP H0823822 B2 JPH0823822 B2 JP H0823822B2
Authority
JP
Japan
Prior art keywords
bit string
unit
bit
hypothesis set
hypothesis
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 - Fee Related
Application number
JP3081175A
Other languages
Japanese (ja)
Other versions
JPH0644073A (en
Inventor
徹 山之内
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 JP3081175A priority Critical patent/JPH0823822B2/en
Publication of JPH0644073A publication Critical patent/JPH0644073A/en
Publication of JPH0823822B2 publication Critical patent/JPH0823822B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、知識を利用して問題解
決を行う情報処理方式において、不完全な知識を仮説と
して表現することにより、問題解決に利用可能とするた
めの、仮説推論に関するものである。仮説推論では、仮
説自体が不完全な知識であるため、1つ以上の仮説を信
じることが、知識ベース中の他の知識と矛盾する場合が
ある。本発明は、ある1つ以上の仮説を信じることが、
知識ベースの他の知識と矛盾するかどうかを検査する仮
説集合矛盾検査方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to hypothetical reasoning for expressing incomplete knowledge as a hypothesis and making it available for problem solving in an information processing system that uses knowledge to solve a problem. It is a thing. In hypothesis reasoning, believing in one or more hypotheses may conflict with other knowledge in the knowledge base, since the hypotheses themselves are incomplete knowledge. The present invention is convinced that one or more hypotheses are
The present invention relates to a hypothesis set contradiction checking method for checking whether the knowledge base conflicts with other knowledge.

【0002】[0002]

【従来の技術】図5に従来の仮説集合矛盾検査方式の構
成図を示す。図5に示したように、従来の仮説集合矛盾
検査方式は、仮説集合入力部50,ビット列作成部5
1,ビット列集合管理部52,ビット列取出部53,部
分集合関係検査部54,繰り返し終了判定部55,無矛
盾通知部56,矛盾通知部57を備えて構成されてい
る。
2. Description of the Related Art FIG. 5 shows a block diagram of a conventional hypothesis set contradiction checking method. As shown in FIG. 5, the conventional hypothesis set contradiction checking method uses a hypothesis set input unit 50 and a bit string creation unit 5.
1, a bit string set management unit 52, a bit string extraction unit 53, a subset relationship inspection unit 54, a repetition end determination unit 55, a no contradiction notification unit 56, and a contradiction notification unit 57.

【0003】まず、知識ベース内の知識と矛盾するかど
うかを検査する、1つ以上の仮説が仮説集合入力部50
に入力されると、ビット列作成部51に、入力された仮
説集合を渡す。以下にビット列作成部51の動作を説明
する。
First, one or more hypotheses for checking whether or not they are inconsistent with the knowledge in the knowledge base are hypothesis set input unit 50.
When it is input to, the input hypothesis set is passed to the bit string creation unit 51. The operation of the bit string creating unit 51 will be described below.

【0004】各仮説は、仮説が知識ベース内で登録され
た順番に、ビット列の右側から順に1つのビットが対応
付けられている。ビット列作成部51は、入力された仮
説集合の各要素である仮説に対応するビットを1とし、
それ以外を0とするビット列を作成する。図6はビット
列作成部の入力である仮説集合の例と、それに対応して
作成されたビット列を示している。図6の(1)は、入
力された仮説集合が仮説3と仮説6と仮説10とからな
ることを表わし、(2)は、それに対応して作成された
ビット列は、右から3番目と6番目と10番目のビット
が1で、他はすべて0であることを表わしている。右か
ら10番目より左側のビットは、すべて0であるものと
して解釈される。
Each hypothesis is associated with one bit in order from the right side of the bit string in the order in which the hypothesis was registered in the knowledge base. The bit string creating unit 51 sets the bit corresponding to the hypothesis, which is each element of the input hypothesis set, to 1,
A bit string having 0 other than that is created. FIG. 6 shows an example of a hypothesis set which is an input of the bit string creating unit and a bit string created corresponding to it. (1) of FIG. 6 indicates that the input hypothesis set is composed of hypothesis 3, hypothesis 6 and hypothesis 10, and (2) shows that the bit string created corresponding to it is the third and sixth from the right. The 1st and 10th bits are 1s, and the other bits are all 0s. Bits to the left of the tenth from the right are interpreted as all zeros.

【0005】ビット列集合管理部52は、知識ベース内
で、同時に信じると矛盾をおこす1つ以上の仮説の組を
ビット列の形で管理している。これらのビット列は、一
般には0個以上存在する。ビット列取出部53は、ビッ
ト列集合管理部52から1つずつビット列を取り出し、
部分集合関係検査部54に渡す。
The bit string set management unit 52 manages, in the form of a bit string, one or more sets of hypotheses that simultaneously cause contradictions in the knowledge base. Generally, there are zero or more of these bit strings. The bit string extraction unit 53 extracts the bit strings one by one from the bit string set management unit 52,
The result is passed to the subset relation inspection unit 54.

【0006】以下の説明で、ビット列作成部51で作成
されたビット列をビット列a、ビット列取出部53で取
り出されたビット列をビット列bと呼ぶことにする。部
分集合関係検査部54は、ビット列aのビットの内、ビ
ット列bの1となっているビットに対応するビットが、
すべて1となっているかどうかを検査する。以下、ビッ
ト列aのビットの内、ビット列bの1となっているビッ
トに対応するビットが、すべて1となっている場合、ビ
ット列bはビット列aの部分集合である、と呼ぶことに
する。
In the following description, the bit string created by the bit string creating unit 51 will be referred to as a bit string a, and the bit string extracted by the bit string extracting unit 53 will be referred to as a bit string b. The subset relation checking unit 54 determines that among the bits of the bit string a, the bit corresponding to the 1 bit of the bit string b is
Check if all are 1. Hereinafter, if all the bits of the bit string a corresponding to the 1 bits of the bit string b are 1, the bit string b is called a subset of the bit string a.

【0007】図7にビット列bがビット列aの部分集合
である例を示す。図7では、ビット列bの右側から2番
目と4番目が1であり、他はすべて0である。一方、ビ
ット列aでは、やはり右側から2番目と4番目と6番目
が1であり、他はすべて0となっている。ビット列bの
1となっているビットに対応するビット、つまり2番目
と4番目のビットは、ビット列aでも全て1となってい
るため、ビット列bはビット列aの部分集合である。
FIG. 7 shows an example in which the bit string b is a subset of the bit string a. In FIG. 7, the second and fourth bits from the right of the bit string b are 1, and the others are 0. On the other hand, in the bit string a, the second, fourth, and sixth from the right side are also 1 and the others are 0. The bits corresponding to the bits of 1 in the bit string b, that is, the second and fourth bits are all 1 in the bit string a, so the bit string b is a subset of the bit string a.

【0008】ビット列bがビット列aの部分集合である
ことは、以下の意味を持つ。ビット列aにおいて、ビッ
ト列bの1となっているビットに対応するビットがすべ
て1であることは、ビット列aで表わされている仮説集
合は、ビット列bの表わす仮説集合の全要素を含んでい
る。しかし、ビット列bは、矛盾する仮説の集合をビッ
ト列で表わした、ビット列集合管理部52から取り出し
たものであり、その要素をすべて含む仮説集合、すなわ
ちビット列aもまた矛盾することになる。
The fact that the bit string b is a subset of the bit string a has the following meaning. In the bit string a, all the bits corresponding to the 1 bits of the bit string b are 1, which means that the hypothesis set represented by the bit string a includes all the elements of the hypothesis set represented by the bit string b. . However, the bit string b is a bit string representing a set of contradictory hypotheses and is taken out from the bit string set management unit 52, and the hypothesis set including all of its elements, that is, the bit string a is also contradictory.

【0009】ビット列bがビット列aの部分集合となる
のは、各ビット毎に、aの否定とbとの論理積を計算
し、全てのビットが0であったとき、またそのときだけ
であり、この計算を行うことによってビット列部分集合
検査を行う。
The bit string b becomes a subset of the bit string a only when the logical product of the negation of a and b is calculated for each bit and all the bits are 0, and only then. , Perform bit string subset check by performing this calculation.

【0010】部分集合関係検査部54で、上記計算結果
がすべて0であった場合、つまり、ビット列bがビット
列aの部分集合であった場合、矛盾通知部57で矛盾す
ることを通知して処理を終了する。部分集合関係検査部
54で、上記計算結果がすべて0ではなかった場合、繰
り返し終了判定部55で、ビット列集合管理部52内の
全てのビット列について検査が終了したかどうかが判定
される。全てのビット列について検査が終了した場合
は、入力された仮説集合は、ビット列集合管理部52で
管理されている、どの矛盾する仮説集合にも対応しなか
ったことになる。そこで無矛盾通知部56が矛盾が無い
ことを通知して処理を終了する。繰り返し終了判定部5
5で、全ての検査が終了していないという判定であった
場合、ビット列取出部53に通知し、ビット列集合管理
部52の管理するビット列のうち、まだ検査を行ってい
ないビット列をビット列bとして処理を継続する。
In the subset relation checking unit 54, when all the calculation results are 0, that is, when the bit string b is a subset of the bit string a, the contradiction notifying unit 57 notifies the contradiction and processes it. To finish. When the subset relation checking unit 54 does not all the above-mentioned calculation results, the repetition end judging unit 55 judges whether or not the checking is completed for all the bit strings in the bit string set managing unit 52. When the inspection is completed for all the bit strings, the input hypothesis set does not correspond to any contradictory hypothesis set managed by the bit string set management unit 52. Therefore, the no contradiction notifying unit 56 notifies that there is no contradiction and ends the processing. Repeat end determination unit 5
If it is determined in step 5 that all inspections have not been completed, the bit string extraction unit 53 is notified, and of the bit strings managed by the bit string set management unit 52, the bit string that has not been inspected is processed as the bit string b. To continue.

【0011】[0011]

【発明が解決しようとする課題】従来の方式では、ビッ
ト列同士の部分集合関係検査が電子計算機上で高速に行
えるように、仮説集合からビット列への置き換えを行っ
て、検査を行っている。しかし、その処理はまだ充分に
は高速でなく、仮説を用いた推論処理全体の2分の1以
上の時間を、仮説集合の矛盾検査処理に費やすことが普
通であり、仮説を用いた推論処理の処理速度低下の原因
となっていた。
In the conventional method, the hypothesis set is replaced with the bit string to perform the inspection so that the subset relation inspection of the bit strings can be performed at high speed on the electronic computer. However, the processing is not yet sufficiently fast, and it is common to spend more than half of the time of the inference processing using the hypothesis for the contradiction checking processing of the hypothesis set. Was causing a decrease in processing speed.

【0012】本発明の目的は、このような問題点を解決
した仮説集合矛盾検査方式を提供することにある。
An object of the present invention is to provide a hypothesis set contradiction checking method that solves such problems.

【0013】[0013]

【課題を解決するための手段】第1の発明の仮説集合矛
盾検査方式は、1つ以上の仮説知識の集合が知識ベース
内の他の知識と矛盾するかどうかを検査する仮説集合矛
盾検査方式において、検査しようとする仮説集合に入力
する仮説集合入力部と、前記仮説集合入力部で入力され
た仮説集合に対応するビット列を作成するビット列作成
部と、知識ベース内で矛盾することが判明している仮説
集合を、対応するビット列の形で管理するビット列集合
管理部と、前記ビット列集合管理部からビット列を1つ
取り出すビット列取出部と、前記ビット列作成部で作成
したビット列をビット列aと呼び、前記ビット列取出部
で取り出したビット列をビット列bと呼ぶとき、ビット
列aとビット列bの2進数としての大小関係を比較する
ビット列大小関係比較部と、前記ビット列大小関係比較
部で、前記ビット列aのほうが、前記ビット列bよりも
大きいかまたは等しいという比較結果が得られた場合に
動作し、前記ビット列aのビットのうち、前記ビット列
bの1となっているビットに対応するビットが、すべて
1となっているかどうかを検査する部分集合関係検査部
と、前記ビット列大小関係比較部で、前記ビット列bの
ほうが前記ビット列aよりも大きかった場合と、前記部
分集合関係検査部で、前記ビット列aのビットのうち、
前記ビット列bの1となっているビットに対応するビッ
トが、すべて1となっていなかった場合に動作し、前記
ビット列取出部で前記ビット列集合管理部内の全てのビ
ット列が取り出されたかどうかを判定する繰り返し終了
判定部と、前記繰り返し終了判定部で繰り返しが終了し
たと判定された場合に動作し、入力された仮説集合が知
識ベース中にある他の知識と矛盾しないことを通知する
無矛盾通知部と、前記部分集合関係検査部で、前記ビッ
ト列aのビットのうち、前記ビット列bの1となってい
るビットに対応するビットが、すべて1となっていた場
合に動作し、入力された仮説集合が知識ベース中にある
他の知識と矛盾することを通知する矛盾通知部とを備え
ることを特徴とする。
A hypothesis set contradiction checking method of the first invention is a hypothesis set contradiction checking method for checking whether a set of one or more hypothesis knowledge is inconsistent with other knowledge in a knowledge base. In, it was found that there is a conflict in the knowledge base with the hypothesis set input unit that inputs the hypothesis set to be tested and the bit string creation unit that creates the bit string corresponding to the hypothesis set input by the hypothesis set input unit. The bit string set management unit that manages the set of hypotheses in the form of a corresponding bit string, a bit string extraction unit that extracts one bit string from the bit string set management unit, and the bit string created by the bit string creation unit is called a bit string a, When the bit string extracted by the bit string extracting unit is called a bit string b, the bit string magnitude relationship for comparing the magnitude relationship as a binary number between the bit string a and the bit string b It operates when the comparison unit and the bit string magnitude relationship comparison unit obtain a comparison result that the bit string a is greater than or equal to the bit string b, and among the bits of the bit string a, the bit string b. The bit string b is larger than the bit string a in the subset relation checking unit that checks whether all the bits corresponding to 1 are 1 and the bit string magnitude relationship comparing unit. In the case, the subset relation checking unit determines, among the bits of the bit string a,
It operates when all the bits corresponding to the 1's of the bit string b are not 1, and the bit string extraction unit determines whether or not all the bit strings in the bit string set management unit have been extracted. A repetition end determination unit, and a consistency notification unit that operates when the repetition end determination unit determines that the repetition has ended and notifies that the input hypothesis set does not conflict with other knowledge in the knowledge base. , The subset relation checking unit operates when all of the bits of the bit string a corresponding to the 1's of the bit string b are 1, and the input hypothesis set is It is characterized by comprising a contradiction notifying unit for notifying that the knowledge base is inconsistent with other knowledge.

【0014】第2の発明の仮説集合矛盾検査方式は、1
つ以上の仮説知識の集合が知識ベース内の他の知識と矛
盾するかどうかを検査する仮説集合矛盾検査方式におい
て、検査しようとする仮説集合を入力する仮説集合入力
部と、前記仮説集合入力部で入力された仮説集合に対応
するビット列を作成するビット列作成部と、知識ベース
内で矛盾することが判明している仮説集合を、対応する
ビット列の形で、ビット列を2進数として捉えたときに
小さい順に並ぶように管理するビット列順序管理部と、
前記ビット列順序管理部から、ビット列を2進数として
捉えたときの小さい順に、ビット列を1つ取り出す最小
ビット列取出部と、前記ビット列作成部で作成したビッ
ト列をビット列aと呼び、前記最小ビット列取出部で取
り出したビット列をビット列bと呼ぶとき、ビット列a
とビット列bの2進数としての大小関係を比較するビッ
ト列大小関係比較部と、前記ビット列大小関係比較部
で、前記ビット列aのほうが、前記ビット列bよりも大
きいかまたは等しいという比較結果が得られた場合に動
作し、前記ビット列aのビットのうち、前記ビット列b
の1となっているビットに対応するビットが、すべて1
となっているかどうかを検査する部分集合関係検査部
と、前記部分集合関係検査部で、前記ビット列aのビッ
トのうち、前記ビット列bの1となっているビットに対
応するビットが、すべて1となっていなかった場合に動
作し、前記最小ビット列取出部で前記ビット列順序管理
部内の全てのビット列が取り出されたかどうかを判定す
る繰り返し終了判定部と、前記ビット列大小関係比較部
で、前記ビット列bのほうが前記ビット列aよりも大き
かった場合と、前記繰り返し終了判定部で繰り返しが終
了したと判定された場合に動作し、入力された仮説集合
が知識ベース中にある他の知識と矛盾しないことを通知
する無矛盾通知部と、前記部分集合関係検査部で、前記
ビット列aのビットのうち、前記ビット列bの1となっ
ているビットに対応するビットが、すべて1となってい
た場合に動作し、入力された仮説集合が知識ベース中に
ある他の知識と矛盾することを通知する矛盾通知部とを
備えることを特徴とする。
The hypothesis set contradiction checking method of the second invention is 1
In a hypothesis set contradiction checking method for checking whether a set of one or more hypothesis knowledge is inconsistent with other knowledge in a knowledge base, a hypothesis set input unit for inputting a hypothesis set to be checked, and the hypothesis set input unit When a bit string creation unit that creates a bit string corresponding to the hypothesis set input in step (4) and a hypothesis set known to be inconsistent in the knowledge base are taken as binary numbers in the form of the corresponding bit string, A bit string order management unit that manages the bits so that they are arranged in ascending order,
From the bit string order management unit, a minimum bit string extraction unit that extracts one bit string in the ascending order when the bit string is regarded as a binary number, and the bit string created by the bit string creation unit is called a bit string a, and the minimum bit string extraction unit When the extracted bit string is called a bit string b, the bit string a
And the bit string b as a binary number, the bit string a is greater than or equal to the bit string b in the bit string size relationship comparing unit and the bit string size relationship comparing unit. The bit string a operates among the bits of the bit string a.
All the bits corresponding to the bits that are 1
And the subset relation checking unit checks that all bits of the bits of the bit string a corresponding to the 1 bits of the bit string b are 1 in the subset relationship checking unit. If it is not, the repetition end determination unit that determines whether or not all the bit strings in the bit string order management unit have been extracted by the minimum bit string extraction unit, and the bit string magnitude relationship comparison unit that determines whether the bit string b It is operated when the bit string a is larger than the bit string a and when the repetition end judgment unit judges that the repetition has ended, and notifies that the input hypothesis set does not conflict with other knowledge in the knowledge base. Corresponding to the bit that is 1 in the bit string b among the bits in the bit string a in the no-contradiction notifying unit and the subset relation checking unit That bit, all operate in a case in which it is in the 1, characterized in that it comprises a contradiction notification unit hypothesis set input to notify that conflicts with other knowledge present in the knowledge base.

【0015】第3の発明の仮説集合矛盾検査方式は、1
つ以上の仮説知識の集合が知識ベース内の他の知識と矛
盾するかどうかを検査する仮説集合矛盾検査方式におい
て、検査しようとする仮説集合を入力する仮説集合入力
部と、前記仮説集合入力部で入力された仮説集合に対応
するビット列を作成するビット列作成部と、知識ベース
内で矛盾することが判明している仮説集合を、対応する
ビット列の形で、ビット列の最上位桁位置が同一のもの
を単位に構造化して管理するビット列構造管理部と、前
記ビット列構造管理部からビット列構造を1つ取り出す
ビット列構造取出部と、前記ビット列作成部で作成した
ビット列において、前記ビット列構造取出部で取り出し
たビット列構造の最上位桁に対応するビットが、1であ
るかどうかを検査する最上位ビット検査部と、前記最上
位ビット検査部で最上位桁に対応するビットが1であっ
た場合に動作し、前記ビット列構造取出部で取り出した
ビット列構造から、部分ビット列を1つ取り出す、部分
ビット列取出部と、前記ビット列作成部で作成したビッ
ト列をビット列aと呼び、前記部分ビット列取出部で取
り出した部分ビット列をビット列bと呼ぶとき、前記ビ
ット列aのビットのうち、前記ビット列bの1となって
いるビットに対応するビットが、すべて1となっている
かどうかを検査する部分集合関係検査部と、前記部分集
合関係検査部で、前記ビット列aのビットのうち、前記
ビット列bの1となっているビットに対応するビット
が、すべて1となっていなかった場合に動作し、前記部
分ビット列取出部で前記ビット列構造取出部で取り出し
たビット列構造内の全ての部分ビット列が取り出された
かどうかを判定する部分ビット列繰り返し終了判定部
と、前記ビット列繰り返し終了判定部で全ての部分ビッ
ト列が取り出されたと判定された場合と、前記最上位ビ
ット検査部で、前記ビット列作成部で作成したビット列
の、前記ビット列構造取出部で取り出したビット列構造
の最上位桁にあたるビットが0であった場合に動作し、
前記ビット列構造取出部において、ビット列構造が、前
記ビット列構造管理部からすべて取り出されたかどうか
を判定するビット列構造繰り返し終了判定部と、前記ビ
ット列構造繰り返し終了判定部で繰り返しが終了したと
判定された場合に動作し、入力された仮説集合が知識ベ
ース中にある他の知識と矛盾しないことを通知する無矛
盾通知部と、前記部分集合関係検査部で、前記ビット列
aのビットのうち、前記ビット列bの1となっているビ
ットに対応するビットが、すべて1となっていた場合に
動作し、入力された仮説集合が知識ベース中にある他の
知識と矛盾することを通知する矛盾通知部とを備えるこ
とを特徴とする。
The hypothesis set contradiction checking method of the third invention is 1
In a hypothesis set contradiction checking method for checking whether a set of one or more hypothesis knowledge is inconsistent with other knowledge in a knowledge base, a hypothesis set input unit for inputting a hypothesis set to be checked, and the hypothesis set input unit The bit string creation unit that creates the bit string corresponding to the hypothesis set input in step 1 and the hypothesis set that is known to be inconsistent in the knowledge base are in the form of the corresponding bit string, and the most significant digit position of the bit string is the same. A bit string structure management unit for structuring and managing objects in units, a bit string structure extraction unit for extracting one bit string structure from the bit string structure management unit, and a bit string created by the bit string creation unit for extraction by the bit string structure extraction unit And a most significant bit inspecting unit that inspects whether or not the bit corresponding to the most significant digit of the bit string structure is 1, and the most significant bit inspecting unit. It operates when the bit corresponding to the higher digit is 1, and extracts a partial bit string from the bit string structure extracted by the bit string structure extracting unit, a partial bit string extracting unit and a bit string created by the bit string creating unit. When the bit string a is called and the partial bit string taken out by the partial bit string extracting unit is called a bit string b, all the bits corresponding to the bits of the bit string b which are 1 are 1 And the subset relation checking unit that checks whether or not all the bits corresponding to the 1 bit of the bit string b among the bits of the bit string a are 1. If not, all the partial bits in the bit string structure extracted by the bit string structure extracting unit by the partial bit string extracting unit , A partial bit string repetition end determining unit that determines whether or not all the partial bit strings have been extracted by the bit string repetition end determining unit, and the most significant bit checking unit in the bit string creating unit. It operates when the bit corresponding to the most significant digit of the bit string structure extracted by the bit string structure extracting unit of the created bit string is 0,
When the bit string structure extraction unit determines that the bit string structure is completely extracted from the bit string structure management unit, and the bit string structure repetition end determination unit determines that the repetition is completed. Of the bit string b of the bits of the bit string a in the non-contradiction notifying unit for notifying that the input hypothesis set does not conflict with other knowledge in the knowledge base. A contradiction notifying unit that operates when all the bits corresponding to the bits set to 1 are set to 1 and notifies that the input hypothesis set conflicts with other knowledge in the knowledge base It is characterized by

【0016】[0016]

【実施例】次に本発明の実施例について図面を参照して
説明する。
Next, an embodiment of the present invention will be described with reference to the drawings.

【0017】図1は第1の発明の仮説集合矛盾検査方式
の一実施例を示すブロック図である。この仮説集合矛盾
検査方式は、検査しようとする仮説集合を入力する仮説
集合入力部10と、仮説集合入力部10で入力された仮
説集合に対応するビット列を作成するビット列作成部1
1と、知識ベース内で矛盾することが判明している仮説
集合を、対応するビット列の形で管理するビット列集合
管理部12と、ビット列集合管理部12からビット列を
1つ取り出すビット列取出部13と、ビット列作成部1
1で作成したビット列をビット列aと呼び、ビット列取
出部13で取り出したビット列をビット列bと呼ぶと
き、ビット列aとビット列bの2進数としての大小関係
を比較するビット列大小関係比較部14と、ビット列大
小関係比較部14で、ビット列aのほうが、ビット列b
よりも大きいかまたは等しいという比較結果が得られた
場合に動作し、ビット列aのビットのうち、ビット列b
の1となっているビットに対応するビットが、すべて1
となっているかどうかを検査する部分集合関係検査部1
5と、ビット列大小関係比較部14で、ビット列bのほ
うがビット列aよりも大きかった場合と、部分集合関係
検査部15で、ビット列aのビットのうち、ビット列b
の1となっているビットに対応する、全てのビットが1
となっていなかった場合に動作し、ビット列取出部13
でビット列集合管理部12内の全てのビット列が取り出
されたかどうかを判定する繰り返し終了判定部16と、
繰り返し終了判定部16で繰り返しが終了したと判定さ
れた場合に動作し、入力された仮説集合が知識ベース中
にある他の知識と矛盾しないことを通知する無矛盾通知
部17と、部分集合関係検査部15で、ビット列aのビ
ットのうち、ビット列bの1となっているビットに対応
するビットが、すべて1となっていた場合に動作し、入
力された仮説集合が知識ベース中にある他の知識と矛盾
することを通知する矛盾通知部18とを備えて構成され
ている。
FIG. 1 is a block diagram showing an embodiment of the hypothesis set contradiction checking method of the first invention. This hypothesis set contradiction checking method includes a hypothesis set input unit 10 for inputting a hypothesis set to be checked, and a bit string creation unit 1 for creating a bit string corresponding to the hypothesis set input by the hypothesis set input unit 10.
1, a bit string set management unit 12 that manages a hypothesis set that is known to be inconsistent in the knowledge base in the form of a corresponding bit string, and a bit string extraction unit 13 that extracts one bit string from the bit string set management unit 12. , Bit string creation unit 1
When the bit string created in 1 is referred to as a bit string a and the bit string extracted by the bit string extraction unit 13 is referred to as a bit string b, a bit string magnitude relationship comparison unit 14 that compares the magnitude relationship of the bit string a and the bit string b as a binary number, and a bit string In the magnitude relationship comparison unit 14, the bit string a is better than the bit string b.
It operates when a comparison result that is greater than or equal to is obtained, and among the bits of the bit string a, the bit string b
All the bits corresponding to the bits that are 1
Subset relation inspection unit 1 for inspecting whether or not
5, when the bit string b is larger than the bit string a in the bit string magnitude relationship comparing unit 14, and in the subset relationship checking unit 15 among the bits of the bit string a, the bit string b
All the bits corresponding to the bit which is 1
If not, the bit string extraction unit 13 operates.
A repetition end determination unit 16 that determines whether or not all bit strings in the bit string set management unit 12 have been extracted.
A non-contradiction notifying unit 17 that operates when the repetition end judging unit 16 judges that the repetition has ended and notifies that the input hypothesis set does not conflict with other knowledge in the knowledge base, and a subset relation check In the unit 15, the operation is performed when all the bits of the bit string a corresponding to the 1-bits of the bit string b are 1, and the input hypothesis set is stored in the knowledge base. A contradiction notifying unit 18 for notifying that the contradiction with knowledge is provided.

【0018】まず、仮説の集合が仮説集合入力部10に
入力されると、ビット列作成部11に、入力された仮説
集合を渡し、ビット列作成部11は従来の方式で述べた
のと同様な方式でビット列を作成する。
First, when a set of hypotheses is input to the hypothesis set input unit 10, the input hypothesis set is passed to the bit string creation unit 11, and the bit string creation unit 11 uses the same method as described in the conventional method. Create a bit string with.

【0019】ビット列集合管理部12は、知識ベース内
で、同時に信じると矛盾をおこす1つ以上の仮説の組合
せを、ビット列の形で、0個以上管理している。ビット
列取出部13は、ビット列集合管理部12から1つずつ
ビット列を取り出し、ビット列大小関係比較部14に渡
す。
The bit string set management unit 12 manages, in the form of a bit string, zero or more combinations of one or more hypotheses that cause contradiction if they believe at the same time in the knowledge base. The bit string extraction unit 13 extracts the bit strings from the bit string set management unit 12 one by one, and transfers the bit strings to the bit string size relationship comparison unit 14.

【0020】ビット列大小関係比較部14、ビット列a
とビット列bを、ともに2進数として大小関係を比較す
る。ビット列aのほうが大きいか、または等しかった場
合、部分集合関係検査部15にビット列aとビット列b
が渡される。部分集合関係検査部15では、従来の方式
と同様に、ビット列aのビットの内、ビット列bの1と
なっているビットに対応するビットが、すべて1となっ
ているかどうかを検査する。
Bit string size relationship comparing unit 14, bit string a
And the bit string b are both binary numbers, and the magnitude relationship is compared. If the bit string a is larger than or equal to the bit string a, the subset relationship checking unit 15 notifies the bit string a and the bit string b.
Is passed. Similar to the conventional method, the subset relation inspection unit 15 inspects whether or not all the bits of the bit string a corresponding to the ones of the bit string b are ones.

【0021】部分集合関係検査部15で、ビット列aの
対応する全てのビットが1であった場合、つまり、ビッ
ト列aが矛盾していることが判った場合、矛盾通知部1
8で矛盾であることを通知して処理を終了する。部分集
合関係検査部15で、ビット列aの対応する全てのビッ
トが1ではなかった場合、および、ビット列大小関係比
較部14で、ビット列bのほうがビット列aよりも大き
かった場合、繰り返し終了判定部が動作し、ビット列取
出部13がビット列集合管理部12から、全てのビット
列を取り出したかどうかの判定がなされる。
When the subset relation checking unit 15 finds that all the corresponding bits of the bit string a are 1, that is, when it is found that the bit string a is inconsistent, the contradiction notifying unit 1
In step 8, the contradiction is notified, and the process ends. When all the corresponding bits of the bit string a are not 1 in the subset relation checking unit 15 and when the bit string b is larger than the bit string a in the bit string magnitude relationship comparing unit 14, the repetition end determination unit is In operation, it is determined whether the bit string extraction unit 13 has extracted all the bit strings from the bit string set management unit 12.

【0022】全てのビット列が取り出されていた場合
は、入力された仮説集合は、ビット列集合管理部12で
ビット列の形で管理されている、どの矛盾する仮説集合
にも対応しなかったことになり、無矛盾通知部17が矛
盾が無いことを通知して処理を終了する。繰り返し終了
判定部16で、全ての取り出しが終了していないという
判定であった場合、ビット列取出部13に通知し、ビッ
ト列集合管理部12の管理するビット列のうち、まだ取
り出されていないビット列をビット列bとして処理を継
続する。
If all the bit strings have been extracted, the input hypothesis set does not correspond to any contradictory hypothesis set managed in the bit string form by the bit string set management unit 12. Then, the no contradiction notifying unit 17 notifies that there is no contradiction and ends the processing. When the repetition end determination unit 16 determines that all the extractions have not been completed, the repetition completion determination unit 16 notifies the bit string extraction unit 13 of the bit strings managed by the bit string set management unit 12 and selects the bit strings that have not yet been extracted. The process is continued as b.

【0023】以上説明したように、第1の発明による仮
説集合矛盾検査方式では、従来の方式と比較し、部分集
合関係検査の前にビット列の大小関係の比較を行ってい
る点が異なっている。ビット列を2進数として捉えたと
き、ビット列bのほうがビット列aよりも大きい場合、
ビット列bがビット列aの部分集合であることはありえ
ない。これは、逆を考えると明かである。
As described above, the hypothesis set contradiction checking method according to the first aspect of the present invention is different from the conventional method in that the magnitude relation of bit strings is compared before the subset relation checking. . If the bit string b is larger than the bit string a when the bit string is regarded as a binary number,
Bit string b cannot be a subset of bit string a. This is clear considering the opposite.

【0024】つまり、もし、ビット列bの1となってい
るビットに対応するビットが、ビット列aですべて1で
あり、ビット列aの他の全てのビットが0であれば、ビ
ット列aとビット列bは同一のビット列であり、当然、
2進数として捉えても同じ数となる。しかし、ビット列
aの他のビットの内、1つでも1となっているビットが
あれば、2進数として捉えた場合、そのぶんだけ、ビッ
ト列aの方が大きくなるはずである。
That is, if all the bits in the bit string a corresponding to the 1 bits in the bit string b are 1 and all other bits in the bit string a are 0, the bit strings a and b are It is the same bit string, and naturally,
Even if it is considered as a binary number, it will be the same number. However, if there is at least one bit among the other bits of the bit string a that is 1, when it is regarded as a binary number, the bit string a should be larger by that amount.

【0025】第1の発明による仮説集合矛盾検査方式で
は、以上の議論に基づき、ビット列大小関係比較部14
でビット列aがビット列bよりも大きいか、または、等
しい場合だけ、部分集合関係検査部15による検査を行
っている。ビット列大小関係比較部14で、ビット列a
がビット列bよりも小さい場合は、部分集合関係検査部
15の処理を行うまでもなく、部分集合関係に無いこと
がわかるからである。したがって、どちらの方式も検査
結果は同一のものとなる。
In the hypothesis set contradiction checking method according to the first aspect of the present invention, based on the above discussion, the bit string magnitude relationship comparing unit 14
In the case where the bit string a is greater than or equal to the bit string b, the subset relation checking unit 15 checks. In the bit string size relation comparing unit 14, the bit string a
This is because, when is smaller than the bit string b, it is understood that there is no subset relation without performing the processing of the subset relation inspection unit 15. Therefore, the inspection result is the same in both methods.

【0026】図2は第2の発明の仮説集合矛盾検査方式
の一実施例を示すブロック図である。この発明の仮説集
合矛盾検査方式は、検査しようとする仮説集合を入力す
る仮説集合入力部20と、仮説集合入力部20で入力さ
れた仮説集合に対応するビット列を作成するビット列作
成部21と、知識ベース内で矛盾することが判明してい
る仮説集合を対応するビット列の形で、ビット列を2進
数として捉えたときに小さい順に並ぶように管理するビ
ット列順序管理部22と、ビット列順序管理部22か
ら、ビット列を2進数として捉えたときの小さい順に、
ビット列を1つ取り出す最小ビット列取出部23と、ビ
ット列作成部21で作成したビット列をビット列aと呼
び、最小ビット列取出部23で取り出されたビット列を
ビット列bと呼ぶとき、ビット列aとビット列bの2進
数としての大小関係を比較するビット列大小関係比較部
24と、ビット列大小関係比較部24で、ビット列aの
ほうが、ビット列bよりも大きいかまたは等しいという
比較結果が得られた場合に動作し、ビット列aのビット
のうち、ビット列bの1となっているビットに対応する
ビットが、すべて1となっているかどうかを検査する部
分集合関係検査部25と、部分集合関係検査部25で、
ビット列aのビットのうち、ビット列bの1となってい
るビットに対応するビットが、すべて1となっていなか
った場合に動作し、最小ビット列取出部23でビット列
順序管理部22内の全てのビット列が取り出されたかど
うかを判定する繰り返し終了判定部26と、ビット列大
小関係比較部24で、ビット列bのほうがビット列aよ
りも大きかった場合と、繰り返し終了判定部26で繰り
返しが終了したと判定された場合に動作し、入力された
仮説集合が知識ベース中にある他の知識と矛盾しないこ
とを通知する無矛盾通知部27と、部分集合関係検査部
25で、ビット列aのビットのうち、ビット列bの1と
なっているビットに対応するビットが、すべて1となっ
ていた場合に動作し、入力された仮説集合が知識ベース
中にある他の知識と矛盾することを通知する矛盾通知部
28とを備えて構成されている。
FIG. 2 is a block diagram showing an embodiment of the hypothesis set contradiction checking method of the second invention. The hypothesis set contradiction checking method of the present invention includes a hypothesis set input unit 20 for inputting a hypothesis set to be checked, a bit string creation unit 21 for creating a bit string corresponding to the hypothesis set input by the hypothesis set input unit 20, A bit string order management unit 22 and a bit string order management unit 22 that manage a hypothesis set known to be inconsistent in the knowledge base in the form of a corresponding bit string so that the bit string is arranged in ascending order when the bit string is regarded as a binary number. From, in ascending order when the bit string is regarded as a binary number,
When the minimum bit string extraction unit 23 that extracts one bit string and the bit string created by the bit string creation unit 21 are called a bit string a, and the bit string extracted by the minimum bit string extraction unit 23 is called a bit string b, two of the bit string a and the bit string b are The bit string magnitude relationship comparing unit 24 and the bit string magnitude relationship comparing unit 24 that compare the magnitude relationship as a decimal number operate when a comparison result that the bit string a is greater than or equal to the bit string b is obtained. Among the bits of a, the subset relation checking unit 25 and the subset relation checking unit 25 for checking whether all the bits corresponding to the 1's in the bit string b are 1's,
It operates when all the bits of the bit string a corresponding to the ones in the bit string b are not all 1, and the minimum bit string extraction unit 23 operates all bit strings in the bit string order management unit 22. Of the bit string b is larger than the bit string a, and the repetition end judging unit 26 judges that the repetition has ended. In the case of the bit string b of the bits of the bit string a in the no-contradiction notifying unit 27 that notifies that the input hypothesis set does not conflict with other knowledge in the knowledge base, It operates when all the bits corresponding to the bits that are 1 are 1, and the input hypothesis set is another knowledge in the knowledge base. It is constituted by a contradiction notification unit 28 to notify that conflict.

【0027】まず、仮説の集合が仮説集合入力部20に
入力されると、ビット列作成部21に、入力された仮説
集合を渡し、ビット列作成部21は従来の方式で述べた
のと同様な方式でビット列を作成する。
First, when a set of hypotheses is input to the hypothesis set input unit 20, the input hypothesis set is passed to the bit string creation unit 21, and the bit string creation unit 21 uses the same method as described in the conventional method. Create a bit string with.

【0028】ビット列順序管理部22は、知識ベース内
で、同時に信じると矛盾をおこす1つ以上の仮説の組合
せを、ビット列の形で、0個以上管理している。第1の
発明と異なる点は、ビット列順序管理部22は、ビット
列を2進数として捉えた場合に、小さい順番に並ぶよう
に管理している点である。
The bit string order management unit 22 manages, in the form of a bit string, zero or more combinations of one or more hypotheses that cause contradiction if they believe at the same time in the knowledge base. The difference from the first invention is that the bit string order management unit 22 manages the bit strings so that they are arranged in ascending order when the bit string is regarded as a binary number.

【0029】最小ビット列取出部23は、ビット列順序
管理部22から、まだ取り出していないビット列のう
ち、2進数として捉えたときに最小のものを取り出し、
ビット列大小関係比較部24に渡す。
The minimum bit string extraction unit 23 extracts, from the bit string order management unit 22, the smallest bit string that has not yet been extracted when it is regarded as a binary number,
It is passed to the bit string size relationship comparing unit 24.

【0030】ビット列大小関係比較部24は、ビット列
aとビット列bを、ともに2進数として大小関係を比較
する。ビット列bのほうがビット列aよりも大きかった
場合、無矛盾通知部27で矛盾が無いことを通知して処
理を終了する。この処理は、以下の議論に基づく。
The bit string size relationship comparing unit 24 compares the bit string a and the bit string b as binary numbers and compares the size relationships. If the bit string b is larger than the bit string a, the no-contradiction notifying unit 27 notifies that there is no contradiction and ends the process. This process is based on the following discussion.

【0031】ビット列順序管理部22は、ビット列を2
進数として捉えたとき、小さい順に管理しており、最小
ビット列取出部23はこの中から、小さい順にビット列
を取り出している。従って、ビット列大小関係比較部2
4でビット列bのほうがビット列aよりも大きかった場
合、以後、処理を繰り返しても、最小ビット列取出部2
3から渡されるビット列はビット列bよりも大きいもの
ばかりとなり、つまり、ビット列aよりも大きいものば
かりとなる。一方、ビット列aよりも大きなビット列
は、第1の発明の実施例の説明で述べたように、ビット
列aの部分集合となり得ない。したがって、まだ大小比
較を行っていない、ビット列順序管理部22内のビット
列について処理を行うまでもなく、ビット列aで表わさ
れる仮説集合は矛盾がないと結論することができる。
The bit string order management unit 22 sets the bit string to 2
When they are regarded as a decimal number, they are managed in ascending order, and the minimum bit string extraction unit 23 extracts the bit strings from these in ascending order. Therefore, the bit string magnitude relationship comparison unit 2
If the bit string b is larger than the bit string a in 4, even if the process is repeated thereafter, the minimum bit string extraction unit 2
The bit string passed from 3 is always larger than the bit string b, that is, larger than the bit string a. On the other hand, a bit string larger than the bit string a cannot be a subset of the bit string a as described in the description of the embodiment of the first invention. Therefore, it is possible to conclude that there is no contradiction in the hypothesis set represented by the bit string a, without performing processing on the bit string in the bit string order management unit 22 that has not been compared in magnitude.

【0032】ビット列大小関係比較部24で、ビット列
aのほうが大きいか、または等しかった場合、部分集合
関係検査部25にビット列aとビット列bが渡される。
部分集合関係検査部25では、従来の方式と同様に、ビ
ット列aのビットの内、ビット列bの1となっているビ
ットに対応するビットが、すべて1となっているかどう
かを検査する。
In the bit string magnitude relationship comparing unit 24, when the bit string a is larger or equal, the bit string a and the bit string b are passed to the subset relationship checking unit 25.
Similar to the conventional method, the subset relation checking unit 25 checks whether or not all the bits of the bit string a corresponding to the ones of the bit string b are ones.

【0033】部分集合関係検査部25で、ビット列aの
対応する全てのビットが1であった場合、つまり、ビッ
ト列aが矛盾していることが判った場合、矛盾通知部2
8で矛盾であることを通知して処理を終了する。部分集
合関係検査部25で、ビット列aの対応する全てのビッ
トが1ではなかった場合、繰り返し終了判定部が動作
し、最小ビット列取出部23がビット列順序管理部22
から、全てのビット列を取り出したかどうかの判定がな
される。
When the subset relation checking unit 25 finds that all the corresponding bits of the bit string a are 1, that is, when it is found that the bit string a is inconsistent, the contradiction notifying unit 2
In step 8, the contradiction is notified, and the process ends. In the subset relation inspection unit 25, when all the corresponding bits of the bit string a are not 1, the repetition end determination unit operates and the minimum bit string extraction unit 23 sets the bit string order management unit 22.
From, it is determined whether or not all the bit strings have been taken out.

【0034】全てのビット列が取り出されていた場合
は、入力された仮説集合は、ビット列順序管理部22で
ビット列の形で管理されている、どの矛盾する仮説集合
にも対応しなかったことになり、無矛盾通知部27が矛
盾が無いことを通知して処理を終了する。繰り返し終了
判定部26で、全ての取り出しが終了していないという
判定であった場合、最小ビット列取出部23に通知し、
ビット列順序管理部22の管理するビット列のうち、ま
だ取り出されていない最小のビット列をビット列bとし
て処理を継続する。
If all the bit strings have been extracted, it means that the input hypothesis set does not correspond to any contradictory hypothesis set managed in the bit string order management unit 22 in the form of a bit string. Then, the no contradiction notifying unit 27 notifies that there is no contradiction and ends the processing. If the repetition end determination unit 26 determines that all extractions are not completed, the minimum bit string extraction unit 23 is notified,
Among the bit strings managed by the bit string order management unit 22, the smallest bit string that has not yet been extracted is set as the bit string b and the processing is continued.

【0035】第2の発明では、以上説明したように、ビ
ット列順序管理部22でビット列を2進数として捉えた
ときの大きさの順番にソートしておくことにより、最小
ビット列取出部23が取り出したビット列bがビット列
作成部21の作成したビット列aよりも大きかった場
合、以後の処理を省略することを可能としている。した
がって、第2の発明も仮説集合矛盾検査の結果は、従来
の方式と同一なものとなる。
In the second invention, as described above, the bit string order management unit 22 sorts the bit strings in the order of the size when the bit string is regarded as a binary number, and the minimum bit string extraction unit 23 extracts the bit strings. When the bit string b is larger than the bit string a created by the bit string creating unit 21, the subsequent processing can be omitted. Therefore, also in the second invention, the result of the hypothesis set contradiction check is the same as that of the conventional method.

【0036】図3は第3の発明の仮説集合矛盾検査方式
の一実施例を示すブロック図である。
FIG. 3 is a block diagram showing an embodiment of the hypothesis set contradiction checking method of the third invention.

【0037】この仮説集合矛盾検査方式は、検査しよう
とする仮説集合を入力する仮説集合入力部30と、仮説
集合入力部30で入力された仮説集合に対応するビット
列を作成するビット列作成部31と、知識ベース内で矛
盾することが判明している仮説集合を、対応するビット
列の形で、ビット列の最上位桁位置が同一のものを単位
に構造化して管理するビット列構造管理部32と、ビッ
ト列構造管理部32からビット列構造を1つ取り出すビ
ット列構造取出部33と、ビット列作成部31で作成し
たビット列において、ビット列構造取出部33で取り出
したビット列構造の最上位桁に対応するビットが、1で
あるかどうかを検査する最上位ビット検査部34と、最
上位ビット検査部34で最上位桁に対応するビットが1
であった場合に動作し、ビット列構造取出部33で取り
出したビット列構造から、部分ビット列を1つ取り出
す、部分ビット列取出部35と、ビット列作成部31で
作成したビット列をビット列aと呼び、部分ビット列取
出部35で取り出した部分ビット列をビット列bと呼ぶ
とき、ビット列aのビットのうち、ビット列bの1とな
っているビットに対応するビットが、すべて1となって
いるかどうかを検査する部分集合関係検査部36と、部
分集合関係検査部36で、ビット列aのビットのうち、
ビット列bの1となっているビットに対応するビット
が、すべて1となっていなかった場合に動作し、部分ビ
ット列取出部35でビット列構造取出部33で取り出し
たビット列構造内の全ての部分ビット列が取り出された
かどうかを判定する部分ビット列繰り返し終了判定部3
7と、ビット列繰り返し終了判定部37で全ての部分ビ
ット列が取り出されたと判定された場合と、最上位ビッ
ト検査部34で、ビット列作成部31で作成したビット
列の、ビット列構造取出部33で取り出したビット列構
造の最上位桁にあたるビットが0であった場合に動作
し、ビット列構造取出部33において、ビット列構造
が、ビット列構造管理部32からすべて取り出されたか
どうかを判定するビット列構造繰り返し終了判定部38
と、ビット列構造繰り返し終了判定部38で繰り返しが
終了したと判定された場合に動作し、入力された仮説集
合が知識ベース中にある他の知識と矛盾しないこと通知
する無矛盾通知部39と、部分集合関係検査部36で、
ビット列aのビットのうち、ビット列bの1となってい
るビットに対応するビットが、すべて1となっていた場
合に動作し、入力された仮説集合が知識ベース中にある
他の知識と矛盾することを通知する矛盾通知部310と
を備えて構成される。
This hypothesis set contradiction checking method includes a hypothesis set input unit 30 for inputting a hypothesis set to be checked, and a bit string creation unit 31 for creating a bit string corresponding to the hypothesis set input by the hypothesis set input unit 30. , A bit string structure management unit 32 that structures and manages a set of hypotheses known to be inconsistent in the knowledge base in the form of a corresponding bit string in units of the same highest digit position of the bit string, and a bit string In the bit string structure extraction unit 33 that extracts one bit string structure from the structure management unit 32 and the bit string created by the bit string creation unit 31, the bit corresponding to the most significant digit of the bit string structure extracted by the bit string structure extraction unit 33 is 1 The most significant bit inspecting unit 34 for inspecting whether or not there is one, and the bit corresponding to the most significant digit in the most significant bit inspecting unit 34 is 1
The bit string structure extracting unit 33 extracts one partial bit string from the bit string structure extracted by the bit string structure extracting unit 33, and the bit string created by the bit string creating unit 31 is called a bit string a. When the partial bit string extracted by the extraction unit 35 is called a bit string b, a subset relation for checking whether or not all the bits of the bit string a corresponding to the 1's of the bit string b are 1's In the inspection unit 36 and the subset relation inspection unit 36, among the bits of the bit string a,
It operates when all the bits corresponding to the bits that are 1 in the bit string b are not all 1, and all the partial bit strings in the bit string structure extracted by the bit string structure extracting unit 33 by the partial bit string extracting unit 35 are Partial bit string repetition end determination unit 3 for determining whether or not it has been taken out
7, when the bit string repetition end determination unit 37 determines that all the partial bit strings have been extracted, and the most significant bit inspection unit 34 extracts the bit string created by the bit string creation unit 31 by the bit string structure extraction unit 33. It operates when the bit corresponding to the most significant digit of the bit string structure is 0, and the bit string structure extraction unit 33 determines whether or not all the bit string structure has been extracted from the bit string structure management unit 32.
And a consistency notification unit 39 that operates when the repetition is judged by the bit string structure repetition end judgment unit 38 and notifies that the input hypothesis set does not conflict with other knowledge in the knowledge base, and In the group relation inspection unit 36,
It operates when all the bits of the bit string a corresponding to the ones of the bit string b are 1, and the input hypothesis set conflicts with other knowledge in the knowledge base. And a contradiction notifying unit 310 for notifying the fact.

【0038】まず、仮説の集合が仮説集合入力部30に
入力されると、ビット列作成部31に、入力された仮説
集合を渡し、ビット列作成部31は従来の方式で述べた
のと同様な方式でビット列を作成する。
First, when a set of hypotheses is input to the hypothesis set input unit 30, the input hypothesis set is passed to the bit string creation unit 31, and the bit string creation unit 31 uses the same method as described in the conventional method. Create a bit string with.

【0039】ビット列構造管理部32は、知識ベース内
で、同時に信じると矛盾をおこす1つ以上の仮説の組合
せを、ビット列の形で、0個以上管理している。第1の
発明、第2の発明と異なる点は、ビット列構造管理部3
2は、図4を用いて以下に説明するような構造におい
て、ビット列を管理している点である。
The bit string structure management unit 32 manages, in the form of a bit string, zero or more combinations of one or more hypotheses that simultaneously cause contradictions in the knowledge base. The difference from the first invention and the second invention is that the bit string structure management unit 3
2 is that bit strings are managed in the structure described below with reference to FIG.

【0040】図4において、(1)は従来の方式におけ
るビット列集合管理部で管理されているビット列の集合
の例を示し、(3)は同一のビット列の集合を、第3の
発明におけるビット列構造管理部32で管理した場合の
構造を示している。(2)は(1)と(3)が同じビッ
ト列集合を表わしていることを説明するための仮の構造
である。(1)の最も左側にあるビット列「1000
1」は、仮説1と仮説5からなる仮説の集合を示し、左
から2番目のビット列「1010」は、仮説2と仮説4
からなる仮説の集合を示している。
In FIG. 4, (1) shows an example of a set of bit strings managed by the bit string set management unit in the conventional method, and (3) shows the same set of bit strings as the bit string structure in the third invention. The structure when managed by the management unit 32 is shown. (2) is a tentative structure for explaining that (1) and (3) represent the same bit string set. The leftmost bit string “1000” (1000)
1 ”indicates a set of hypotheses consisting of hypothesis 1 and hypothesis 5, and the second bit string“ 1010 ”from the left indicates hypothesis 2 and hypothesis 4.
Shows a set of hypotheses consisting of.

【0041】(2)では、これらのビット列を、ビット
の桁数毎に分類し、各桁毎に括弧でくくった構造をもっ
ている。つまり、「(10001)」は5桁のビット
列、「(1010 1100)」は4桁のビット列であ
る。
In (2), these bit strings are classified according to the number of digits of bits, and each digit has a structure enclosed in parentheses. That is, “(10001)” is a 5-digit bit string and “(1010 1100)” is a 4-digit bit string.

【0042】(3)では、(2)で分類した各桁毎の括
弧の中のビット列に共通する、最も左側のビットを、共
通のものとしてくくり出して表現している。例えば
(2)の中の「(1010 1100)」は、最も左側
の4桁目のビットをくくり出し、残された部分ビット列
「(010 110)」とともに、「(1000 01
0100)」と表わされる。ここで、「1000」は4
桁のビット列であることを表わし、「010」、「10
0」はそれぞれ、「1010」、「1100」から最も
左側の「1」を取り去ったものである。また、従来の方
式で説明したように、記述されている最も左側のビット
のさらに左側のビットはすべて0として解釈されるた
め、「010」は「10」と記述することができる。そ
こで図4の(3)では、「(1010 1100)」を
表わすために「(1000 10 100)」といった
構造をとっている。
In (3), the leftmost bit, which is common to the bit string in parentheses for each digit classified in (2), is expressed as a common one. For example, “(10 10 1100)” in (2) extracts the leftmost fourth digit bit and “(1000 01 01)” along with the remaining partial bit string “(010 110)”.
0100) ”. Here, "1000" is 4
It indicates that it is a bit string of digits, and "010", "10"
“0” is the leftmost “1” removed from “1010” and “1100”, respectively. Further, as described in the conventional method, "010" can be described as "10" because all the bits on the left side of the described leftmost bit are interpreted as 0. Therefore, in (3) of FIG. 4, a structure such as “(1000 10 100)” is used to represent “(10 10 1100)”.

【0043】ビット列構造取出部33は、ビット列構造
管理部32から、ビット列の桁数毎の括弧でくくられた
構造単位で、まだ取り出していない構造の1つを取り出
し、最上位ビット検査部34に渡す。最上位ビット検査
部34は、ビット列作成部31で作成したビット列と、
ビット列構造取出部33が取り出したビット列構造のう
ちの、最も左側にある、つまり、最上位桁を表わすビッ
ト列との部分集合関係を検査する。つまり、ビット列作
成部31で作成したビット列のうち、ビット列構造取出
部33が取り出したビット列構造の最上位桁に対応する
ビットが1であるかどうかを検査する。対応するビット
が1であった場合、部分ビット列取出部35でビット列
構造の左側から2番目以後の部分ビット列の一つを取り
出し、部分集合関係検査部36に渡す。最上位ビット検
査部34で対応するビットが0であった場合、ビット列
構造繰り返し終了判定部38に動作が移る。
The bit string structure extraction unit 33 extracts from the bit string structure management unit 32 one of the structures which has not been extracted yet in the structure unit enclosed in parentheses for each digit number of the bit string, and outputs it to the most significant bit inspection unit 34. hand over. The most significant bit checking unit 34 includes a bit string created by the bit string creating unit 31,
Of the bit string structure extracted by the bit string structure extracting unit 33, the subset relation with the bit string on the leftmost side, that is, the most significant digit is checked. That is, in the bit string created by the bit string creating unit 31, it is checked whether the bit corresponding to the most significant digit of the bit string structure extracted by the bit string structure extracting unit 33 is 1. When the corresponding bit is 1, the partial bit string extraction unit 35 extracts one of the second and subsequent partial bit strings from the left side of the bit string structure and passes it to the subset relation inspection unit 36. If the corresponding bit is 0 in the most significant bit checking unit 34, the operation moves to the bit string structure repetition end determining unit 38.

【0044】部分集合関係検査部36では、従来の方式
と同様に、ビット列aのビットの内、ビット列bの1と
なっているビットに対応するビットが、すべて1となっ
ているかどうかを検査する。
As in the conventional method, the subset relation checking unit 36 checks whether or not all the bits of the bit string a corresponding to the ones of the bit string b are ones. .

【0045】部分集合関係検査部36で、ビット列aの
対応する全てのビットが1であった場合、つまり、ビッ
ト列aが矛盾していることが判った場合、矛盾通知部3
10で矛盾であることを通知して処理を終了する。部分
集合関係検査部36で、ビット列aの対応する全てのビ
ットが1ではなかった場合、ビット列繰り返し終了判定
部が動作し、部分ビット列取出部35が最上位ビット検
査部34から渡されたビット列構造のうち、左から2番
目以後の部分ビット列の全てを検査したかどうかを判定
する。全てを検査したのではなかった場合、部分ビット
列取出部35で検査していない部分ビット列について処
理を繰り返す。全てを検査していた場合は、ビット列構
造繰り返し終了判定部38で、ビット列構造管理部32
から、全てのビット列構造を取り出したかどうかの判定
がなされる。
When the subset relation checking unit 36 finds that all the corresponding bits of the bit string a are 1, that is, when it is found that the bit string a is inconsistent, the contradiction notifying unit 3
In step 10, the contradiction is notified, and the process ends. In the subset relation inspection unit 36, when all the corresponding bits of the bit string a are not 1, the bit string repetition end determination unit operates and the partial bit string extraction unit 35 transfers the bit string structure passed from the most significant bit inspection unit 34. It is determined whether or not all of the second and subsequent partial bit strings from the left are inspected. If not all are inspected, the process is repeated for the partial bit sequence not inspected by the partial bit sequence extraction unit 35. If all the bits have been inspected, the bit string structure repetition end determination unit 38 causes the bit string structure management unit 32 to
From, it is determined whether or not all bit string structures have been extracted.

【0046】ビット列構造繰り返し終了判定部38で、
全てのビット列構造が取り出されていた場合は、入力さ
れた仮説集合は、ビット列構造管理部32でビット列の
形で管理されている、どの矛盾する仮説集合にも対応し
なかったことになり、無矛盾通知部39が矛盾が無いこ
とを通知して処理を終了する。ビット列構造繰り返し終
了判定部38で、全ての取り出しが終了していないとい
う判定であった場合、ビット列構造取出部33に通知
し、ビット列構造管理部32の管理するビット列構造の
うち、まだ取り出されていないビット列構造について処
理を継続する。
In the bit string structure repetition end judging section 38,
If all the bit string structures have been extracted, it means that the input hypothesis set does not correspond to any contradictory hypothesis set managed in the bit string structure management unit 32 in the form of a bit string. The notification unit 39 notifies that there is no contradiction and ends the processing. When the bit string structure repetition end determination unit 38 determines that all the extractions have not been completed, the bit string structure extraction unit 33 is notified, and the bit string structure management unit 32 manages the bit string structures that have not yet been extracted. Continue processing with no bit string structure.

【0047】第3の発明は、以上説明したように、ビッ
ト列構造管理部33でビット列をビット列の桁数で構造
化しておくことにより、各構造単位で、構造内のビット
列がビット列aの部分集合になる可能性があるかどうか
を検査し、可能性がない場合は各構造内の部分ビット列
に対する部分集合関係検査を省略することが可能とな
る。したがって、第3の発明も仮説集合矛盾検査の結果
は、従来の方式と同一なものとなる。
As described above, in the third invention, the bit string structure management unit 33 structures the bit string by the number of digits of the bit string, so that the bit string in the structure is a subset of the bit string a in each structural unit. If there is no possibility, it becomes possible to omit the subset relation check for the partial bit string in each structure. Therefore, also in the third invention, the result of the hypothesis set contradiction test is the same as that of the conventional method.

【0048】[0048]

【発明の効果】第1の発明による仮説集合矛盾検査方式
では、従来の方式と比較し、部分集合関係検査の前にビ
ット列の大小関係の比較を行っている点が異なってい
る。部分集合関係検査部15による検査の回数は、ビッ
ト列大小関係比較部14でビット列aがビット列bより
も小さかった場合のぶんだけ少なくなる。一般に、電子
計算機では、部分集合関係検査よりもビット列大小関係
比較のほうが高速に行うことができるため、第1の発明
による仮説集合矛盾検査方式は、従来の方式よりも、高
速に仮説集合の矛盾検査を行うことができる、という効
果がある。
The hypothesis set contradiction checking method according to the first aspect of the present invention is different from the conventional method in that the magnitude relation of bit strings is compared before the subset relation checking. The number of inspections by the subset relation inspection unit 15 is reduced as much as when the bit string a is smaller than the bit string b in the bit string magnitude relationship comparison unit 14. Generally, in a computer, the comparison of bit string magnitude relations can be performed faster than the subset relation check. Therefore, the hypothesis set contradiction checking method according to the first invention is faster than the conventional method. The effect is that inspection can be performed.

【0049】第2の発明では、ビット列順序管理部22
でビット列を2進数として捉えたときの大きさの順番に
ソートしておくことにより、最小ビット列取出部23が
取り出したビット列bがビット列作成部21の作成した
ビット列aよりも大きかった場合、以後の処理を省略す
ることを可能としている。したがって、第2の発明によ
る仮説集合矛盾検査方式は、第1の発明よりもさらに高
速に仮説集合の矛盾検査を行うことができる、という効
果がある。
In the second invention, the bit string order management unit 22
When the bit string b extracted by the minimum bit string extraction unit 23 is larger than the bit string a created by the bit string creation unit 21 by sorting the bit string in the order of the size when the bit string is regarded as a binary number, It is possible to omit the processing. Therefore, the hypothesis set contradiction checking method according to the second invention has an effect that the contradiction check of the hypothesis set can be performed faster than the first invention.

【0050】一方、ビット列順序管理部22は、従来の
方式や第1の発明による方式と異なり、ビット列をソー
トして管理する必要があり、ビット列をビット列順序管
理部22に登録する際の処理は、若干遅くなる。しか
し、一般に、仮説集合矛盾検査の処理は、矛盾する仮説
集合のビット列順序管理部への登録処理と比較して、非
常に多くの回数行われるため、登録時の速度低下は、検
査時の速度向上によって、充分に補われる。
On the other hand, unlike the conventional method and the method according to the first aspect of the invention, the bit string order management unit 22 needs to sort and manage the bit strings, and the processing for registering the bit string in the bit string order management unit 22 is not performed. , Slightly slower. However, in general, the processing of the hypothesis set contradiction check is performed a large number of times compared with the processing of registering the contradictory hypothesis set in the bit string order management unit. It is fully compensated by improvement.

【0051】第3の発明は、ビット列構造管理部33
で、桁数が同一のビット列を単位に構造化しておくこと
により、各構造単位で、構造内のビット列がビット列a
の部分集合になる可能性があるかどうかを検査し、可能
性がない場合は、その構造内の部分ビット列との部分集
合関係検査を省略することを可能としている。したがっ
て、第3の発明による仮説集合矛盾検査方式は、従来の
方式と比較して、ビット列間の部分集合関係検査の回数
が少なくなり、高速に処理を行うことが可能となってい
る。
The third aspect of the present invention is a bit string structure management unit 33.
By structuring the bit string having the same number of digits as a unit, the bit string in the structure is a bit string a in each structural unit.
If there is no possibility, it is possible to omit the subset relation check with the partial bit string in the structure. Therefore, the hypothesis set contradiction checking method according to the third aspect of the present invention reduces the number of times the subset relationship between bit strings is checked, as compared with the conventional method, and enables high-speed processing.

【0052】一方、ビット列構造管理部32は、ビット
列を構造化して管理する必要があり、ビット列をビット
列構造管理部32に登録する際の処理は、第2の発明と
同様、若干遅くなる。しかし、第2の発明の効果で述べ
たのと同じ理由により、登録時の速度低下は、検査時の
速度向上によって、充分に補うことが可能である。
On the other hand, the bit string structure management unit 32 needs to structure and manage the bit string, and the process of registering the bit string in the bit string structure management unit 32 is slightly delayed as in the second invention. However, for the same reason as described in the effect of the second invention, the speed decrease at the time of registration can be sufficiently compensated by the speed increase at the time of inspection.

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

【図1】第1の発明の一実施例の構成を示すブロック図
である。
FIG. 1 is a block diagram showing a configuration of an embodiment of a first invention.

【図2】第2の発明の一実施例の構成を示すブロック図
である。
FIG. 2 is a block diagram showing the configuration of an embodiment of the second invention.

【図3】第3の発明の一実施例の構成を示すブロック図
である。
FIG. 3 is a block diagram showing the configuration of an embodiment of the third invention.

【図4】図3のビット列構造管理部32の管理する、ビ
ット列構造の一例を示す図である。
4 is a diagram showing an example of a bit string structure managed by a bit string structure management unit 32 in FIG.

【図5】従来の方式の一例を示すブロック図である。FIG. 5 is a block diagram showing an example of a conventional method.

【図6】図1,図2,図3,図5のビット列作成部で作
成するビット列の一例を示す図である。
FIG. 6 is a diagram showing an example of a bit string created by a bit string creating unit shown in FIGS. 1, 2, 3 and 5.

【図7】図1,図2,図3,図5の部分集合関係検査部
の動作の一例を示す図である。
FIG. 7 is a diagram showing an example of the operation of the subset relation inspection unit of FIGS. 1, 2, 3 and 5.

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

10,20,30,50 仮説集合入力部 11,21,31,51 ビット列作成部 12,52 ビット列集合管理部 13,53 ビット列取出部 14,24 ビット列大小関係比較部 15,25,36,54 部分集合関係検査部 16,26,55 繰り返し終了判定部 17,27,39,56 無矛盾通知部 18,28,57,310 矛盾通知部 22 ビット列順序管理部 23 最小ビット列取出部 32 ビット列構造管理部 33 ビット列構造取出部 34 最上位ビット検査部 35 部分ビット列取出部 37 ビット列繰り返し終了判定部 38 ビット列構造繰り返し終了判定部 10, 20, 30, 50 Hypothesis set input unit 11, 21, 31, 51 Bit string creation unit 12, 52 Bit string set management unit 13, 53 Bit string extraction unit 14, 24 Bit string size relationship comparison unit 15, 25, 36, 54 parts Set relation checking unit 16, 26, 55 Repeat end determination unit 17, 27, 39, 56 No contradiction notification unit 18, 28, 57, 310 Contradiction notification unit 22 bit sequence order management unit 23 Minimum bit string extraction unit 32 bit string structure management unit 33 bit string Structure extraction unit 34 Most significant bit inspection unit 35 Partial bit string extraction unit 37 Bit string repetition end determination unit 38 Bit string structure repetition end determination unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】1つ以上の仮説知識の集合が知識ベース内
の他の知識と矛盾するかどうかを検査する仮説集合矛盾
検査方式において、 検査しようとする仮説集合に入力する仮説集合入力部
と、 前記仮説集合入力部で入力された仮説集合に対応するビ
ット列を作成するビット列作成部と、 知識ベース内で矛盾することが判明している仮説集合
を、対応するビット列の形で管理するビット列集合管理
部と、 前記ビット列集合管理部からビット列を1つ取り出すビ
ット列取出部と、 前記ビット列作成部で作成したビット列をビット列aと
呼び、前記ビット列取出部で取り出したビット列をビッ
ト列bと呼ぶとき、ビット列aとビット列bの2進数と
しての大小関係を比較するビット列大小関係比較部と、 前記ビット列大小関係比較部で、前記ビット列aのほう
が、前記ビット列bよりも大きいかまたは等しいという
比較結果が得られた場合に動作し、前記ビット列aのビ
ットのうち、前記ビット列bの1となっているビットに
対応するビットが、すべて1となっているかどうかを検
査する部分集合関係検査部と、 前記ビット列大小関係比較部で、前記ビット列bのほう
が前記ビット列aよりも大きかった場合と、前記部分集
合関係検査部で、前記ビット列aのビットのうち、前記
ビット列bの1となっているビットに対応するビット
が、すべて1となっていなかった場合に動作し、前記ビ
ット列取出部で前記ビット列集合管理部内の全てのビッ
ト列が取り出されたかどうかを判定する繰り返し終了判
定部と、 前記繰り返し終了判定部で繰り返しが終了したと判定さ
れた場合に動作し、入力された仮説集合が知識ベース中
にある他の知識と矛盾しないことを通知する無矛盾通知
部と、 前記部分集合関係検査部で、前記ビット列aのビットの
うち、前記ビット列bの1となっているビットに対応す
るビットが、すべて1となっていた場合に動作し、入力
された仮説集合が知識ベース中にある他の知識と矛盾す
ることを通知する矛盾通知部とを備えることを特徴とす
る仮説集合矛盾検査方式。
1. A hypothesis set inconsistency checking method for checking whether one or more sets of hypothesis knowledge are inconsistent with other knowledge in a knowledge base, and a hypothesis set input section for inputting to a hypothesis set to be checked. , A bit string creation unit that creates a bit string corresponding to the hypothesis set input by the hypothesis set input unit, and a bit string set that manages a hypothesis set known to conflict in the knowledge base in the form of the corresponding bit string A management unit, a bit string extraction unit that extracts one bit string from the bit string set management unit, a bit string created by the bit string creation unit is called a bit string a, and a bit string extracted by the bit string extraction unit is called a bit string b. a bit string magnitude relationship comparing unit that compares the magnitude relationship between a and the bit string b as a binary number; and the bit string magnitude relationship comparing unit, The operation is performed when the comparison result that the column a is larger than or equal to the bit sequence b is obtained, and the bit corresponding to the bit that is 1 of the bit sequence b among the bits of the bit sequence a is A subset relation checking unit for checking whether all are 1, and a case where the bit string b is larger than the bit string a in the bit string magnitude relationship comparing unit, and a case where the bit string b is larger than the bit string a It operates when all of the bits of a corresponding to the 1-bits of the bit string b are not 1, and the bit string extraction unit extracts all the bit strings in the bit string set management unit. It is operated when the repetition end judgment unit that judges whether or not the repetition is finished, and when the repetition end judgment unit judges that the repetition is completed, In the consistent relation notifying unit for notifying that the applied hypothesis set is consistent with other knowledge in the knowledge base, and in the subset relation checking unit, the bit string b becomes 1 of the bit string b. And a contradiction notifying unit for notifying that the inputted hypothesis set is inconsistent with other knowledge in the knowledge base, which operates when all the bits corresponding to existing bits are 1. Hypothesis set conflict checking method.
【請求項2】1つ以上の仮説知識の集合が知識ベース内
の他の知識と矛盾するかどうかを検査する仮説集合矛盾
検査方式において、 検査しようとする仮説集合を入力する仮説集合入力部
と、前記仮説集合入力部で入力された仮説集合に対応す
るビット列を作成するビット列作成部と、 知識ベース内で矛盾することが判明している仮説集合
を、対応するビット列の形で、ビット列を2進数として
捉えたときに小さい順に並ぶように管理するビット列順
序管理部と、 前記ビット列順序管理部から、ビット列を2進数として
捉えたときの小さい順に、ビット列を1つ取り出す最小
ビット列取出部と、 前記ビット列作成部で作成したビット列をビット列aと
呼び、前記最小ビット列取出部で取り出したビット列を
ビット列bと呼ぶとき、ビット列aとビット列bの2進
数としての大小関係を比較するビット列大小関係比較部
と、 前記ビット列大小関係比較部で、前記ビット列aのほう
が、前記ビット列bよりも大きいかまたは等しいという
比較結果が得られた場合に動作し、前記ビット列aのビ
ットのうち、前記ビット列bの1となっているビットに
対応するビットが、すべて1となっているかどうかを検
査する部分集合関係検査部と、 前記部分集合関係検査部で、前記ビット列aのビットの
うち、前記ビット列bの1となっているビットに対応す
るビットが、すべて1となっていなかった場合に動作
し、前記最小ビット列取出部で前記ビット列順序管理部
内の全てのビット列が取り出されたかどうかを判定する
繰り返し終了判定部と、 前記ビット列大小関係比較部で、前記ビット列bのほう
が前記ビット列aよりも大きかった場合と、前記繰り返
し終了判定部で繰り返しが終了したと判定された場合に
動作し、入力された仮説集合が知識ベース中にある他の
知識と矛盾しないことを通知する無矛盾通知部と、 前記部分集合関係検査部で、前記ビット列aのビットの
うち、前記ビット列bの1となっているビットに対応す
るビットが、すべて1となっていた場合に動作し、入力
された仮説集合が知識ベース中にある他の知識と矛盾す
ることを通知する矛盾通知部とを備えることを特徴とす
る仮説集合矛盾検査方式。
2. A hypothesis set input unit for inputting a hypothesis set to be checked in a hypothesis set conflict checking method for checking whether or not one or more sets of hypothesis knowledge conflict with other knowledge in a knowledge base. , A bit string creation unit that creates a bit string corresponding to the hypothesis set input by the hypothesis set input unit, and a hypothesis set known to be inconsistent in the knowledge base, a bit string in the form of the corresponding bit string, A bit string order management unit that manages the bit string order so that the bit strings are arranged in ascending order when viewed as a binary number; and a minimum bit string extraction unit that extracts one bit string from the bit string order management unit in a small order when viewed as a binary number, When the bit string created by the bit string creating unit is called a bit string a and the bit string extracted by the minimum bit string extracting unit is called a bit string b, the bit string a And a bit string magnitude relationship comparing unit that compares the magnitude relationship of the bit string b as a binary number, and a comparison result that the bit string a is greater than or equal to the bit string b in the bit string magnitude relationship comparing unit. And a subset relation checking unit that checks whether or not all the bits of the bit string a corresponding to the 1's of the bit string b are 1's, and the subset relationship. The check unit operates when all the bits of the bit string a corresponding to the 1-bits of the bit string b are not 1, and the minimum bit string extraction unit manages the bit string order. The repetition end determination unit that determines whether or not all the bit strings in the set have been extracted, and the bit string size relationship comparison unit that sets the bit string b It is operated when the bit string a is larger than the bit string a and when the repetition end judgment unit judges that the repetition has ended, and notifies that the input hypothesis set does not conflict with other knowledge in the knowledge base. The non-contradiction notifying unit and the subset relation checking unit operate when all the bits of the bit string a corresponding to the 1's of the bit string b are 1, and input A method for checking a contradiction of a hypothesis set, comprising: a contradiction notifying unit that notifies that the set of hypotheses set is inconsistent with other knowledge in the knowledge base.
【請求項3】1つ以上の仮説知識の集合が知識ベース内
の他の知識と矛盾するかどうかを検査する仮説集合矛盾
検査方式において、 検査しようとする仮説集合を入力する仮説集合入力部
と、 前記仮説集合入力部で入力された仮説集合に対応するビ
ット列を作成するビット列作成部と、 知識ベース内で矛盾することが判明している仮説集合
を、対応するビット列の形で、ビット列の最上位桁位置
が同一のものを単位に構造化して管理するビット列構造
管理部と、 前記ビット列構造管理部からビット列構造を1つ取り出
すビット列構造取出部と、 前記ビット列作成部で作成したビット列において、前記
ビット列構造取出部で取り出したビット列構造の最上位
桁に対応するビットが、1であるかどうかを検査する最
上位ビット検査部と、 前記最上位ビット検査部で最上位桁に対応するビットが
1であった場合に動作し、前記ビット列構造取出部で取
り出したビット列構造から、部分ビット列を1つ取り出
す、部分ビット列取出部と、 前記ビット列作成部で作成したビット列をビット列aと
呼び、前記部分ビット列取出部で取り出した部分ビット
列をビット列bと呼ぶとき、前記ビット列aのビットの
うち、前記ビット列bの1となっているビットに対応す
るビットが、すべて1となっているかどうかを検査する
部分集合関係検査部と、 前記部分集合関係検査部で、前記ビット列aのビットの
うち、前記ビット列bの1となっているビットに対応す
るビットが、すべて1となっていなかった場合に動作
し、前記部分ビット列取出部で前記ビット列構造取出部
で取り出したビット列構造内の全ての部分ビット列が取
り出されたかどうかを判定する部分ビット列繰り返し終
了判定部と、 前記ビット列繰り返し終了判定部で全ての部分ビット列
が取り出されたと判定された場合と、前記最上位ビット
検査部で、前記ビット列作成部で作成したビット列の、
前記ビット列構造取出部で取り出したビット列構造の最
上位桁にあたるビットが0であった場合に動作し、前記
ビット列構造取出部において、ビット列構造が、前記ビ
ット列構造管理部からすべて取り出されたかどうかを判
定するビット列構造繰り返し終了判定部と、 前記ビット列構造繰り返し終了判定部で繰り返しが終了
したと判定された場合に動作し、入力された仮説集合が
知識ベース中にある他の知識と矛盾しないことを通知す
る無矛盾通知部と、 前記部分集合関係検査部で、前記ビット列aのビットの
うち、前記ビット列bの1となっているビットに対応す
るビットが、すべて1となっていた場合に動作し、入力
された仮説集合が知識ベース中にある他の知識と矛盾す
ることを通知する矛盾通知部とを備えることを特徴とす
る仮説集合矛盾検査方式。
3. A hypothesis set input section for inputting a hypothesis set to be checked in a hypothesis set conflict checking method for checking whether or not one or more sets of hypothesis knowledge conflict with other knowledge in a knowledge base. , A bit string creation unit that creates a bit string corresponding to the hypothesis set input by the hypothesis set input unit, and a hypothesis set known to be inconsistent in the knowledge base, in the form of the corresponding bit string, A bit string structure management unit for structuring and managing units having the same high-order digit position as a unit; a bit string structure extraction unit for extracting one bit string structure from the bit string structure management unit; and a bit string created by the bit string creation unit, wherein: A most significant bit inspection unit that inspects whether the bit corresponding to the most significant digit of the bit string structure extracted by the bit string structure extraction unit is 1; It operates when the bit corresponding to the most significant digit in the order bit check unit is 1, and extracts a partial bit string from the bit string structure extracted by the bit string structure extracting unit, a partial bit string extracting unit, and the bit string creating unit. When the bit string created by the section is called a bit string a, and the partial bit string extracted by the partial bit string extracting unit is called a bit string b, the bit corresponding to the bit of the bit string b which is 1 among the bits of the bit string a. , A subset relation checking unit for checking whether all are 1, and among the bits of the bit sequence a, a bit corresponding to a bit of 1 of the bit sequence b in the subset relation checking unit. , The bit string structure extracted by the partial bit string extraction unit and operated by the partial bit string extraction unit Partial bit string repetition end determination unit for determining whether or not all partial bit strings have been extracted, when it is determined that all partial bit strings have been extracted by the bit string repetition end determination unit, and the most significant bit inspection unit, Of the bit string created by the bit string creating unit,
The bit string structure extraction unit operates when the bit corresponding to the most significant digit of the bit string structure is 0, and the bit string structure extraction unit determines whether or not all the bit string structures have been extracted from the bit string structure management unit. And a bit string structure repetition end determination unit that operates, and operates when the repetition is determined by the bit string structure repetition end determination unit, and notifies that the input hypothesis set does not conflict with other knowledge in the knowledge base The non-contradiction notifying unit and the subset relation checking unit operate when all the bits of the bit string a corresponding to the 1's of the bit string b are 1, and input Hypothesis characterized by comprising a contradiction notifying unit for notifying that the set of hypotheses set is inconsistent with other knowledge in the knowledge base. If contradiction inspection system.
JP3081175A 1991-03-22 1991-03-22 Hypothesis set contradiction check method Expired - Fee Related JPH0823822B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3081175A JPH0823822B2 (en) 1991-03-22 1991-03-22 Hypothesis set contradiction check method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3081175A JPH0823822B2 (en) 1991-03-22 1991-03-22 Hypothesis set contradiction check method

Publications (2)

Publication Number Publication Date
JPH0644073A JPH0644073A (en) 1994-02-18
JPH0823822B2 true JPH0823822B2 (en) 1996-03-06

Family

ID=13739131

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3081175A Expired - Fee Related JPH0823822B2 (en) 1991-03-22 1991-03-22 Hypothesis set contradiction check method

Country Status (1)

Country Link
JP (1) JPH0823822B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021144894A1 (en) * 2020-01-15 2021-07-22 日本電気株式会社 Information processing device, information processing method, and computer-readable recording medium

Also Published As

Publication number Publication date
JPH0644073A (en) 1994-02-18

Similar Documents

Publication Publication Date Title
CN110413319B (en) Code function taste detection method based on deep semantics
CN112163226A (en) Binary Similarity Detection Method Based on Graph Autoencoder
JPH0756656B2 (en) Gate logic automatic update method
Mishchenko et al. A new enhanced constructive decomposition and mapping algorithm
US5493505A (en) Initializable asynchronous circuit design
JPH0823822B2 (en) Hypothesis set contradiction check method
CN114153496A (en) Block chain-based high-speed parallelizable code similarity comparison method and system
JPH0666050B2 (en) Sort processing method
JP5075695B2 (en) Property description coverage measuring apparatus and program
JPH1091677A (en) Logical conversion method for increasing efficiency of simulation/emulation
JP2636221B2 (en) How to create partial test items
JP2023149501A (en) Function estimation method and function estimation program
CN120197568B (en) A method for equivalence verification based on XOR majority logic
Parberry A computer assisted optimal depth lower bound for sorting networks with nine inputs
CN120145956B (en) Method and system for efficiently simplifying digital logic circuit
CN114756861A (en) A multi-type vulnerability detection method and system for multi-sample comparison and fusion
JP3808129B2 (en) Truth table creation device in combinational logic circuit
CN117076985B (en) Classification recognition method for iron ore LIBS data by twin network integrated with self-encoder
JP2845173B2 (en) Logical collation method
CN117391041A (en) A circuit key input vector identification method based on association rule analysis
Islas Pérez et al. Genetic algorithms and case-based reasoning as a discovery and learning machine in the optimization of combinational logic circuits
olivier Streamlined QM Method
JPH06162129A (en) Logic circuit verifying device
CN121659879A (en) A method for digital circuit dependency analysis
CN121277835A (en) Software defect prediction method, system, equipment and medium

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080306

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090306

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090306

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100306

Year of fee payment: 14

LAPS Cancellation because of no payment of annual fees