JPH05342290A - Method and device for arranging elements - Google Patents

Method and device for arranging elements

Info

Publication number
JPH05342290A
JPH05342290A JP4147033A JP14703392A JPH05342290A JP H05342290 A JPH05342290 A JP H05342290A JP 4147033 A JP4147033 A JP 4147033A JP 14703392 A JP14703392 A JP 14703392A JP H05342290 A JPH05342290 A JP H05342290A
Authority
JP
Japan
Prior art keywords
elements
arrangement
force
data holding
space
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.)
Withdrawn
Application number
JP4147033A
Other languages
Japanese (ja)
Inventor
Shinji Sako
愼二 佐古
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 JP4147033A priority Critical patent/JPH05342290A/en
Publication of JPH05342290A publication Critical patent/JPH05342290A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To arrange deeply related elements adjacently at a high speed. CONSTITUTION:A pair of the elements whose distance inbetween is close is extracted by adjacent element pair extraction processing first. Then, attraction on the element is calculated by an attraction calculation processing, repulsion is calculated by a repulsion calculation processing, the sum fi of the attraction and the repulsion is found by a force calculation processing and force on the respective elements are found. At this time, the attraction fai on the element (i) is the sum of the attraction with all the elements except for the (i) and the repulsion fbi on the element (i) is the sum of the repulsion only with the elements adjacent to the element (i) obtained by the adjacent element extraction processing. Then, whether or not the magnitude of the force (f) on the element (i) is smaller than epsilon is decided by a completion decision processing, an arrangement processing is started when all ¦fi¦ is smaller than epsilon and a moving processing is started when all the ¦fi¦ is not smaller than epsilon. At the moving processing, the speed and the position of the element are changed for a minute time DELTA and the element is moved. Then, the adjacent element extraction processing is returned. At the arrangement processing, the distance between the elements are calculated and the elements are accordingly arranged.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は関係の深い要素同士を近
くに配置するための要素配置方法および装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and apparatus for arranging closely related elements.

【0002】[0002]

【従来の技術】要素の集合に対して要素を配置するとき
に、無作為に配置するのではなく、関係の深いもの同士
を近くにすることが望まれることが多い。要素の数が少
なかったり要素間の関係が単純であれば、すべての配置
方法を検索し最良の配置方法を決定することができる。
2. Description of the Related Art When arranging elements with respect to a set of elements, it is often desired that elements having a close relationship be close to each other instead of being arranged randomly. If the number of elements is small or the relationships between the elements are simple, all placement methods can be searched to determine the best placement method.

【0003】また、要素の数が増えて関係が複雑になる
と、検索すべき配置の方法が非常に増えるので、計算機
を利用しても現実的な時間ですべての方法を求めるのは
不可能であったり、高性能な計算機を長時間使用する必
要があるため、高速に配置方法を求める方法としては、
要素を空間上の点と仮想して要素間の関係を要素間の力
に対応させ、要素間に働く力が安定する状態を求めて配
置を決定する方法もある。
When the number of elements increases and the relationship becomes complicated, the number of layout methods to be searched greatly increases. Therefore, it is impossible to find all methods in a realistic time even if a computer is used. There is, or because it is necessary to use a high-performance computer for a long time, as a method to find a placement method at high speed,
There is also a method in which the elements are assumed to be points in space and the relationship between the elements is made to correspond to the forces between the elements, and the arrangement is determined by obtaining the state in which the forces acting between the elements are stable.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、この方
法を用いても計算量は要素の数の2乗に比例して増えて
しまう。また、空間の次元は実際の要素の配置を決定す
るために一定であるので、要素間の関係の複雑さがその
空間の次元で扱える要素間の複雑さを超えたときには望
ましくない配置になる場合がある。そのため、高速に配
置方法を計算して複雑な関係を持つ要素の集合に対して
も適切な配置方法を求める手段が必要となる。
However, even if this method is used, the calculation amount increases in proportion to the square of the number of elements. Also, because the dimension of space is constant to determine the actual placement of elements, if the complexity of the relationship between elements exceeds the complexity of the elements that can be handled in that space dimension, it may result in undesirable placement. There is. Therefore, a means for calculating the placement method at high speed to obtain an appropriate placement method even for a set of elements having a complicated relationship is required.

【0005】本発明の目的は、このような要求に応じる
ため、関係の深い要素同士を高速で近くに配置するため
の第1,〜第4の発明の要素配置方法および装置と、複
雑な関係を持つ要素の集合の配置を求める第5,第6の
発明の方法および装置を提供することにある。
In order to meet such demands, an object of the present invention is to provide an element placement method and apparatus according to the first to fourth aspects of the present invention for placing elements closely related to each other at high speed and in a complicated relationship. It is another object of the present invention to provide a method and an apparatus according to the fifth and sixth inventions for determining the arrangement of a set of elements having

【0006】[0006]

【課題を解決するための手段】第1の発明の要素配置方
法は、要素の集合に対して前記要素を空間上の点と仮想
し、前記すべての要素に一定の値または要素間の関係と
要素の空間上の位置から決定される引力と、前記空間上
での要素間の距離が近いもの同士のみに対して一定の値
または要素間の関係と要素の空間上の位置から決定され
る斥力を与え、前記すべての要素に対して前記引力と前
記斥力の和により表される値が要素の集合の性質から決
定される最終状態になるように配置の決まってない要素
の位置を動かして要素の配置を得ることを特徴とする。
The element arranging method of the first invention virtualizes the elements as points in space with respect to a set of elements, and sets a constant value for all the elements or a relation between the elements. An attractive force determined from the position of the element in space, and a repulsive force determined from the relationship between the elements and the spatial position of the element with respect to only those having a short distance between the elements in the space. And moving the positions of the elements whose arrangement is not determined so that the value represented by the sum of the attractive force and the repulsive force for all the elements becomes the final state determined from the property of the set of elements. It is characterized by obtaining the arrangement of.

【0007】第2の発明の要素配置装置は、要素の集合
に対して前記要素間の関係を入力しこれを保持する関係
データ保持手段と、前記要素の位置を表す位置データ保
持手段と、前記位置データ保持手段の位置データから要
素間の距離が近い要素の対を取り出しこれを保持する近
接要素対抽出手段と、前記関係データ保持手段の関係デ
ータと前記位置データ保持手段の位置データと前記近接
要素対抽出手段の近接要素対データから要素に関する状
態値を決める状態値計算手段と、前記状態値計算手段の
要素の状態値にしたがって要素の位置を動かす移動手段
と、前記状態値計算手段の要素の状態値が終了状態であ
るかどうかを判定する判定手段と、前記位置データ保持
手段の要素の位置から配置を決定する配置手段とを有
し、前記近接要素対データにより要素間の力の計算量を
減少させることにより要素配置を高速に行うことを特徴
とする。 第3の発明の要素配置方法は、要素の集合に
対して前記要素を空間上の点と仮想し、前記すべての要
素に一定の値または要素間の関係と要素の空間上の位置
から決定される引力と、前記要素間の関係が近いもの同
士のみに対して前記一定の値または要素間の関係と要素
の空間上の位置から決定される斥力を与え、前記すべて
の要素に対して前記引力と斥力の和により表される値が
要素の集合の性質から決定される最終状態になるように
配置の決まっていない要素の位置を動かして要素の配置
を得ることを特徴とする。
An element placement device according to a second aspect of the present invention comprises a relational data holding means for inputting and holding a relation between the elements with respect to a set of elements, a position data holding means for indicating a position of the element, Proximity element pair extraction means for taking out a pair of elements having a short distance between elements from the position data of the position data holding means, relationship data of the relationship data holding means, position data of the position data holding means, and the proximity A state value calculating means for determining a state value related to the element from the adjacent element pair data of the element pair extracting means, a moving means for moving the position of the element according to the state value of the element of the state value calculating means, and an element of the state value calculating means The determining means determines whether the state value of the position data is the end state, and the arranging means that determines the arrangement from the position of the element of the position data holding means. And performing by reducing the amount of computation of the force between the elements by over data elements arranged in a high speed. The element arranging method of the third invention virtualizes the element as a point in space with respect to a set of elements, and is determined from a constant value for all the elements or a relation between elements and a position of the element in space. And a repulsive force that is determined from the relationship between the elements or the spatial position of the element only for those having a close relationship between the elements, and the attractive force for all the elements. And the repulsive force are combined so that the value of the element is obtained by arranging the positions of the elements whose arrangement is not determined so that the final state is determined by the property of the set of elements.

【0008】第4の発明の要素配置装置は、要素の集合
に対して前記要素間の関係を入力しこれを保持する関係
データ保持手段と、要素の位置を表す位置データ保持手
段と、前記関係データ保持手段の関係データから前記要
素間の関係が近い要素の対を取り出しこれを保持する類
似要素対抽出手段と、前記関係データ保持手段の関係デ
ータと前記位置データ保持手段の位置データと前記類似
要素対抽出手段の類似要素対データから要素に関する状
態値を決める状態値計算手段と、前記状態値計算手段の
要素の状態値にしたがって要素の位置を動かす移動手段
と、前記状態値計算手段の要素の状態値が終了状態であ
るかどうかを判定する判定手段と、前記位置データ保持
手段の要素の位置から配置を決定する配置手段とを有
し、前記類似要素対データにより要素間の力の計算量を
減少させることにより要素配置を高速に行うことを特徴
とする。
An element placement device according to a fourth aspect of the present invention is to provide a relational data holding means for inputting and holding a relation between the elements with respect to a set of elements, a position data holding means for indicating a position of the element, and the relational relationship. A similar element pair extracting means for extracting a pair of elements having a close relationship between the elements from the relational data of the data holding means, the relational data of the relational data holding means, the position data of the position data holding means, and the similarity. A state value calculation means for determining a state value related to the element from similar element pair data of the element pair extraction means, a movement means for moving the position of the element according to the state value of the element of the state value calculation means, and an element of the state value calculation means Of the similar element pair having a determination means for determining whether or not the state value of is a termination state and an arrangement means for determining the arrangement from the position of the element of the position data holding means. And performing by reducing the amount of computation of the force between the elements by over data elements arranged in a high speed.

【0009】第5の発明の要素配置方法は、要素の集合
に対して前記要素を空間上の点と仮想し、前記すべての
要素に一定の値または要素間の関係と要素の空間上の位
置から決定される値を与え、前記すべての要素の値が要
素の集合の性質および空間の性質から決定される最終状
態になるように配置の決まっていない要素の位置を動か
し、前記最終状態になったら空間の次元数を減少させて
再び要素の移動を行い、求めたい配置方法により決まる
空間の次元数になるまで次元数を減少させることにより
要素の配置を得ることを特徴とする。
In the element arranging method of the fifth invention, the elements are assumed to be points in space with respect to a set of elements, and a constant value for all the elements or the relation between the elements and the position of the elements in the space. Then, the values of all the elements are moved so that the values of all the elements are in the final state determined by the property of the set of elements and the property of the space. The feature is that the arrangement of the elements is obtained by reducing the number of dimensions of the space, moving the elements again, and reducing the number of dimensions until the number of dimensions of the space determined by the desired arrangement method is obtained.

【0010】第6の発明の要素配置装置は、要素の集合
に対して前記要素間の関係を入力しこれを保持する関係
データ保持手段と、前記要素の位置を表す位置データ保
持手段と、前記関係データ保持手段の関係データと位置
データ保持手段の位置データから要素に関する状態値を
決める状態値計算手段と、前記状態値計算手段の要素の
状態値にしたがって要素の位置を動かす移動手段と、前
記状態値計算手段の要素の状態値が終了状態であるかど
うかを判定する判定手段と、現在の空間の次元数が最終
的な空間の次元数より大きい場合に空間の次元を減少さ
せる次元減少手段と、前記位置データ保持手段の要素の
位置から配置を決定する配置手段とを有し、適切な要素
配置を得ることを特徴とする。
According to a sixth aspect of the present invention, there is provided an element arranging device, wherein relational data holding means for inputting and holding the relation between the elements with respect to a set of elements, position data holding means for expressing the position of the element, and State value calculation means for determining a state value for the element from the relational data of the relational data holding means and the position data of the position data holding means; moving means for moving the position of the element according to the state value of the element of the state value calculation means; Judging means for judging whether or not the state value of the element of the state value calculating means is the end state, and dimension reducing means for reducing the dimension of the space when the dimension number of the current space is larger than the dimension number of the final space. And an arrangement unit that determines the arrangement from the position of the element of the position data holding unit, and obtains an appropriate element arrangement.

【0011】[0011]

【作用】第1および第2の発明では、各要素には仮想空
間上の位置を与える。任意の二つの要素間に要素間の関
係と二つの要素の位置によって決まる引力を働かせ、空
間上の距離が近い要素間にのみ要素間の関係と二つの要
素の位置によって決まる斥力を働かせる。この二つの力
は要素間の距離が近いときには斥力が強く、距離が遠い
ときには引力が強くなるように設定する。ある一つの要
素に働く力はその要素とそれ以外のすべての要素との間
に働く引力と斥力により決定される。
In the first and second inventions, each element is given a position in the virtual space. An attractive force that depends on the relationship between the elements and the position of the two elements is exerted between any two elements, and a repulsive force that depends on the relationship between the elements and the position of the two elements is exerted only between elements that are close in space. These two forces are set so that the repulsive force is strong when the distance between the elements is short and the attractive force is strong when the distance is long. The force acting on an element is determined by the attractive and repulsive forces acting between that element and all other elements.

【0012】このようにして与えられた力が要素の集合
の性質から決定された最終状態になるように要素の位置
を変更する。このとき、すでに配置が決定されている要
素あるいは動かしたくない要素については、空間上の位
置を固定し、他の要素に及ぼされる値からのみ計算す
る。要素の位置から要素間の距離を求める。要素の組と
要素間の距離から、例えばクラスタ分析などにより要素
を分類する。
The position of the element is changed so that the force thus applied reaches the final state determined from the property of the set of elements. At this time, with respect to the element whose arrangement has already been determined or the element which is not desired to be moved, the position in space is fixed, and the calculation is performed only from the values exerted on other elements. Find the distance between elements from their positions. From the set of elements and the distance between the elements, the elements are classified by, for example, cluster analysis.

【0013】第3および第4の発明では、各要素には仮
想空間上の位置を与える。任意の二つの要素間に要素間
の関係と二つの要素の位置によって決まる引力を働か
せ、要素間の関係が近い要素間にのみ要素間の関係と二
つの要素の位置によって決まる斥力を働かせる。この二
つの力は要素間の距離が近ときには斥力が強く、距離が
遠いときには引力が強くなるように設定する。ある一つ
の要素に働く力はその要素とそれ以外のすべての要素と
の間に働く引力と斥力により決定される。
In the third and fourth inventions, each element is given a position in the virtual space. An attractive force that is determined by the relationship between the two elements and the position of the two elements is exerted between any two elements, and a repulsive force that is determined by the relationship between the elements and the position of the two elements is exerted only between elements that have a close relationship between the elements. These two forces are set so that the repulsive force is strong when the distance between the elements is short and the attractive force is strong when the distance is long. The force acting on an element is determined by the attractive and repulsive forces acting between that element and all other elements.

【0014】このようにして与えられた力が要素の集合
の性質から決定された最終状態になるように要素の位置
を変更する。このとき、すでに配置が決定されている要
素あるいは動かしたくない要素については、空間上の位
置を固定し、他の要素に及ぼされる値からのみ計算す
る。要素の位置から要素間の距離を求める。要素の組と
要素間の距離から、例えばクラスタ分析などにより要素
を分類する。
The position of the element is changed so that the force thus applied reaches the final state determined from the property of the set of elements. At this time, with respect to the element whose arrangement has already been determined or the element which is not desired to be moved, the position in space is fixed, and the calculation is performed only from the values exerted on other elements. Find the distance between elements from their positions. From the set of elements and the distance between the elements, the elements are classified by, for example, cluster analysis.

【0015】第5および第6の発明では、各要素には仮
想空間上の位置を与える。この空間の次元は要素の集合
が持っている要素の複雑さに対応する値にする。この空
間上で、任意の二つの要素間に要素間の関係と二つの要
素の位置によって決まる力を働かせる。ただし、距離が
近いときには斥力が強く、距離が遠いときには引力が強
くなるようにする。ある一つの要素に働く力はその要素
とそれ以外のすべての要素との間に働く力により決定さ
れる。
In the fifth and sixth inventions, each element is given a position in the virtual space. The dimension of this space should be a value that corresponds to the complexity of the elements that the set of elements has. In this space, a force is exerted between any two elements depending on the relationship between the elements and the positions of the two elements. However, when the distance is short, the repulsive force is strong, and when the distance is long, the attractive force is strong. The force acting on an element is determined by the force acting between that element and all other elements.

【0016】このようにして与えられた力が要素の集合
の性質から決定された最終状態になるように要素の位置
を変更する。このとき、すでに配置が決定されている要
素あるいは動かしたくない要素については、空間上の位
置を固定し、他の要素に及ぼされる値からのみ計算す
る。
The position of the element is changed so that the force thus applied reaches the final state determined from the property of the set of elements. At this time, with respect to the element whose arrangement has already been determined or the element which is not desired to be moved, the position in space is fixed, and the calculation is performed only from the values exerted on other elements.

【0017】最終状態になったら、現在の空間の次元が
求めたい配置により決定される次元より大きいかどうか
を判定し、大きい場合は空間の次元を減少して再び要素
の移動を行う。等しいかまたは小さい場合は要素の位置
から要素間の距離を求め、要素の組と要素間の距離か
ら、例えばクラスタ分析などにより要素を分類する。
When the final state is reached, it is determined whether or not the dimension of the current space is larger than the dimension determined by the desired layout. If it is larger, the dimension of the space is reduced and the elements are moved again. If they are equal or smaller, the distance between the elements is obtained from the position of the element, and the element is classified by the cluster analysis or the like from the set of elements and the distance between the elements.

【0018】[0018]

【実施例】次に本発明の実施例について図面を参照して
説明する。図1は第1の発明に係る要素配置方法の一実
施例を示すフローチャートである。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a flow chart showing an embodiment of the element arrangement method according to the first invention.

【0019】図1の要素配置方法では、一つの要素に働
く力は他の要素との間に働く力の和とし、最終状態は要
素に働く力が十分0に近くなっていることとする。最終
状態を求めるため、要素を物理的な存在と仮想し、要素
に働く力によって運動させる。また、要素にはその速度
に比例する抵抗が働くとする。
In the element arrangement method of FIG. 1, it is assumed that the force acting on one element is the sum of the forces acting on other elements, and that the force acting on the element is close to 0 in the final state. In order to obtain the final state, the element is assumed to be a physical entity and is moved by the force acting on the element. It is also assumed that the element has a resistance proportional to its speed.

【0020】まず、要素間の距離が近い要素の対を近接
要素対抽出処理で抽出する(ステップ11)。次に、要
素に働く引力を引力計算処理(ステップ12)で、斥力
を斥力計算処理(ステップ13)で計算し、力計算処理
で引力と斥力の和fiを求め、各要素に働く力を求める
(ステップ14)。このとき要素iに働く引力faiは
i以外の要素すべてとの間に働く引力の和であり、要素
iに働く斥力fbiは近接要素抽出処理で得られた要素
iの近傍の要素との間に働く斥力のみの和である。
First, a pair of elements having a short distance between elements is extracted by the adjacent element pair extraction processing (step 11). Next, the attractive force acting on the element is calculated by the attractive force calculation process (step 12), the repulsive force is calculated by the repulsive force calculation process (step 13), the sum fi of the attractive force and the repulsive force is obtained by the force calculation process, and the force acting on each element is obtained. (Step 14). At this time, the attractive force fai acting on the element i is the sum of attractive forces acting on all the elements other than i, and the repulsive force fbi acting on the element i is generated between the element i in the vicinity of the element i obtained by the adjacent element extraction processing. It is the sum of the repulsive forces that work.

【0021】次に、要素iに働く力fiの大きさがε
(十分小さな正数)より小さいかどうかを終了判定処理
で判定し(ステップ15)、すべての|fi|がεより
小さければ配置処理に行き、そうでなければ移動処理に
行く。
Next, the magnitude of the force fi acting on the element i is ε.
Whether or not it is smaller than (a sufficiently small positive number) is judged by the end judgment processing (step 15). If all | fi | are smaller than ε, the arrangement processing is carried out, and if not, the movement processing is carried out.

【0022】移動処理では、要素の速度と位置を微小時
間Δt変化させ要素を移動する(ステップ16)。その
後、再び近接要素抽出処理、すなわちステップ11に戻
る。
In the moving process, the element is moved by changing the speed and position of the element for a minute time Δt (step 16). Then, the process returns to the proximity element extraction process, that is, step 11.

【0023】配置処理では要素間の距離を計算し、これ
にしたがって要素を配置する(ステップ17)。
In the arrangement processing, the distance between the elements is calculated, and the elements are arranged according to the distance (step 17).

【0024】このように、この要素配置方法は、要素の
集合に対して要素を空間上の点と仮想し、全要素に一定
の値または要素間の関係と要素の空間上の位置から決定
される引力を与え、近傍の要素同士にのみ一定の値また
は要素間の関係と要素の空間上の位置から決定される斥
力を与え、全要素の値が要素の集合の性質から決定され
る最終状態になるように、配置の決まっていない要素の
位置を動かして要素の配置を得る。
As described above, this element arranging method virtualizes the elements as points on the space with respect to the set of elements, and determines the constant values for all the elements or the relationship between the elements and the position of the elements on the space. The final state in which the value of all elements is determined by the property of the set of elements, and a repulsive force determined by the relationship between elements or the spatial position of elements is given only to the neighboring elements. The position of the element whose arrangement has not been determined is moved to obtain the arrangement of the element.

【0025】図2は第2の発明に係る要素配置装置の一
実施例を示すブロック図である。なお、図2では、単線
矢印はデータの流れを表し、複線矢印は処理の流れを表
す。
FIG. 2 is a block diagram showing an embodiment of the element placement device according to the second invention. In addition, in FIG. 2, a single-line arrow represents a data flow, and a double-line arrow represents a process flow.

【0026】図2の要素配置装置は、要素の集合に対し
て要素間の関係を入力しこれを保持する関係データ保持
部21と、要素の位置を表す位置データ保持部23と、
位置データ保持部23の位置データから近接要素対を抽
出しこれを保持する近接要素対データ保持部22と、関
係データ保持部21の関係データと位置データ保持部2
3の位置データから要素に関する状態値として要素に働
く引力を計算する引力計算部25と,関係データ保持部
21の関係データと位置データ保持部23の位置データ
と近接要素対データ保持部22の近接要素対データから
要素に関する状態値として要素に働く斥力を計算する斥
力計算部26と,引力計算部25の引力と斥力計算部2
6の斥力から要素に働く力を計算する力計算部27より
なる状態値計算部24と、力計算部27で得られた要素
に働く力にしたがって要素の位置を動かす移動部28
と、力計算部76で得られた力が終了状態であるかどう
かを判定する判定部29と、要素の位置から配置を決定
する配置部210とを備えている。
The element placement device of FIG. 2 inputs a relationship between elements to a set of elements and holds the relationship data holding section 21, a position data holding section 23 representing the position of the element,
A proximity element pair data holding unit 22 that extracts and holds a proximity element pair from the position data of the position data holding unit 23, a relational data of the relational data holding unit 21, and a position data holding unit 2
3, an attractive force calculation unit 25 that calculates an attractive force acting on the element as a state value related to the element from the position data of 3, the relational data of the relational data storage unit 21, the position data of the positional data storage unit 23, and the proximity of the proximity element pair data storage unit 22. A repulsive force calculation unit 26 that calculates a repulsive force acting on the element as a state value related to the element from the element pair data, and an attractive force and repulsive force calculation unit 2 of the attractive force calculation unit 25.
The state value calculation unit 24 including a force calculation unit 27 that calculates the force acting on the element from the repulsive force of 6, and the moving unit 28 that moves the position of the element according to the force acting on the element obtained by the force calculation unit 27.
And a determining unit 29 that determines whether the force obtained by the force calculating unit 76 is in an end state, and an arrangement unit 210 that determines the arrangement based on the position of the element.

【0027】次に、この要素配置装置の動作について説
明する。まず、要素間の関係を入力して関係データ保持
部21に保持する。次に、近接要素対データ保持部22
で位置データ保持部23より得た位置データから近接要
素対データ保持部22で要素間の距離が一定の値以下の
要素の対を求めこれを保持し、状態値計算部24で各要
素に働く力を求める。状態値計算部24は引力計算部2
5と斥力計算部26と力計算部27とからなり、引力計
算部25で関係データ保持部21と位置データ保持部2
3より得た関係データと位置データから要素に働く引力
を計算し、斥力計算部26で関係データ保持部21と位
置データ保持部23と近接要素対データ保持部22より
得た関係データと位置データと近接要素対データから要
素に働く斥力を計算し、力計算部27で引力計算部25
の引力と斥力計算部26の斥力の和を求めることにより
要素に働く力を求める。判定部29では、力計算部27
において得られた力が終了状態に達しているかどうかを
判定する。終了状態に達していなければ移動部28に処
理を移し、固定されている要素以外の要素に対する位置
データ保持部23の位置データを力計算部27で得られ
た力に従って変更し、再び近接要素対データ保持部22
に行く。判定部29で終了状態に達していると判定され
ると、配置部210で位置データ保持部23の位置デー
タから要素の配置を決定し出力する。
Next, the operation of this element placement device will be described. First, the relationship between elements is input and held in the relationship data holding unit 21. Next, the proximity element pair data holding unit 22
From the position data obtained from the position data holding unit 23, the proximity element pair data holding unit 22 finds a pair of elements whose distance between elements is equal to or less than a certain value, holds the pair, and the state value calculation unit 24 works on each element. Seeking power. The state value calculator 24 is the attractive force calculator 2
5, a repulsive force calculation unit 26, and a force calculation unit 27. The attractive force calculation unit 25 includes a relational data holding unit 21 and a position data holding unit 2.
The attractive force acting on the element is calculated from the relational data and the position data obtained from No. 3, and the repulsive force calculation unit 26 obtains the relational data and the position data from the relational data holding unit 21, the position data holding unit 23, and the proximity element pair data holding unit 22. And the repulsive force acting on the element from the proximity element pair data, and the force calculation unit 27 calculates the repulsive force.
The force acting on the element is obtained by obtaining the sum of the repulsive force of and the repulsive force of the repulsive force calculation unit 26. In the determination unit 29, the force calculation unit 27
It is determined whether the force obtained in has reached the end state. If the end state has not been reached, the processing is moved to the moving unit 28, the position data of the position data holding unit 23 for elements other than the fixed element is changed according to the force obtained by the force calculation unit 27, and the proximity element pair is again set. Data holding unit 22
go to. When the determination unit 29 determines that the end state is reached, the placement unit 210 determines the placement of the element from the position data of the position data holding unit 23 and outputs it.

【0028】このように、この要素配置装置は、要素の
集合に対して要素間の関係を入力しこれを保持する関係
データ保持手段と、要素の位置を表す位置データ保持手
段と、位置データから近接する要素対を求めこれを保持
する近接要素対データ保持手段と、関係データと位置デ
ータと近接要素対データから要素に関する状態値を求め
る状態値計算手段と、要素の状態値にしたがって要素の
位置を動かす移動手段と、要素の状態値が終了状態であ
るかどうかを判定する判定手段と、要素の位置から配置
を決定する配置手段とから成り、これらの手段により要
素の配置を得る。
As described above, the element placement device uses the relationship data holding means for inputting and holding the relationship between elements to the set of elements, the position data holding means for indicating the position of the element, and the position data. Proximity element pair data holding means for obtaining adjacent element pairs and holding them, state value calculation means for obtaining a state value related to the element from relational data, position data and proximity element pair data, and element position according to the state value of the element It comprises a moving means for moving the element, a judging means for judging whether or not the state value of the element is in the end state, and an arranging means for deciding the arrangement from the position of the element, and the arrangement of the element is obtained by these means.

【0029】図3は第3の発明に係る要素配置方法の一
実施例を示すフローチャートである。図3の要素配置方
法では、一つの要素に働く力は他の要素との間に働く力
の和とし、最終状態は要素に働く力が十分0に近くなっ
ていることとする。最終状態を求めるため、要素を物理
的な存在と仮想し、要素に働く力によって運動させる。
また、要素にはその速度に比例する抵抗が働くとする。
FIG. 3 is a flow chart showing an embodiment of the element arrangement method according to the third invention. In the element arrangement method of FIG. 3, the force acting on one element is the sum of the forces acting on other elements, and the force acting on the element is sufficiently close to 0 in the final state. In order to obtain the final state, the element is assumed to be a physical entity and is moved by the force acting on the element.
It is also assumed that the element has a resistance proportional to its speed.

【0030】まず、要素間の関係が近い要素の対を類似
要素対抽出処理で抽出する(ステップ31)。次に、要
素に働く引力を引力計算処理(ステップ32)で、斥力
を斥力計算処理(ステップ33)で計算し、力計算処理
で引力と斥力の和fiを求め、各要素に働く力を求る
(ステップ34)。このとき要素iに働く引力faiは
i以外の要素すべてとの間に働く引力の和であり、要素
iに働く斥力fbiは類似要素抽出処理で得られた要素
iと関係の深い要素との間に働く斥力のみの和である。
First, a pair of elements having a close relationship between elements is extracted by the similar element pair extraction processing (step 31). Next, the attractive force acting on the element is calculated by the attractive force calculation process (step 32), the repulsive force is calculated by the repulsive force calculation process (step 33), the sum fi of the attractive force and the repulsive force is calculated by the force calculation process, and the force acting on each element is calculated. (Step 34). At this time, the attractive force fai acting on the element i is the sum of attractive forces acting on all the elements other than i, and the repulsive force fbi acting on the element i is between the element i obtained by the similar element extraction processing and the element having a deep relationship. It is the sum of only the repulsive force that acts on.

【0031】次に、要素iに働くfiの大きさがε(十
分小さな正数)より小さいかどうかを終了判定処理で判
定し(ステップ35)、すべての|fi|がεより小さ
ければ配置処理に行き、そうでなければ移動処理に行
く。
Next, it is judged by the end judgment processing whether the magnitude of fi acting on the element i is smaller than ε (a sufficiently small positive number) (step 35). If all | fi | are smaller than ε, the arrangement processing is carried out. Go to, otherwise go to move process.

【0032】移動処理では、要素の速度と位置を微小時
間Δt変化させ要素を移動する(ステップ36)。その
後、再び力計算処理、すなわちステップ32に戻る。
In the moving process, the speed and the position of the element are changed by a minute time Δt to move the element (step 36). Then, the process returns to the force calculation process, that is, step 32.

【0033】配置処理では要素間の距離を計算し、これ
にしたがって要素を配置する(ステップ37)。
In the arrangement process, the distance between the elements is calculated, and the elements are arranged according to the distance (step 37).

【0034】このように、この要素配置方法は、要素の
集合に対して要素を空間上の点と仮想し、全要素に一定
の値または要素間の関係と要素の空間上の位置から決定
される引力を与え、関係の深い要素同士にのみ一定の値
または要素間の関係と要素の空間上の位置から決定され
る斥力を与え、全要素の値が要素の集合の性質から決定
される最終状態になるように、配置の決まっていない要
素の位置を動かして要素の配置を得る。
As described above, this element arrangement method virtualizes the elements as points on the space with respect to the set of elements, and is determined from a constant value for all elements or the relationship between the elements and the position of the elements on the space. The force of attraction is given to the elements that are deeply related to each other, or a repulsive force that is determined from the relationship between the elements and the spatial position of the elements is given, and the value of all elements is determined from the nature of the set of elements. Move the position of the element whose arrangement has not been determined so that the state becomes the state, and obtain the arrangement of the element.

【0035】図4は第4の発明に係る要素配置装置の一
実施例を示すブロック図である。なお、図4では、単線
矢印はデータの流れを表し、複線矢印は処理の流れを表
す。
FIG. 4 is a block diagram showing an embodiment of the element placement device according to the fourth invention. Note that, in FIG. 4, single-line arrows indicate the flow of data, and double-line arrows indicate the flow of processing.

【0036】図4の要素配置装置は、要素の集合に対し
て要素間の関係を入力しこれを保持する関係データ保持
部41と、要素の位置を表す位置データ保持部43と、
関係データ保持部41の関係データから関係の深い要素
対を抽出しこれを保持する類似要素対データ保持部42
と、関係データ保持部41の関係データと位置データ保
持部43の位置データから要素に関する状態値として要
素に働く引力を計算する引力計算部45と,関係データ
保持部41の関係データと位置データ保持部43の位置
データと類似要素対データ保持部42の類似要素対デー
タから要素に関する状態値として要素に働く斥力を計算
する斥力計算部46と,引力計算部45の引力と斥力計
算部46の斥力から要素に働く力を計算する力計算部4
7よりなる状態値計算部44と、力計算部47で得られ
た要素に働く力にしたがって要素の位置を動かす移動部
48と、力計算部47で得られた力が終了状態であるか
どうかを判定する判定部49と、要素の位置から配置を
決定する配置部410とを備えている。
The element placement device of FIG. 4 inputs a relationship between elements into a set of elements and holds the relationship data holding section 41, a position data holding section 43 representing the position of the element,
A similar element pair data holding unit 42 that extracts an element pair having a deep relationship from the relational data of the relational data holding unit 41 and holds it
And an attractive force calculation unit 45 that calculates an attractive force acting on the element as a state value related to the element from the relational data of the relational data holding unit 41 and the position data of the positional data holding unit 43, and the relational data and the position data holding of the relational data holding unit 41. A repulsive force calculation unit 46 that calculates a repulsive force acting on an element as a state value related to the element from the position data of the unit 43 and the similar element pair data of the similar unit pair data holding unit 42, and an attractive force of the attractive force calculation unit 45 and a repulsive force of the repulsive force calculation unit 46. Force calculation unit 4 which calculates the force acting on the element from
7, the state value calculation unit 44, the moving unit 48 that moves the position of the element according to the force acting on the element obtained by the force calculation unit 47, and whether the force obtained by the force calculation unit 47 is in the end state. The determination unit 49 for determining the position and the placement unit 410 for determining the placement based on the position of the element.

【0037】次に、この要素配置装置の動作について説
明する。まず、要素間の関係を入力して関係データ保持
部41に保持する。次に、類似要素対データ保持部42
で関係データ保持部41より得た関係データから関係の
深い要素の対を求めこれを保持し、状態値計算部44で
各要素に働く力を求める。状態値計算部44は引力計算
部45と斥力計算部46と力計算部47とからなり、引
力計算部45で関係データ保持部41と位置データ保持
部43より得た関係データと位置データから要素に働く
引力を計算し、斥力計算部46で関係データ保持部41
と位置データ保持部43と類似要素対データ保持部42
より得た関係データと位置データと類似要素対データか
ら要素に働く斥力を計算し、力計算部47で引力計算部
45の引力と斥力計算部46の斥力の和を求めることに
より要素に働く力を求める。判定部49では、力計算部
47において得られた力が終了状態に達しているかどう
かを判定する。終了状態に達していなければ、移動部4
8に処理を移し、固定されている要素以外の要素に対す
る位置データ保持部43の位置データを力計算部47で
得られた力に従って変更し、再び類似要素対データ保持
部42に行く。判定部49で終了状態に達していると判
定されると、配置部410で位置データ保持部43の位
置データから要素の配置を決定し出力する。
Next, the operation of this element placement device will be described. First, the relationship between elements is input and held in the relationship data holding unit 41. Next, the similar element pair data holding unit 42
Then, a pair of closely related elements is obtained from the relational data obtained from the relational data holding section 41 and held, and the force acting on each element is obtained by the state value calculation section 44. The state value calculation unit 44 includes an attractive force calculation unit 45, a repulsive force calculation unit 46, and a force calculation unit 47. The state value calculation unit 44 uses the relational data and position data obtained by the attractive force calculation unit 45 from the relational data holding unit 41 and the position data holding unit 43 as elements. The repulsive force calculation unit 46 calculates the attractive force acting on the relational data storage unit 41.
And position data holding unit 43 and similar element pair data holding unit 42
The repulsive force acting on the element is calculated from the obtained relational data, the position data, and the similar element pair data, and the force acting on the element is calculated by the force calculation unit 47 calculating the sum of the repulsive force of the repulsive force calculation unit 45 and the repulsive force of the repulsive force calculation unit 46. Ask for. The determination unit 49 determines whether the force obtained by the force calculation unit 47 has reached the end state. If the end state has not been reached, the moving unit 4
8, the position data of the position data holding unit 43 for the elements other than the fixed element is changed according to the force obtained by the force calculation unit 47, and the similar element pair data holding unit 42 is reached again. When the determination unit 49 determines that the end state has been reached, the placement unit 410 determines the placement of the element from the position data of the position data holding unit 43 and outputs it.

【0038】このように、この要素配置装置は、要素の
集合に対して要素間の関係を入力しこれを保持する関係
データ保持手段と、要素の位置を表す位置データ保持手
段と、関係データから関係の深い要素対を求めこれを保
持する類似要素対データ保持手段と、関係データと位置
データと類似要素対データから要素に関する状態値を求
める状態値計算手段と、要素の状態値にしたがって要素
の位置を動かす移動手段と、要素の状態値が終了状態で
あるかどうかを判定する判定手段と、要素の位置から配
置を決定する配置手段とから成り、これらの手段により
要素の配置を得る。
As described above, the element placement device receives the relational data holding means for inputting and holding the relation between the elements to the set of elements, the position data holding means for indicating the position of the element, and the relational data. Similar element pair data holding means for obtaining an element pair having a deep relationship, state value calculation means for obtaining a state value regarding the element from relational data, position data, and similar element pair data, and an element according to the state value of the element It comprises a moving means for moving the position, a judging means for judging whether or not the state value of the element is in the end state, and an arranging means for deciding the arrangement from the position of the element, and the arrangement of the element is obtained by these means.

【0039】図5は第5の発明に係る要素配置方法の一
実施例を示すフローチャートである。図5の要素配置方
法では、一つの要素に働く力は他の要素との間に働く力
の和とし、最終状態は要素に働く力が十分0に近くなっ
ていることとする。最終状態を求めるため、要素を物理
的な存在と仮想し、要素に働く力によって運動させる。
また、要素にはその速度に比例する抵抗が働くとする。
FIG. 5 is a flow chart showing an embodiment of the element arrangement method according to the fifth invention. In the element arrangement method of FIG. 5, the force acting on one element is the sum of the forces acting on other elements, and the force acting on the element is sufficiently close to 0 in the final state. In order to obtain the final state, the element is assumed to be a physical entity and is moved by the force acting on the element.
It is also assumed that the element has a resistance proportional to its speed.

【0040】まず、要素に働く力を力計算処理で計算す
る(ステップ51)。すなわち、ステップ51では、i
番目の要素に働く力fiを計算している。次に、要素に
働く力fiの大きささがε(十分小さな正数)より小さ
いかどうかを移動終了判定処理で判定し(ステップ5
2)、すべての|fi|がεより小さければ終了判定処
理に行き、そうでなければ移動処理に行く。
First, the force acting on the element is calculated by the force calculation process (step 51). That is, in step 51, i
The force fi acting on the th element is calculated. Next, whether or not the magnitude of the force fi acting on the element is smaller than ε (a sufficiently small positive number) is determined by the movement end determination process (step 5
2) If all | fi | are smaller than ε, go to the end determination process, otherwise go to the moving process.

【0041】移動処理では、要素の速度と位置を微小時
間Δt変化させ要素を移動する(ステップ53)。その
後、再び力計算処理、すなわちステップ51に戻る。
In the moving process, the element is moved by changing the speed and position of the element for a minute time Δt (step 53). Then, the process returns to the force calculation process, that is, step 51 again.

【0042】終了判定処理では現在の空間の次元が配置
の目的によって決まる空間の次元より大きいかどうかを
調べ(ステップ54)、大きい場合は次元減少処理に行
き、そうでない場合は配置処理に行く。
In the end judgment processing, it is checked whether or not the dimension of the current space is larger than the dimension of the space determined by the purpose of the arrangement (step 54). If it is larger, the dimension reduction processing is carried out, and if not, the arrangement processing is carried out.

【0043】次元減少処理では現在の空間の次元を1減
少させ、力計算処理に行く。
In the dimension reduction processing, the dimension of the current space is reduced by 1, and the force calculation processing is performed.

【0044】配置処理では要素間の距離を計算し、これ
にしたがって要素を配置する(ステップ55)。
In the arrangement process, the distance between the elements is calculated, and the elements are arranged according to the distance (step 55).

【0045】このように、この要素配置方法は、要素の
集合に対して要素を空間上の点と仮想し、全要素に一定
の値または要素間の関係と要素の空間上の位置から決定
される値を与え、全要素の値が要素の集合の性質から決
定される最終状態になるように、配置の決まってない要
素の位置を動かし、最終状態になったら空間の次元を減
少させ最終的な空間の次元になるまで要素を移動させ、
要素の配置を得る。図6は第6の発明に係る要素配置装
置の一例を示すブロック図である。なお、図6では、単
線矢印はデータの流れを表し、複線矢印は処理の流れを
表す。
As described above, this element arranging method virtualizes the elements as points on the space with respect to the set of elements, and is determined from a constant value for all elements or the relationship between the elements and the position of the elements on the space. The value of all elements is set to the final state determined by the property of the set of elements, and the position of the element whose arrangement is not determined is changed, and when the final state is reached, the dimension of the space is reduced and the final Move the elements until the dimension of the space
Get the arrangement of elements. FIG. 6 is a block diagram showing an example of an element placement device according to the sixth invention. In addition, in FIG. 6, a single-line arrow represents a data flow, and a double-line arrow represents a process flow.

【0046】図6の要素配置装置は、要素の集合に対し
て要素間の関係を入力しこれを保持する関係データ保持
部61と、要素の位置を表す位置データ保持部63と、
関係データ保持部61の関係データと位置データ保持部
63の位置データから要素に関する状態値として要素に
働く力を計算する力計算部62と、力計算部62で得ら
れた要素に働く力にしたがって要素の位置を動かす移動
部65と、力計算部62で得られた力が終了状態である
かどうかを判定する判定部64と、空間の次元を減少さ
せ空間の次元が最終的な空間の次元数になっているかを
判定する次元減少部66と、要素の位置から配置を決定
する配置部67とを備えている。
The element placement device of FIG. 6 inputs a relationship between elements to a set of elements and holds the relationship data holding section 61, a position data holding section 63 representing the position of the element,
According to the force acting on the element obtained by the force calculating unit 62, the force calculating unit 62 that calculates the force acting on the element as the state value related to the element from the relational data of the relational data holding unit 61 and the position data of the position data holding unit 63. The moving unit 65 that moves the position of the element, the determining unit 64 that determines whether the force obtained by the force calculating unit 62 is in the end state, the dimension of the space is reduced, and the dimension of the space is the final dimension of the space. A dimension reduction unit 66 that determines whether the number is a number and an arrangement unit 67 that determines the arrangement from the position of the element are provided.

【0047】次に、この要素配置装置の動作について説
明する。まず、要素間の関係を入力して関係データ保持
部61に保持する。次に、力計算部62で関係データ保
持部61と位置データ保持部63より得た関係データと
位置データから要素に働く力を計算する。判定部64で
は力計算部62において得られた力が終了状態に達して
いるかどうかを判定する。終了状態に達していなけれ
ば、移動部65に処理を移し、固定されている要素以外
の要素に対する位置データ保持部63の位置データを力
計算部62で得られた力に従って変更し、再び力計算部
62に行く。判定部64で終了状態に達していると判定
されると、次元減少部66で空間の次元を減少させ、空
間の次元が配置の目的によって決定される次元数より大
きいかどうかを判定し、大きい場合は力計算部62に処
理を移し、そうでない場合は配置部67で位置データ保
持部63の位置データから要素の配置を決定し出力す
る。
Next, the operation of this element placement device will be described. First, the relationship between elements is input and held in the relationship data holding unit 61. Next, the force calculator 62 calculates the force acting on the element from the relational data and the position data obtained from the relational data holder 61 and the position data holder 63. The determination unit 64 determines whether the force obtained by the force calculation unit 62 has reached the end state. If the end state has not been reached, the processing is moved to the moving unit 65, the position data of the position data holding unit 63 for elements other than the fixed element is changed according to the force obtained by the force calculation unit 62, and the force calculation is performed again. Go to part 62. When the determination unit 64 determines that the end state has been reached, the dimension reduction unit 66 reduces the dimension of the space, determines whether the dimension of the space is larger than the number of dimensions determined by the purpose of the arrangement, and determines that the dimension is larger. In the case, the processing is transferred to the force calculation unit 62. In the other case, the arrangement unit 67 determines the arrangement of the element from the position data of the position data holding unit 63 and outputs it.

【0048】このように、この要素配置装置は、要素の
集合に対して要素間の関係を入力しこれを保持する関係
データ保持手段と、要素の位置を表す位置データ保持手
段と、関係データと位置データから要素に関する状態値
を求める状態値計算手段と、要素の状態値にしたがって
要素の位置を動かす移動手段と、要素の状態値が終了状
態であるかどうかを判定する判定手段と、空間の次元を
減少させ最終的な次元数と比較する次元減少手段と、要
素の位置から配置を決定する配置手段とから成り、これ
らの手段により要素の配置を得る。
As described above, the element placement device inputs the relationship between the elements to the set of elements and holds the relationship data, the position data holding means that indicates the position of the element, and the relationship data. State value calculating means for obtaining a state value related to the element from the position data, moving means for moving the position of the element according to the state value of the element, determining means for determining whether or not the state value of the element is the end state, and space It comprises dimension reduction means for reducing the dimension and comparing it with the final number of dimensions, and placement means for determining the placement from the position of the element. By these means, the placement of the element is obtained.

【0049】[0049]

【発明の効果】以上説明したように、第1および第2の
発明にかかる時間は要素間の力を計算する時間に依存す
る。したがって、本発明によれば、要素間の力を計算す
る回数は引力を計算する回数と斥力を計算する回数の和
である。ここで、引力を計算する回数は要素間の関係に
よって決定され、斥力を計算する回数は要素が近接して
いると判断する距離により決定される。そのため、ある
要素と関係のある要素の数が平均してi個あり、ある要
素の近傍にある要素の数が平均j個ある場合には要素間
の力を計算する回数は、要素の数がnのときn(i+
j)/2である。このときiおよびjは要素の数nに依
存しないため、計算回数は要素の数nに比例する。
As described above, the time required for the first and second inventions depends on the time for calculating the force between elements. Therefore, according to the present invention, the number of times the force between elements is calculated is the sum of the number of times the attractive force is calculated and the number of times the repulsive force is calculated. Here, the number of times the attractive force is calculated is determined by the relationship between the elements, and the number of times the repulsive force is calculated is determined by the distance at which the elements are determined to be close to each other. Therefore, when the number of elements related to a certain element is i on average, and the number of elements in the vicinity of a certain element is j on average, the number of times the force between elements is calculated is When n, n (i +
j) / 2. At this time, since i and j do not depend on the number n of elements, the number of calculations is proportional to the number n of elements.

【0050】これに対して従来の全要素間に働く力を求
める方法では、要素の数がnのときn 2 =n(n−
1)/2であるから、計算回数は要素の数nの2乗に比
例する。このため、本発明の方法では要素の数が増えて
も現実的な時間で処理が行えるので、要素の数が数千も
あるような場合でも、要素の配置を安価な計算機で計算
できる効果がある。
On the other hand, in the conventional method for obtaining the force acting between all elements, n C 2 = n (n-
Since it is 1) / 2, the number of calculations is proportional to the square of the number n of elements. Therefore, according to the method of the present invention, since the processing can be performed in a realistic time even if the number of elements increases, even if the number of elements is several thousands, the arrangement of the elements can be calculated by an inexpensive computer. is there.

【0051】また、第3および第4の発明にかかる時間
は要素間の力を計算する時間に依存する。したがって、
本発明によれば、要素間の力を計算する回数は引力を計
算する回数と斥力を計算する回数の和である。ここで、
引力を計算する回数は要素間の関係によって決定され、
斥力を計算する回数は要素間の関係が深いと判断する規
準により決定される。そのため、ある要素と関係のある
要素の数が平均してk個あり、ある要素と関係の深い要
素の数が平均l個ある場合には要素間の力を計算する回
数は、要素の数がnのとき、n(k+l)/2である。
このときkはおよびlは要素の数nに依存しないため、
計算回数は要素の数nに比例する。
The time required for the third and fourth inventions depends on the time for calculating the force between the elements. Therefore,
According to the present invention, the number of times the force between elements is calculated is the sum of the number of times the attractive force is calculated and the number of times the repulsive force is calculated. here,
The number of times to calculate the attractive force is determined by the relationship between the elements,
The number of times repulsive force is calculated is determined by the criterion that the relationship between elements is deep. Therefore, when the number of elements related to a certain element is k on average, and the number of elements deeply related to a certain element is 1 on average, the number of times the force between elements is calculated is When n, it is n (k + 1) / 2.
Then k and l do not depend on the number of elements n, so
The number of calculations is proportional to the number n of elements.

【0052】これに対して従来の全要素間に働く力を求
める方法では、要素の数がnのときn 2 =n(n−
1)/2であるから、計算回数は要素の数nの2乗に比
例する。このため、本発明の方法では要素の数が増えて
も現実的な時間で処理が行えるので、要素の数が数千も
あるような場合でも、要素の配置を安価な計算機で計算
できる効果がある。
On the other hand, in the conventional method for obtaining the force acting between all the elements, when the number of elements is n, n C 2 = n (n-
Since it is 1) / 2, the number of calculations is proportional to the square of the number n of elements. Therefore, according to the method of the present invention, since the processing can be performed in a realistic time even if the number of elements increases, even if the number of elements is several thousands, the arrangement of the elements can be calculated by an inexpensive computer. is there.

【0053】さらに、第5および第6の発明では、空間
の次元が徐々に減少する。そのため、最初の空間の次元
を大きくし、最終的な空間の次元は小さくすることがで
きる。空間の次元が大きいと要素の移動に対する制限が
小さく、他の要素の影響を受けにくいので、関係の深い
要素同士が近付くことを関係の内要素に妨害される可能
性が低くなる。また、配置を行う際には空間の次元は現
実の空間の次元に近いことが望まれる。
Furthermore, in the fifth and sixth inventions, the dimension of the space gradually decreases. Therefore, it is possible to increase the dimension of the initial space and decrease the dimension of the final space. When the dimension of the space is large, the restriction on the movement of the element is small, and the influence of other elements is small, so that it is less likely that the internal elements of the relationship will prevent the closely related elements from approaching each other. In addition, it is desirable that the dimension of the space is close to the dimension of the actual space when the arrangement is performed.

【0054】従来の方法では、最初から空間の次元が小
さかったため、他の要素に移動を制限され関係のない要
素同士が近くになってしまうことが起きた。本発明によ
ればこの問題を解決することができるという効果が得ら
れる。
In the conventional method, since the dimension of the space was small from the beginning, the movement of the other elements was restricted, and unrelated elements became close to each other. According to the present invention, an effect that this problem can be solved is obtained.

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

【図1】第1の発明に係る要素配置方法の一例を示すフ
ローチャートである。
FIG. 1 is a flowchart showing an example of an element arrangement method according to a first invention.

【図2】第2の発明に係る要素配置装置の一例を示すブ
ロック図である。
FIG. 2 is a block diagram showing an example of an element placement device according to a second invention.

【図3】第3の発明に係る要素配置方法の一例を示すフ
ローチャートである。
FIG. 3 is a flowchart showing an example of an element arrangement method according to a third invention.

【図4】第4の発明に係る要素配置装置の一例を示すブ
ロック図である。
FIG. 4 is a block diagram showing an example of an element placement device according to a fourth invention.

【図5】第5の発明に係る要素配置方法の一例を示すフ
ローチャートである。
FIG. 5 is a flowchart showing an example of an element arrangement method according to the fifth invention.

【図6】第6の発明に係る要素配置装置の一例を示すブ
ロック図である。
FIG. 6 is a block diagram showing an example of an element placement device according to a sixth invention.

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

21,41,61 関係データ保持部 22 近接要素対データ保持部 23,43,63 位置データ保持部 24,44 状態値計算部 25,45 引力計算部 26,46 斥力計算部 27,47,62 力計算部 28,48,65 移動部 29,49,64 判定部 210,410,67 配置部 42 類似要素対データ保持部 66 次元減少部 21, 41, 61 Relational data storage unit 22 Proximity element pair data storage unit 23, 43, 63 Position data storage unit 24, 44 State value calculation unit 25, 45 Attractive force calculation unit 26, 46 Repulsive force calculation unit 27, 47, 62 Force Calculation unit 28, 48, 65 Moving unit 29, 49, 64 Judgment unit 210, 410, 67 Arrangement unit 42 Similar element pair data holding unit 66 Dimension reduction unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 要素の集合に対して前記要素を空間上の
点と仮想し、前記すべての要素に一定の値または要素間
の関係と要素の空間上の位置から決定される引力と、前
記空間上での要素間の距離が近いもの同士のみに対して
一定の値または要素間の関係と要素の空間上の位置から
決定される斥力を与え、前記すべての要素に対して前記
引力と前記斥力の和により表される値が要素の集合の性
質から決定される最終状態になるように配置の決まって
ない要素の位置を動かして要素の配置を得ることを特徴
とする要素配置方法。
1. An gravitational force which is assumed to be a point on a space with respect to a set of elements, and which has a constant value for all the elements or a relation between the elements and a spatial position of the elements, A repulsive force determined by a constant value or the relationship between elements and the position of the element in space is given only to those whose distances between the elements in the space are close to each other, and the attractive force and the An element arrangement method characterized in that the arrangement of elements is obtained by moving the positions of elements whose arrangement has not been decided so that the value represented by the sum of repulsive forces becomes the final state determined by the property of the set of elements.
【請求項2】 要素の集合に対して前記要素間の関係を
入力しこれを保持する関係データ保持手段と、前記要素
の位置を表す位置データ保持手段と、前記位置データ保
持手段の位置データから要素間の距離が近い要素の対を
取り出しこれを保持する近接要素対抽出手段と、前記関
係データ保持手段の関係データと前記位置データ保持手
段の位置データと前記近接要素対抽出手段の近接要素対
データから要素に関する状態値を決める状態値計算手段
と、前記状態値計算手段の要素の状態値にしたがって要
素の位置を動かす移動手段と、前記状態値計算手段の要
素の状態値が終了状態であるかどうかを判定する判定手
段と、前記位置データ保持手段の要素の位置から配置を
決定する配置手段とを有し、前記近接要素対データによ
り要素間の力の計算量を減少させることにより要素配置
を高速に行うことを特徴とする要素配置装置。
2. A relational data holding means for inputting and holding the relation between the elements with respect to a set of elements, a position data holding means for indicating the position of the element, and position data of the position data holding means. Proximity element pair extraction means for taking out a pair of elements having a short distance between elements and holding the pair, relationship data of the relationship data holding means, position data of the position data holding means, and proximity element pair of the proximity element pair extraction means The state value calculating means for determining the state value of the element from the data, the moving means for moving the position of the element according to the state value of the element of the state value calculating means, and the state value of the element of the state value calculating means are the end states. A determination means for determining whether or not the position data holding means has an arrangement means for determining the arrangement based on the position of the element, and calculation of the force between the elements based on the proximity element pair data. An element placement device characterized in that element placement is performed at high speed by reducing the amount.
【請求項3】 要素の集合に対して前記要素を空間上の
点と仮想し、前記すべての要素に一定の値または要素間
の関係と要素の空間上の位置から決定される引力と、前
記要素間の関係が近いもの同士のみに対して前記一定の
値または要素間の関係と要素の空間上の位置から決定さ
れる斥力を与え、前記すべての要素に対して前記引力と
斥力の和により表される値が要素の集合の性質から決定
される最終状態になるように配置の決まっていない要素
の位置を動かして要素の配置を得ることを特徴とする要
素配置方法。
3. An gravitational force determined by a virtual value of all the elements with respect to a set of elements, a constant value for all the elements, a relation between the elements, and a position of the elements in the space, A repulsive force determined by the fixed value or the relationship between elements and the spatial position of the element is given only to those having a close relationship between elements, and the sum of the attractive force and the repulsive force is applied to all the elements. An element arrangement method characterized in that the arrangement of elements is obtained by moving the positions of elements whose arrangement has not been decided so that the represented value becomes the final state determined by the property of the set of elements.
【請求項4】 要素の集合に対して前記要素間の関係を
入力しこれを保持する関係データ保持手段と、要素の位
置を表す位置データ保持手段と、前記関係データ保持手
段の関係データから前記要素間の関係が近い要素の対を
取り出しこれを保持する類似要素対抽出手段と、前記関
係データ保持手段の関係データと前記位置データ保持手
段の位置データと前記類似要素対抽出手段の類似要素対
データから要素に関する状態値を決める状態値計算手段
と、前記状態値計算手段の要素の状態値にしたがって要
素の位置を動かす移動手段と、前記状態値計算手段の要
素の状態値が終了状態であるかどうかを判定する判定手
段と、前記位置データ保持手段の要素の位置から配置を
決定する配置手段とを有し、前記類似要素対データによ
り要素間の力の計算量を減少させることにより要素配置
を高速に行うことを特徴とする要素配置装置。
4. A relational data holding means for inputting and holding a relation between the elements with respect to a set of elements, a position data holding means for expressing the position of the element, and the relational data of the relational data holding means for the relational data holding means. Similar element pair extracting means for extracting a pair of elements having a close relationship between elements and holding the pair, relational data of the relational data retaining means, position data of the position data retaining means, and similar element pair of the similar element pair extracting means. The state value calculating means for determining the state value of the element from the data, the moving means for moving the position of the element according to the state value of the element of the state value calculating means, and the state value of the element of the state value calculating means are the end states. It has a determination means for determining whether or not it and an arrangement means for determining the arrangement from the position of the element of the position data holding means, and calculates the force between the elements by the similar element pair data. An element placement device characterized in that element placement is performed at high speed by reducing the amount.
【請求項5】 要素の集合に対して前記要素を空間上の
点と仮想し、前記すべての要素に一定の値または要素間
の関係と要素の空間上の位置から決定される値を与え、
前記すべての要素の値が要素の集合の性質および空間の
性質から決定される最終状態になるように配置の決まっ
ていない要素の位置を動かし、前記最終状態になったら
空間の次元数を減少させて再び要素の移動を行い、求め
たい配置方法により決まる空間の次元数になるまで次元
数を減少させることにより要素の配置を得ることを特徴
とする要素配置方法。
5. An element set is assumed to be a point in space with respect to a set of elements, and a constant value or a value determined from the relationship between elements and the position of the element in space is given to all the elements.
The positions of the elements whose arrangement is not determined are moved so that the values of all the elements are in the final state determined by the property of the set of elements and the property of the space, and when the final state is reached, the dimensionality of the space is reduced. The element arrangement method is characterized in that the elements are arranged again by moving the elements again and decreasing the number of dimensions until the number of dimensions of the space determined by the arrangement method desired is obtained.
【請求項6】 要素の集合に対して前記要素間の関係を
入力しこれを保持する関係データ保持手段と、前記要素
の位置を表す位置データ保持手段と、前記関係データ保
持手段の関係データと位置データ保持手段の位置データ
から要素に関する状態値を決める状態値計算手段と、前
記状態値計算手段の要素の状態値にしたがって要素の位
置を動かす移動手段と、前記状態値計算手段の要素の状
態値が終了状態であるかどうかを判定する判定手段と、
現在の空間の次元数が最終的な空間の次元数より大きい
場合に空間の次元を減少させる次元減少手段と、前記位
置データ保持手段の要素の位置から配置を決定する配置
手段とを有し、適切な要素配置を得ることを特徴とする
要素配置装置。
6. A relational data holding means for inputting and holding a relation between the elements with respect to a set of elements, a position data holding means for indicating a position of the element, and relational data of the relational data holding means. A state value calculating means for determining a state value related to the element from the position data of the position data holding means, a moving means for moving the position of the element according to the state value of the element of the state value calculating means, and a state of the element of the state value calculating means. Determination means for determining whether the value is in the end state,
A dimension reducing means for reducing the dimension of the space when the dimension number of the current space is larger than the dimension number of the final space; and an arranging means for deciding the arrangement from the position of the element of the position data holding means, An element placement device characterized by obtaining an appropriate element placement.
JP4147033A 1992-06-08 1992-06-08 Method and device for arranging elements Withdrawn JPH05342290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4147033A JPH05342290A (en) 1992-06-08 1992-06-08 Method and device for arranging elements

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4147033A JPH05342290A (en) 1992-06-08 1992-06-08 Method and device for arranging elements

Publications (1)

Publication Number Publication Date
JPH05342290A true JPH05342290A (en) 1993-12-24

Family

ID=15421016

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4147033A Withdrawn JPH05342290A (en) 1992-06-08 1992-06-08 Method and device for arranging elements

Country Status (1)

Country Link
JP (1) JPH05342290A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6336107B1 (en) 1997-07-31 2002-01-01 Matsushita Electric Industrial Co., Ltd Method and system of automatic arrangement of composing elements
JP2010534375A (en) * 2007-07-23 2010-11-04 シノプシス インコーポレイテッド Architectural physical synthesis
US8819608B2 (en) 2007-07-23 2014-08-26 Synopsys, Inc. Architectural physical synthesis
US9280632B2 (en) 2009-01-30 2016-03-08 Synopsys, Inc. Methods and apparatuses for circuit design and optimization

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6336107B1 (en) 1997-07-31 2002-01-01 Matsushita Electric Industrial Co., Ltd Method and system of automatic arrangement of composing elements
JP2010534375A (en) * 2007-07-23 2010-11-04 シノプシス インコーポレイテッド Architectural physical synthesis
US8595674B2 (en) 2007-07-23 2013-11-26 Synopsys, Inc. Architectural physical synthesis
US8819608B2 (en) 2007-07-23 2014-08-26 Synopsys, Inc. Architectural physical synthesis
US8966415B2 (en) 2007-07-23 2015-02-24 Synopsys, Inc. Architectural physical synthesis
US10268797B2 (en) 2007-07-23 2019-04-23 Synopsys, Inc. Architectural physical synthesis
US9280632B2 (en) 2009-01-30 2016-03-08 Synopsys, Inc. Methods and apparatuses for circuit design and optimization

Similar Documents

Publication Publication Date Title
US8089478B2 (en) Model simplification apparatus and program
CN113297650B (en) BIM technology-based unit type glass curtain wall construction method and system
CN106293328A (en) Icon display method and device
CN110222874A (en) Information processing method and device, storage medium and calculating equipment
JPH05342290A (en) Method and device for arranging elements
CN109032667B (en) Method and system for quickly establishing adjacency list in molecular dynamics simulation
Ni et al. Learning an end-to-end spatial grasp generation and refinement algorithm from simulation
JP4310500B2 (en) Important component priority calculation method and equipment
CN110610140B (en) Training method, device and equipment of face recognition model and readable storage medium
Kang et al. Weight decision algorithm for oversampling technique on class-imbalanced learning
Uciński Optimal selection of measurement locations for parameter estimation in distributed processes
CN111914109A (en) Depth measurement learning-based garment retrieval technology
Dou et al. Machining fixture layout optimization using particle swarm optimization algorithm
CN110245669A (en) Recognition methods, device, terminal and the readable storage medium storing program for executing of palm key point
KR20230065443A (en) Point cloud data augmentation method and learning method using the same
JPH1187197A (en) Simulation method and simulation apparatus for execution of the method
JP2000268064A (en) Device and method for generating arrangement of particle group
Kecman Iterative k data algorithm for solving both the least squares SVM and the system of linear equations
CN112560386A (en) Large-scale complex layout resistance extraction acceleration method
Salman et al. Two-Stage Clustering with k-means Algorithm
Costa et al. Diffuse-element method and quadtrees: two" ingredients" for an adaptive response surface
CN113688302B (en) Page data analysis method, device, equipment and medium
Chen et al. Worst case crosstalk noise for nonswitching victims in high-speed buses
JP7464268B2 (en) Automaton generation device, automaton generation method and program
CN116192862A (en) Service migration decision-making method, device, equipment and medium based on MEC environment

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990831