JPH0573615A - System for managing hierarchical structure type information - Google Patents

System for managing hierarchical structure type information

Info

Publication number
JPH0573615A
JPH0573615A JP3235294A JP23529491A JPH0573615A JP H0573615 A JPH0573615 A JP H0573615A JP 3235294 A JP3235294 A JP 3235294A JP 23529491 A JP23529491 A JP 23529491A JP H0573615 A JPH0573615 A JP H0573615A
Authority
JP
Japan
Prior art keywords
level
memory
degree
parent
elements
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
JP3235294A
Other languages
Japanese (ja)
Inventor
Takayuki Ishizuka
隆之 石塚
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.)
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
Original Assignee
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
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 KOBE NIPPON DENKI SOFTWARE KK, NEC Software Kobe Ltd filed Critical KOBE NIPPON DENKI SOFTWARE KK
Priority to JP3235294A priority Critical patent/JPH0573615A/en
Publication of JPH0573615A publication Critical patent/JPH0573615A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To efficiently manage and abolish an element in a hierarchical structure, especially, a memory. CONSTITUTION:In a storage processing 6, information showing the structure position of the element is added and it is stored by the depths of a hierarchy classifications. In a master, etc., calculation processing 3, a hierarchical structure distance between two elements is calculated by using information showing the structural position of the elements. In an abolishment priority decision processing 4, the element which is the farthest from the element made access at present is judged, and it is abolished. Furthermore, search is made efficient by starting search from a place where the element is highly possibly detected at the time of searching the element to be abolished and with a search suppression system for preventing unnecessary search.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、メモリに格納される階
層型構造を持ち、且つ取得・廃棄を繰り返す情報の廃棄
優先順位決定のための管理・廃棄方式に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a management / discarding method for determining a disposal priority order of information having a hierarchical structure stored in a memory and repeating acquisition / discarding.

【0002】[0002]

【従来の技術】メモリに取得・廃棄を繰り返す情報を大
量に持つ場合、従来は、アクセス順で最も古いものを廃
棄するLRU(Least Recentry Use
d)方式や取得順で最も古いものを廃棄するFIFO
(First InFirstOut)方式を用いるの
が一般的であった。
2. Description of the Related Art In the case where a memory has a large amount of information that is repeatedly acquired and discarded, conventionally, the LRU (Least Recent Use) that discards the oldest access order is used.
d) FIFO that discards the oldest method or acquisition order
It was common to use the (First InFirst Out) method.

【0003】[0003]

【発明が解決しようとする課題】階層型構造情報の管理
で従来のようにLRU方式やFIFO方式を用いると階
層関係に関係無く廃棄されるので、階層関係の途中のも
のが廃棄されたり、階層関係の近いものが廃棄されたり
する。最悪の場合、子関係にあたるものまで廃棄と対象
となる場合がある。
When the LRU system or the FIFO system is used in the management of hierarchical structure information as in the past, the LRU system and the FIFO system are discarded regardless of the hierarchical relationship. Something that is closely related may be discarded. In the worst case, even child relationships may be subject to disposal.

【0004】本発明の階層構造型情報の管理方式は、上
記の問題を解決するため、階層構造を考慮に入れ、現在
アクセス中のものから階層関係(親等)の一番遠いもの
を廃棄する様にする。これにより、取得・廃棄の回数を
減らし、効率を高める事を目的とする。
In order to solve the above problems, the hierarchical structure type information management system of the present invention takes into consideration the hierarchical structure and discards the one that is farthest in the hierarchical relationship (parent etc.) from the one currently being accessed. To This aims to reduce the number of acquisitions / disposals and increase efficiency.

【0005】[0005]

【課題を解決するための手段】本発明は、各要素が各階
層間で親子の関係で連結されてメモリに格納された階層
構造型情報の管理方式において、対象としている要素か
ら最大の親等離れた要素を第1に優先し、階層のレベル
の低い要素を第2に優先し、前記メモリへの取得が古い
要素を第3に優先して前記メモリから廃棄することを特
徴とする。
SUMMARY OF THE INVENTION According to the present invention, in a hierarchical structure type information management method in which each element is connected in a parent-child relationship between layers and stored in a memory, the maximum distance from the target element is the same as the relative degree. The first element is given priority, the element having a lower level in the hierarchy is given second priority, and the older element obtained from the memory is given the third priority and discarded from the memory.

【0006】本発明は、各要素が各階層間で親子の関係
で連結されてメモリに格納された階層構造型情報の管理
方式において、レベルの低い階層から順に同じ階層内で
は前記メモリへの取得が古い要素から順にサーチし、対
象としている要素から現在までサーチした要素までの親
等で最大のものが現在サーチしている階層のレベル内最
大可能親等以上である時にサーチを終了し、その最大の
親等である要素を前記メモリから廃棄することを特徴と
する。
According to the present invention, in a management method of hierarchical structure type information in which each element is connected to each other in a parent-child relationship and stored in a memory, in the same hierarchy in order from the lowest level, acquisition to the memory is performed. Search in order from the oldest element, and when the maximum degree of the relatives from the target element to the searched element up to the present is the maximum possible relative degree within the level of the hierarchy currently being searched, the search is terminated and the maximum It is characterized in that an element that is a parent or the like is discarded from the memory.

【0007】本発明は、各要素が各階層間で親子の関係
で連結されてメモリに格納された階層構造型情報の管理
方式において、上位レベルの階層に同じ要素の親を持つ
子のグループ内に要素番号を付し、各要素の最上位の要
素から親子関係で連結される系統の要素の要素番号の連
続である構造情報をレベル毎に前記メモリへの取得が古
い要素の順にチェイン構造で管理し、2つの要素の構造
情報を上のレベルから比べて要素番号が異ることとなる
レベルの手前のレベルのを当該2つの要素の親子関係の
分岐点として当該2つの要素間の親等を求め、レベルの
低い階層から順に同じ階層内では前記チェイン構造に従
って前記メモリへの取得が古い要素から順にサーチし、
対象としている要素から現在までサーチした要素までの
親等で最大のものが現在サーチしている階層のレベル内
最大可能親等以上である時にサーチを終了し、その最大
の親等である要素を前記メモリから廃棄することを特徴
とする。
According to the present invention, in a management system of hierarchical structure type information in which each element is connected in a parent-child relationship between respective hierarchies and stored in a memory, in a group of children having a parent of the same element in an upper level hierarchy. The element number is attached to each element, and the structure information that is the element number of the elements of the system that are connected in a parent-child relationship from the highest element of each element is acquired in the memory for each level in the chain structure in the order of oldest elements. The structural information of the two elements is managed, and the level before the level where the element numbers differ from the level above is used as a branch point of the parent-child relationship of the two elements to determine the parent etc. between the two elements. Obtained, in the same hierarchy in order from a lower level hierarchy, the acquisition to the memory is searched in order from the oldest element according to the chain structure,
The search ends when the maximum degree of the relatives from the target element to the searched element up to the present is equal to or greater than the maximum possible relative degree within the level of the hierarchy currently being searched, and the element that is the maximum relative is deleted from the memory. Characterized by discarding.

【0008】[0008]

【実施例】次に、本発明について図を用いて説明する。The present invention will be described below with reference to the drawings.

【0009】以下の説明において、要素はメモリに格納
された情報の階層関係上の単位を、レベルは階層の深度
を、親等は階層関係上の距離を、最大親等はある要素を
基準にしての階層関係(親等)の一番の遠さを、レベル
内最大可能親等はそのレベルで考えられる最大の親等を
指す。
In the following description, an element is a unit of a hierarchical relationship of information stored in a memory, a level is a depth of a hierarchy, a parent is a distance in a hierarchical relationship, and a maximum parent is a certain element. The farthest distance of a hierarchical relationship (relative, etc.), the maximum possible relative within a level refers to the maximum possible relative at that level.

【0010】図20を用いて以上の語句の具体例を示
す。図中の□で囲まれたものが要素であり、要素Rのレ
ベル3、要素Sのレベルは2である。要素R−要素S間
の親等は3、要素Rの最大親等は要素Tまでの親等であ
る6。レベル4における要素Rに対するレベル内の最大
可能親等は5となる。
A specific example of the above words and phrases will be shown with reference to FIG. Elements surrounded by □ in the figure are elements, and the level of the element R is 3, and the level of the element S is 2. The degree between the element R and the element S is 3, and the maximum degree between the elements R is the degree up to the element T 6. The maximum possible relative in the level for element R in level 4 is 5.

【0011】図2は、本発明の一実施例が適用されるコ
ンピュータシステムを示したものである。ホストコンピ
ュータ(以下、ホストと記す)21内に格納されている
階層型の構造を持つ莫大な構造情報を、通信によりワー
クステーション(以下、WSと記す)22に移送して一
覧を表示する処理を分散処理で行う。以下に詳細な説明
を行う。
FIG. 2 shows a computer system to which an embodiment of the present invention is applied. A process of transferring a huge amount of structural information having a hierarchical structure stored in a host computer (hereinafter referred to as a host) 21 to a workstation (hereinafter referred to as WS) 22 by communication and displaying a list. Performed by distributed processing. A detailed description will be given below.

【0012】図3の様にホスト21に格納されている莫
大な構造情報をWS22で全て表示する事は、WS22
はホスト21に比してメモリ容量が遥かに少ない事・莫
大なデータの移送には時間がかかる事から困難である。
そこで、図4の様に莫大な構造情報を同レベルの同グル
ープのもの例えば図4の北海道の各市に当たるに集合化
して、これを一つの単位(要素)として表示する。図4
の点線で囲まれた一つのグループが、要素となる。
As shown in FIG. 3, displaying all of the enormous structural information stored in the host 21 on the WS 22 is performed by the WS 22.
Is much smaller than the host 21, and it takes time to transfer enormous data, which is difficult.
Therefore, as shown in FIG. 4, a huge amount of structural information is collected in the same group of the same level, for example, each city of Hokkaido in FIG. 4, and this is displayed as one unit (element). Figure 4
One group surrounded by the dotted line of is an element.

【0013】また、この単位で移送・表示・表示のため
のメモリ取得を行う。メモリは要素毎に持つ事になる
が、データ自体が階層構造を持つので、メモリも階層構
造を持つ。図5はその表示形態を示したものである。
「全国」の画面で「北海道」を選択すると、北海道の市
の一覧が表示され、そこで「札幌市」を選択すると札幌
市の区の一覧が表示される。そこで「札幌市」を選択す
ると、再び北海道の各市の一覧が表示される。この様に
階層構造に添った形で表示される。
In addition, transfer, display, and memory acquisition for display are performed in this unit. The memory has each element, but since the data itself has a hierarchical structure, the memory also has a hierarchical structure. FIG. 5 shows the display form.
When "Hokkaido" is selected on the "All Japan" screen, a list of cities in Hokkaido is displayed, and when "Sapporo city" is selected, a list of wards in Sapporo is displayed. If you select "Sapporo city", a list of each city in Hokkaido will be displayed again. In this way, it is displayed in a form that follows the hierarchical structure.

【0014】WS22のメモリには限界があるので、メ
モリがオーバーフローした段階で、何れかのメモリに格
納した情報を廃棄する必要が生じてくる。この時に、現
在WS22で表示されている要素から見て、一番親等
(距離)の遠い(最大親等)ものを廃棄する様にする。
Since the WS 22 has a limited memory, it is necessary to discard the information stored in any of the memories when the memory overflows. At this time, as far as the element currently displayed on the WS 22 is concerned, the one with the farthest relative (distance) (the largest relative) is discarded.

【0015】図1は、本実施例の処理の流れを示したも
のである。図に示される様に、処理は、ホスト21から
のデータの移送を受けるデータ転送処理1、メモリ不足
を判断するメモリ判断処理2、二要素間の親等を算出す
る親等算出処理3、算出された親等より廃棄の優先順位
を決定する廃棄優先順位決定処理4、要素のデータ(以
下、要素データと記す)およびその情報レコード(以
下、これを要素情報と記す)を廃棄する廃棄処理5、要
素データおよび要素情報を格納する格納処理6、から成
る。
FIG. 1 shows a processing flow of this embodiment. As shown in the figure, the processes are a data transfer process 1 for receiving the data transfer from the host 21, a memory judgment process 2 for judging a memory shortage, a closeness calculation process 3 for calculating a closeness between two elements, and the like. Discarding priority determination process 4 for determining discarding priority from a relative, discarding process 5 for discarding element data (hereinafter referred to as element data) and its information record (hereinafter referred to as element information), element data And a storage process 6 for storing the element information.

【0016】これらの内、格納処理6、親等算出処理
3、廃棄優先順位決定処理4について説明を行う。
Of these, the storage process 6, the parent calculation process 3, and the discard priority order determination process 4 will be described.

【0017】格納処理6は、要素情報をレベル別に古い
順に格納し、そのデータの構造上の位置を示す情報を付
加し、それによって親等算出処理3、廃棄優先順位決定
処理4、廃棄処理5の各処理を行う。
The storage processing 6 stores the element information in order of oldness according to level, adds information indicating the structural position of the data, and thereby adds the degree of closeness calculation processing 3, the discard priority order determination processing 4, and the discard processing 5. Perform each process.

【0018】要素には、図6の様に上位レベルに同じ要
素を持つグループ内で一意に番号が付けられる(以下、
要素番号と称す)。図中の各要素の上の数字は、その要
素の要素番号を示す。最上位からの要素番号の連続を、
そのメモリの構造上の位置を示す情報(以下、構造情報
と称す)とする。図7は、図6の各要素のそれぞれの構
造情報を示したものである。この構造情報は、メモリ間
の親子関係、レベルを示すものである。これらの構造情
報をレベル毎に分類し、古い順にチェイン構造の管理を
行う。
The elements are uniquely numbered within a group having the same elements at higher levels as shown in FIG.
Element number). The number above each element in the figure indicates the element number of the element. The sequence of element numbers from the top,
This is information indicating the structural position of the memory (hereinafter referred to as structural information). FIG. 7 shows the structural information of each element of FIG. This structure information indicates a parent-child relationship between memories and a level. The structure information is classified for each level, and the chain structure is managed in the oldest order.

【0019】図8は、図6・図7の場合の、管理状態を
示したものである。図8中の要素abc…は、図6・図
7の要素abc…にそれぞれ対応する。この状況で、図
9の様に要素b,dと同じ第2レベルに新たに要素gが
追加された場合、新しいメモリの構造情報は、図10の
様に第2レベルのチェインの最後尾に追加される。
FIG. 8 shows the management state in the case of FIGS. The elements abc ... In FIG. 8 correspond to the elements abc ... in FIGS. 6 and 7, respectively. In this situation, when the element g is newly added to the same second level as the elements b and d as shown in FIG. 9, the structure information of the new memory is added to the end of the second level chain as shown in FIG. To be added.

【0020】親等算出処理3は、二つの要素間の親等を
算出する処理である。二つの要素間の親等を算出する場
合、基本的にその二つの要素の系統の分岐点からそれぞ
れの要素の親等の和となる。図11に示す要素hiの様
な場合は、分岐点は要素xとなり、要素hi間の親等は
要素xから要素hの親等と要素xから要素iの親等の和
となる。この場合、要素xから要素hの親等は1、要素
xから要素iの親等は2となるので、要素hi間の親等
は3となる。
The closeness calculation process 3 is a process for calculating the closeness between two elements. When calculating the degree of affinity between two elements, it is basically the sum of the degrees of affinity of each element from the branch point of the system of the two elements. In the case of the element hi shown in FIG. 11, the branch point is the element x, and the degree between the elements hi is the sum of the degree between the elements x and h and the degree between the elements x and i. In this case, since the degree of closeness of the elements x to h is 1, and the degree of closeness of the elements x to i is 2, the degree of closeness between the elements hi is 3.

【0021】次に具体的な説明を行う。Next, a specific description will be given.

【0022】分岐点を探し出すには、格納時に作成した
構造情報を利用する。分岐点とはそれまでは系統は同じ
でも、そこから系統が異なる点である。これを構造情報
に適用すると、それまでは要素番号が同じでも次から要
素番号が異なるレベルの事となる。つまり、図12に示
す様に、構造情報の要素番号を前から比較して、食い違
いが発生したレベルの前のレベルが分岐点となる。
To find a branch point, the structure information created at the time of storage is used. The branch point is the point where the system is different from that of the same system until then. When this is applied to the structure information, the element numbers are the same until then, but the element numbers are different. That is, as shown in FIG. 12, the element numbers of the structure information are compared from the beginning, and the level before the level at which the discrepancy occurs becomes the branch point.

【0023】次に分岐点から要素への親等であれが、分
岐点からの親等は分岐点からその要素迄の階層の深さで
あり、これは「その要素のレベル−分岐点のレベル」で
表す事が出来る。図12を用いて説明すると、分岐点の
レベルは2、要素hのレベルは3、要素iのレベルは4
であるので、分岐点から要素hの親等は「3−2」で
1、分岐点から要素iの親等は「4−2」で2となる。
この1と2の和である3が要素h、i間の親等となる。
Next, whether it is a relative from a branch point to an element, the degree from the branch point is the depth of the hierarchy from the branch point to the element, which is "the level of the element-the level of the branch point". Can be represented. Referring to FIG. 12, the level of the branch point is 2, the level of the element h is 3, and the level of the element i is 4.
Therefore, the degree of closeness of the element h from the branch point is “3-2”, and the degree of closeness of the element i from the branch point is “4-2”, which is 2.
3 which is the sum of 1 and 2 becomes a relative between the elements h and i.

【0024】図13に親等算出処理3の処理の流れを示
す。図11・図12の例を用いて、図13の流れを説明
する。親等算出の基準となる要素(この場合h)を要素
1、親等算出の対象となる要素(この場合i)を要素2
とする。
FIG. 13 shows a processing flow of the degree calculation processing 3 for the relatives. The flow of FIG. 13 will be described with reference to the examples of FIGS. The element (h in this case) that serves as the reference for the degree calculation is element 1, and the element (i in this case) that is the target for the degree calculation is element 2
And

【0025】要素番号の比較は前から行うので、比較開
始の比較レベルを1とする(ステップ31)。比較レベ
ルでの要素1と要素2の要素番号の比較を行う(ステッ
プ32)。その結果等しければ、比較レベルに1を足し
て再び要素番号の比較を行う(ステップ33)。等しく
なければ、その時の比較レベルから1を引いたレベルを
分岐点のレベルとする(ステップ34)。分岐点〜要素
1の間の親等は、要素1のレベルから分岐点のレベルを
引いて求める(ステップ35)、分岐点〜要素2間の親
等は、要素2のレベルから分岐点のレベルを引いて求め
る(ステップ36)。要素1〜要素2間の親等は、先に
求めた分岐点から要素1間の親等と分岐点から要素2間
の親等との和として求められる(ステップ37)。
Since the element numbers are compared from the beginning, the comparison level at the start of comparison is set to 1 (step 31). The element numbers of element 1 and element 2 at the comparison level are compared (step 32). If the results are equal, 1 is added to the comparison level and the element numbers are compared again (step 33). If they are not equal, the level obtained by subtracting 1 from the comparison level at that time is set as the branch point level (step 34). The degree between the branch point and the element 1 is obtained by subtracting the level at the branch point from the level of the element 1 (step 35), and the degree between the branch point and the element 2 is subtracted from the level of the element 2 from the level of the branch point. (Step 36). The degree of closeness between the elements 1 and 2 is obtained as the sum of the degree of closeness between the elements 1 and the degree of closeness between the elements 1 and 2 from the branch point obtained previously (step 37).

【0026】親等計算を行う時、図11の様に分岐点が
明確にあるものばかりでなく、図14の要素jにとって
の要素kの関係の様に直系の上位(祖先)である場合
や、図14の要素lにとっての要素mの関係の様に直系
の下位(子孫)である場合がある。これらの場合におい
ても同じ処理を行うが、図15の様にサーチ途中で要素
2の方に要素番号の存在しないことを示す番号(以下、
これを0とする)が見つかった場合(図中の網掛けの部
分)、要素jにとって要素kは直系上位であると判断で
きる。
When performing the identity calculation, not only is there a clear branch point as shown in FIG. 11, but there is a direct upper rank (ancestor) such as the relation of the element k to the element j in FIG. In some cases, it may be a subordinate (descendant) of the direct line like the relation of the element m for the element l in FIG. The same process is performed in these cases, but as shown in FIG. 15, a number indicating that the element number does not exist in the element 2 during the search (hereinafter,
When this is set to 0) (hatched portion in the figure), it can be determined that the element k is the direct higher order of the element j.

【0027】また、図16の様に、サーチ途中で要素l
の方に要素番号0が見つかった場合(図中の網掛けの部
分)、要素lにとって要素mは直系下位であると判断で
きる。これらの場合においても、0が見つかったレベル
より一つ上位のレベルを分岐点とする事で親等の計算を
行う事が出来る。例えば、要素j.kの場合を用いる
と、要素jの分岐点からの親等は2、要素kの分岐点か
らの親等は0で、要素jk間の親等は2となる。
As shown in FIG. 16, the element l
When the element number 0 is found in (indicated by a shaded portion in the figure), it can be determined that the element m is a direct subordinate to the element l. Even in these cases, the degree of closeness can be calculated by using the level one higher than the level where 0 is found as the branch point. For example, element j. When the case of k is used, the degree of kinship from the branch point of the element j is 2, the degree of kinship from the branch point of the element k is 0, and the degree of kinship between the elements jk is 2.

【0028】廃棄優先順位決定処理4は、「効率的なサ
ーチ」・同じ親等が見つかった時の「優先順位」・無駄
なサーチを行わないための「サーチ抑制」の三つの原理
から構成されている。
The discard priority order determination process 4 is composed of three principles: "efficient search", "priority order" when the same relative is found, and "search suppression" for avoiding unnecessary searches. There is.

【0029】「効率的なサーチ」とは、最大親等がある
可能性の高い所からサーチを始めて、早く最大親等を見
つける事である。親等の大きなものがある可能性の高い
所とは、レベルの低い(下位の)所である。親等とは分
岐点から階層の深さであるので、レベルの低いもの程分
岐点からの階層が深くなる可能性が高くなる。この事か
ら、レベルの低いものから高いものへのサーチする事に
よって、早く親等の大きなものが見つけらる。レベルに
ついては、格納時にレベル毎にチェイン構造で格納され
ているので、そのチェインを辿って行くことで同じレベ
ルの全ての要素がサーチできる。
"Efficient search" is to start a search from a place where there is a high possibility that there is a maximum degree of closeness and to find the maximum degree of closeness early. A place where there is a high possibility that there is a large relative is a place with a low level (lower level). Since the degree of parent is the depth of the hierarchy from the branch point, the lower the level is, the higher the possibility of the hierarchy from the branch point is. From this, by searching from low level to high level, you can quickly find a big relative. Levels are stored in a chain structure for each level at the time of storage, so that all elements of the same level can be searched by following the chain.

【0030】メモリがオーバーフローした時にはWS2
2で表示している要素から見て最大親等のものを廃棄す
るが、最大で同じ親等のものが見つかった場合の「優先
順位」は、レベルに低い方に、次に古い順となる。これ
は、格納順そのものであるのでレベルの低い順・格納順
にサーチし、同じ親等が見つかった場合には以前見つか
ったものを優先させる。図17の要素nに対して最大親
等にあたる要素をサーチする時の順序を、格納状態と併
せて図18に示す。図中の各要素の上の丸で囲んだ番号
は、その要素のサーチ順を示す。
When the memory overflows, WS2
From the elements displayed in 2, the largest relatives are discarded, but when the same largest relatives are found, the “priority” is the one with the lowest level, and the next oldest. Since this is the storage order itself, the search is performed in order from the lowest level / storage order, and when the same parent etc. is found, the one found previously is given priority. FIG. 18 shows the order in which the element closest to the element n in FIG. 17 is searched, together with the storage state. The circled numbers above each element in the figure indicate the search order of that element.

【0031】「サーチ抑制」は、無駄なサーチを行わな
いためのものである。効率的なサーチによって、サーチ
は最大親等が見つかる可能性の高いレベルから低いレベ
ルへと行われている。そのため、最大親等は早期に発見
されており、サーチが進む程最大親等の見つかる可能性
が低いものをサーチしていく事になる。そこで、それ以
降サーチしても現在導き出されている最大親等より大き
な(同じであれば以前のものが優先される)親等が導き
出される可能性が無い場合には、そこでサーチを終了す
る。
"Search suppression" is to prevent useless searches. With efficient search, the search is done from the level where it is most likely to find the greatest degree of relatives. Therefore, the maximum degree is detected early, and the more the search proceeds, the less likely the maximum degree is to be found. Therefore, if there is no possibility that a parent or the like larger than the currently derived maximum parent (if they are the same, the previous one is prioritized) will not be derived even if the subsequent searches are performed, the search is ended there.

【0032】サーチはレベル毎に行っているので、サー
チを終了すべきところというのは、終了すべきレベル、
という事になる。このサーチを終了すべきレベルという
のは、「そのレベルで考えらる最大親等よりも、現在導
き出されている最大親等の方が大きい」レベルの事であ
る。そのレベルで考えられる最大親等つまり、レベル内
最大可能親等とは、分岐点を最上位レベルと想定した時
の親等である。これは、「要素のレベル+対象レベルの
レベル−2」で表される。また、同じレベルにおいて
も、そのレベルで考えられる最大親等が見つかった場合
には、そのレベル以降ではそれ以上大きな親等は見つか
らないので、サーチを終了する。
Since the search is performed for each level, the place where the search should end is the level at which it ends.
It means that. The level at which this search should be terminated is the level at which the currently derived maximum degree is greater than the maximum degree considered at that level. The maximum degree of relatives possible at that level, that is, the maximum possible degree of relatives within a level, is the degree of relatives when the branch point is assumed to be the highest level. This is represented by “level of element + level of target level−2”. Further, even if the maximum possible degree at the same level is found even at the same level, no further greater degree is found at that level and thereafter, so the search ends.

【0033】図19を用いて廃棄優先順位決定処理4に
おける最大親等のサーチとサーチ抑制処理の処理の流れ
を説明する。文中のABC…は図中のABC…に対応す
る。
The process flow of the search for the maximum parent and the search suppression process in the discard priority order determination process 4 will be described with reference to FIG. ABC in the sentence corresponds to ABC in the figure.

【0034】サーチは最大親等のある可能性の高いレベ
ル、つまり最下位レベルから開始する(ステップ4
1)。最大親等の初期値は0とする(ステップ42)。
サーチレベルでのレベル内最大可能親等を算出する(ス
テップ43)。算出されたレベル最大可能親等がこれま
で導き出されている最大親等(初回は0)よりも小さい
場合には、または導き出された最大親等がレベル内最大
可能親等と同じ場合、それ以上サーチしてもこれまでに
導き出されている最大親等よりも大きい親等は導き出さ
れないのでサーチを終了する(ステップ44)。
The search starts from the level that is most likely to have the greatest degree, ie, the lowest level (step 4).
1). The initial value of the maximum degree of relatives is set to 0 (step 42).
The maximum possible relative degree within the level at the search level is calculated (step 43). If the calculated maximum possible degree relative to the level is smaller than the maximum possible relative degree that has been derived so far (0 for the first time), or if the derived maximum relative degree is the same as the maximum possible relative degree within the level, then further searching Since the relatives larger than the maximum relatives derived so far are not derived, the search ends (step 44).

【0035】基準となる要素とそのレベル内の一つの要
素の親等を算出する(ステップ45)。算出された親等
とこれまでに導き出されている最大親等と比較する(ス
テップ46)。算出された親等とこれまでに導き出され
ている最大親等より大きい場合、算出された親等を最大
親等とする(ステップ47)。親等算出の対象を次の要
素へと進める(ステップ49)、次のレベルへと進む
(ステップ50)。次の要素、レベルがない場合、サー
チを終了する(ステップ51)。
The reference element and the degree of parent of one element within the level are calculated (step 45). The calculated relative degree is compared with the maximum relative degree that has been derived so far (step 46). When it is larger than the calculated relative degree and the maximum relative degree derived so far, the calculated relative degree is set as the maximum relative degree (step 47). The target of the degree calculation, etc. is advanced to the next element (step 49), and to the next level (step 50). If there is no next element or level, the search ends (step 51).

【0036】[0036]

【発明の効果】以上説明した通り、本発明によれば階層
構造型情報の対象としている要素から最大親等の要素を
廃棄することにより、階層関係を意識して一番必要の無
いメモリを廃棄するので、必要なメモリを廃棄すること
が少なくなり、データの取得のための通信の回数も減少
する。また、その格納方式も階層関係を意識したものに
なっており、サーチも意識した格納法になっているため
サーチも効率的に行われ、サーチ抑制によりサーチも短
時間で終了する様になっている。
As described above, according to the present invention, by discarding the element such as the highest parent from the elements targeted for the hierarchical structure type information, the memory that is least necessary in consideration of the hierarchical relationship is discarded. Therefore, it is less likely that the necessary memory will be discarded, and the number of communications for data acquisition will be reduced. In addition, the storage method is also conscious of hierarchical relationships, and because the storage method is also conscious of search, the search can be performed efficiently, and the search can be completed in a short time by suppressing the search. There is.

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

【図1】本発明の一実施例の処理の流れを示す図であ
る。
FIG. 1 is a diagram showing a flow of processing according to an embodiment of the present invention.

【図2】図1に示す実施例が適用されるコンピュータシ
ステムを示す図である。
FIG. 2 is a diagram showing a computer system to which the embodiment shown in FIG. 1 is applied.

【図3】図2に示すホスト21の中に格納されている階
層型構造の一例を示す図である。
3 is a diagram showing an example of a hierarchical structure stored in a host 21 shown in FIG.

【図4】図3に示す階層型構造の要素毎の集合化を示し
た図である。
FIG. 4 is a diagram showing an element-by-element grouping of the hierarchical structure shown in FIG. 3;

【図5】図2に示すWS22側の表示遷移を示す図であ
る。
5 is a diagram showing a display transition on the WS22 side shown in FIG.

【図6】図1に示す実施例における要素番号を示すため
の図である。
FIG. 6 is a diagram showing element numbers in the embodiment shown in FIG.

【図7】図6に示す例の構造情報を表した図である。FIG. 7 is a diagram showing structural information of the example shown in FIG.

【図8】図6および図7の場合の構造情報の格納状態を
示した図である。
FIG. 8 is a diagram showing a storage state of structure information in the cases of FIGS. 6 and 7.

【図9】図6の例に要素を追加した図である。9 is a diagram in which elements are added to the example of FIG.

【図10】図9の場合の構造情報の格納状態を示した図
である。
10 is a diagram showing a storage state of structure information in the case of FIG. 9;

【図11】図1に示す実施例において親等計算を説明す
るための図である。
FIG. 11 is a diagram for explaining a degree calculation in the embodiment shown in FIG.

【図12】図11に示す例での構造情報と二つの要素の
要素番号の相違点と分岐点を示した図である。
FIG. 12 is a diagram showing the difference between the structure information and the element numbers of two elements and the branch point in the example shown in FIG. 11;

【図13】図1に示す実施例で親等算出方法の流れを示
した図である。
FIG. 13 is a diagram showing a flow of a friendship calculation method in the embodiment shown in FIG. 1.

【図14】図1に示す実施例において直系を説明するた
めの図である。
FIG. 14 is a diagram for explaining a direct system in the embodiment shown in FIG.

【図15】図14の例の直系上位の場合の構造情報を示
した図である。
15 is a diagram showing structural information in the case of a direct upper layer of the example of FIG.

【図16】図14の例の直系下位の場合の構造情報を示
した図である。
16 is a diagram showing structural information in the case of a direct subordinate of the example of FIG.

【図17】図1に示す実施例においてサーチ順を説明す
るための図である。
FIG. 17 is a diagram for explaining a search order in the embodiment shown in FIG.

【図18】図17に示す例の構造情報の格納状態とサー
チ順を示した図である。
FIG. 18 is a diagram showing a storage state of structure information and a search order in the example shown in FIG. 17;

【図19】図1に示す実施例の最大親等のサーチおよび
サーチ抑制の処理を示した流れ図である。
FIG. 19 is a flowchart showing a process of searching for a maximum parent and the like and a search suppression process according to the embodiment shown in FIG. 1;

【図20】図1に示す実施例の説明上使用される基本的
の語句の説明のための図である。
FIG. 20 is a diagram for explaining basic words and phrases used in explaining the embodiment shown in FIG. 1;

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

1 データ転送処理 2 メモリ判断処理 3 親等算出処理 4 廃棄優先順位決定処理 5 廃棄処理 6 格納処理 1 data transfer processing 2 memory judgment processing 3 relative calculation processing 4 discard priority order determination processing 5 discard processing 6 storage processing

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 各要素が各階層間で親子の関係で連結さ
れてメモリに格納された階層構造型情報の管理方式にお
いて、 対象としている要素から最大の親等離れた要素を第1に
優先し、階層のレベルの低い要素を第2に優先し、前記
メモリへの取得が古い要素を第3に優先して前記メモリ
から廃棄することを特徴とする階層構造型情報の管理方
式。
1. In a management method of hierarchical structure type information in which each element is connected to each hierarchy in a parent-child relationship and stored in a memory, an element farthest from the target element in the highest degree of relative relation is given priority. A method of managing hierarchical structure type information, characterized in that an element having a lower level of hierarchy is given second priority, and an older element that is acquired in the memory is given third priority and discarded from the memory.
【請求項2】 各要素が各階層間で親子の関係で連結さ
れてメモリに格納された階層構造型情報の管理方式にお
いて、 レベルの低い階層から順に同じ階層内では前記メモリへ
の取得が古い要素から順にサーチし、対象としている要
素から現在までサーチした要素までの親等で最大のもの
が現在サーチしている階層のレベル内最大可能親等以上
である時にサーチを終了し、その最大の親等である要素
を前記メモリから廃棄することを特徴とする階層構造型
情報の管理方式。
2. In a management method of hierarchical structure type information in which each element is connected to each other in a parent-child relationship and stored in a memory, in a hierarchy from a lower level, acquisition to the memory is older in the same hierarchy. The search is performed in order from the element, and the search is terminated when the maximum relative degree from the target element to the searched element up to the present is the maximum possible relative degree within the level of the hierarchy currently being searched, and the maximum relative degree is calculated. A management method of hierarchical structure type information, wherein a certain element is discarded from the memory.
【請求項3】 各要素が各階層間で親子の関係で連結さ
れてメモリに格納された階層構造型情報の管理方式にお
いて、 上位レベルの階層に同じ要素の親を持つ子のグループ内
に要素番号を付し、各要素の最上位の要素から親子関係
で連結される系統の要素の要素番号の連続である構造情
報をレベル毎に前記メモリへの取得が古い要素の順にチ
ェイン構造で管理し、 2つの要素の構造情報を上のレベルから比べて要素番号
が異ることとなるレベルの手前のレベルのを当該2つの
要素の親子関係の分岐点として当該2つの要素間の親等
を求め、 レベルの低い階層から順に同じ階層内では前記チェイン
構造に従って前記メモリへの取得が古い要素から順にサ
ーチし、対象としている要素から現在までサーチした要
素までの親等で最大のものが現在サーチしている階層の
レベル内最大可能親等以上である時にサーチを終了し、
その最大の親等である要素を前記メモリから廃棄するこ
とを特徴とする階層構造型情報の管理方式。
3. In a management method of hierarchical structure type information in which each element is connected to each other in a parent-child relationship and stored in a memory, an element is included in a child group having a parent of the same element in a higher level hierarchy. Numbered, the structure information, which is a sequence of element numbers of the elements of the system connected in parent-child relationship from the highest element of each element, is managed in a chain structure in order from the oldest element acquired to the memory for each level. , The structural information of the two elements is compared from the upper level, and the level before the level where the element numbers are different is used as a branch point of the parent-child relationship of the two elements to obtain the parent degree between the two elements, In the same hierarchy in order from the lowest level, according to the chain structure, the elements that are acquired in the memory are searched in order from the oldest, and the largest parent etc. from the target element to the current searched element is the current one. Search ends when the maximum possible relative degree within the level of the hierarchy being reached,
A hierarchical structure type information management method characterized in that the element that is the highest degree of relative is discarded from the memory.
JP3235294A 1991-09-17 1991-09-17 System for managing hierarchical structure type information Pending JPH0573615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3235294A JPH0573615A (en) 1991-09-17 1991-09-17 System for managing hierarchical structure type information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3235294A JPH0573615A (en) 1991-09-17 1991-09-17 System for managing hierarchical structure type information

Publications (1)

Publication Number Publication Date
JPH0573615A true JPH0573615A (en) 1993-03-26

Family

ID=16983986

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3235294A Pending JPH0573615A (en) 1991-09-17 1991-09-17 System for managing hierarchical structure type information

Country Status (1)

Country Link
JP (1) JPH0573615A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0944507A (en) * 1995-07-26 1997-02-14 Fuji Xerox Co Ltd Matching device
US9342589B2 (en) 2008-07-30 2016-05-17 Nec Corporation Data classifier system, data classifier method and data classifier program stored on storage medium
US9361367B2 (en) 2008-07-30 2016-06-07 Nec Corporation Data classifier system, data classifier method and data classifier program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0944507A (en) * 1995-07-26 1997-02-14 Fuji Xerox Co Ltd Matching device
US9342589B2 (en) 2008-07-30 2016-05-17 Nec Corporation Data classifier system, data classifier method and data classifier program stored on storage medium
US9361367B2 (en) 2008-07-30 2016-06-07 Nec Corporation Data classifier system, data classifier method and data classifier program

Similar Documents

Publication Publication Date Title
Tao et al. The mv3r-tree: A spatio-temporal access method for timestamp and interval queries
US8229916B2 (en) Method for massively parallel multi-core text indexing
EP2237196A1 (en) Tree-based node insertion method and memory device
JPH07191891A (en) Computer method and storage structure for storage of, and access to, multidimensional data
CN102640125A (en) Distributed content storage and retrieval
JP2000057174A (en) Method and system for storing and retrieving multimedia object
CN105117497B (en) Ocean big data principal and subordinate directory system and method based on Spark cloud network
JP2000112814A (en) Method and device for allocating memory
CN106682042B (en) A kind of relation data caching and querying method and device
CN107391600A (en) Method and apparatus for accessing time series data in internal memory
CN106528793A (en) Spatial-temporal fragment storage method for distributed spatial database
US6546382B1 (en) Finding the TOP N values through the execution of a query
CN111090712A (en) Data processing method, device and equipment and computer storage medium
CN110134738A (en) Distributed memory system resource predictor method, device
CN111444147A (en) Data page creating method and device, terminal equipment and storage medium
US7617226B1 (en) Document treadmilling system and method for updating documents in a document repository and recovering storage space from invalidated documents
CN109857924A (en) A kind of big data analysis monitor information processing system and method
Tu et al. A systematic approach to reduction of user-perceived response time for GIS web services
JPH0573615A (en) System for managing hierarchical structure type information
Wei et al. Efficient spatial data transmission in Web-based GIS
CN109635161B (en) Cross-domain allopatric collaborative design method in mass data environment
CN105740374B (en) Three-dimensional platform data fuzzy query method based on distributed memory
CN107147531B (en) CDM cluster website management system
WO2021232442A1 (en) Density clustering method and apparatus on basis of dynamic grid hash index
CN112269947A (en) Spatial text data caching method and device, electronic equipment and storage medium