JP2596397B2 - Tree structure data storage method - Google Patents
Tree structure data storage methodInfo
- Publication number
- JP2596397B2 JP2596397B2 JP6339243A JP33924394A JP2596397B2 JP 2596397 B2 JP2596397 B2 JP 2596397B2 JP 6339243 A JP6339243 A JP 6339243A JP 33924394 A JP33924394 A JP 33924394A JP 2596397 B2 JP2596397 B2 JP 2596397B2
- Authority
- JP
- Japan
- Prior art keywords
- node
- tree structure
- data
- nodes
- structure data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明はアクセス速度の高速化を
図るために外部記憶装置上のデータの一部を主記憶上に
配置するようにした情報処理装置に関し、特に木構造デ
ータを対象としてその一部を主記憶上に配置する木構造
データ格納方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus in which a part of data in an external storage device is arranged in a main storage in order to increase an access speed, and particularly to a tree structure data. The present invention relates to a tree structure data storage method in which a part of the data is arranged in a main memory.
【0002】[0002]
【従来の技術】情報処理装置で扱うデータ構造の一種
に、木構造データがある。木構造データは、ルートとな
るノードを出発点として、複数のノードをポインタで逆
木状に連結したものであり、親子関係,上下関係を有す
るデータを記述するのに適していることから各種の分野
で利用されている。2. Description of the Related Art Tree data is one type of data structure handled by an information processing apparatus. The tree structure data is obtained by connecting a plurality of nodes in a reverse tree shape with pointers starting from the root node, and is suitable for describing data having a parent-child relationship and a hierarchical relationship. Used in the field.
【0003】ところで、木構造データに限らず、一般に
データをアクセスする場合、それが主記憶上にあった方
がディスク装置等の外部記憶装置上にある場合よりも高
速にアクセスできる。このため、外部記憶装置と主記憶
とを有する情報処理装置において、主記憶容量の制限か
ら外部記憶装置に格納された木構造データの全てを主記
憶上に置くことができない場合、外部記憶装置上に格納
された木構造データのうち頻繁にアクセスされるデータ
だけを主記憶上に置くことで、アクセス速度の高速化を
図っている。そして、主記憶上に配置するデータの従来
の決定方式としては、最近にアクセスされたデータほど
優先的に配置する方式や、今までアクセスされた回数が
多いデータほど優先的に配置する方式等が採用されてい
る。[0003] In general, when accessing data other than tree-structured data, the data can be accessed at a higher speed when the data is stored in the main storage than when it is stored in an external storage device such as a disk device. For this reason, in an information processing device having an external storage device and a main storage, if all of the tree structure data stored in the external storage device cannot be stored in the main storage due to the limitation of the main storage capacity, The access speed is increased by placing only frequently accessed data of the tree structure data stored in the main memory on the main memory. As a conventional method of deciding data to be arranged on the main memory, there is a method of preferentially arranging data that has been accessed recently, a method of preferentially arranging data that has been accessed so far, and the like. Has been adopted.
【0004】[0004]
【発明が解決しようとする課題】これらの従来技術は、
何れも現在までのアクセス状況を基に将来のアクセス状
況を推測するものであるため、個々のデータがアクセス
される毎にそのアクセス状況の記録を取っておく必要が
あり、また主記憶データの入れ換え時には個々のデータ
のアクセス状況の記録を参照して主記憶から追い出すデ
ータを決定する処理が必要となり、データアクセス時の
オーバヘッドが大きくなるという問題点がるある。SUMMARY OF THE INVENTION These prior arts are:
In each case, the future access status is estimated based on the access status up to the present, so that it is necessary to keep a record of the access status every time individual data is accessed, and to replace the main memory data. Sometimes it is necessary to determine the data to be evicted from the main memory by referring to the record of the access status of each data, and there is a problem that the overhead at the time of data access increases.
【0005】本発明は木構造データを扱う情報処理装置
におけるこのような問題点を改善したもので、その目的
は、主記憶上に配置すべき木構造データ部分をデータア
クセス時のオーバヘッド無しに決定することができるよ
うにした木構造データ格納方式を提供することにある。The present invention has been made to solve such a problem in an information processing apparatus that handles tree structure data. It is an object of the present invention to determine a tree structure data portion to be arranged on a main memory without an overhead at the time of data access. It is an object of the present invention to provide a tree-structured data storage method capable of performing the above operation.
【0006】[0006]
【課題を解決するための手段】本発明はアクセス速度の
高速化を図るために外部記憶装置上のデータの一部を主
記憶上に配置するようにした情報処理装置において、前
記外部記憶装置に格納された木構造データを対象とし、
そのノードのうち子孫ノード数の多いものを優先的に前
記主記憶上に配置するノード配置部を備えるようにして
いる。According to the present invention, there is provided an information processing apparatus in which a part of data on an external storage device is arranged on a main storage in order to increase an access speed. Targeting the stored tree structure data,
A node arrangement unit that preferentially arranges the nodes having a large number of descendant nodes in the main storage among the nodes is provided.
【0007】[0007]
【作用】木構造データは、親子関係,上下関係を有する
データを記述するのに適したデータ構造であるため、そ
のアクセス時には一般にルートとなるノードに近いデー
タほど良くアクセスされる傾向を持つ。即ち、オブジェ
クト指向における継承では、親ノードの属性はその子ノ
ードに継承されるため、或るノードの属性を知るための
アクセスでは、その親ノードもルートまで辿ってアクセ
スしている。また、検索などではルートノードから検索
が開始されるためルートノードに近いデータほど頻繁に
アクセスされる傾向がある。本発明はこのような点に着
目したもので、ノード配置部が、外部記憶装置に格納さ
れた木構造データのノードのうち子孫ノード数が多いも
のを優先的に主記憶上に配置することにより、アクセス
先ノードが主記憶上に存在する確率を高め、アクセス速
度の向上を図っている。Since the tree structure data is a data structure suitable for describing data having a parent-child relationship and a hierarchical relationship, at the time of access, generally, data closer to the root node tends to be better accessed. That is, in the inheritance in the object orientation, the attribute of the parent node is inherited by its child node. Therefore, in the access for knowing the attribute of a certain node, the parent node also accesses to the root. In a search or the like, a search is started from a root node, so that data closer to the root node tends to be accessed more frequently. The present invention focuses on such a point, and the node arranging unit preferentially arranges, in the main memory, a node having a large number of descendant nodes among the nodes of the tree structure data stored in the external storage device. Thus, the probability that the access destination node exists in the main memory is increased to improve the access speed.
【0008】ここで、ルートノードに近いノードほど優
先的に主記憶上に配置するのではなく、子孫ノード数の
多いものほど優先的に配置するようにしたのは、例え
ば、ルートノードに2つのノードが接続されており、そ
の一方のノードにはその下に数多くの子孫ノードが接続
されているのに対し、他方のノードは子孫ノードを1つ
も持たない葉ノードであった場合、ルートノードに近い
ノードを優先すると、この葉のノードも主記憶上に格納
されてしまうことになるからである。Here, instead of preferentially arranging a node closer to the root node in the main memory, preferentially arranging a node having a larger number of descendant nodes is, for example, two nodes in the root node. Nodes are connected, and one of them has many descendant nodes connected to it, while the other node is a leaf node that has no descendant nodes. This is because if a close node is prioritized, this leaf node is also stored in the main memory.
【0009】[0009]
【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described in detail with reference to the drawings.
【0010】図1を参照すると、本発明の一実施例の木
構造データ格納方式を適用した情報処理装置の一例は、
CPU等を含む処理装置1と、これに接続されたディス
ク装置2および主記憶3と、ディスク装置2上の木構造
データの一部を主記憶3上に配置するノード配置部4と
から構成されている。また、ノード配置部4は、子孫ノ
ード数算出手段41とノード選択手段42とノード読み
出し手段43とで構成されている。Referring to FIG. 1, an example of an information processing apparatus to which a tree structure data storage method according to an embodiment of the present invention is applied is as follows.
It comprises a processing device 1 including a CPU, a disk device 2 and a main memory 3 connected thereto, and a node arrangement unit 4 for arranging a part of the tree structure data on the disk device 2 in the main memory 3. ing. The node arrangement unit 4 includes a descendant node number calculating unit 41, a node selecting unit 42, and a node reading unit 43.
【0011】図2にディスク装置2に格納されている木
構造データの一例を示す。同図において、左側に記載し
た部分が木構造データの木構造管理情報であり、この例
では10個のノードN1〜N10から構成されている。
また、右側に記載した部分が木構造データのデータ部分
であり、各ノードN1〜N10と1対1に対応するエリ
アD1〜D10から構成されている。木構造管理情報に
おけるノード間はその親子関係に従ってリンクされてお
り、個々のノードN1〜N10に保持すべき実際のデー
タは図示の矢印で示すようにポインタが指し示すエリア
D1〜D10に格納されている。FIG. 2 shows an example of tree structure data stored in the disk device 2. In the figure, the portion described on the left side is the tree structure management information of the tree structure data, and in this example, is composed of ten nodes N1 to N10.
The portion described on the right side is the data portion of the tree structure data, and is composed of areas D1 to D10 corresponding to the nodes N1 to N10 on a one-to-one basis. The nodes in the tree structure management information are linked according to the parent-child relationship, and actual data to be held in the individual nodes N1 to N10 are stored in areas D1 to D10 indicated by pointers as indicated by arrows in the drawing. .
【0012】処理装置1がディスク装置2に格納された
木構造データに対する処理を開始するのに先立って、ノ
ード配置部4は、ディスク装置2上の木構造データの一
部を主記憶3上のデータ部31に配置し、且つ、その配
置状況に合致した木構造管理情報を管理部32に設定す
る。このような動作は以下のように行われる。Prior to the processing device 1 starting the processing on the tree structure data stored in the disk device 2, the node arranging unit 4 transfers a part of the tree structure data on the disk device 2 to the main storage 3. The tree structure management information arranged in the data section 31 and matching the arrangement state is set in the management section 32. Such an operation is performed as follows.
【0013】先ず、ノード配置部4の子孫ノード数算出
手段41は、ディスク装置2に格納された木構造データ
の各ノードの子孫ノード数を算出する。次に、この算出
結果に基づき、ノード選択手段42が、子孫ノード数の
多いものから順にL個のノードを選択する。ここで、L
個はデータ部31のサイズによって決定され、データ部
31に入り切る範囲内でできるだけ多くのノードが選択
される。そして、ノード読み出し手段43が、ノード選
択手段42で選択されたノードのデータをディスク装置
2から読み出して主記憶3のデータ部31に格納し、そ
の格納先のデータを指し示すように木構造管理情報のポ
インタを変更した木構造管理情報を管理部32に格納す
る。First, the descendant node number calculating means 41 of the node arrangement unit 4 calculates the number of descendant nodes of each node of the tree structure data stored in the disk device 2. Next, based on the calculation result, the node selecting means 42 selects L nodes in descending order of descendant nodes. Where L
The number is determined by the size of the data part 31, and as many nodes as possible are selected within the range that can fit in the data part 31. Then, the node reading means 43 reads the data of the node selected by the node selecting means 42 from the disk device 2 and stores it in the data section 31 of the main memory 3, and stores the tree structure management information so as to indicate the data of the storage destination. Is stored in the management unit 32.
【0014】以後、処理装置1は、主記憶3の管理部3
2に存在する木構造管理情報を参照しながら、木構造デ
ータをアクセスして処理を行う。Thereafter, the processing device 1 starts to manage the management unit 3 of the main memory 3.
2 and performs processing by accessing the tree structure data while referring to the tree structure management information existing in Step 2.
【0015】図3はノード配置部4の子孫ノード数算出
手段41の処理例を示すフローチャートである。同図に
おいて、ステップS1〜S4はルートのノードに近いノ
ードほど、より小さい番号の添字iを持つノード名ai
を付ける処理であり、ステップS5〜S8は各ノードの
子孫ノード数を算出する処理である。以下、図2に示し
た木構造データを例にして、子孫ノード数算出手段41
の動作を説明する。FIG. 3 is a flowchart showing a processing example of the descendant node number calculating means 41 of the node arrangement unit 4. In the figure, in steps S1 to S4, as the nodes are closer to the root node, the node names a i having the smaller subscripts i are used.
Steps S5 to S8 are processes for calculating the number of descendant nodes of each node. Hereinafter, taking the tree structure data shown in FIG.
Will be described.
【0016】子孫ノード数算出手段41は、先ず、ルー
トとなるノードN1に添字1を持つノード名a1 を付与
し、このノードを着目ノードas とする(S1)。次
に、このノード名a1 を付与したノードN1に隣接する
ノードで未だ名前の付いていない全てのノードに名前a
k (kは直前に使用された番号の次の番号から順に振ら
れる番号である)を付与する(S2)。図2の場合、ノ
ードN1に隣接するノードで名前の無いノードはN2だ
けなので、ノードN2に名前a2 を付ける。次に、名前
の付いたノードで且つ隣接するノードに名前の付いてい
ないノードの1つを着目ノードas とし(S4)、ステ
ップS2に戻る。図2の場合、名前の付いたノードで且
つ隣接するノードに名前の付いていないノードはN2な
ので、ノードN2を着目ノードas としてステップS2
に戻る。The descendent node number calculating unit 41, first, adds the node name a 1 having a subscript 1 to the node N1 as a route to the node as a target node a s (S1). Next, name a to all of the node that does not have yet unnamed node adjacent to the node N1, which was granted this node name a 1
k (k is a number sequentially assigned from the number following the number used immediately before) (S2). For Figure 2, since there is no node unnamed node adjacent to the node N1 only N2, to name a 2 to node N2. Then, one of the nodes not named to the node and adjacent the node with the name and aimed node a s (S4), the flow returns to step S2. In FIG. 2, step S2 is a node that is not named in the node adjacent and the node with the name, so N2, the node N2 as the target node a s
Return to
【0017】戻ったステップS2では、ノードN2に隣
接するノードで名前の無い全てのノードに名前を付け
る。図2の場合、ノードN2に隣接するノードで名前の
無いノードはN3,N4なので、それぞれにa3,a4 の
名前を付ける。そして、ステップS4において、名前の
付いたノードで且つ隣接するノードに名前の付いていな
いノードの1つを着目ノードas とし(S4)、ステッ
プS2に戻る。図2の場合、名前の付いたノードで且つ
隣接するノードに名前の付いていないノードはN3,N
4なので、例えばそのうちのノードN3を着目ノードa
s としてステップS2に戻る。In step S2, all the unnamed nodes adjacent to the node N2 are given names. In FIG. 2, no node unnamed node adjacent to the node N2 N3, N4 so, naming the a 3, a 4, respectively. In step S4, one of the nodes not named to the node and adjacent the node with the name and aimed node a s (S4), the flow returns to step S2. In the case of FIG. 2, the nodes which are named and whose adjacent nodes have no names are N3, N
4, for example, the node N3 of the node
The process returns to step S2 as s .
【0018】以上のような動作が繰り返され、ステップ
S3において全てのノードに名前が付与されたと判断さ
れると、ステップS5へ進む。図4に図2の各ノードに
付けられた名前を示す。The above operation is repeated, and if it is determined in step S3 that all nodes have been given names, the process proceeds to step S5. FIG. 4 shows names given to the respective nodes in FIG.
【0019】各ノードの子孫ノード数を算出する処理S
5〜S8においては、先ず、付与されたノード名の最大
の添字n(図2の場合は10)を変数tに設定し(S
5)、名前at に隣接し且つtより大きな添字の名前を
持つノードを全て選び、下記の式により、名前at を持
つノードの子孫ノード数bt を算出する(S6)。 ここで、右辺の第1項は名前at を持つノードの子ノー
ド数を示し、第2項はそれらの子ノードの子孫ノード数
を示す。Processing S for calculating the number of descendant nodes of each node
In 5 to S8, first, the maximum subscript n (10 in FIG. 2) of the assigned node name is set in the variable t (S8).
5), the name select all nodes with names of larger subscripts than adjacent to and t in a t, by the following equation to calculate the number of progeny node b t of the node whose name a t (S6). Here, the first term of the right side represents the number of child nodes of the node whose name a t, the second term shows the number of descendant nodes thereof child nodes.
【0020】名前at を持つノードの子孫ノード数bt
を算出したら、変数tを−1して(S7)、ステップS
6の処理を繰り返し、変数tが0になった時点で処理を
終了する(S8)。[0020] The name of the number of descendant nodes of the node with a t b t
Is calculated, the variable t is decremented by one (S7), and step S
6 is repeated, and the process ends when the variable t becomes 0 (S8).
【0021】図2の場合、先ず、ノード名a10を持つノ
ードN10に隣接し且つ10より大きな添字の名前を持
つノードを選んで上記式(1)が計算される。この場
合、ノードN10には子ノードは無いので、ノードN1
0の子孫ノード数bt は0である。次に、ノード名a9
を持つノードN9について上記式(1)が計算され、右
辺の第1項は1、第2項は0なので、ノードN9の子孫
ノード数b9 は1となる。以下、ノードN8,N7,
…,N1の順にその子孫ノード数が算出される。この結
果は図4に示すものとなる。[0021] In the case of Figure 2, firstly, the above formula (1) is calculated by selecting the node with the name of the larger subscripts than adjacent to and 10 to the node N10 with a node name a 10. In this case, since the node N10 has no child nodes, the node N1
The number of descendant nodes b t of 0 is 0. Next, the node name a 9
It is calculated the formula (1) for the node N9 with, the first term on the right hand side 1, the second term 0, the descendant node number b 9 of the node N9 is one. Hereinafter, nodes N8, N7,
.., N1 in that order. The result is shown in FIG.
【0022】ノード配置部4におけるノード選択手段4
2は、以上のようにして子孫ノード数算出手段41で算
出された各ノードの子孫ノード数を参照し、その子孫ノ
ード数の多いものから順にL個のノードを選択する。例
えば、5個のノードを選択する場合、子孫ノード数の多
いものから順にノードN1,N2,N3,N4,N5を
選択する。The node selecting means 4 in the node arrangement section 4
2 refers to the number of descendant nodes of each node calculated by the descendant node number calculation means 41 as described above, and selects L nodes in descending order of the number of descendant nodes. For example, when five nodes are selected, nodes N1, N2, N3, N4, and N5 are selected in descending order of the number of descendant nodes.
【0023】そして、ノード配置部4におけるノード読
み出し手段43は、ノード選択手段42で選択されたノ
ードのデータをディスク装置2から読み出して主記憶3
のデータ部31に格納し、且つ、主記憶3にデータを読
み出したノードについてはそのポインタを主記憶3上の
データを指し示すように変更した木構造管理情報を主記
憶3の管理部32に格納する。The node reading means 43 in the node arrangement unit 4 reads data of the node selected by the node selecting means 42 from the disk device 2 and
Is stored in the data section 31 and the tree structure management information in which the pointer is changed to point to the data in the main memory 3 is stored in the management section 32 of the main memory 3 for the node from which the data is read out to the main memory 3. I do.
【0024】図5は図2に示す木構造データのうち、ノ
ードN1,N2,N3,N4,N5のデータを主記憶3
のデータ部31に配置したときの様子を示している。FIG. 5 shows the data of the nodes N1, N2, N3, N4 and N5 in the tree structure data shown in FIG.
2 shows a state when the data section 31 is arranged in the data section 31.
【0025】図6は処理装置1が行うノード処理の一例
を示すフローチャートである。処理装置1は、例えばノ
ードNi の属性を知りたい場合、先ず、主記憶3の管理
部32の木構造管理情報を参照してノードNi のデータ
の格納先を調べ、主記憶3上にあれば(S11でYE
S)、ノードNi のデータを主記憶3から読み出して処
理する(S13)。例えば、そのデータ中から属性情報
を取得する。また、主記憶3になければ(S11でN
O)、ディスク装置2から読み出して同様の処理を行う
(S12)。そして、今回処理したノードがルートノー
ドか否かを判別し(S14)、ルートノードでなけれ
ば、今回処理したノードNi よりルートノードに近い隣
接するノードを管理部32の木構造管理情報から求め、
これを新たなノードNi とし(S15)、ステップS1
1に戻って上述した処理を繰り返す。そして、ルートノ
ードまで処理し終えると(S14)、今回のノード処理
を終了する。FIG. 6 is a flowchart showing an example of the node processing performed by the processing device 1. Processing apparatus 1, when, for example, want to know the attributes of the nodes N i, first, examine the data storage destination of the node N i with reference to the tree structure management information managing unit 32 of the main memory 3, in the main storage 3 If there is (YE in S11
S), reads and processes from the main memory 3 the data of the node N i (S13). For example, attribute information is obtained from the data. If it is not in the main memory 3 (N in S11)
O), read from the disk device 2 and perform the same processing (S12). Then, this processing node is determined whether the root node (S14), if the root node obtains the adjacent node closer to the current processing node N i from the root node from the tree structure management information managing unit 32 ,
This was a new node N i (S15), step S1
Returning to step 1, the above-described processing is repeated. When the processing up to the root node is completed (S14), the current node processing ends.
【0026】以上本発明の実施例について説明したが、
本発明は以上の実施例にのみ限定されず、その他各種の
付加変更が可能である。例えば、木構造データをアクセ
スして処理する処理装置1とは別にノード配置部4を設
けたが、処理装置1自体にノード配置部4の機能を取り
込むようにしても良い。また、ノード数が高々10個の
木構造データを例にしたが、それは説明の便宜上のもの
であり、通常はより多くのノードから構成される木構造
データが対象となるものである。The embodiments of the present invention have been described above.
The present invention is not limited to the above embodiments, and various other additions and changes are possible. For example, although the node arrangement unit 4 is provided separately from the processing device 1 that accesses and processes the tree structure data, the function of the node arrangement unit 4 may be incorporated in the processing device 1 itself. Also, tree structure data having a maximum of 10 nodes has been described as an example, but this is for convenience of description, and usually is tree structure data composed of more nodes.
【0027】[0027]
【発明の効果】以上説明したように、本発明は、アクセ
ス速度の高速化を図るために外部記憶装置上のデータの
一部を主記憶上に配置するようにした情報処理装置にお
いて、外部記憶装置に格納された木構造データのノード
のうち子孫ノード数の多いものを優先的に主記憶上に配
置するものであり、アクセス速度向上のために主記憶上
に配置すべき木構造データ部分をデータアクセス時のオ
ーバヘッド無しに決定することができる利点を有する。As described above, the present invention relates to an information processing apparatus in which a part of data on an external storage device is arranged on a main storage in order to increase an access speed. Among the nodes of the tree structure data stored in the device, those having a large number of descendant nodes are preferentially arranged in the main memory. In order to improve the access speed, the tree structure data portion to be arranged in the main memory is designated. This has the advantage that it can be determined without the overhead at the time of data access.
【図1】本発明の木構造データ格納方式を適用した情報
処理装置の一例を示すブロック図である。FIG. 1 is a block diagram illustrating an example of an information processing apparatus to which a tree structure data storage method according to the present invention is applied.
【図2】ディスク装置に格納されている木構造データの
例を示す図である。FIG. 2 is a diagram showing an example of tree structure data stored in a disk device.
【図3】子孫ノード数算出手段の処理例を示すフローチ
ャートである。FIG. 3 is a flowchart illustrating a processing example of a descendant node number calculation unit.
【図4】子孫ノード数算出手段によって図2に示す木構
造データの各ノードに付与された名前と、算出された各
ノードの子孫ノード数とを示す図である。FIG. 4 is a diagram showing a name given to each node of the tree structure data shown in FIG. 2 by a descendant node number calculating means, and a calculated number of descendant nodes of each node.
【図5】木構造データの一部を主記憶に配置した例を示
す図である。FIG. 5 is a diagram showing an example in which a part of tree structure data is arranged in a main storage.
【図6】処理装置のノード処理の一例を示すフローチャ
ートである。FIG. 6 is a flowchart illustrating an example of a node process of the processing device.
1…処理装置 2…ディスク装置 3…主記憶 31…データ部 32…管理部 4…ノード配置部 41…子孫ノード数算出手段 42…ノード選択手段 43…ノード読み出し手段 DESCRIPTION OF SYMBOLS 1 ... Processing apparatus 2 ... Disk apparatus 3 ... Main memory 31 ... Data part 32 ... Management part 4 ... Node arrangement part 41 ... Descendant node number calculation means 42 ... Node selection means 43 ... Node reading means
Claims (3)
記憶装置上のデータの一部を主記憶上に配置するように
した情報処理装置において、 前記外部記憶装置に格納された木構造データを対象と
し、そのノードのうち子孫ノード数の多いものを優先的
に前記主記憶上に配置するノード配置部を備えることを
特徴とする木構造データ格納方式。1. An information processing apparatus in which a part of data on an external storage device is arranged on a main storage in order to increase an access speed, wherein the tree structure data stored in the external storage device is A tree-structured data storage method, comprising: a node arrangement unit that preferentially arranges a node having a large number of descendant nodes among the nodes in the main storage.
に格納された木構造データの各ノードの子孫ノード数を
算出する子孫ノード数算出手段と、算出された子孫ノー
ド数の多いものから順に所定個数のノードを選択するノ
ード選択手段と、該選択されたノードを前記外部記憶装
置から主記憶上に読み出すノード読み出し手段とを含む
ことを特徴とする請求項1記載の木構造データ格納方
式。2. The method according to claim 2, wherein the node arranging unit calculates a descendant node number of each node of the tree structure data stored in the external storage device. 2. The tree structure data storage method according to claim 1, further comprising: a node selecting unit that selects a predetermined number of nodes; and a node reading unit that reads the selected nodes from the external storage device to a main storage.
データの各ノードのデータの格納先情報を含む木構造管
理情報を主記憶上に格納することを特徴とする請求項2
記載の木構造データ格納方式。3. The node reading unit stores tree structure management information including storage destination information of data of each node of the tree structure data on a main memory.
Described tree structure data storage method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6339243A JP2596397B2 (en) | 1994-12-29 | 1994-12-29 | Tree structure data storage method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6339243A JP2596397B2 (en) | 1994-12-29 | 1994-12-29 | Tree structure data storage method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH08185345A JPH08185345A (en) | 1996-07-16 |
| JP2596397B2 true JP2596397B2 (en) | 1997-04-02 |
Family
ID=18325616
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6339243A Expired - Lifetime JP2596397B2 (en) | 1994-12-29 | 1994-12-29 | Tree structure data storage method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2596397B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2006051869A1 (en) * | 2004-11-12 | 2006-05-18 | Justsystems Corporation | Document processing device and document processing method |
-
1994
- 1994-12-29 JP JP6339243A patent/JP2596397B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH08185345A (en) | 1996-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8250107B2 (en) | Techniques for graph data structure management | |
| CN114840487B (en) | Metadata management method and device for distributed file system | |
| JP4944160B2 (en) | Method and apparatus for searching a plurality of real-time sensors | |
| JP2002229825A (en) | Computer memory | |
| JP2000057174A (en) | Method and system for storing and retrieving multimedia objects | |
| CN104426770A (en) | Routing lookup method, routing lookup device and method for constructing B-Tree tree structure | |
| CN109446225A (en) | Data cache method, device, computer equipment and storage medium | |
| KR101411321B1 (en) | A management method and apparatus for a neighboring node having characteristics similar to those of an active node, and a recording medium on which a program for implementing the method is recorded | |
| CN115638803A (en) | Personalized path planning method sensitive to urban interest points | |
| JPH10240765A (en) | Similar object search method and apparatus | |
| JPH08185348A (en) | Information processing apparatus and information processing method | |
| JP2596397B2 (en) | Tree structure data storage method | |
| JPH08110912A (en) | Video search device and video search method | |
| JP3505393B2 (en) | Similar object search method and apparatus, and recording medium storing similar object search program | |
| US7159019B2 (en) | Information collection apparatus and method | |
| CN112307272B (en) | Method, device, computing equipment and storage medium for determining relation information between objects | |
| CN108270851B (en) | A data storage method and device | |
| CN115221360A (en) | Tree structure configuration method and system | |
| CN106709045A (en) | Node selection method and device in distributed file system | |
| JP2560610B2 (en) | Data processing device | |
| JP3460622B2 (en) | Construction and search method of network configuration database | |
| JP2874810B2 (en) | Key memory allocation method | |
| JP5434500B2 (en) | Tree structure processing apparatus and program | |
| JPH0456344B2 (en) | ||
| JPH05108354A (en) | Expert system |