JPH0799499B2 - Information processing equipment - Google Patents
Information processing equipmentInfo
- Publication number
- JPH0799499B2 JPH0799499B2 JP4190201A JP19020192A JPH0799499B2 JP H0799499 B2 JPH0799499 B2 JP H0799499B2 JP 4190201 A JP4190201 A JP 4190201A JP 19020192 A JP19020192 A JP 19020192A JP H0799499 B2 JPH0799499 B2 JP H0799499B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- unification
- processing unit
- vector
- processing
- 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 - Lifetime
Links
Landscapes
- Devices For Executing Special Programs (AREA)
Description
【0001】[0001]
【産業上の利用分野】この発明は、知識情報処理の分野
において、ユニフィケーション(同一化)や非決定的制
御等の推論の機能を言語として内蔵している論理型言語
(prolog)を処理する情報処理装置に関するものであ
る。BACKGROUND OF THE INVENTION 1. Field of the Invention In the field of knowledge information processing, the present invention is an information processing for processing a logical language (prolog) which has a function of inference such as unification (identification) or nondeterministic control as a language. It relates to the device.
【0002】[0002]
【従来の技術】本件で言うユニフィケーション機能と
は、論理型言語での変数に値を代入する操作に対応する
が、ここでは単純な代入ではなく変数を含む2つの構造
体データ(パターン)を、その中の変数に適当な値を与
える(結合する)ことによって同一のパターンにする機
能である。このようなユニフィケーションを処理する従
来の情報処理装置の構成を図3に示す。図3において、
300は推論の機能を内蔵している論理型言語を機械語
として実行する推論処理部、310は論理型言語におけ
る述語の引数のデータタイプを含む構造体データに対す
る記憶,管理,操作の機能を有する構造体メモリ部であ
る。推論処理部300は、論理型言語における述語デー
タ301,302、及び述語データ301,302の述
語の同一引数間同志でユニフィケーション処理を行うユ
ニフィケーション手段303を備えている。構造体メモ
リ部310は、構造体データ311,312を記憶して
いる。この例では、構造体データ311は述語データ3
01中の述語aの引数3が構造体データである場合のデ
ータを示し、構造体データ312は述語データ302中
の述語bの引数3が構造体データである場合のデータを
示す。2. Description of the Related Art The unification function referred to in the present case corresponds to an operation of assigning a value to a variable in a logical programming language. Here, two structure data (patterns) including variables are used instead of simple assignment. It is a function to give the same pattern by giving (combining) appropriate values to the variables in it. FIG. 3 shows the configuration of a conventional information processing apparatus that processes such unification. In FIG.
Reference numeral 300 denotes an inference processing unit that executes a logic language having a built-in reasoning function as a machine language, and 310 has functions of storing, managing, and operating structure data including a data type of a predicate argument in the logic language. This is a structure memory section. The inference processing unit 300 includes predicate data 301 and 302 in a logical language, and unification means 303 that performs unification processing between the same arguments of the predicates of the predicate data 301 and 302. The structure memory unit 310 stores structure data 311 and 312. In this example, the structure data 311 is the predicate data 3
01 indicates the data when the argument 3 of the predicate a is structure data, and the structure data 312 indicates the data when the argument 3 of the predicate b in the predicate data 302 is the structure data.
【0003】次に動作について説明する。図3に示すよ
うに従来は述語の引数が構造体データの場合、ポインタ
を持つリスト形式で推論処理部300とは独立した構造
体メモリ部310に格納される。述語データ301中の
述語aと述語データ302中の述語bの引数間でユニフ
ィケーション処理が実行されると、推論処理部300に
おいて引数1同一のユニフィケーションがユニフィケー
ション手段303により行われ、これが成功すると次の
引数同志のユニフィケーションが順次行われて、引数n
同志のユニフィケーションの成功により本ユニフィケー
ション処理が成功終了する。もし、引数同志のユニフィ
ケーションが失敗した場合には即座にその処理は中止さ
れ失敗終了となる。Next, the operation will be described. As shown in FIG. 3, conventionally, when the argument of the predicate is structure data, it is stored in a structure memory unit 310 independent of the inference processing unit 300 in a list format having a pointer. When the unification process is executed between the arguments of the predicate a in the predicate data 301 and the predicate b in the predicate data 302, the unification unit 303 performs the unification with the same argument 1 in the inference processing unit 300. The unification of arguments takes place sequentially, and the argument n
This unification process ends successfully due to the success of the unification of the comrades. If the unification of the arguments fails, the processing is immediately stopped and the processing ends in failure.
【0004】図3に示すように引数3が構造体データの
場合、構造体メモリ部310に格納されている構造体デ
ータ311,312の要素同志のユニフィケーションが
行われる。この場合、リストのポインタを1段ずつたど
ってデータを推論処理部300に取り込みユニフィケー
ションを行うため構造体メモリ部310への内容の参照
が頻繁になり処理時間が多くなる。As shown in FIG. 3, when the argument 3 is structure data, unification of elements of the structure data 311 and 312 stored in the structure memory unit 310 is performed. In this case, since the pointers of the list are traced one step at a time to fetch the data into the inference processing unit 300 and perform unification, the contents of the structure memory unit 310 are frequently referenced and the processing time increases.
【0005】[0005]
【発明が解決しようとする課題】従来の情報処理装置で
は、複数の引数を持つ述語のユニフィケーションを実行
する際に、構造体メモリ部に格納されている構造体デー
タが大規模で複雑な構造を持つ場合、ポインタを1段ず
つたどってデータをアクセスするので処理時間が多くか
かるという問題点があった。すなわち、構造体メモリ部
へのアクセス頻度の増大により処理性能の低下が発生す
るという問題点があった。In the conventional information processing apparatus, when the unification of predicates having a plurality of arguments is executed, the structure data stored in the structure memory unit has a large-scale and complicated structure. In the case of holding the data, there is a problem that it takes a long processing time because the data is accessed by tracing the pointer one by one. That is, there is a problem that the processing performance is deteriorated due to an increase in the frequency of access to the structure memory unit.
【0006】この発明は上記のような問題点を解決する
ためになされたもので、大規模で複雑な構造を持つ構造
体データを大量に取扱う推論処理においても、ユニフィ
ケーション処理を効率よく実行することのできる情報処
理装置を得ることを目的とする。The present invention has been made in order to solve the above problems, and can efficiently execute unification processing even in inference processing that handles a large amount of structure data having a large-scale and complicated structure. The object is to obtain an information processing device capable of performing the above.
【0007】[0007]
【課題を解決するための手段】この発明に係る情報処理
装置は、推論処理部100に述語の同一引数同志のユニ
フィケーション処理を行うユニフィケーション手段10
3を設け、構造体メモリ部110に、構造体データをリ
スト形式のリストデータとベクタ形式のベクタデータと
に分類し、それぞれのデータを格納するリスト処理ユニ
ット120とベクタ処理ユニット130とを備え、上記
推論処理部100における当該引数が構造体データの場
合に、上記推論処理部100の処理と並行して、当該引
数に関するベクタデータのユニフィケーション処理を行
う並列ユニフィケーション手段140を設けたものであ
る。In the information processing apparatus according to the present invention, the unification means 10 for performing the unification processing of the same arguments of predicates in the inference processing section 100.
3 is provided, and structure data is stored in the structure memory unit 110 as list data in list format and vector data in vector format.
A list processing unit that stores each data
And a vector processing unit 130.
If the argument in the inference processing unit 100 is structure data,
In parallel with the processing of the inference processing unit 100,
Unification processing of vector data related to numbers is performed.
The parallel unification means 140 is provided.
【0008】[0008]
【作用】推論処理部100では述語の同一引数同志のユ
ニフィケーション処理が行われる。構造体メモリ部11
0では、リスト処理ユニット120が構造体データをリ
スト形式として格納し、ベクタ処理ユニット130が構
造体データをベクタ形式として格納する。推論処理部1
00における当該引数が構造体データの場合に、上記推
論処理部100の処理と並行して、ベクタ処理ユニット
130内の、当該引数に関するベクタデータを並列ユニ
フィケーション手段140によってユニフィケーション
処理が行われる。 In the inference processing unit 100, unification processing of the same arguments of predicates is performed. Structure memory unit 11
At 0, the list processing unit 120 stores the structure data in the list format, and the vector processing unit 130 stores the structure data in the vector format. Inference processing unit 1
If the argument in 00 is structure data, the above
In parallel with the processing of the logic processing unit 100, the vector processing unit
Vector data related to the argument in 130
Unification by the fictitious means 140
Processing is performed.
【0009】[0009]
【実施例】実施例1.(請求項1対応) 図1はこの発明の一実施例に係る情報処理装置の構成図
である。図1において、100は推論の機能を内蔵して
いる論理型言語を機械語として実行する推論処理部であ
る。この推論処理部100は、論理型言語における述語
データ101,102と、述語データ101,102の
述語の同一引数間同志でユニフィケーション処理を行う
ユニフィケーション手段103とを備えている。110
は論理型言語における述語の引数のデータタイプを含む
構成体データに対する記憶,管理,操作の機能を有する
構造体メモリ部である。この構造体メモリ部110は、
構造体データをリスト形式のリストデータとベクタ形式
のベクタデータとに分類し、そのリストデータを格納す
るリスト処理ユニット120と、そのベクタデータを格
納するベクタ処理ユニット130と、推論処理部100
における当該引数が構造体データの場合にベクタ処理ユ
ニット130内の当該構造体データのベクタデータに関
してはユニフィケーション処理を並列に行う並列ユニフ
ィケーション手段140とを備えている。101,10
2は推論処理部100内の述語データである。121,
122はリスト処理ユニット120内のリストデータ、
131,132はベクタ処理ユニット130内のベクタ
データである。EXAMPLES Example 1. (Corresponding to Claim 1) FIG. 1 is a block diagram of an information processing apparatus according to an embodiment of the present invention. In Figure 1, 100 is an inference processing unit for executing a logic programming language that incorporates the function of reasoning as machine language. The inference processing unit 100 includes predicate data 101 and 102 in a logical language and unification means 103 that performs unification processing between the same arguments of the predicates of the predicate data 101 and 102. 110
Is a structure memory unit having functions of storing, managing, and operating structure data including the data type of the argument of the predicate in the logic language. This structure memory unit 110 is
The structure data is classified into list-format list data and vector-format vector data, and the list processing unit 120 that stores the list data, the vector processing unit 130 that stores the vector data, and the inference processing unit 100.
And a parallel unification means 140 for performing unification processing in parallel on the vector data of the structure data in the vector processing unit 130 when the argument in is the structure data. 101,10
2 is predicate data in the inference processing unit 100. 121,
122 is list data in the list processing unit 120,
131 and 132 are vector data in the vector processing unit 130.
【0010】次に動作について説明する。この情報処理
装置は、推論処理部100が構造体メモリ部110に対
して制御信号を与えることよりユニフィケーション処理
を実行するようになっている。更に、構造体メモリ部1
10は、推論処理部100の処理と並行してベクタデー
タの並列ユニフィケーションが実行できるようになって
いる。推論処理部100において、述語データ101中
の述語aと述語データ102中の述語bとの引数間でユ
ニフィケーション処理がユニフィケーション手段103
によって実行されると、まず、引数1同志のユニフィケ
ーションが行われ、このユニフィケーションが成功する
と、次の引数同志のユニフィケーションが順次行われ
る。図1に示す例のように引数3が構造体データである
場合、構造体メモリ部110のリスト処理ユニット12
0に格納されているリストデータ121,122同志の
ユニフィケーションが行われ、次いでベクタ処理ユニッ
ト130に格納されているベクタデータ131,132
の要素同志の並列ユニフィケーション処理が並列ユニフ
ィケーション手段140によって実行される。この時、
推論処理部100ではベクタ処理ユニット130におけ
るユニフィケーションと並行して引数4以降同志のユニ
フィケーションが可能となり、次々と引数間ユニフィケ
ーションが行われ、最後の引数n同志のユニフィケーシ
ョンの成功により、本ユニフィケーション処理が成功終
了する。ここで、もし引数同志のユニフィケーションが
失敗した場合には即座にその処理は中止され失敗終了と
なる。Next, the operation will be described. In this information processing apparatus, the inference processing unit 100 executes a unification process by giving a control signal to the structure memory unit 110. Further, the structure memory unit 1
10 can execute parallel unification of vector data in parallel with the processing of the inference processing unit 100. In the inference processing unit 100, unification processing is performed by the unification means 103 between arguments of the predicate a in the predicate data 101 and the predicate b in the predicate data 102.
When first executed, the unification of the arguments 1 is performed, and if the unification succeeds, the unification of the next arguments is sequentially performed. When the argument 3 is structure data as in the example shown in FIG. 1, the list processing unit 12 of the structure memory unit 110
The list data 121 and 122 stored in 0 are unified, and then the vector data 131 and 132 stored in the vector processing unit 130.
The parallel unification processing of the elements of the above is executed by the parallel unification means 140. At this time,
In the inference processing unit 100, unification of arguments 4 and later can be performed in parallel with unification in the vector processing unit 130, unification between arguments is performed one after another, and the unification of the last argument n succeeds, so that this unification process succeeds. finish. Here, if the unification of arguments is unsuccessful, the processing is immediately stopped and the processing ends in failure.
【0011】図1に示す例のように引数3が構造体デー
タの場合、ベクタデータに関しては、ベクタ処理ユニッ
ト130で推論処理部100と同様に専用の並列ユニフ
ィケーション手段140を用いて推論処理部100の処
理と並行してユニフィケーション処理が実行されるため
ユニフィケーション処理に要する時間を短縮することが
できる。When the argument 3 is structure data as in the example shown in FIG. 1, the vector processing unit 130 uses the dedicated parallel unification means 140 in the vector processing unit 130 as in the case of the inference processing unit 100. Since the unification process is executed in parallel with the above process, the time required for the unification process can be shortened.
【0012】上記実施例1によれば、構造体メモリ部1
10の内容を参照する引数のユニフィケーションに関し
て、従来の処理方法では処理時間が多くかかるベクタ形
式の構造体データを専用のベクタ処理ユニット130に
おける並列ユニフィケーション手段140を用いてユニ
フィケーションを実行するので、効率的なユニフィケー
ション処理が可能となる。According to the first embodiment, the structure memory unit 1
Concerning the unification of the argument that refers to the contents of 10, the unification of the structure data in the vector format, which takes a long processing time in the conventional processing method, by using the parallel unification means 140 in the dedicated vector processing unit 130, is efficient. Unification processing is possible.
【0013】実施例2.なお、上記の実施例1は推論処
理部100が1台である通常のシングルプロセッサ等を
前提としたものであるが、図2に示すような複数個の推
論処理部200と複数個の構造体メモリ部210と、そ
れらを相互に結合するネットワーク240,250,2
60を備え、複数の推論を並列に処理するマルチプロセ
ッサタイプの並列型推論マシン等においても、上述した
と同様にして効率的なユニフィケーション処理を実行す
ることができる。Example 2. Although the first embodiment described above is premised on an ordinary single processor having one inference processing unit 100, a plurality of inference processing units 200 and a plurality of structures as shown in FIG. The memory unit 210 and networks 240, 250, 2 that connect them to each other
An efficient unification process can be executed in the same manner as described above even in a multiprocessor type parallel inference machine including 60 and processing a plurality of inferences in parallel.
【0014】上記実施例2によれば、構造体メモリ部2
10への内容の参照で多くの時間を要する構造体データ
同志のユニフィケーション処理が図示しない並列ユニフ
ィケーション手段の分散化により効率的に実行できる。According to the second embodiment, the structure memory unit 2
The unification process of the structure data comrades, which takes a lot of time to refer to the contents of 10, can be efficiently executed by the decentralization of the parallel unification means (not shown).
【0015】[0015]
【発明の効果】以上のように本発明によれば、構造体デ
ータをリスト形式のリストデータとベクタ形式のベクタ
データとに分類され、それぞれのデータを格納するリス
ト処理ユニットとベクタ処理ユニットとを備え、推論処
理部における当該引数が構造体データの場合に、推論処
理部の処理と並行して、当該引数のベクタデータのユニ
フィケーション処理を行う並列ユニフィケーション手段
を構造体メモリ部に備えて構成したので、大規模で複雑
な構造を持つ構造体データを大量に取扱う推論処理にお
いても、ユニフィケーション処理を効率良く実行できる
という効果が得られる。即ち、本発明によれば、一般に
整数やアトム(細分化できない基本記号)のような引数
のユニフィケーションに比べて、構造体メモリ部への内
容の参照が頻繁に行われるため、多くの時間を要する構
造体データ同志のユニフィケーション処理が並列ユニフ
ィケーション手段で分散化され並列に効率的に実行でき
るという効果が得られる。As described above, according to the present invention, structure data can be converted into list format list data and vector format vector data.
Data and a list that stores each data
The inference processing unit is equipped with a vector processing unit and a vector processing unit.
If the argument in the Science Department is structure data, the inference process
In parallel with the processing of the science section, the vector data unit
Parallel unification means for performing fiction processing
Since the above structure is provided in the structure memory unit, it is possible to effectively execute the unification process even in the inference process that handles a large amount of structure data having a large-scale and complicated structure. That is, according to the present invention, in general, as compared with the unification of arguments such as integers and atoms (basic symbols that cannot be subdivided), the contents of the structure memory section are referred to more frequently, which requires much time. The unification process of the structure data is distributed by the parallel unification means and can be efficiently executed in parallel.
【図1】この発明の一実施例に係る情報処理装置の構成
ブロック図である。FIG. 1 is a configuration block diagram of an information processing apparatus according to an embodiment of the present invention.
【図2】この発明の他の実施例に係る情報処理装置の構
成ブロック図である。FIG. 2 is a configuration block diagram of an information processing apparatus according to another embodiment of the present invention.
【図3】従来の情報処理装置の構成ブロック図である。FIG. 3 is a configuration block diagram of a conventional information processing device.
100 推論処理部 103 ユニフィケーション手段 110 構造体メモリ部 120 リスト処理ユニット 130 ベクタ処理ユニット 140 並列ユニフィケーション手段 100 inference processing unit 103 unification means 110 structure memory unit 120 list processing unit 130 vector processing unit 140 parallel unification means
Claims (1)
機械語として実行する推論処理部と、上記論理型言語に
おける述語の引数のデータタイプを含む構造体データに
対する記憶,管理,操作の機能を有する構造体メモリ部
とを結合して制御し、構造体データを同一のパターンに
するユニフィケーション処理の機能を有する情報処理装
置において、上記推論処理部に述語の同一引数同志のユ
ニフィケーション処理を行うユニフィケーション手段を
設け、上記構造体メモリ部には、構造体データをリスト
形式のリストデータとベクタ形式のベクタデータとに分
類し、それぞれのデータを格納するリスト処理ユニット
とベクタ処理ユニットとを備え、上記推論処理部におけ
る当該引数が構造体データの場合に、上記推論処理部の
処理と並行して、当該引数に関するベクタデータのユニ
フィケーション処理を行う並列ユニフィケーション手段
を設けたことを特徴とする情報処理装置。1. An inference processing unit that executes a logical language having a built-in inference function as a machine language, and storage, management, and operation of structure data including a data type of an argument of a predicate in the logical language. In an information processing device having a function of a unification process for combining and controlling a structure memory unit having a function to make structure data the same pattern, the inference processing unit performs a unification process of the same arguments of predicates. The unification means is provided, and the structure data is listed in the structure memory section.
Format list data and vector format vector data.
List processing unit that stores data of each type
And a vector processing unit.
If the argument is structure data,
In parallel with the processing, the vector data unit
Parallel unification means for performing fiction processing
The information processing apparatus characterized by a provided.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4190201A JPH0799499B2 (en) | 1992-06-25 | 1992-06-25 | Information processing equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4190201A JPH0799499B2 (en) | 1992-06-25 | 1992-06-25 | Information processing equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0667887A JPH0667887A (en) | 1994-03-11 |
| JPH0799499B2 true JPH0799499B2 (en) | 1995-10-25 |
Family
ID=16254141
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4190201A Expired - Lifetime JPH0799499B2 (en) | 1992-06-25 | 1992-06-25 | Information processing equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0799499B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102231079B1 (en) | 2014-07-08 | 2021-03-24 | 엘지전자 주식회사 | Drain pump assembly and dryer for clothes having the same |
-
1992
- 1992-06-25 JP JP4190201A patent/JPH0799499B2/en not_active Expired - Lifetime
Non-Patent Citations (2)
| Title |
|---|
| 「情報処理学会第35回(昭和62年後期)全国大会講演論文集」(昭62−9)P.753−754 |
| 「情報処理学会論文誌」Vol.30、No.4(1989−4)P.495−506 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0667887A (en) | 1994-03-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8028281B2 (en) | Run-Time parallelization of loops in computer programs using bit vectors | |
| EP0469756B1 (en) | Modular expert system and method for modularizing a set of rules used by an expert system | |
| US7062753B1 (en) | Method and apparatus for automated software unit testing | |
| JPH0799499B2 (en) | Information processing equipment | |
| CN113741861B (en) | Method for calculating data dependency in program and computer readable storage medium | |
| US20020152256A1 (en) | Method and device for reconstructing the process sequence of a control program | |
| CN111475684B (en) | Data processing network system and calculation chart generation method thereof | |
| Mansell et al. | Decision model and flexible component definition based on xml technology | |
| JP3077812B2 (en) | Information processing device | |
| CN117930670B (en) | Simulation method and device for circuit breaker of aircraft power supply simulation system | |
| JPH0616287B2 (en) | Vector arithmetic processor with mask | |
| JPH1011321A (en) | Microprocessor with execution tracing function | |
| JPH0553809A (en) | Knowledge data referencing method for inference device | |
| Buy et al. | Liveness Analysis and the Automatic Generation of Concurrent Programs. | |
| Jansen et al. | Template matching with a MIMD computer | |
| JPH02108127A (en) | Inference control method for expert system | |
| JP3124389B2 (en) | Hypothetical reasoning device | |
| JPS63289647A (en) | Production system | |
| JPH05143422A (en) | Updated journal managing system | |
| JPS62274303A (en) | Sequence control method | |
| JPS63316255A (en) | Data copying control system for parallel inferring machine | |
| JPH04276828A (en) | Hypothesis management method for knowledge processing system | |
| JPS6227822A (en) | Backtrack control system | |
| JPH03132824A (en) | Logical program processing system | |
| JPH04188231A (en) | Object generation system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |