JPH06243168A - Pattern searching device - Google Patents

Pattern searching device

Info

Publication number
JPH06243168A
JPH06243168A JP5030914A JP3091493A JPH06243168A JP H06243168 A JPH06243168 A JP H06243168A JP 5030914 A JP5030914 A JP 5030914A JP 3091493 A JP3091493 A JP 3091493A JP H06243168 A JPH06243168 A JP H06243168A
Authority
JP
Japan
Prior art keywords
search
pattern
code
graphically
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5030914A
Other languages
Japanese (ja)
Inventor
Susumu Hamada
進 濱田
Masaru Araki
大 荒木
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP5030914A priority Critical patent/JPH06243168A/en
Priority to US08/173,082 priority patent/US5587918A/en
Publication of JPH06243168A publication Critical patent/JPH06243168A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To exactly and efficiently execute the pattern search by describing graphically a search pattern in advance, generating a search code by allowing it to be subjected to code conversion, and applying it to a search engine. CONSTITUTION:This searching device consists of a search pattern editing part 11, a terminal equipment 12, a search code generating part 13 and a search engine 14. Also, searching method parts 16 and search supplementary information editing part parts 17 are provided in accordance with necessity. First of all, the searching method parts 16 are generated, and it is registered. Thereafter, by the search pattern editing part 11, a search pattern is inputted, while looking at a search pattern editing screen on the terminal equipment 12. Also, a special search part is designated, and a search operation from a search object 15 is executed by the search engine 14. In the case the searching method is not required newly, generation of the searching method parts 16, and its registration are unnecessary.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はパターン探索装置に係
り、特に対象システムの物理的構造あるいは動作モデル
がノードの集合とノード間のアークからなるネットワー
クとして表現される対象から、指定された特定の探索パ
ターンに合致する部分を探索するためのパターン探索装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pattern search apparatus, and in particular, a physical structure or behavior model of a target system is specified from a target specified as a network consisting of a set of nodes and arcs between nodes. The present invention relates to a pattern search device for searching a part that matches a search pattern.

【0002】[0002]

【従来の技術】対象システムの物理的構造あるいは動作
モデルがノードの集合とノード間のアークからなるネッ
トワークとして表現される探索対象から、ネットワーク
の内部で所望の部分構造を持つ特定の探索パターンに合
致する部分を探索するためのパターン探索装置が要求さ
れている。
2. Description of the Related Art A physical structure or behavior model of a target system is represented as a network consisting of a set of nodes and arcs between nodes, and matches a specific search pattern having a desired substructure inside the network. There is a demand for a pattern search device for searching a part to be processed.

【0003】具体的には、各種電子機器の電子回路ある
いは半導体素子の論理回路の設計において、全体の回路
図からある特定の繋がりを持つ構造を抽出したり、不具
合部分を同定するといった操作、あるいは各種プラント
の故障診断や電力系統の事故診断などにおいて、システ
ム全体の系統図から事故発生部分を同定するといった操
作がここでいうパターン探索に相当する。このパターン
探索を行なうパターン探索装置は、これらの作業を自動
的に行なう推論システムとして利用される。
Specifically, in designing an electronic circuit of various electronic devices or a logic circuit of a semiconductor element, an operation of extracting a structure having a specific connection from the entire circuit diagram or identifying a defective portion, or In fault diagnosis of various plants and accident diagnosis of electric power system, the operation of identifying the accident occurrence part from the system diagram of the entire system corresponds to the pattern search here. The pattern search device that performs this pattern search is used as an inference system that automatically performs these tasks.

【0004】電子回路や論理回路の設計といった応用領
域では、回路の構造はCADなどの設計支援ツールによ
って記述・編集され、ノードの集合とノード間のアーク
からなるネットワークで表現された回路データファイル
として格納されている。この応用領域でのパターン探索
は、このような回路データを対象とした検索を行なうこ
とを意味する。
In an application area such as the design of electronic circuits and logic circuits, the circuit structure is described and edited by a design support tool such as CAD, and as a circuit data file represented by a network consisting of a set of nodes and arcs between the nodes. It is stored. The pattern search in this application area means performing a search for such circuit data.

【0005】回路データを対象とするパターン探索装置
の実現法の一つは、探索したい所望の部分構造を持つ特
定のパターン(以下、探索パターンという)に含まれる
ノードと、その探索パターンの条件を満たすデータを回
路データファイルから順次検索することによって発見す
る手続きを、手続き的なプログラム言語により記述する
方法である。しかし、このような手続き的なプログラム
言語では、検索用プログラムの記述に非常に労力を要す
る。また、コードの形で表現された検索用プログラム
は、直感的に内容を理解することができず、さらにその
デバックや修正も困難である。すなわち、個々の探索方
法の記述はパターン探索装置の動作全体の手続きの中で
一体となっており、探索パターンの記述や探索方法を部
分的に変更したりすることが容易にはできない。
One of the methods of realizing a pattern search device for circuit data is to specify the nodes included in a specific pattern (hereinafter referred to as a search pattern) having a desired partial structure to be searched and the conditions of the search pattern. This is a method of describing a procedure for finding satisfying data by sequentially searching a circuit data file in a procedural programming language. However, such a procedural programming language requires a great deal of effort to write a search program. In addition, the search program expressed in the form of a code cannot intuitively understand the content, and it is difficult to debug or modify it. That is, the description of each search method is integrated in the procedure of the entire operation of the pattern search apparatus, and it is not easy to partially change the description of the search pattern and the search method.

【0006】一方、探索パターンを図式的に記述してお
き、この探索パターン図等を手続き的なプログラム言語
形式の探索プログラムに直接変換することで、探索パタ
ーンの記述や探索方法を容易化する手法を考えることも
できるが、その実現は困難である。また、繰り返し構造
を発見する探索や、所望の部分構造に合致しない箇所を
発見するような否定的な探索といった特別な探索を行な
いたい場合にも、手続き的なプログラム言語で探索プロ
グラムを記述することにより、自由に色々な方法を実現
することができるが、それを他のところへ転用するとい
った作業は容易ではなかった。
On the other hand, a method of simplifying the description of the search pattern and the search method by describing the search pattern graphically and directly converting the search pattern diagram etc. into a search program in a procedural programming language format. Can be considered, but its realization is difficult. Also, if you want to perform a special search such as a search that finds repeated structures or a negative search that finds a part that does not match the desired substructure, describe the search program in a procedural programming language. With this, various methods can be realized freely, but the work of diverting it to other places was not easy.

【0007】さらに、従来行なわれていた別のパターン
探索方法として、プロダクションシステムを利用してル
ールの形式で探索プログラムを記述する方法がある。ル
ールの形式で探索プログラムを記述した場合には、基本
的な探索動作はプロダクションシステムが持つパターン
マッチの機能を利用して行なわれるため、手続き的な記
述を行なう場合よりも記述量は少なく、容易にパターン
探索装置を構築することができる。
Further, as another conventional pattern search method, there is a method of writing a search program in a rule format using a production system. When a search program is written in the form of rules, the basic search operation is performed using the pattern matching function of the production system, so the amount of description is smaller and easier than in the case of procedural description. It is possible to build a pattern search device.

【0008】しかしながら、ルールの形式で記述された
探索プログラムはコードの形で表現されるため、手続き
的なプログラム言語により記述された同様に、直感的に
その内容を理解することができず、デバッグや修正も困
難である。また、探索動作を実現する推論エンジン(探
索エンジン)自体は、プロダクションシステムが持つ固
定的な方法に従わざるを得ず、探索方法を変更するには
複数のルールを組み合わせるなどの特別な工夫を行なわ
なければ実現できない。一方、プロダクションシステム
自身は、対象問題を問わない汎用的な問題解決器である
ため、特に半導体集積回路により実現される電子回路の
ような膨大な数の素子を持つネットワーク情報から、高
速にパターン探索を行なうことが困難である。
However, since the search program described in the rule format is expressed in the form of a code, it is not possible to intuitively understand its contents like the one described in the procedural programming language, and debugging is performed. It is also difficult to correct. In addition, the inference engine (search engine) that realizes the search operation must follow the fixed method of the production system, and special rules such as combining multiple rules are used to change the search method. It cannot be realized without it. On the other hand, since the production system itself is a general-purpose problem solver regardless of the target problem, pattern search can be performed quickly from network information with a huge number of elements such as electronic circuits realized by semiconductor integrated circuits. Is difficult to do.

【0009】[0009]

【発明が解決しようとする課題】上述したように、従来
の技術ではノードの集合とノード間のアークからなるネ
ットワークとして表現される対象から、特定の探索パタ
ーンに合致する部分を探索する場合、探索パターンに含
まれるノードとその条件を満たすデータを探索するため
の探索プログラムを、非図式的な表現である手続き的な
プログラミング言語やルールの形式で記述しているた
め、探索プログラムに表現された探索内容が直感的には
理解できないとともに、そのデバッグや修正が難しいと
いう問題があった。
As described above, in the prior art, when searching for a part that matches a specific search pattern from an object expressed as a network consisting of a set of nodes and arcs between nodes, Since the search program for searching the nodes included in the pattern and the data satisfying the conditions is described in the form of a non-graphical procedural programming language or rule, the search expressed in the search program There was a problem that the contents were not intuitively understandable and it was difficult to debug and fix them.

【0010】さらに、複雑な構造の探索パターンに合致
する部分を実際の使用に耐え得る速度で探索する手続き
や、曖昧性を持つ探索パターンを扱うなどを考慮した探
索機能は、基本的には使用者自身がプログラムとして開
発する必要があり、使用者自身が労力をかけることによ
って対処しなければならなかった。
Further, basically, a search function considering a procedure for searching a portion matching a search pattern of a complicated structure at a speed that can withstand actual use and a search pattern having ambiguity are used. The person himself had to develop it as a program, and the user himself had to deal with it by putting effort into it.

【0011】本発明は、この様な従来技術の問題点を解
決するためになされたもので、ノードの集合とノード間
のアークからなるネットワークとして表現される対象か
ら、特定の探索パターンに合致する部分を効率的に探索
できるパターン探索装置を提供することを目的とする。
The present invention has been made to solve the above-mentioned problems of the prior art, and matches a specific search pattern from an object expressed as a network consisting of a set of nodes and arcs between the nodes. It is an object of the present invention to provide a pattern search device capable of efficiently searching a part.

【0012】[0012]

【課題を解決するための手段】上記の課題を解決するた
め、本発明はノードの集合とノード間のアークとからな
るネットワークとして表現される対象から指定された特
定の探索パターンに合致する部分を探索するパターン探
索装置において、探索パターンを図式的に記述する探索
パターン編集手段と、図式的に表現された探索パターン
をコード変換して探索用コードを生成する探索用コード
生成手段と、生成された探索用コードを受け取り、前記
対象の中から該探索用コードとして表現された探索パタ
ーンに合致する部分を探索する探索手段とを備えること
を基本的な特徴とする。
In order to solve the above problems, the present invention provides a part that matches a specific search pattern specified from an object expressed as a network consisting of a set of nodes and arcs between the nodes. In a pattern search device for searching, a search pattern editing means for graphically describing a search pattern, a search code generating means for converting a search pattern expressed graphically to generate a search code, and A basic feature is provided with a search means for receiving a search code and searching a portion of the object that matches a search pattern expressed as the search code.

【0013】また、本発明は種々の実施態様として、探
索パターン編集手段を探索パターンに合致する部分の中
で、部分的に通常と異なる探索方法を行なう部分を図式
的に指定することができるように構成するとともに、探
索手段をその指定部分を通常の探索方法の他に、否定的
探索・繰り返し型探索・OR型探索・省略可能型探索
や、ユーザが作成して登録した特殊な探索方法のルーチ
ンを呼ぶことによって探索ができる構成とする。これら
の実施態様を以下に列挙する。
Further, in various embodiments of the present invention, the search pattern editing means can graphically designate a part of a part matching a search pattern, which partly performs a search method different from the normal one. In addition to the normal search method, the search means includes a negative search, an iterative search, an OR type search, an omissible type search, and a special search method created and registered by the user. The configuration is such that a search can be performed by calling a routine. These embodiments are listed below.

【0014】(a) 探索パターン編集手段は、探索パター
ンに合致する部分のうち否定的に探索を行なうべき部分
を図式的に指定でき、探索用コード生成手段は、該探索
パターン編集手段で図式的に指定された否定的に探索を
行なうべき部分を否定探索ブロックとして含む探索用コ
ードに変換し、探索手段は、該否定探索ブロックに関し
てはそのブロックに含まれているパターンが存在しなか
った場合に探索が成功したものとする。
(A) The search pattern editing means can graphically specify a portion to be negatively searched among the portions that match the search pattern, and the search code generating means can graphically specify the portion using the search pattern editing means. Is converted into a search code including a part to be searched negatively as a negative search block, and the searching means determines that the pattern included in the negative search block does not exist. It is assumed that the search is successful.

【0015】(b) 探索パターン編集手段は、探索パター
ンに合致する部分のうち繰り返し探索を行なうべき部分
を図式的に指定できるとともに、該繰り返し探索を行な
うものとして図式的に指定した部分の繰り返し構造を定
義でき、探索用コード生成手段は、探索パターン編集手
段で図式的に指定された繰り返し探索を行なうべき部分
と該繰り返し構造とを繰り返し探索ブロックとして含む
探索用コードに変換し、探索手段は、該繰り返し探索ブ
ロックに関してはブロックに含まれているパターンが複
数回繰り返されている場合にも探索が成功したものとす
る。
(B) The search pattern editing means is capable of graphically designating a portion to be iteratively searched among the portions matching the search pattern, and the repeating structure of the portion graphically designated as the one for performing the iterative search. The search code generation means converts the search code including the portion to be subjected to the iterative search graphically designated by the search pattern editing means and the repetitive structure as a repetitive search block, and the search means, Regarding the repeated search block, it is assumed that the search is successful even when the pattern included in the block is repeated a plurality of times.

【0016】(c) 探索手段は、(b) において探索パター
ン編集手段で図式的に指定された繰り返し探索を行なう
べき部分に関してパターンが複数回繰り返されている場
合であってかつ同一部分に関しては繰り返しの回数が最
大の場合にのみ探索が成功したものとする。
(C) The search means repeats the pattern in the case where the pattern is repeated a plurality of times for the part to be repeatedly searched, which is graphically designated by the search pattern editing means in (b). The search is considered to be successful only when the number of times is maximum.

【0017】(d) 探索パターン編集手段は、探索パター
ンに合致する部分のうちOR型探索を行なうべき複数の
部分パターンを図式的に記述でき、探索用コード生成手
段は、探索パターン編集手段で図式的に指定されたOR
型探索を行なうべき部分をOR型探索ブロックとして含
む探索用コードに変換し、探索手段は、該指定された部
分に関しては探索パターン編集手段で記述された複数の
探索パターンのいずれかに合致する部分が存在した場合
に探索が成功したものとする。
(D) The search pattern editing means can graphically describe a plurality of partial patterns to be subjected to the OR type search in the part matching the search pattern, and the search code generating means is the search pattern editing means. Specified OR
The part for performing the type search is converted into a search code including an OR type search block, and the search means matches the specified part with any of the plurality of search patterns described by the search pattern editing means. It is assumed that the search has succeeded when exists.

【0018】(e) 探索パターン編集手段は、探索パター
ンに合致する部分のうち省略可能探索を行なうべき部分
を図式的に指定することができ、探索用コード生成手段
は、探索パターン編集手段で図式的に指定された省略可
能探索を行なうべき部分を省略可能探索ブロックとして
含む探索用コードに変換し、探索手段は、該指定された
部分に関しては適合するパターンが見付かったか否かに
よらず探索が成功したものとする。
(E) The search pattern editing means can graphically specify a portion of the portion that matches the search pattern and on which the eliminable search is to be performed, and the search code generating means is the search pattern editing means. To a search code that includes a portion that should be subjected to an optional search that is to be performed as an optional search block, and the search means performs a search regardless of whether or not a matching pattern was found for the specified portion. Succeed.

【0019】(f) 探索手段は、探索方法を実現するため
の探索方法部品を予め登録することができると共に、探
索パターンに含まれる特定の部分を指定された探索方法
に応じた探索方法部品によって探索し、探索パターン編
集手段は、探索方法部品による探索を行なうために必要
な補足情報を入力する探索補足情報入力部品を予め登録
すると共に、この探索方法部品による探索を行なうべき
部分を指定することができ、さらに必要に応じて補足情
報を入力するための探索補足情報入力部品を起動するこ
とができる。
(F) The search means can preliminarily register search method components for realizing the search method, and at the same time, a specific portion included in the search pattern can be designated by the search method components according to the designated search method. The search pattern editing means registers the search supplemental information input component for inputting the supplementary information necessary for performing the search by the search method component, and specifies the portion to be searched by the search method component. Further, the search supplemental information input component for inputting supplementary information can be activated as required.

【0020】[0020]

【作用】このように本発明では、探索パターン自体は図
式的に記述するようにし、この図式的に記述された探索
パターンを探索手段である探索エンジンが探索を行なう
ことのできる形態のコードに変換して探索用コードを生
成し、探索エンジンに適用する。従って、従来のパター
ン探索で使用されていた手続き的なプログラミング言語
やルールの形式で記述した探索プログラムを用いる方法
と異なり、探索内容の直感的な理解が可能であり、その
デバッグや修正も容易であるため、パターン探索を的確
かつ効率的に行なうことが可能となる。
As described above, according to the present invention, the search pattern itself is described graphically, and the search pattern described graphically is converted into a code in a form that can be searched by the search engine as the search means. Then, the search code is generated and applied to the search engine. Therefore, unlike the method of using a search program described in the form of a procedural programming language or rules that has been used in conventional pattern search, the search contents can be intuitively understood, and debugging and modification are easy. Therefore, the pattern search can be performed accurately and efficiently.

【0021】さらに、探索パターンに合致する部分のう
ち、部分的に通常と異なる探索方法を行なう部分につい
ても図式的に指定して、その指定部分について通常の探
索方法の他に、否定的探索・繰り返し型探索・OR型探
索やユーザが作成して登録した特殊な探索方法を適用す
ることによって、これらの特殊・複雑な探索パタンにつ
いても図式的な記述ができ、また効率的な探索が可能と
なる。
Further, among the parts that match the search pattern, a part for which a search method that is partially different from the normal is partially specified, and the specified part is subjected to the negative search / in addition to the normal search method. By applying the iterative type search / OR type search and the special search method created and registered by the user, it is possible to make a schematic description of these special / complex search patterns, and to enable efficient search. Become.

【0022】[0022]

【実施例】以下、図面を参照して本発明の実施例を説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0023】図1は、本発明の一実施例に係るパターン
探索装置の構成を示すブロック図である。この探索パタ
ーン探索装置は、探索パターン編集部11、端末装置1
2、探索用コード生成部13および探索エンジン14か
らなる。また、必要に応じて探索方法部品16および探
索補足情報編集部部品17が設けられる。
FIG. 1 is a block diagram showing the structure of a pattern search apparatus according to an embodiment of the present invention. This search pattern search device includes a search pattern editing unit 11 and a terminal device 1.
2, a search code generator 13 and a search engine 14. Further, a search method component 16 and a search supplemental information editing unit component 17 are provided as needed.

【0024】探索パターン編集部11は、ユーザが探索
対象15から探索すべき探索パターンの作成や編集を行
なうためのエディタであり、探索パターンを図式的に記
述することができ、また探索対象15の探索パターンに
合致する部分の中で、部分的に通常と異なる探索方法を
行なう部分を図式的に指定できるものである。本実施例
においては、探索対象15は例えば電子回路であり、ト
ランジスタ・抵抗等の素子がノードに、素子間の接続関
係がアークに、回路全体がネットワークにそれぞれ相当
する。
The search pattern editing unit 11 is an editor for the user to create and edit a search pattern to be searched from the search target 15, and can describe the search pattern diagrammatically. Among the parts that match the search pattern, the part that performs a search method that is partially different from the normal one can be designated graphically. In the present embodiment, the search target 15 is, for example, an electronic circuit, and elements such as transistors and resistors correspond to nodes, connection relationships between elements correspond to arcs, and the entire circuit corresponds to a network.

【0025】端末装置12は、探索パターン編集部11
により制御され、図3に示す探索パターン編集画面を表
示する。このパターン編集画面は、使用者が作成・編集
した探索パターンを図式的に表示する画面と、探索パタ
ーンをファイルから読み出したり書き込むための「ロー
ド・セーブ」ボタン、探索パターンにノードを追加ある
いは削除するための「ノード」ボタン、探索パターンに
アークを追加あるいは削除するための「アーク」ボタ
ン、探索パターン中の特殊な探索を行ないたい部分を指
定するための「特殊探索部分指定」ボタンを持つ。「特
殊探索部分指定」の特別な探索方法の種類としては、
「否定型」、「繰り返し型」および「OR型」があるも
のとする。
The terminal device 12 includes a search pattern editing unit 11
The search pattern edit screen shown in FIG. 3 is displayed. This pattern edit screen is a screen that graphically displays the search pattern created / edited by the user, a "load / save" button to read or write the search pattern from a file, and add or delete nodes to the search pattern. There is a "node" button for specifying, a "arc" button for adding or deleting an arc in the search pattern, and a "specify special search part" button for specifying a part in the search pattern where a special search is desired. As the type of special search method of "special search part designation",
There are "negative type", "repeated type" and "OR type".

【0026】探索用コード生成部13は、探索パターン
編集部11からの図式的に表現された探索パターンのデ
ータを受け取り、これを探索エンジン14が扱えるよう
なコードに変換することにより、探索用コードを生成す
る。探索エンジン14は、生成された探索用コードを受
け取り、探索用コードとして表現された探索パターンに
合致する部分を探索対象15から探索する。
The search code generation unit 13 receives the data of the search pattern represented graphically from the search pattern editing unit 11 and converts the data into a code that can be handled by the search engine 14 to obtain the search code. To generate. The search engine 14 receives the generated search code and searches the search target 15 for a part that matches the search pattern expressed as the search code.

【0027】探索方法部品17は、探索エンジン14で
の探索方法として、通常の探索方法の他に、例えば否定
的探索・繰り返し型探索・OR型探索や、ユーザが作成
して登録した特殊な探索方法等を指定するものである。
The search method component 17 is used as a search method in the search engine 14 in addition to a normal search method, for example, a negative search, an iterative search, an OR search, or a special search created and registered by the user. The method etc. are specified.

【0028】探索補足情報編集部品17は、例えば後述
する繰り返し探索に際して2つの繰り返しの基本構成間
相対的な接続関係を定義する等のために用いられる。
The search supplemental information editing component 17 is used, for example, to define a relative connection relationship between two repetitive basic configurations in a repetitive search described later.

【0029】本実施例のパターン探索装置では、図2に
そのパターン探索処理の概略的な流れをフローチャート
で示したように、まず探索方法部品16を作成し(S
1)、これを登録する(S2)。この後、探索パターン
編集部11により端末装置12上の探索パターン編集画
面を見ながら探索パターンを入力し(S3)、さらに特
殊探索部分を指定して(S4)、探索エンジン14によ
って探索対象15からの探索動作を実行する(S5)。
新しく探索方法を必要としない場合には、S1,S2の
ステップは不要である。以下、図1の各部の詳細な構成
と具体的な動作例について説明する。
In the pattern searching apparatus according to the present embodiment, as shown in the flow chart of the pattern searching process in FIG. 2, the searching method component 16 is first created (S
1) This is registered (S2). Thereafter, the search pattern editing unit 11 inputs the search pattern while looking at the search pattern editing screen on the terminal device 12 (S3), and further specifies the special search portion (S4). The search operation of is executed (S5).
If a new search method is not required, the steps S1 and S2 are unnecessary. Hereinafter, a detailed configuration of each unit in FIG. 1 and a specific operation example will be described.

【0030】図4は、探索パターン編集部11によって
作成あるいは編集された図式的に表現された探索パター
ンデータの一例であり、2つの抵抗が互いに接続された
ネットワーク構造を探索パターンとして定義している。
FIG. 4 is an example of the search pattern data that is created or edited by the search pattern editing unit 11 and is schematically expressed, and defines a network structure in which two resistors are connected to each other as a search pattern. .

【0031】図5は、図4の探索パターンデータを基に
探索用コード生成部13が生成した探索用コードの一例
である。1行目は、ここから「冗長抵抗縮退」という名
前が付けられた探索パターンのデータが始まることを意
味する。2行目から4行目までは、探索パターンに含ま
れる各ノードに関する情報が各ノード毎に1行で表現さ
れている。各ノードに関する情報としては、そのノード
が主としてどのような種類のノードかということと、そ
のノードが他のどのノードと接続されているかという情
報がある。なお、このようなネットワーク構造以外に
も、例えば「抵抗の値は10Ω以上」、「2つの抵抗は
同じタイプの抵抗」といった条件がつく場合もあり得る
が、本実施例においてはこのような条件がない場合につ
いて説明を行なう。
FIG. 5 shows an example of the search code generated by the search code generator 13 based on the search pattern data of FIG. The first line means that the data of the search pattern named "redundant resistance degeneration" starts from here. From the second line to the fourth line, information about each node included in the search pattern is represented by one line for each node. The information about each node includes mainly what kind of node the node is and what other node the node is connected to. In addition to such a network structure, conditions such as "the resistance value is 10 Ω or more" and "the two resistors are the same type of resistance" may be present, but in the present embodiment, such a condition is set. The case where there is no description will be described.

【0032】図5の2行目は、該当するノードに抵抗が
一つあり、そのID番号(システムが探索パターン中の
他のノードとの識別のために付加するもの)は1である
ことを示している。また、図5の( )内は他のノード
との接続情報を示しており、2行目はID番号が2のノ
ードと接続されていることを示している。図5の3行目
は、該当するノードにID番号が2の配線が一つあり、
ID番号が1および3のノードと接続されていることを
示している。図5の6行目は、探索パターンのデータが
終りであることを示している。
The second line in FIG. 5 indicates that the corresponding node has one resistor and its ID number (which the system adds to distinguish it from other nodes in the search pattern) is 1. Shows. Further, () in FIG. 5 shows connection information with other nodes, and the second line shows that the connection is made with the node having the ID number of 2. In the third line of FIG. 5, there is one wire with ID number 2 in the corresponding node,
It is shown that the nodes having ID numbers 1 and 3 are connected. The 6th line in FIG. 5 indicates that the data of the search pattern ends.

【0033】本実施例においては、図6に示されるよう
な電子回路を対象としてパターン探索を行なう。図6に
示された回路のデータは、例えば図7のようなものにな
る。図7は、各行が一つのノードに関する情報を表して
いる。各行はノードの種類、ノード名および接続情報
(の並び)からなっている。接続情報は、配線以外のノ
ードについて、そのノードがどの配線に接続されている
かを示している。例えば、NPNトランジスタの場合
は、並んでいる順に、コレクタ・ベース・エミッタがそ
れぞれどの配線に接続されているかを示しており、TR
1はコレクタが配線N1に、ベースはどこにも接続して
おらず(“−”は、接続されている配線がないことを示
すものとする)、エミッタは配線N2に接続されている
ことを示している。
In this embodiment, a pattern search is performed for an electronic circuit as shown in FIG. The data of the circuit shown in FIG. 6 is as shown in FIG. 7, for example. In FIG. 7, each row represents information about one node. Each line consists of a node type, node name, and connection information (arrangement). The connection information indicates, for a node other than the wiring, which wiring the node is connected to. For example, in the case of an NPN transistor, it shows which wiring the collector, the base, and the emitter are connected to in the order in which they are arranged.
1 indicates that the collector is connected to the wiring N1 and the base is not connected to anything ("-" indicates that there is no wiring connected), and the emitter is connected to the wiring N2. ing.

【0034】次に、図8を参照して探索エンジン14に
おける通常探索と、否定型探索、繰り返し型探索および
OR型探索等の特殊探索の場合の動作例を説明する。
Next, referring to FIG. 8, an operation example in the search engine 14 in the case of a normal search and a special search such as a negative search, an iterative search and an OR search will be described.

【0035】説明する。A description will be given.

【0036】(通常探索の場合)探索エンジン14は探
索開始後、図5に示される探索用コードを探索用コード
生成部13から読み込んで探索を行なう(S11〜S1
4)。図5の例では、まず2行目の抵抗を探索する。こ
の場合、2行目の抵抗は最初の要素であり、他のノード
との接続関係の条件を調べることはできないので、種類
が抵抗であるものを図7の先頭から探索してゆき、条件
に合うものとして抵抗R1を取り出す。最初の要素が見
つかったので、次の要素を取り出す。図5の例では、3
行目の配線を探索する。すなわち、配線であって既に見
つかっている抵抗R1に接続されているものを探索す
る。この探索では図7のデータより配線N2とN3が取
り出されるが、まずN2について調べる。
(In the case of normal search) After the search is started, the search engine 14 reads the search code shown in FIG. 5 from the search code generator 13 and performs the search (S11 to S1).
4). In the example of FIG. 5, first, the resistance in the second row is searched. In this case, the resistance in the second row is the first element, and the condition of the connection relation with another node cannot be checked. Therefore, the one whose type is resistance is searched from the beginning of FIG. The resistor R1 is taken out as a match. The first element was found, so the next element is fetched. In the example of FIG. 5, 3
Search the wiring in the row. That is, the wiring which is connected to the already found resistor R1 is searched. In this search, the wirings N2 and N3 are taken out from the data of FIG. 7, but first, N2 is examined.

【0037】次に、図5の4行目の抵抗を探索する。配
線N2に接続されている抵抗を探すために通常探索を行
ない(S14)、接続情報の部分にN2が現れている抵
抗を探し、探索が成功したか失敗したかを判定する(S
16)。この例では接続情報の部分に配線N2が現れて
いる抵抗は存在しないので、探索は失敗と判定する。そ
こで、この場合は前の要素に戻り(S17〜S18)、
3行目の配線の候補として残っている配線N3を取り出
して、探索を続ける(S13〜S16)。再び4行目の
抵抗を探索するが、やはり見つからず失敗する。
Next, the resistance on the fourth row in FIG. 5 is searched. A normal search is performed to search for a resistance connected to the wiring N2 (S14), a resistance in which N2 appears in the connection information portion is searched, and it is determined whether the search has succeeded or failed (S14).
16). In this example, there is no resistance in which the wiring N2 appears in the connection information portion, so the search is determined to have failed. Therefore, in this case, return to the previous element (S17 to S18),
The wiring N3 that remains as a wiring candidate for the third row is taken out and the search is continued (S13 to S16). It searches the resistance on the 4th line again, but it fails because it cannot be found.

【0038】そこで、再び前の要素に戻り、3行目の配
線の探索を続けようとするが、既に残っている候補がな
いので、さらに前の要素に戻り、2行目の抵抗として他
に適当なものがないかを探し、条件に合うものとして抵
抗R2を取り出す。この場合、次の要素である配線の候
補としてはN1とN4があり、まずN1を取り出して調
べるが、この配線N1には他に抵抗が接続されていない
ので探索は失敗し、次にN4を候補として取り出す。次
に、配線N4に接続されている抵抗を探索すると、抵抗
R3が見つかり、S17で探索が成功したと判定され
る。
Then, returning to the previous element again, an attempt is made to continue the search for the wiring on the third row. However, since there are no candidates left, the element is returned to the previous element and another resistance is added on the second row. Search for an appropriate one, and take out the resistor R2 as one that meets the conditions. In this case, there are N1 and N4 as wiring candidates which are the next elements. First, N1 is taken out and examined, but the search fails because no other resistor is connected to this wiring N1, and then N4 is selected. Take it out as a candidate. Next, when the resistance connected to the wiring N4 is searched, the resistance R3 is found, and it is determined that the search is successful in S17.

【0039】こうして探索が成功すると、その度に探索
した要素が最後の要素かどうかが判定され(S19)、
最後の要素でなければS12に戻り、最後の要素であれ
ば探索結果を出力する(S20)。この例の場合、抵抗
R3は図5に含まれる最後の要素であるので、抵抗R2
・配線N4・抵抗R3の組合せで、一つ条件を満たす部
分構造が見つかったことになり、これが探索結果として
端末装置2で表示出力される。
When the search is successful in this way, it is determined each time whether the searched element is the last element (S19),
If it is not the last element, the process returns to S12, and if it is the last element, the search result is output (S20). In the case of this example, resistor R3 is the last element included in FIG.
The combination of the wiring N4 and the resistor R3 means that a partial structure satisfying one condition is found, and this is displayed and output as a search result on the terminal device 2.

【0040】以下、同様に探索を続けて最終的に得られ
た探索結果の表示例が図9であり、点線で囲まれた「R
2・N4・R3」、「R3・N6・R4」、「R4・N
8・R5」という3つのパターンが探索されたことを示
している。
A display example of the search result finally obtained by continuing the search in the same manner is shown in FIG. 9 and is surrounded by a dotted line "R".
2 / N4 / R3 "," R3 / N6 / R4 "," R4 / N "
It indicates that three patterns "8.R5" have been searched.

【0041】(否定型探索の場合)ここで、上述した3
つの探索結果のうち、実際に欲しかったのは「R4・N
8・R5」のみで、他の2つは誤りであったとする。他
の2つの場合には、パターン中に含まれる配線にトラン
ジスタが接続されているので、このようなものを排除す
れば良いが、通常の記述したパターンをそのまま探すや
り方ではこれを表現できない。
(In case of negative type search) Here, the above-mentioned 3
Of the two search results, what I really wanted was "R4 ・ N
8 · R5 ”only, and the other two are wrong. In the other two cases, since the transistor is connected to the wiring included in the pattern, such a thing should be eliminated, but this cannot be expressed by the ordinary method of directly searching the described pattern.

【0042】そこで、このような配線に接続されていな
いトランジスタの部分を否定型探索で探す。否定型探索
において探索パターンに指定を行った例を図10に示
す。図10において“NOT”というラベルのついた点
線の四角で囲まれた部分が否定型探索を行なうことを示
しており、この場合は2つの抵抗が配線で接続されてい
て、この配線にトランジスタのベースが接続されていな
い部分を探索することを意味する。
Therefore, a portion of the transistor which is not connected to such a wiring is searched for by a negative type search. FIG. 10 shows an example in which the search pattern is specified in the negative type search. In FIG. 10, a portion surrounded by a dotted line box labeled “NOT” indicates that a negative type search is performed. In this case, two resistors are connected by a wiring, and a transistor of the transistor is connected to this wiring. It means to search the part where the base is not connected.

【0043】図11は、探索パターン編集部11によっ
て作成した図10の探索パターンデータを基に探索用コ
ード生成部13が生成した探索用コードの一例である。
図11において、4行目までは図5と全く同じである。
図11の5行目は、ここから第1番目の否定探索ブロッ
クが始まり(否定探索ブロックに複数のブロックが含ま
れる場合があり得るので、このように番号が付けられて
いる)、7行目で終ることが示されている。図11の6
行目が、この場合の否定探索ブロックの中身であり、I
D番号が2のノードにベースが接続されているトランジ
スタが存在してはいけないことを意味する。但し、この
例のように( )内がID番号のみでない場合、その名
前で指定された端子と接続されているという条件を意味
するものとする。
FIG. 11 shows an example of the search code generated by the search code generator 13 based on the search pattern data of FIG. 10 created by the search pattern editor 11.
In FIG. 11, the process up to the fourth line is exactly the same as in FIG.
In line 5 of FIG. 11, the first negative search block starts from here (numbered in this way because the negative search block may include multiple blocks), line 7 It is shown to end with. 6 of FIG.
The line is the contents of the negative search block in this case, I
This means that a transistor whose base is connected to the node having the D number of 2 must not exist. However, if the number in parentheses is not only the ID number as in this example, it means that the terminal is connected to the terminal designated by the name.

【0044】この場合の探索動作は、2つの抵抗と1つ
の配線を見つけるところまでは先の例と同じである。こ
の後の動作、例えばR2・N4・R3の組合せを見つけ
た後の動作は次のようになる。次の探索の要素は、図1
1の5行目のトランジスタであるが、これは上述のよう
に否定探索ブロック内にあるので、否定探索ルーチンが
コールされる。NPNトランジスタであって配線N4に
ベースが接続されている(接続情報のデータの2番目の
フィールドに“N4”が現れている)ものを回路データ
上で探索すると、TR2が条件を満たすことがわかる。
否定探索ブロックに含まれる部分は、一つでも該当する
ものが見つかるとそのブロックの探索が失敗するので、
前の要素に戻りR3以外のN4に接続されている抵抗を
探すことになる。
The search operation in this case is the same as the previous example up to the point of finding two resistors and one wiring. The operation after this, for example, the operation after finding the combination of R2, N4 and R3 is as follows. The next search element is shown in FIG.
The transistor in the fifth row of 1 is in the negative search block as described above, so the negative search routine is called. If a circuit is searched for an NPN transistor whose base is connected to the wiring N4 (“N4” appears in the second field of the connection information data), it is found that TR2 satisfies the condition. .
For the part included in the negative search block, the search of that block will fail if any one is found,
We will return to the previous element and look for a resistor connected to N4 other than R3.

【0045】以下、同様に探索を行なっていくと、「R
3・N6・R4」の組合せの場合もTR3が見つかるの
で探索は失敗し、結局、R4・R5の場合のみ探索が成
功することになり、図12に示されるように正しい結果
が得られるようになる。
When the search is repeated in the same manner, "R
Even in the case of the combination of "3.N6.R4", the search fails because TR3 is found. In the end, the search succeeds only in the case of R4.R5 so that the correct result can be obtained as shown in FIG. Become.

【0046】(繰り返し型探索の場合)また、図4の探
索パターンでは、図9の点線で示されるように重なりの
ある2つずつの抵抗の組が多く出てきてしまい、同じよ
うな構造が連続して存在していてもそれをまとめて1つ
のものとして探索することができない。入力した探索パ
ターンと全く同じ形の部分を探すことしかできないと、
まとめた形のものを探索するには2重の場合、3重の場
合、…というようにそれぞれの個数の探索パターンを用
意しておかなければならなくなり、用意しておいた個数
より多い場合は探索できなくなってしまう。そこで、繰
り返し探索を用いることによって、1つの探索パターン
によってまとめた形のものを全て探索することができ
る。
(Case of Iterative Search) Further, in the search pattern of FIG. 4, a large number of overlapping pairs of two resistors as shown by the dotted line in FIG. 9 appear, and a similar structure is obtained. Even if they exist continuously, they cannot be searched collectively as one. If you can only search for the part that has exactly the same shape as the input search pattern,
In order to search for the grouped form, it is necessary to prepare the search pattern for each number of times such as double case, triple case, ... You will not be able to search. Therefore, by using the iterative search, it is possible to search all of the forms summarized by one search pattern.

【0047】図13は、探索パターン編集部11上で2
つの抵抗、1つの配線および1つのトランジスタからな
る基本構成と、そのうち1つの抵抗、1つの配線および
1つのトランジスタから成る部分が繰り返されても良い
ような探索パターンを定義したものを示している。この
データから探索用コードを生成したものが図14であ
る。
In FIG. 13, the search pattern editing unit 11 displays 2
It shows a basic configuration consisting of one resistance, one wiring and one transistor, and a search pattern defined such that a portion consisting of one resistance, one wiring and one transistor may be repeated. FIG. 14 shows a search code generated from this data.

【0048】図14において、2行目は抵抗が1つあ
り、そのID番号は1であることを示している。3行目
は、ここから繰り返し探索ブロック1が始まり(複数の
ブロックが含まれる場合があり得るので、番号が付けら
れている)、10行目で終ることを示している。3〜5
行目は、繰り返しの基本構成を示している。6行目は、
ここから2つの基本構成間の相対的な接続関係を定義す
る部分が始まることを示している。6行目〜9行目は、
相対的な接続関係を定義するための2つ目の基本構成と
その接続の情報を示している。
In FIG. 14, the second line shows that there is one resistor and its ID number is 1. The third line shows that the repeated search block 1 starts from here (it is numbered as it may contain a plurality of blocks) and ends at the 10th line. 3-5
The line shows the basic structure of the repetition. The sixth line is
From here, it is shown that the part that defines the relative connection relationship between the two basic configurations begins. Lines 6-9 are
The second basic configuration for defining a relative connection relationship and information about the connection are shown.

【0049】一般に、探索パターンを図13のように表
現しただけでは繰り返しの基本構成がどのように繰り返
されるのかという繰り返し構造が一意に決まらない。す
なわち、その基本構成が図15の(A)(B)のいずれ
の形で繰り返されるのか、あるいはもっと別の繰り返し
方をするのかということがわからない。そこで、図16
に示すような繰り返し探索の場合に特別に必要になる情
報を入力するためのエディタとして、図1の探索補足情
報編集部品17を利用し、2つの繰り返しの基本構成の
間の相対的な接続関係を定義することによって、繰り返
し構造を明示することができる。
In general, merely expressing the search pattern as shown in FIG. 13 does not uniquely determine the repeating structure of how the basic repeating structure is repeated. In other words, it is not known in which form (A) or (B) of FIG. 15 the basic structure is repeated, or whether it is repeated in another way. Therefore, FIG.
The search supplementary information editing component 17 of FIG. 1 is used as an editor for inputting information specifically required in the case of the iterative search as shown in FIG. By defining, the repeating structure can be specified.

【0050】この場合の繰り返し探索の動作は、次のよ
うになる。一つの基本構成を見つけるまでは通常の探索
と同様であるので、最初の抵抗R2と基本構成としてN
4・R3・TR2を見つけたところから説明を行なう。
The iterative search operation in this case is as follows. It is the same as a normal search until one basic configuration is found, so the first resistor R2 and the basic configuration N
The explanation starts from the point where 4R3TR2 is found.

【0051】繰り返し探索では、探索対象15から基本
構成が繰り返されている構造を探索するので、再び基本
構成の最初の要素である配線を探索するが、探索パター
ン編集部11内に設けられた繰り返し構造編集部によっ
て定義された相対的な接続関係より、既に見つかってい
る基本構成の中の抵抗(この場合、R3)に接続されて
いるものとして、配線N6を見つけ出す。さらに、この
配線N6に接続されている抵抗としてR4、またN6に
ベースが接続されているNPNトランジスタとしてTR
3がそれぞれ探索され、2つ目の基本構成の探索が成功
する。次に、3つ目の基本構成の要素の探索として、配
線N8と抵抗R5が探索されるが、配線N8にベースで
継るNPNトランジスタがないためこの探索は失敗す
る。結局、この例の繰り返し探索においては2重の基本
構成の探索に成功したことになるので、図17に示され
るような探索結果が得られることになる。
In the iterative search, since the structure in which the basic configuration is repeated is searched from the search target 15, the wiring which is the first element of the basic configuration is searched again. However, the repeat provided in the search pattern editing unit 11 is performed. From the relative connection relationship defined by the structure editing unit, the wiring N6 is found as being connected to the resistor (R3 in this case) in the already found basic configuration. Further, TR is used as a resistor connected to the wiring N6 and R4 as an NPN transistor whose base is connected to N6.
3 are respectively searched, and the search for the second basic configuration is successful. Next, as a search for the element of the third basic configuration, the wiring N8 and the resistor R5 are searched, but this search fails because there is no NPN transistor succeeding at the base to the wiring N8. After all, in the iterative search of this example, the search of the double basic configuration has succeeded, so that the search result as shown in FIG. 17 is obtained.

【0052】(OR型探索の場合)また、図18におい
て「TR1・N2・R1・N3・TR2」で構成される
部分構造(C)と「TR3・N5・TR4」で構成され
る部分構造(D)は、機能的には同じ差動型増幅回路で
あり、形も抵抗の有無の違いだけで非常に良く似ている
が、同じ形のものだけを探索する場合、別々の探索パタ
ーンとして記述しなければならない。そこで、OR型探
索部分を指定して探索パターンを図19のように記述す
る。“OR”というラベルのついた点線の四角で囲まれ
ている部分の中に記述された(1)および(2)の2つ
のサブブロックは、いずれか一方でも存在すれば探索に
成功する。なお、ここで(2)のサブブロックは空のサ
ブブロックである。
(In case of OR type search) Further, in FIG. 18, a partial structure (C) composed of "TR1, N2, R1, N3, TR2" and a partial structure composed of "TR3, N5, TR4" ( D) is a differential amplifier circuit that is functionally the same, and the shapes are also very similar only in the presence or absence of resistance, but when searching for only those of the same shape, they are described as separate search patterns. Must. Therefore, the search pattern is described as shown in FIG. 19 by designating the OR type search part. The two sub-blocks (1) and (2) described in the part surrounded by a dotted line box labeled "OR" are successfully searched if any one of them exists. The subblock (2) is an empty subblock.

【0053】図20は、探索パターン編集部によって作
成した図19の探索パターンデータを基に、探索用コー
ド生成部が生成した探索用コードの一例である。3行目
から6行目がOR型探索ブロックを示している。4〜5
行目が1つ目のOR型サブブロックを、6行目はサブブ
ロックの区切りを示しており、通常はこの後に2つ目の
サブブロックの構成要素が並べられるが、この場合、空
であるのですぐにOR型探索ブロックの終りを示す7行
目が続いている。8〜9行目はまた、通常の探索ブロッ
クである。
FIG. 20 shows an example of the search code generated by the search code generation section based on the search pattern data of FIG. 19 created by the search pattern editing section. The 3rd to 6th lines indicate the OR type search block. 4-5
The first row is the OR sub-block, and the sixth row is the sub-block delimiter. Usually, the constituent elements of the second sub-block are arranged after this, but in this case it is empty. Therefore, the 7th line indicating the end of the OR type search block immediately follows. Lines 8-9 are also normal search blocks.

【0054】OR型探索の動作は、次のようになる。ま
ず、最初の要素としてNPNトランジスタを探索し、T
R1が取り出される。次に、OR型探索ブロックに入
り、まず(1)のブロックを探索し、N2・R1が取り
出される。次に、通常探索でN3・TR2を取り出し
て、1つの探索に成功する。9行目のNPNトランジス
タ、8行目の配線とも別に取り出せるノードはないの
で、再びOR型探索ブロックに戻る。(1)のブロック
は別に取り出せるノードがないので(2)に移る。ここ
で(2)は空なので、何も探索を行なわなくとも探索が
成功して次に進むが、次に取り出した配線N2に接続さ
れるNPNトランジスタがないため、探索に失敗する。
The operation of the OR type search is as follows. First, search for an NPN transistor as the first element, and
R1 is taken out. Next, the OR type search block is entered, and the block (1) is searched first, and N2.R1 is taken out. Next, N3 / TR2 is taken out in the normal search, and one search is successful. Since there is no node that can be taken out separately from the NPN transistor of the ninth row and the wiring of the eighth row, the operation returns to the OR type search block again. The block of (1) does not have a node that can be fetched separately, so the process moves to (2). Here, since (2) is empty, the search succeeds and proceeds to the next without performing any search, but the search fails because there is no NPN transistor connected to the next extracted wiring N2.

【0055】また、最初のNPNトランジスタとして、
TR3を取り出した時点での動作は以下のようになる。
OR型探索ブロックに入り、(1)のサブブロックの4
行目の配線としてN5が取り出せるが、これに接続する
抵抗がないため、このサブブロックの探索には失敗す
る。次にサブブロック(2)に移るが、このブロックは
空であるので、何も取り出さずに探索に成功し、8行目
の配線としてN5、9行目のNPNトランジスタとして
TR4をそれぞれ取り出して探索に成功する。このよう
にして、抵抗がある場合とない場合を一つの探索パター
ンで表現することができる。
As the first NPN transistor,
The operation when TR3 is taken out is as follows.
Enter the OR-type search block, and enter sub-block 4 of (1)
Although N5 can be taken out as the wiring of the row, the search for this sub-block fails because there is no resistance connected to it. Next, in sub-block (2), since this block is empty, the search succeeds without taking anything out, and N5 is taken out as the wiring of the eighth row and TR4 is taken out as the NPN transistor of the ninth row. To succeed. In this way, the case where there is resistance and the case where there is no resistance can be expressed by one search pattern.

【0056】なお、本発明は上記実施例に限定されるも
のではなく、種々変形して実施が可能である。例えば、
繰り返し型探索の際に繰り返し回数の下限あるいは上限
を指定して、下限以下の繰り返し回数の場合や上限以上
の繰り返し回数の場合は、探索に失敗するようにするこ
ともできる。
The present invention is not limited to the above embodiment, but various modifications can be carried out. For example,
It is also possible to specify the lower limit or the upper limit of the number of iterations during the iterative search so that the search fails if the number of iterations is less than or equal to the lower limit or greater than or equal to the upper limit.

【0057】また、同じく繰り返し探索の際に、同一部
分に関しては繰り返しの回数が最大の場合にのみ探索が
成功するようにし、重複を避けることもできる。
Similarly, in the repeated search, it is possible to avoid the duplication by making the search successful only when the number of repetitions of the same portion is maximum.

【0058】実施例では、OR型探索においてサブブロ
ックの数を2つとしたが、実際は幾つあっても構わな
い。さらに、OR型探索においてサブブロック数が2で
空のサブブロックを含むものは、空でないサブブロック
が省略可能であるとして探索を行なったのと同じであ
る。
In the embodiment, the number of sub-blocks is two in the OR-type search, but in practice, it may be any number. Furthermore, in the OR-type search, the number of sub-blocks including 2 and an empty sub-block is the same as the search performed assuming that the non-empty sub-block can be omitted.

【0059】また、否定探索や繰り返し型探索のような
特別な探索方法を実現するルーチンや繰り返し構造編集
部のようにその探索方法を行なうように必要な情報を入
力するためのエディタを、探索エンジンや探索パターン
編集部から起動する場合のインタフェースを決めて探索
方法部品16や探索補足情報入力部品17として自由に
登録・起動できるようにすることによって、後から新た
に特別な探索方法を容易に追加することができる。
Further, a routine for realizing a special search method such as a negative search or an iterative search, or an editor for inputting information necessary for performing the search method, such as an iterative structure editing section, is provided with a search engine. A special search method can be easily added later by deciding an interface for starting from the search pattern editing unit and freely registering and starting as the search method component 16 or the search supplemental information input component 17. can do.

【0060】実施例では、探索用コード中に含まれる各
ノードに対する条件として、ノードの種類と他のノード
との接続情報だけを調べたが、各ノードの属性値に対す
る条件やノード間で行なう属性値の比較等を探索の際の
条件として加え、それらの条件も満たされた場合に探索
が成功するようにすることも可能である。
In the embodiment, as the condition for each node included in the search code, only the node type and the connection information with other nodes are examined. However, the condition for the attribute value of each node and the attribute to be performed between nodes are examined. It is also possible to add a value comparison or the like as a condition for searching, and to make the search successful if those conditions are also satisfied.

【0061】実施例では、電子回路を表現するために配
線をノードとして取り扱ったが、抵抗・トランジスタ等
の素子のみをノードとするようなデータを処理すること
も可能である。電子回路以外の例えば電力系統、上下水
道の管網、電話の回線網、計算機ネットワーク、あるい
は器械の構成のようなものも、本発明による探索対象と
することができる。
In the embodiment, the wiring is treated as a node to represent an electronic circuit, but it is also possible to process data in which only elements such as resistors and transistors are used as nodes. Other than an electronic circuit, for example, a power system, a water supply / sewerage network, a telephone line network, a computer network, or an instrument structure can also be searched by the present invention.

【0062】[0062]

【発明の効果】以上説明したように、本発明によれば探
索パターンを図式的に記述しておき、これをコード変換
して探索用コードを生成し、探索エンジンに適用するこ
とによって、手続き的なプログラミング言語やルールの
形式で記述した探索プログラムを用いた場合に比較し
て、探索内容の直感的な理解が可能であり、そのデバッ
グや修正も容易であるため、パターン探索を的確かつ効
率的に行なうことが可能となる。
As described above, according to the present invention, a search pattern is graphically described, the code is converted to generate a search code, and the search code is applied to the search engine to obtain a procedural procedure. Compared with the case of using a search program written in various programming languages or rules, the search contents can be intuitively understood and can be debugged and modified easily, so pattern search can be performed accurately and efficiently. It becomes possible to do it.

【0063】また、探索パターンに合致する部分のう
ち、通常と異なる探索方法を行なう部分についても図式
的に指定ができるようにし、その指定部分について通常
の探索方法の他に、否定的探索・繰り返し型探索・OR
型探索・省略可能探索やユーザが作成して登録した特殊
な探索方法を適用することによって、これらの特殊・複
雑な探索パタンについても、図式的な記述により効率的
な探索を可能とすることができる。
Further, among the parts that match the search pattern, a part for which an unusual search method is performed can be designated graphically, and the specified part can be negatively searched / repeated in addition to the normal search method. Type search / OR
By applying the type search, omissible search, and the special search method created and registered by the user, it is possible to efficiently search these special and complicated search patterns with a schematic description. it can.

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

【図1】本発明の一実施例に係るパターン探索装置の構
成を示すブロック図
FIG. 1 is a block diagram showing a configuration of a pattern search device according to an embodiment of the present invention.

【図2】同実施例におけるパターン探索の概略的な処理
の流れを示すフローチャート
FIG. 2 is a flowchart showing a schematic process flow of pattern search in the embodiment.

【図3】同実施例における探索パターン編集画面の例を
示す図
FIG. 3 is a diagram showing an example of a search pattern edit screen in the embodiment.

【図4】探索パターンの一例を示す図FIG. 4 is a diagram showing an example of a search pattern.

【図5】図4の探索パターンに対応する探索用コードの
一例を示す図
5 is a diagram showing an example of a search code corresponding to the search pattern of FIG.

【図6】同実施例における探索対象の一例である電子回
路を示す図
FIG. 6 is a diagram showing an electronic circuit which is an example of a search target in the embodiment.

【図7】図6の電子回路に係る回路データを示す図7 is a diagram showing circuit data relating to the electronic circuit of FIG. 6;

【図8】同実施例における探索エンジンのパターン探索
動作を示すフローチャート
FIG. 8 is a flowchart showing a pattern search operation of the search engine in the embodiment.

【図9】図6の電子回路に対する探索結果の表示出力例
を示す図
9 is a diagram showing a display output example of search results for the electronic circuit of FIG.

【図10】同実施例における否定型探索に使用される探
索パターンの例を示す図
FIG. 10 is a diagram showing an example of a search pattern used for a negative type search in the embodiment.

【図11】図10の探索パターンに対応する探索用コー
ドの例を示す図
11 is a diagram showing an example of a search code corresponding to the search pattern of FIG.

【図12】図6の電子回路に対して否定型探索を行った
ときの探索結果の表示出力例を示す図
12 is a diagram showing a display output example of search results when a negative search is performed on the electronic circuit of FIG.

【図13】同実施例における繰り返し型探索に使用され
る探索パターンの例を示す図
FIG. 13 is a diagram showing an example of a search pattern used for an iterative search in the embodiment.

【図14】図13の探索パターンに対応する探索用コー
ドの例を示す図
14 is a diagram showing an example of a search code corresponding to the search pattern of FIG.

【図15】図13の探索パターンを含む種々の繰り返し
構造の例を示す図
FIG. 15 is a diagram showing examples of various repeating structures including the search pattern of FIG.

【図16】図13の繰り返し構造の中から繰り返し部分
接続関係定義エディタにより定義された繰り返し構造の
表示例を示す図
16 is a diagram showing a display example of a repeating structure defined by a repeating partial connection relation definition editor from the repeating structure of FIG.

【図17】図6の電子回路に対して繰り返し型探索を行
ったときの探索結果の表示出力例を示す図
17 is a diagram showing an example of display output of search results when an iterative search is performed on the electronic circuit of FIG.

【図18】図6の電子回路に対してOR型探索を行った
ときの探索結果の表示出力例を示す図
18 is a diagram showing a display output example of search results when an OR type search is performed on the electronic circuit of FIG. 6;

【図19】同実施例におけるOR型探索に使用される探
索パターンの例を示す図
FIG. 19 is a diagram showing an example of a search pattern used for an OR-type search in the embodiment.

【図20】図19の探索パターンに対応する探索用コー
ドの例を示す図
20 is a diagram showing an example of a search code corresponding to the search pattern of FIG.

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

11…探索パターン編集部 12…端末装置 13…探索用コード生成部 14…探索エンジン 15…探索対象 16…探索方法部品 17…探索補足情報編集部品 11 ... Search pattern editing unit 12 ... Terminal device 13 ... Search code generating unit 14 ... Search engine 15 ... Search target 16 ... Search method component 17 ... Search supplemental information editing component

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】ノードの集合とノード間のアークとからな
るネットワークとして表現される対象から指定された特
定の探索パターンに合致する部分を探索するパターン探
索装置において、 前記探索パターンを図式的に記述する探索パターン編集
手段と、 前記探索パターン編集手段で図式的に表現された探索パ
ターンをコード変換して探索用コードを生成する探索用
コード生成手段と、 前記探索用コード生成手段により生成された探索用コー
ドを受け取り、前記対象の中から該探索用コードとして
表現された前記探索パターンに合致する部分を探索する
探索手段とを備えることを特徴とするパターン探索装
置。
1. A pattern search device for searching a part matching a specified search pattern from an object represented as a network consisting of a set of nodes and arcs between nodes, wherein the search pattern is described graphically. Search pattern editing means, a search code generating means for converting the search pattern schematically expressed by the search pattern editing means to generate a search code, and a search generated by the search code generating means And a search means for receiving a search code and searching a portion of the object that matches the search pattern expressed as the search code.
【請求項2】前記探索パターン編集手段は、前記探索パ
ターンに合致する部分のうち否定的に探索を行なうべき
部分を図式的に指定できるものであり、前記探索用コー
ド生成手段は、該探索パターン編集手段で図式的に指定
された否定的に探索を行なうべき部分を否定探索ブロッ
クとして含む探索用コードに変換するものであり、前記
探索手段は、該否定探索ブロックに関してはそのブロッ
クに含まれているパターンが存在しなかった場合に探索
が成功したものとするものであることを特徴とする請求
項1記載のパターン探索装置。
2. The search pattern editing means is capable of graphically designating a portion to be negatively searched out of a portion matching the search pattern, and the search code generating means is provided for the search pattern generating means. The editing means converts into a search code including a portion to be negatively specified to be graphically designated as a negative search block, and the searching means is included in the negative search block. The pattern search apparatus according to claim 1, wherein the search is successful if there is no existing pattern.
【請求項3】前記探索パターン編集手段は、前記探索パ
ターンに合致する部分のうち繰り返し探索を行なうべき
部分を図式的に指定できるとともに、該繰り返し探索を
行なうものとして図式的に指定した部分の繰り返し構造
を定義できるものであり、前記探索用コード生成手段
は、前記探索パターン編集手段で図式的に指定された繰
り返し探索を行なうべき部分と該繰り返し構造とを繰り
返し探索ブロックとして含む探索用コードに変換するも
のであり、前記探索手段は、該繰り返し探索ブロックに
関してはブロックに含まれているパターンが複数回繰り
返されている場合にも探索が成功したものとするもので
あることを特徴とする請求項1記載のパターン探索装
置。
3. The search pattern editing means is capable of graphically designating a portion to be iteratively searched out of the portions matching the search pattern, and repeating the portion graphically designated to perform the iterative search. A structure can be defined, and the search code generation means converts the search code including a portion to be repeatedly searched, which is graphically designated by the search pattern editing means, and the repeated structure as a repeated search block. The search means is characterized in that the search is successful even when the pattern included in the repeated search block is repeated a plurality of times. 1. The pattern search device according to 1.
【請求項4】前記探索パターン編集手段は、前記探索パ
ターンに合致する部分のうちOR型探索を行なうべき複
数の部分パターンを図式的に記述できるものであり、前
記探索用コード生成手段は、前記探索パターン編集手段
で図式的に指定されたOR型探索を行なうべき部分をO
R型探索ブロックとして含む探索用コードに変換するも
のであり、前記探索手段は、該指定された部分に関して
は前記探索パターン編集手段で記述された複数の探索パ
ターンのいずれかに合致する部分が存在した場合に探索
が成功したものとするものであることを特徴とする請求
項1記載のパターン探索装置。
4. The search pattern editing means is capable of graphically describing a plurality of partial patterns to be OR-searched in a portion matching the search pattern. The portion to be subjected to the OR type search that is graphically designated by the search pattern editing means is O
The search means is to be converted into a search code included as an R-type search block, and the search means has a part that matches any of the plurality of search patterns described by the search pattern editing means. The pattern search apparatus according to claim 1, wherein the search is successful if the pattern search is performed.
【請求項5】前記探索手段は、探索方法を実現するため
の探索方法部品を予め登録することができると共に、前
記探索パターンに含まれる特定の部分を指定された探索
方法に応じた探索方法部品によって探索するものであ
り、前記探索パターン編集手段は、前記探索方法部品に
よる探索を行なうために必要な補足情報を入力する探索
補足情報入力部品を予め登録すると共に、前記探索方法
部品による探索を行なうべき部分を指定することがで
き、さらに必要に応じて補足情報を入力するための探索
補足情報入力部品を起動するものであることを特徴とす
る請求項1記載のパターン探索装置。
5. The search means can pre-register a search method component for realizing a search method, and a search method component corresponding to a search method in which a specific portion included in the search pattern is designated. The search pattern editing means preliminarily registers a search supplemental information input component for inputting supplementary information necessary for performing the search by the search method component, and performs the search by the search method component. 2. The pattern searching apparatus according to claim 1, wherein a power portion can be designated, and a search supplemental information input component for inputting supplementary information is activated as necessary.
JP5030914A 1992-12-28 1993-02-19 Pattern searching device Pending JPH06243168A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP5030914A JPH06243168A (en) 1993-02-19 1993-02-19 Pattern searching device
US08/173,082 US5587918A (en) 1992-12-28 1993-12-27 Circuit pattern comparison apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5030914A JPH06243168A (en) 1993-02-19 1993-02-19 Pattern searching device

Publications (1)

Publication Number Publication Date
JPH06243168A true JPH06243168A (en) 1994-09-02

Family

ID=12316971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5030914A Pending JPH06243168A (en) 1992-12-28 1993-02-19 Pattern searching device

Country Status (1)

Country Link
JP (1) JPH06243168A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115934980A (en) * 2022-12-02 2023-04-07 珠海芯聚科技有限公司 Layout graph search processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63226769A (en) * 1987-03-17 1988-09-21 Toshiba Corp Information retrieving device
JPH02226365A (en) * 1989-02-28 1990-09-07 Mitsubishi Electric Corp Picture retrieving device
JPH0354670A (en) * 1989-07-21 1991-03-08 Mitsubishi Electric Corp Picture retrieving device
JPH04217073A (en) * 1990-12-19 1992-08-07 Fuji Xerox Co Ltd Document retrieving device in document accumulating system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63226769A (en) * 1987-03-17 1988-09-21 Toshiba Corp Information retrieving device
JPH02226365A (en) * 1989-02-28 1990-09-07 Mitsubishi Electric Corp Picture retrieving device
JPH0354670A (en) * 1989-07-21 1991-03-08 Mitsubishi Electric Corp Picture retrieving device
JPH04217073A (en) * 1990-12-19 1992-08-07 Fuji Xerox Co Ltd Document retrieving device in document accumulating system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115934980A (en) * 2022-12-02 2023-04-07 珠海芯聚科技有限公司 Layout graph search processing method, device, equipment and storage medium
CN115934980B (en) * 2022-12-02 2023-09-08 珠海芯聚科技有限公司 Layout graph search processing method and device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US7231571B2 (en) Single-pass methods for generating test patterns for sequential circuits
JPH07302281A (en) Logic simulation system and logic changing method
CN111124379A (en) Page generation method and device, electronic equipment and storage medium
JPH08137873A (en) Information editing device for logic common to documents
US5754442A (en) Path analyzing displaying apparatus for designing logic circuit
JP3444948B2 (en) Document editing apparatus and document editing method
JPH06243168A (en) Pattern searching device
US5587918A (en) Circuit pattern comparison apparatus
JPS6320529A (en) Knowledge acquiring system
JP3102222B2 (en) Knowledge acquisition method and its implementation device
JP6511793B2 (en) Test case generation program, test case generation method and test case generation apparatus
JP3602231B2 (en) Test pattern creation device
JP3696906B2 (en) Data input method and apparatus
JP3424558B2 (en) Object management method
JP3824468B2 (en) Data management system
JP2000113006A (en) Function logic verification for electronic circuit support system
JPH0969041A (en) Generation support method for software component
JPH10207923A (en) Document preparation supporting device in design work
JPS62106542A (en) Production system for control flow
JPH10162036A (en) Net list analyzing method
JP2908184B2 (en) Text file editing method and apparatus
JP2937381B2 (en) Integrated circuit design method and design apparatus
KR20040066440A (en) Method for building language model of speech recognition system
JPH1153411A (en) Circuit diagram editor
JPH1063675A (en) Data retrieving method and data retrieving device applying the method