[go: up one dir, main page]

JPH1131147A - Data management system with tree structure - Google Patents

Data management system with tree structure

Info

Publication number
JPH1131147A
JPH1131147A JP9185407A JP18540797A JPH1131147A JP H1131147 A JPH1131147 A JP H1131147A JP 9185407 A JP9185407 A JP 9185407A JP 18540797 A JP18540797 A JP 18540797A JP H1131147 A JPH1131147 A JP H1131147A
Authority
JP
Japan
Prior art keywords
node
tree structure
nodes
management system
data management
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
JP9185407A
Other languages
Japanese (ja)
Inventor
Arinori Ito
有紀 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP9185407A priority Critical patent/JPH1131147A/en
Publication of JPH1131147A publication Critical patent/JPH1131147A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【課題】 既に構成されている木構造に対し、新たなノ
ードを挿入したり、既に構成されている木構造から不要
なノードを削除するとき、各ノードに関連するノードの
番号を付け替えるだけで、木構造の変更を完了し得るよ
うにする。 【解決手段】 木構造5を構成する各ノード2に対し、
全ての番号が一意になるように、ノード番号を付加する
とともに、各ノード番号の関係を、各ノード2毎にまと
めて、関係記述子4を作成し、これらの関係記述子4を
まとめて、関係記述テーブル10を作成し、各ノード2
の追加や削除を行なう際、関係記述テーブル10の内容
を変更して、各ノード2の接続関係を変更する。
(57) [Summary] [PROBLEMS] To insert a new node into an already configured tree structure or to delete an unnecessary node from the already configured tree structure, a node related to each node is deleted. The tree structure can be changed simply by changing the numbers. SOLUTION: For each node 2 constituting a tree structure 5,
Node numbers are added so that all numbers are unique, and the relationship between the node numbers is grouped for each node 2, a relation descriptor 4 is created, and these relation descriptors 4 are grouped, A relation description table 10 is created, and each node 2
When adding or deleting a connection, the contents of the relation description table 10 are changed to change the connection relation between the nodes 2.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、管理構成要素など
のデータ要素を木構造にして所有する木構造を有するデ
ータ管理システムに関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a data management system having a tree structure in which data elements such as management components are owned in a tree structure.

【0002】[0002]

【従来の技術】管理構成要素などのデータ要素を木構造
にして所有する木構造を有するデータ管理システムで
は、従来、図15に示すように、複数のノード101に
よって構成される木構造102に対し、図16に示すよ
うに、一番上のノード101から順次、番号を付けて、
各ノード101に、上下関係(親子関係)を与えるとと
もに、各データ要素の上下関係に応じて、各データ要素
を各ノード101に割り付けることにより、1つのデー
タ要素が与えられたとき、このデータ要素の親となるデ
ータ要素や子となるデータ要素などを順次、見つけ出す
ことができるようにしている。
2. Description of the Related Art In a data management system having a tree structure in which data elements such as management components are owned in a tree structure, conventionally, as shown in FIG. As shown in FIG. 16, numbers are sequentially assigned from the top node 101,
By giving a hierarchical relationship (parent-child relationship) to each node 101 and allocating each data element to each node 101 according to the hierarchical relationship of each data element, when one data element is given, this data element The parent data element and the child data element can be sequentially found.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
た従来の木構造を有するデータ管理システムにおいて
は、既に構成されている木構造102に新たなデータ要
素を挿入したときや既に構成されている木構造102か
ら不要になったデータ要素を削除したとき、一番上のノ
ード101から、順次、番号を付け直して、全てのノー
ド101に与えられた番号を付け直さなければならない
ことから、木構造102の再構成が難しいという問題が
あった。
However, in the data management system having the conventional tree structure described above, when a new data element is inserted into the already configured tree structure 102 or when the already configured tree structure 102 is inserted. When unnecessary data elements are deleted from the node 102, the numbers given to all the nodes 101 must be renumbered sequentially from the top node 101, so that the tree structure 102 However, there was a problem that reconstruction was difficult.

【0004】本発明は上記の事情に鑑み、請求項1で
は、既に構成されている木構造に対し、新たなノードを
挿入したり、既に構成されている木構造から不要なノー
ドを削除するとき、各ノードに関連するノードの番号を
付け替えるだけで、木構造の変更を完了することがで
き、これによって木構造の再構成作業を簡単にして、オ
ペレータの操作時間やコンピュータ装置側の処理時間な
どを飛躍的に短くすることができる木構造を有するデー
タ管理システムを提供することを目的としている。
[0004] In view of the above circumstances, the present invention provides a method for inserting a new node into an already configured tree structure or deleting an unnecessary node from the already configured tree structure. By simply renumbering the nodes related to each node, the tree structure can be changed, which simplifies the tree structure reconstruction work and reduces the operation time of the operator and the processing time of the computer device. It is an object of the present invention to provide a data management system having a tree structure capable of dramatically shortening the time.

【0005】また、請求項2では、既に構成されている
木構造に対し、新たなノードを挿入するとき、新たなノ
ードと、このノードに関連するノードの番号を付け替え
るだけで、木構造の変更を完了することができ、これに
よって木構造の再構成作業を簡単にして、オペレータの
操作時間やコンピュータ装置側の処理時間などを飛躍的
に軽減させることができる木構造を有するデータ管理シ
ステムを提供することを目的としている。
According to a second aspect of the present invention, when a new node is inserted into an already configured tree structure, the tree structure is changed only by changing the numbers of the new node and the nodes related to this node. To provide a data management system having a tree structure that can simplify the tree structure reconstructing work and dramatically reduce the operation time of the operator and the processing time on the computer device side. It is intended to be.

【0006】また、請求項3では、既に構成されている
木構造から1つのノードの下にある各ノードを削除する
とき、削除されたノード自体と、各ノードに関連するノ
ードの番号を付け替えるだけで、木構造の変更を完了す
ることができ、これによって木構造の再構成作業を簡単
にして、オペレータの操作時間やコンピュータ装置側の
処理時間などを飛躍的に軽減させることができる木構造
を有するデータ管理システムを提供することを目的とし
ている。
According to a third aspect of the present invention, when each node below one node is deleted from the already configured tree structure, the number of the deleted node itself and the number of the node related to each node are simply changed. Thus, the tree structure can be completely changed, thereby simplifying the tree structure reconstructing operation, and significantly reducing the operation time of the operator and the processing time of the computer device side. The purpose of the present invention is to provide a data management system.

【0007】[0007]

【課題を解決するための手段】上記の目的を達成するた
めに本発明は、請求項1では、複数のノードを木構造形
式で接続して使用する木構造を有するデータ管理システ
ムにおいて、複数のノードを階層化して接続した木構造
における自分の親、自分の第1子、自分と同じ親を持つ
メンバーとなる各ノードのノード番号を保持する関係記
述テーブルを備え、各ノードの追加、削除を行なうと
き、関係記述テーブルの内容のうち、追加、削除対象と
なったノードに関連するノードの番号を変更することを
特徴としている。
According to a first aspect of the present invention, there is provided a data management system having a tree structure in which a plurality of nodes are connected and used in a tree structure form. It has a relationship description table that holds the node numbers of its own parent, its own first child, and each node that is a member having the same parent as itself in a tree structure in which nodes are connected hierarchically. When performing, the number of the node related to the node to be added or deleted from the contents of the relation description table is changed.

【0008】また、請求項2では、複数のノードを木構
造形式で接続して使用する木構造を有するデータ管理シ
ステムにおいて、複数のノードを階層化して接続した第
1木構造と、自分の親、自分の第1子、自分と同じ親を
持つメンバーとなる各ノードのノード番号を保持する関
係記述テーブルとを備え、前記第1木構造中にあるノー
ドの1つに、複数のノードを階層化して接続した第2木
構造を追加する際には、第2木構造の各ノード番号全体
を変更するとともに、追加対象となった前記ノード自
体、および関連するノードに基づき、第1木構造に対応
する関係記述テーブル、および前記第2木構造に対応す
る関係記述テーブルの内容を変更することを特徴として
いる。
According to a second aspect of the present invention, in a data management system having a tree structure in which a plurality of nodes are connected and used in a tree structure format, a first tree structure in which a plurality of nodes are hierarchically connected to each other is provided. , A relation description table holding the node numbers of the nodes that are members of the first child of the own and the same parent as the own, and a plurality of nodes are hierarchically arranged in one of the nodes in the first tree structure. When adding the second tree structure that has been converted and connected, the entire node number of the second tree structure is changed, and based on the node itself to be added and the related nodes, the first tree structure The contents of the corresponding relation description table and the contents of the relation description table corresponding to the second tree structure are changed.

【0009】さらに、請求項3では、請求項2に記載の
木構造を有するデータ管理システムにおいて、前記第1
木構造中にあるノードの1つから下にある各ノードを削
除する際、第1木構造の関係記述テーブル上にある各関
係記述子のうち、削除した各ノードに対応する各関係記
述子を削除するとともに、削除した各ノードのノード番
号を持つ関係記述子の内容を変更することを特徴として
いる。
Further, in the data management system having a tree structure according to the second aspect, in the data management system,
When deleting each node below one of the nodes in the tree structure, among the relation descriptors on the relation description table of the first tree structure, replace each relation descriptor corresponding to each deleted node with each other. In addition to the deletion, the contents of the relation descriptor having the node number of each deleted node are changed.

【0010】上記の構成において、請求項1では、複数
のノードを階層化して接続した木構造と、自分の親、自
分の第1子、自分と同じ親を持つメンバーとなる各ノー
ドのノード番号を保持する関係記述テーブルとを備え、
各ノードの追加、削除を行なうとき、関係記述テーブル
の内容のうち、追加、削除対象となったノードに関連す
るノードの番号を変更することにより、既に構成されて
いる木構造に対し、新たなノードを挿入したり、既に構
成されている木構造から不要なノードを削除するとき、
各ノードに関連するノードの番号を付け替えるだけで、
木構造の変更を完了させ、これによって木構造の再構成
作業を簡単にして、オペレータの操作時間やコンピュー
タ装置側の処理時間などを飛躍的に短くする。
In the above configuration, according to the first aspect, a tree structure in which a plurality of nodes are hierarchized and connected, and a node number of each node which is a member having its own parent, its first child, and the same parent as its own And a relationship description table that holds
When adding or deleting each node, a new number is added to the already configured tree structure by changing the number of the node related to the node to be added or deleted in the contents of the relation description table. When inserting nodes or deleting unnecessary nodes from the already configured tree structure,
Just change the number of the node related to each node,
The modification of the tree structure is completed, thereby simplifying the reconstruction operation of the tree structure, and the operation time of the operator and the processing time on the computer device side are drastically shortened.

【0011】また、請求項2では、第1木構造中にある
ノードの1つに、第2木構造を追加する際、第2木構造
の各ノード番号全体を変更した後、追加対象となった前
記ノード自体および関連するノードに基づき、第1木構
造に対応する関係記述テーブル、前記第2木構造に対応
する関係記述テーブルの内容を変更することにより、既
に構成されている木構造に対し、新たなノードを挿入す
るとき、新たなノードと、このノードに関連するノード
の番号を付け替えるだけで、木構造の変更を完了させ、
これによって木構造の再構成作業を簡単にして、オペレ
ータの操作時間やコンピュータ装置側の処理時間などを
飛躍的に軽減させる。
In addition, when adding the second tree structure to one of the nodes in the first tree structure, the entire node number of the second tree structure is changed and then added. By changing the contents of the relation description table corresponding to the first tree structure and the contents of the relation description table corresponding to the second tree structure based on the node itself and the related nodes, , When inserting a new node, simply changing the number of the new node and the node related to this node completes the change of the tree structure,
As a result, the tree structure reconstructing operation is simplified, and the operation time of the operator and the processing time of the computer device are greatly reduced.

【0012】さらに、請求項3では、第1木構造中にあ
るノードの1つから下にある各ノードを削除する際、第
1木構造の関係記述テーブル上にある各関係記述子のう
ち、削除した各ノードに対応する各関係記述子を削除す
るとともに、削除した各ノードのノード番号を持つ関係
記述子の内容を変更することにより、既に構成されてい
る木構造から1つのノードの下にある各ノードを削除す
るとき、削除されたノード自体と、各ノードに関連する
ノードの番号を付け替えるだけで、木構造の変更を完了
させ、これによって木構造の再構成作業を簡単にして、
オペレータの操作時間やコンピュータ装置側の処理時間
などを飛躍的に軽減させる。
Furthermore, in the third aspect, when each node below one of the nodes in the first tree structure is deleted, among the relation descriptors on the relation description table of the first tree structure, By deleting each relational descriptor corresponding to each deleted node and changing the contents of the relational descriptor having the node number of each deleted node, the tree structure that has already been configured can be deleted under one node. When deleting each node, simply change the number of the deleted node and the node related to each node, and complete the change of the tree structure, thereby simplifying the tree structure reconstruction work,
Dramatically reduce the operation time of the operator and the processing time of the computer device.

【0013】[0013]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

《実施の形態の構成》図1は本発明による木構造を有す
るデータ管理システムの実施の形態を示す構成図であ
る。
<< Configuration of Embodiment >> FIG. 1 is a configuration diagram showing an embodiment of a data management system having a tree structure according to the present invention.

【0014】この図に示す木構造を有するデータ管理シ
ステム1は、親子関係、兄弟関係などに応じた位置に配
置される複数のノード2と、各ノード2間を接続する複
数の連結線3と、図2に示すように、各ノード2毎に作
成される複数の関係記述子4とを備えており、各ノード
2に対し、全ての番号が一意になるように、ノード番号
が付加されるとともに、各ノード番号の関係が、各ノー
ド2毎にまとめられて、関係記述子4が作成され、これ
らの関係記述子4がまとめられて、関係記述テーブル1
0(図3参照)が作成される。そして、新たなノード2
を追加する際や不要になったノード2を削除する際に、
関係記述テーブル10中にある各ノード番号のうち、追
加されたノード2、削除されたノード2に対応するノー
ド番号を付け替えるだけで、木構造5の変更を完了す
る。
A data management system 1 having a tree structure shown in FIG. 1 includes a plurality of nodes 2 arranged at positions corresponding to a parent-child relationship, a sibling relationship, and a plurality of connection lines 3 connecting the nodes 2. 2, a plurality of relational descriptors 4 created for each node 2 are provided, and a node number is added to each node 2 so that all numbers are unique. At the same time, the relationship between the node numbers is grouped for each node 2 to create a relationship descriptor 4, and these relationship descriptors 4 are grouped into a relationship description table 1
0 (see FIG. 3) is created. And new node 2
When adding a node or deleting an unnecessary node 2,
The change of the tree structure 5 is completed only by changing the node numbers corresponding to the added node 2 and the deleted node 2 among the node numbers in the relation description table 10.

【0015】この場合、複数のノード2と、これらを接
続する複数の連結線3とによって、1つの木構造5を構
成し、各ノード2に対し、各データ要素が割り付けられ
る。
In this case, one tree structure 5 is constituted by a plurality of nodes 2 and a plurality of connecting lines 3 connecting them, and each data element is allocated to each node 2.

【0016】また、関係記述子4は、図2に示すよう
に、自分のノード番号が書き込まれる自分記入欄6と、
自分の親となるノード2のノード番号が書き込まれる親
記入欄7と、自分の第1子となるノード2のノード番号
が書き込まれる第1子記入欄8と、自分と同じ親を持つ
メンバーのなかで、最も関係が近いノード2のノード番
号が書き込まれるメンバー記入欄9とを備えている。ま
た、図3に示すように、各ノード2毎の関係記述子4が
まめられて、1つの関係記述テーブル10が作成され
る。
Further, as shown in FIG. 2, the relation descriptor 4 includes a self entry column 6 in which the own node number is written,
A parent entry field 7 in which the node number of the node 2 to be the parent is written; a first child entry field 8 in which the node number of the node 2 to be the first child is written; Among them, there is provided a member entry column 9 in which the node number of the node 2 having the closest relationship is written. In addition, as shown in FIG. 3, the relation descriptor 4 for each node 2 is collected and one relation description table 10 is created.

【0017】《実施の形態の動作》次に、図4〜図14
に示す模式図を参照しながら、このデータ管理システム
1を構成する木構造5、関係記述テーブル10の作成動
作、新たなノード2の挿入動作、不要なノード2の削除
動作について詳細に説明する。
<< Operation of the Embodiment >> Next, FIGS.
With reference to the schematic diagram shown in FIG. 1, the tree structure 5, the operation of creating the relation description table 10, the operation of inserting a new node 2, and the operation of deleting unnecessary nodes 2 constituting the data management system 1 will be described in detail.

【0018】<木構造、関係記述テーブルの作成動作>
まず、各ノード2にノード番号を付けるときには、図4
に示すように、第1木構造5aを構成する各ノード2に
対し、ノード番号が一意になるように、ノード番号を付
ける。このとき、各ノード番号は必ずしも一番上の親か
ら順番になっていなくても良い。
<Operation for Creating Tree Structure and Relationship Description Table>
First, when assigning a node number to each node 2, FIG.
As shown in (1), a node number is assigned to each node 2 constituting the first tree structure 5a so that the node number is unique. At this time, each node number does not necessarily have to be in order from the top parent.

【0019】この後、図5に示すように、第1関係記述
テーブル10a上にある各関係記述子4の中から、自分
コード記入欄6に自分のコード番号が書き込まれた関係
記述子4を選択するとともに、自分の親となるノード2
のノード番号を求め、これを自分の関係記述子4中にあ
る親記入欄7に書き込む。但し、一番上のノード2、例
えばノード番号“5”については、自分の親のノード番
号として、“0”を書き込む。
Thereafter, as shown in FIG. 5, from among the relational descriptors 4 in the first relational description table 10a, the relational descriptor 4 in which the own code number is written in the own code entry column 6 is entered. Node 2 to be selected and to be its own parent
And writes this in the parent entry field 7 in the relational descriptor 4 of the user. However, for the top node 2, for example, the node number "5", "0" is written as the node number of its own parent.

【0020】次いで、各ノード2毎に、自分の第1子と
なるノード2のノード番号を求め、これを自分の関係記
述子4中にある第1子記入欄8に書き込む。但し、自分
の第1子が無い、一番下のノード2、例えばノード番号
“8”、“3”、“9”、“12”、“10”、“1
1”については、自分の第1子のノード番号として、
“0”を書き込む。
Next, for each node 2, the node number of the node 2 serving as its first child is obtained, and this is written in the first child entry field 8 in its own relational descriptor 4. However, the lowest node 2 that does not have its first child, for example, node numbers “8”, “3”, “9”, “12”, “10”, “1”
1 ”is the node number of the first child
Write “0”.

【0021】この後、各ノード2毎に、自分と同じ親を
持つノード2、すなわちメンバーとなるノード2を求
め、このノード2のノード番号を、自分の関係記述子4
中にあるメンバー記入欄9に書き込む。但し、自分と同
じ親を持つメンバーが複数存在し、かつ各メンバーの中
での上下関係において、自分が一番下であるときには、
自分と同じ親を持つメンバーのノード番号として、一番
上のメンバーのノード番号を書き込む。また、自分の他
に、自分と同じ親を持つメンバーがいないノード、例え
ばノード番号“5”、“7”、“11”については、自
分のメンバーとして、“0”を書き込む。
Thereafter, for each node 2, a node 2 having the same parent as itself, that is, a node 2 which is a member is obtained, and the node number of this node 2 is assigned to its own relation descriptor 4.
Fill in the member entry field 9 inside. However, if there are multiple members with the same parent as yourself, and you are at the bottom of the hierarchy in each member,
Write the node number of the top member as the node number of the member having the same parent as yourself. Also, for nodes that have no other members having the same parent as themselves, for example, node numbers “5”, “7”, and “11”, “0” is written as their own members.

【0022】<新たなノードの挿入動作>次いで、この
ような手順で、複数のノード2と、複数の連結線3とに
よって第1木構造5aを作成した後、この第1木構造5
aを構成する各ノード2の1つ、例えばノード番号
“6”のノード2に対し、新たな木構造、例えば図6に
示すような複数のノード2と、複数の連結線3とを持つ
木構造(第2木構造5b)を挿入する場合には、上述し
た第1木構造5aの作成動作と、第1関係記述テーブル
10aの作成動作と同様な手順で、図7に示すように、
この第2木構造5bを構成する各ノード2に対し、ノー
ド番号を与えるとともに、各ノード2の関係に基づき、
図8に示す第2関係記述テーブル10bを作成する。
<Inserting Operation of New Node> Next, a first tree structure 5a is created by a plurality of nodes 2 and a plurality of connection lines 3 according to such a procedure, and then the first tree structure 5a is created.
For example, a tree having a new tree structure, for example, a plurality of nodes 2 and a plurality of connection lines 3 as shown in FIG. When inserting the structure (the second tree structure 5b), the procedure for creating the first tree structure 5a and the procedure for creating the first relationship description table 10a are the same as shown in FIG.
A node number is given to each node 2 constituting the second tree structure 5b, and based on the relationship between the nodes 2,
The second relation description table 10b shown in FIG. 8 is created.

【0023】この後、図9に示すように、第1木構造5
aを構成するノード番号“6”のノード2の子として、
第2木構造5bの一番上にあるノード2を接続して、第
3木構造5cを作成した後、この第3木構造5cを構成
する第2木構造5bの部分について、「第2木構造5b
を構成する各ノード2の新たなノード番号=第2木構造
5bにおける自分の元のノード番号+第1木構造5aの
総ノード数」によって示される演算を行なって、第2木
構造5bを構成している各ノード2の新たなノード番号
を求め、図10に示すように、第2木構造5bを構成し
ている各ノード2に新たなノード番号を与える。
Thereafter, as shown in FIG. 9, the first tree structure 5
As a child of node 2 of node number “6” constituting a
After the node 2 at the top of the second tree structure 5b is connected to create a third tree structure 5c, a part of the second tree structure 5b constituting the third tree structure 5c is referred to as "second tree structure". Structure 5b
To calculate the second tree structure 5b by performing the operation indicated by "the new node number of each node 2 constituting" = the original node number of the second tree structure 5b + the total number of nodes of the first tree structure 5a ". Then, a new node number of each node 2 is obtained, and as shown in FIG. 10, a new node number is given to each node 2 constituting the second tree structure 5b.

【0024】次いで、図11に示すように、第2木構造
5bに対応する元の第2関係記述テーブル10b内にあ
る元のノード番号を新たなノード番号に書き替える。但
し、自分の親となるノード2のノード番号、自分の第1
子となるノード2のノード番号、自分と同じ親を持つ各
メンバーのノード番号が“0”のときには、これを
“0”のままに保持する。この後、図12に示すよう
に、書き替え済みの第2関係記述テーブル10bを第1
木構造5aに対応する第1関係記述テーブル10aに追
加して、第3関係記述テーブル10cを作成する。
Next, as shown in FIG. 11, the original node number in the original second relationship description table 10b corresponding to the second tree structure 5b is rewritten with a new node number. However, the node number of the parent node 2 and the first
When the node number of the child node 2 and the node number of each member having the same parent as its own are “0”, this is kept as “0”. Thereafter, as shown in FIG. 12, the rewritten second relation description table 10b is stored in the first relation description table 10b.
A third relation description table 10c is created in addition to the first relation description table 10a corresponding to the tree structure 5a.

【0025】そして、第2木構造5bが追加されたノー
ド2、すなわちノード番号“6”のノード2自体および
このノード番号“6”に関係するノード番号“11”、
“13”を持つ各ノード2について、次に述べるよう
に、第3関係記述テーブル10cの内容を変更する。
The node 2 to which the second tree structure 5b is added, that is, the node 2 itself having the node number "6" and the node number "11" related to the node number "6",
For each node 2 having "13", the contents of the third relation description table 10c are changed as described below.

【0026】まず、ノード番号“6”の関係記述子4内
の第1子記入欄8に記入されているノード番号“11”
をノード番号“13”に変更するとともに、ノード番号
“11”の関係記述子4内のメンバー記入欄9に記入さ
れている“0”をノード番号“13”に変更する。さら
に、ノード番号“13”の関係記述子4内の親記入欄7
に記入されている“0”をノード番号“6”に変更する
とともに、関係記述子4内のメンバー記述欄9に記入さ
れている“0”をノード番号“11”に変更する。
First, the node number "11" entered in the first child entry column 8 in the relation descriptor 4 of the node number "6"
Is changed to the node number “13”, and “0” written in the member entry column 9 in the relation descriptor 4 of the node number “11” is changed to the node number “13”. Further, the parent entry column 7 in the relation descriptor 4 of the node number “13”
Is changed to the node number "6", and "0" written in the member description column 9 in the relation descriptor 4 is changed to the node number "11".

【0027】これによって、第1木構造5aを構成する
1つのノード2に対し、第2木構造5bを追加しても、
第1木構造5aを構成する各ノード2のノード番号のう
ち、第2木構造5bが追加されたノード2、すなわちノ
ード番号“6”のノード2自体およびこのノード番号
“6”に関係するノード番号“11”、“13”を持つ
各ノード2について、第1関係記述テーブル10a、第
2関係記述テーブル10bの内容を変更するだけで、新
たなノード2の挿入に伴うノード番号の変更処理を完了
させることができる。
Thus, even if the second tree structure 5b is added to one node 2 constituting the first tree structure 5a,
Among the node numbers of the nodes 2 constituting the first tree structure 5a, the node 2 to which the second tree structure 5b has been added, that is, the node 2 itself having the node number "6" and the node related to the node number "6" For each of the nodes 2 having the numbers “11” and “13”, the process of changing the node number accompanying the insertion of the new node 2 can be performed simply by changing the contents of the first and second relation description tables 10 a and 10 b. Can be completed.

【0028】<不要なノード2の削除動作>また、上述
した手順で、複数のノード2と、複数の連結線3とによ
って第1木構造5aを作成した後、この第1木構造5a
を構成する各ノード2の1つ、例えばノード番号“4”
のノード2から下にある各ノード2を削除する場合に
は、まず図13に示すように、第1木構造5aを構成す
る各ノード2のうち、ノード番号“4”から下のノード
2を全て削除して第4木構造5dを作成する。
<Operation of Deleting Unwanted Node 2> After the first tree structure 5a is created by the plurality of nodes 2 and the plurality of connection lines 3 according to the above-described procedure, the first tree structure 5a
, For example, a node number “4”
When deleting each node 2 below the node 2 of the first tree structure, as shown in FIG. 13, among the nodes 2 constituting the first tree structure 5a, the node 2 below the node number "4" is deleted. All are deleted to create the fourth tree structure 5d.

【0029】この後、第1木構造5aに対応する第1関
係記述テーブル10a内にある各関係記述子4のうち、
削除した各ノード2のノード番号、すなわちノード番号
“4”、“7”、“9”、“10”、“12”に対応す
る関係記述子4を全て削除して、図14に示すような第
4関係記述テーブル10dを作成するとともに、この第
4関係記述テーブル10d内にある各ノード番号のう
ち、削除したノード2のノード番号を持つ関係記述子
4、例えばノード番号“2”を持つノード2の関係記述
子4を構成するメンバー記入欄9に記入されているノー
ド番号“4”を“0”に変更する。
Thereafter, among the relation descriptors 4 in the first relation description table 10a corresponding to the first tree structure 5a,
The node numbers of the deleted nodes 2, that is, all the relational descriptors 4 corresponding to the node numbers “4”, “7”, “9”, “10”, and “12” are deleted, and as shown in FIG. A fourth relation description table 10d is created, and among the node numbers in the fourth relation description table 10d, the relation descriptor 4 having the node number of the deleted node 2, for example, the node having the node number "2" The node number “4” entered in the member entry column 9 constituting the relational descriptor 4 of No. 2 is changed to “0”.

【0030】これによって、第1木構造5aを構成する
1つのノード2から下の各ノード2を削除しても、第1
木構造5aを構成する各ノード2のノード番号のうち、
削除した各ノード2、すなわちノード番号“4”、
“7”、“9”、“10”、“12”を持つ各ノード2
について、第1関係記述テーブル10aの内容を変更す
るだけで、不要なノード2の削除に伴うノード番号の変
更処理を完了させることができる。
As a result, even if each lower node 2 is deleted from one node 2 constituting the first tree structure 5a,
Of the node numbers of each node 2 constituting the tree structure 5a,
Each deleted node 2, that is, node number “4”,
Each node 2 having “7”, “9”, “10”, and “12”
With regard to the above, only by changing the contents of the first relational description table 10a, it is possible to complete the node number changing process accompanying the deletion of the unnecessary node 2.

【0031】《実施の形態の効果》このようにこの実施
の形態においては、各ノード2に対し、全ての番号が一
意になるようにノード番号を付加するとともに、各ノー
ド番号の関係を各ノード2毎にまとめて関係記述子4を
作成し、これらの関係記述子4をまとめて関係記述テー
ブル10を作成するようにしたので、新たなノード2を
追加する際や不要になったノード2を削除する際に、関
係記述テーブル10中にある各ノード番号のうち、追加
されたノード2、削除されたノード2に対応するノード
番号を付け替えるだけで、木構造5の変更を完了するこ
とができ、これによって木構造5の再構成作業を簡単に
して、オペレータの手間を飛躍的に軽減させることがで
きるとともに、コンピュータ装置側の処理時間を飛躍的
に短くすることができる。
<< Effects of Embodiment >> As described above, in this embodiment, a node number is added to each node 2 so that all numbers are unique, and the relationship between each node number is changed by each node. Since the related descriptors 4 are collectively created for each of the two, and the related descriptors 4 are collectively created to create the related description table 10, when the new node 2 is added or the unnecessary node 2 is At the time of deletion, the change of the tree structure 5 can be completed only by changing the node numbers corresponding to the added node 2 and the deleted node 2 among the node numbers in the relation description table 10. Thereby, the reconfiguration operation of the tree structure 5 can be simplified, the labor of the operator can be remarkably reduced, and the processing time on the computer device side can be significantly reduced. Kill.

【0032】また、この実施の形態では、既に構成され
ている木構造5に対し、新たなノード2を挿入すると
き、新たなノード2と、このノード2に関連するノード
2のノード番号を付け替えるだけで、木構造5の変更を
完了することができ、これによって木構造5の再構成作
業を簡単にして、オペレータの手間を飛躍的に軽減させ
ることができるとともに、コンピュータ装置側の処理時
間を飛躍的に短くすることができる。
In this embodiment, when a new node 2 is inserted into the already configured tree structure 5, the node numbers of the new node 2 and the node 2 related to this node 2 are changed. Thus, the modification of the tree structure 5 can be completed, thereby simplifying the reconfiguration operation of the tree structure 5, greatly reducing the labor of the operator, and reducing the processing time on the computer device side. It can be dramatically shortened.

【0033】同様に、既に構成されている木構造5から
1つのノード2の下にある各ノード2を削除するとき、
削除されたノード2自体と、各ノード2に関連するノー
ド2のノード番号を付け替えるだけで、木構造5の変更
を完了することができ、これによって木構造5の再構成
作業を簡単にして、オペレータの手間を飛躍的に軽減さ
せることができるとともに、コンピュータ装置側の処理
時間を飛躍的に短くすることができる。
Similarly, when deleting each node 2 under one node 2 from the already configured tree structure 5,
The change of the tree structure 5 can be completed only by changing the node number of the deleted node 2 and the node 2 related to each node 2, thereby simplifying the reconstructing work of the tree structure 5, The labor of the operator can be remarkably reduced, and the processing time on the computer device side can be significantly reduced.

【0034】[0034]

【発明の効果】以上説明したように本発明によれば、請
求項1では、既に構成されている木構造に対し、新たな
ノードを挿入したり、既に構成されている木構造から不
要なノードを削除するとき、各ノードに関連するノード
の番号を付け替えるだけで、木構造の変更を完了するこ
とができ、これによって木構造の再構成作業を簡単にし
て、オペレータの操作時間やコンピュータ装置側の処理
時間などを飛躍的に短くすることができる。
As described above, according to the present invention, according to the first aspect, a new node is inserted into an already configured tree structure, or an unnecessary node is added to the already configured tree structure. When deleting a tree, it is possible to complete the change of the tree structure only by renumbering the nodes related to each node, thereby simplifying the reconstruction of the tree structure, reducing the operation time of the operator and the computer device side. Can be dramatically reduced.

【0035】また、請求項2では、既に構成されている
木構造に対し、新たなノードを挿入するとき、新たなノ
ードと、このノードに関連するノードの番号を付け替え
るだけで、木構造の変更を完了することができ、これに
よって木構造の再構成作業を簡単にして、オペレータの
操作時間やコンピュータ装置側の処理時間などを飛躍的
に軽減させることができる。
According to a second aspect of the present invention, when a new node is inserted into an already configured tree structure, the tree structure can be changed only by changing the numbers of the new node and the node related to this node. Can be completed, thereby simplifying the reconstructing operation of the tree structure, and drastically reducing the operation time of the operator and the processing time on the computer device side.

【0036】また、請求項3では、既に構成されている
木構造から1つのノードの下にある各ノードを削除する
とき、削除されたノード自体と、各ノードに関連するノ
ードの番号を付け替えるだけで、木構造の変更を完了す
ることができ、これによって木構造の再構成作業を簡単
にして、オペレータの操作時間やコンピュータ装置側の
処理時間などを飛躍的に軽減させることができる。
According to the third aspect, when each node below one node is deleted from the already configured tree structure, the number of the deleted node itself and the number of the node related to each node are simply changed. Thus, the modification of the tree structure can be completed, thereby simplifying the reconstruction operation of the tree structure, and the operation time of the operator and the processing time on the computer device side can be significantly reduced.

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

【図1】本発明による木構造を有するデータ管理システ
ムの実施の形態を示す構成図である。
FIG. 1 is a configuration diagram showing an embodiment of a data management system having a tree structure according to the present invention.

【図2】図1に示す木構造を有するデータ管理システム
を構成する関係記述子の一例を示す模式図である。
FIG. 2 is a schematic diagram showing an example of a relational descriptor constituting the data management system having the tree structure shown in FIG.

【図3】図2に示す関係記述子をまとめた関係記述テー
ブルの一例を示す模式図である。
FIG. 3 is a schematic diagram showing an example of a relation description table in which relation descriptors shown in FIG. 2 are put together.

【図4】図1に示す木構造を有するデータ管理システム
の木構造作成動作を説明するための模式図である。
FIG. 4 is a schematic diagram for explaining a tree structure creation operation of the data management system having the tree structure shown in FIG. 1;

【図5】図1に示す木構造を有するデータ管理システム
の関係記述テーブル作成動作を説明するための模式図で
ある。
FIG. 5 is a schematic diagram for explaining a relation description table creating operation of the data management system having the tree structure shown in FIG. 1;

【図6】図1に示す木構造を有するデータ管理システム
のノード挿入動作を説明するための模式図である。
FIG. 6 is a schematic diagram for explaining a node insertion operation of the data management system having the tree structure shown in FIG. 1;

【図7】図1に示す木構造を有するデータ管理システム
のノード挿入動作を説明するための模式図である。
FIG. 7 is a schematic diagram for explaining a node insertion operation of the data management system having the tree structure shown in FIG. 1;

【図8】図1に示す木構造を有するデータ管理システム
のノード挿入動作を説明するための模式図である。
8 is a schematic diagram for explaining a node insertion operation of the data management system having the tree structure shown in FIG.

【図9】図1に示す木構造を有するデータ管理システム
のノード挿入動作を説明するための模式図である。
FIG. 9 is a schematic diagram for explaining a node insertion operation of the data management system having the tree structure shown in FIG. 1;

【図10】図1に示す木構造を有するデータ管理システ
ムのノード挿入動作を説明するための模式図である。
FIG. 10 is a schematic diagram for explaining a node insertion operation of the data management system having the tree structure shown in FIG. 1;

【図11】図1に示す木構造を有するデータ管理システ
ムのノード挿入動作を説明するための模式図である。
FIG. 11 is a schematic diagram for explaining a node insertion operation of the data management system having the tree structure shown in FIG. 1;

【図12】図1に示す木構造を有するデータ管理システ
ムのノード挿入動作を説明するための模式図である。
FIG. 12 is a schematic diagram for explaining a node insertion operation of the data management system having the tree structure shown in FIG. 1;

【図13】図1に示す木構造を有するデータ管理システ
ムのノード削除動作を説明するための模式図である。
FIG. 13 is a schematic diagram for explaining a node deletion operation of the data management system having the tree structure shown in FIG. 1;

【図14】図1に示す木構造を有するデータ管理システ
ムのノード削除動作を説明するための模式図である。
FIG. 14 is a schematic diagram for explaining a node deleting operation of the data management system having the tree structure shown in FIG. 1;

【図15】従来から知られている一般的な木構造を有す
るデータ管理システムの一例を示す構成図である。
FIG. 15 is a configuration diagram illustrating an example of a conventionally known data management system having a general tree structure.

【図16】図1に示す各ノードにノード番号を付加した
ときの一例を示す模式図である。
FIG. 16 is a schematic diagram showing an example when a node number is added to each node shown in FIG. 1;

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

1 データ管理システム 2 ノード 3 連結線 4 関係記述子 5 木構造 5a 第1木構造 5b 第2木構造 5c 第3木構造 5d 第4木構造 6 自分記入欄 7 親記入欄 8 第1子記入欄 9 メンバー記入欄 10 関係記述テーブル 10a 第1関係記述テーブル 10b 第2関係記述テーブル 10c 第3関係記述テーブル 10d 第4関係記述テーブル DESCRIPTION OF SYMBOLS 1 Data management system 2 Node 3 Connecting line 4 Relational descriptor 5 Tree structure 5a First tree structure 5b Second tree structure 5c Third tree structure 5d Fourth tree structure 6 Self entry field 7 Parent entry field 8 First child entry field 9 Member entry column 10 Relationship description table 10a First relationship description table 10b Second relationship description table 10c Third relationship description table 10d Fourth relationship description table

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のノードを木構造形式で接続して使
用する木構造を有するデータ管理システムにおいて、 複数のノードを階層化して接続した木構造における自分
の親、自分の第1子、自分と同じ親を持つメンバーとな
る各ノードのノード番号を保持する関係記述テーブルを
備え、 各ノードの追加、削除を行なうとき、関係記述テーブル
の内容のうち、追加、削除対象となったノードに関連す
るノードの番号を変更することを特徴とする木構造を有
するデータ管理システム。
1. A data management system having a tree structure in which a plurality of nodes are connected and used in a tree structure, wherein a parent, a first child, and a self of a tree structure in which a plurality of nodes are hierarchically connected. A relationship description table that holds the node numbers of each node that is a member having the same parent as the node. When adding or deleting each node, the content of the relationship description table is related to the node to be added or deleted. A data management system having a tree structure, wherein the number of a node to be changed is changed.
【請求項2】 複数のノードを木構造形式で接続して使
用する木構造を有するデータ管理システムにおいて、 複数のノードを階層化して接続した第1木構造と、 自分の親、自分の第1子、自分と同じ親を持つメンバー
となる各ノードのノード番号を保持する関係記述テーブ
ルとを備え、 前記第1木構造中にあるノードの1つに、複数のノード
を階層化して接続した第2木構造を追加する際には、第
2木構造の各ノード番号全体を変更するとともに、追加
対象となった前記ノード自体、および関連するノードに
基づき、第1木構造に対応する関係記述テーブル、およ
び前記第2木構造に対応する関係記述テーブルの内容を
変更することを特徴とする木構造を有するデータ管理シ
ステム。
2. A data management system having a tree structure in which a plurality of nodes are connected and used in a tree structure form, wherein a first tree structure in which a plurality of nodes are hierarchically connected is provided, and a parent of the first tree structure and a first of the own tree. A relation description table that holds a node number of each node that is a member having the same parent as the child, and a plurality of nodes that are hierarchically connected to one of the nodes in the first tree structure. When adding a two-tree structure, the entire node number of the second tree structure is changed, and a relation description table corresponding to the first tree structure is created based on the node itself to be added and related nodes. And a data management system having a tree structure, wherein contents of a relation description table corresponding to the second tree structure are changed.
【請求項3】 請求項2に記載の木構造を有するデータ
管理システムにおいて、 前記第1木構造中にあるノードの1つから下にある各ノ
ードを削除する際、第1木構造の関係記述テーブル上に
ある各関係記述子のうち、削除した各ノードに対応する
各関係記述子を削除するとともに、削除した各ノードの
ノード番号を持つ関係記述子の内容を変更することを特
徴とする木構造を有するデータ管理システム。
3. The data management system having a tree structure according to claim 2, wherein, when deleting each node below one of the nodes in the first tree structure, a relation description of the first tree structure. A tree characterized by deleting each relational descriptor corresponding to each deleted node among the relational descriptors on the table and changing the content of the relational descriptor having the node number of each deleted node. A data management system having a structure.
JP9185407A 1997-07-10 1997-07-10 Data management system with tree structure Pending JPH1131147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9185407A JPH1131147A (en) 1997-07-10 1997-07-10 Data management system with tree structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9185407A JPH1131147A (en) 1997-07-10 1997-07-10 Data management system with tree structure

Publications (1)

Publication Number Publication Date
JPH1131147A true JPH1131147A (en) 1999-02-02

Family

ID=16170260

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9185407A Pending JPH1131147A (en) 1997-07-10 1997-07-10 Data management system with tree structure

Country Status (1)

Country Link
JP (1) JPH1131147A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6850951B1 (en) * 1999-04-16 2005-02-01 Amdocs Software Systems Limited Method and structure for relationally representing database objects

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH064576A (en) * 1992-06-17 1994-01-14 Matsushita Electric Ind Co Ltd File managing device
JPH06223106A (en) * 1993-01-25 1994-08-12 Matsushita Electric Ind Co Ltd Document management device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH064576A (en) * 1992-06-17 1994-01-14 Matsushita Electric Ind Co Ltd File managing device
JPH06223106A (en) * 1993-01-25 1994-08-12 Matsushita Electric Ind Co Ltd Document management device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6850951B1 (en) * 1999-04-16 2005-02-01 Amdocs Software Systems Limited Method and structure for relationally representing database objects

Similar Documents

Publication Publication Date Title
US5745897A (en) Method and system for compiling management information base specifications
US5481722A (en) Method and apparatus for merging change control delta structure files of a source module from a parent and a child development environment
US6029170A (en) Hybrid tree array data structure and method
US5355472A (en) System for substituting tags for non-editable data sets in hypertext documents and updating web files containing links between data sets corresponding to changes made to the tags
JP2534360B2 (en) Connection method, node connection method, data processing method, and method of inserting node in tree
JPH04246742A (en) Storage control extending over plurality of file-system
US20090276479A1 (en) Distributed execution model for cross-organizational declarative web applications
JP2001313639A (en) System and method for managing network configuration data and recording medium
US20150142734A1 (en) Meta Model Driven Data Base Replication and Synchronization
WO2004077268A2 (en) System and method for dynamic data binding in distributed applications
JPH0863342A (en) Program management method and apparatus
KR20030065308A (en) Garbage Collection
JPH1131147A (en) Data management system with tree structure
CN116661768B (en) Knowledge graph-based page code generation method, system, device and medium
JPH07104983A (en) Generation management device and generation management method
CN115237395A (en) Automatic WEB program code generation algorithm system
JPH0340155A (en) Protocol data unit editing and analysis device
US8849866B2 (en) Method and computer program product for creating ordered data structure
JP3395347B2 (en) Document processing device
US20050256891A1 (en) A code or data representation and manipulation system that allows user to view, modify, and manipulate structured entities, such as code or data files, using their tree-like representations.
JPH09152965A (en) Class library rebuild method
JPH01145720A (en) Node managing system for b tree
EP0126123A1 (en) Dynamic data base representation
JPS6314385B2 (en)
JP3532603B2 (en) Automatic number assignment method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040120