JPS58178453A - Calculation system of data size of group item - Google Patents

Calculation system of data size of group item

Info

Publication number
JPS58178453A
JPS58178453A JP57061261A JP6126182A JPS58178453A JP S58178453 A JPS58178453 A JP S58178453A JP 57061261 A JP57061261 A JP 57061261A JP 6126182 A JP6126182 A JP 6126182A JP S58178453 A JPS58178453 A JP S58178453A
Authority
JP
Japan
Prior art keywords
data
intermediate text
parent
pointer
data size
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.)
Granted
Application number
JP57061261A
Other languages
Japanese (ja)
Other versions
JPS6363936B2 (en
Inventor
Hiroko Hashizume
橋詰 裕子
Nozomi Sakurai
桜井 のぞみ
Kaoru Komatsu
小松 芳
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP57061261A priority Critical patent/JPS58178453A/en
Publication of JPS58178453A publication Critical patent/JPS58178453A/en
Publication of JPS6363936B2 publication Critical patent/JPS6363936B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To decrease the number of calculations and the time of pointer tracings and to simplify data size calculation, by retracing texts from the last intermediate text and adding the data size to an intermediate text that a parent pointer indicates. CONSTITUTION:The data size 4 of an intermediate text (tex)G is added to the numeral 0 in its parent data storage area 4. Then, a TexF is retraced by the backward pointer (BP) of the TexG to add the number of data of the TexF, i.e. 3 to its parent TexC similarly. A TexE is retraced by the BP of the TexF to its number of data, i.e. 2 to its parent TexC. Similarly, the number of data of a TexD, i.e. 1 is added to its parent TexC. Consequently, the integrated number of data of the TexC is 10. Further, the value is added to the parent TexB of the TexC and the sum is added to a TexA, completing the calculation.

Description

【発明の詳細な説明】 (1)発明の技術分野 本発明は、データ辞書、データ登録簿などとも呼ばれる
中間テキストを用いてデータベースの編成、管理を行う
情報処理装置において、入力するデータのデータ領域の
サイズを算出する方式に関する。
Detailed Description of the Invention (1) Technical Field of the Invention The present invention relates to an information processing apparatus that organizes and manages a database using intermediate text, also called a data dictionary, data register, etc. This relates to a method for calculating the size of.

従来、第1図に示す例の如きンーステキストに基づき、
これを解析し編成するためその各データの名称、属性、
相互の関連等を登録する中間テキストを作成することが
行われている。該中間テキストはデータの1つ1つに対
応して設けられ、各データに関する前記各情報や各デー
タのサイλは登録されているが全体のデータサイズ及び
第1図の例のDATAo 1、DATAo 21、DA
TAo s 1の如く子を持つ形のいわゆる集団項目の
データサイズは前記各データサイズを加算して算出しな
ければならない。
Conventionally, based on a source text such as the example shown in Figure 1,
In order to analyze and organize this data, the name, attributes,
Intermediate texts are created in which mutual relationships are registered. The intermediate text is provided corresponding to each piece of data, and the above-mentioned information regarding each data and the size λ of each data are registered, but the overall data size and DATAo 1, DATAo in the example of FIG. 21. D.A.
The data size of a so-called group item that has children, such as TAos 1, must be calculated by adding the above-mentioned data sizes.

従来このようなデータサイズの算出は、中間テキストに
設けられ九データ相互の関連を示すポインタを用い、第
2図に示すような方式で行われていた。第2図において
、1は第1図の各データに対応する中間テキストであり
、2はフォワードポインタ、5はペアレントポインタで
あり、最初のデータ(D A T Aol)からフォワ
ードポインタの指示する順序に従い次々に各データサイ
ズを加算する方式によっていた。この場合、データの総
数を算出するのは、比較的容易であったが、集団項目毎
のデータ数を算出するのは極めて面倒であった。即ち、
第2図において、集団項目のデータ数を算出するにはD
ATAo 1の中間テキストからフォワードポインタを
DATA021、DATAo s 1、DATAo 4
1・・・・・・の順にたどりかつそれぞれのデータ数を
親に加算する手順が必要である。同図A (DATAO
l)の中間テキストのデータサイズは0、中間テキスト
Aのフォワードポインタの指す中間テキストB (DA
TAo 21) 、同じ<C(DATAo s 1)の
データサイズも0であるが、同じ<D (DATAo 
41)のデータサイズは1バイトであるので該中間テキ
ストDの1バイトをそのペアレントポインタの指す中間
テキス)Cのデータサイズ格納領域に加算し、該加算結
果1を該中間テキストCのペアレントポインタの指す中
間テキストBのデータサイズ格納領域に加算し、該加算
結果1を該中間テキストBのペアレントポインタの指す
中間テキス)Aに加算する必要がある0然る後りのフォ
ワードポインタの指す中間テキストEをたどり、蚊デー
タ数2をそのペアレントポインタの指すC及びB、 A
の中間テキストにそれぞれ加算し、前記Eのフォワード
ポインタに従いFのデータ数墨を同様にして前記C,B
SAにそれぞれ加算する。続いて同様中間テキストGの
データ数4を前記CSB、Aに加算し、結局集団項目A
1B、Cについてそれぞれ10バイトのデータ数を算出
するという結果を得てい九0以上の方式は演算回数も多
く、ポインタを九どる回数も多く複雑で、演算時間もか
かる欠点があった。
Conventionally, such calculation of data size has been performed using a method as shown in FIG. 2, using pointers provided in the intermediate text to indicate the relationship between nine pieces of data. In FIG. 2, 1 is an intermediate text corresponding to each data in FIG. 1, 2 is a forward pointer, and 5 is a parent pointer. The method used was to add each data size one after another. In this case, it was relatively easy to calculate the total number of data, but it was extremely troublesome to calculate the number of data for each group item. That is,
In Figure 2, to calculate the number of data for group items, D
Forward pointer from intermediate text of ATAo 1 to DATA021, DATAo s 1, DATAo 4
A procedure is required to trace the data in the order of 1, . . . and add the respective data numbers to the parent. Figure A (DATAO
l) The data size of the intermediate text is 0, and the intermediate text B (DA
TAo 21), the data size of the same <C (DATAo s 1) is also 0, but the same <D (DATAo s 1)
Since the data size of 41) is 1 byte, 1 byte of the intermediate text D is added to the data size storage area of the intermediate text) C pointed to by its parent pointer, and the addition result 1 is added to the data size storage area of the intermediate text C pointed to by its parent pointer. The intermediate text E pointed to by the forward pointer after 0 needs to be added to the data size storage area of the intermediate text B pointed to, and the addition result 1 is added to the intermediate text A pointed to by the parent pointer of the intermediate text B. , the number of mosquito data is 2, and the parent pointer points to C, B, and A.
, and add the data number of F according to the forward pointer of E in the same manner to the intermediate text of C and B.
Add each to SA. Then, in the same way, the number of data of intermediate text G, 4, is added to the CSB, A, and finally group item A is obtained.
The method of 90 or more, which obtained the result of calculating the number of data of 10 bytes each for 1B and C, had the disadvantage that it required a large number of calculations, was complex, required many times to digitize a pointer, and took a long calculation time.

本発明は上記演算回数及びポインタをたどる回数を大巾
に減少する算出方式である。
The present invention is a calculation method that greatly reduces the number of operations and the number of times the pointer is traced.

(2)発明の構成 本発明の構成は特許請求の範囲に記載のとおりであり、
ポインタとデータサイズ格納領域を有する中間テキスト
を用い、従来の方式と逆に鍛後の中間テキストから遡っ
てペアレントボイ/りが指す中間テキストにデータサイ
ズを加算するものである。
(2) Structure of the invention The structure of the present invention is as described in the claims,
This method uses an intermediate text having a pointer and a data size storage area, and, contrary to the conventional method, adds the data size to the intermediate text pointed to by the parent voice, going back from the intermediate text after forging.

(3)発明の実施例 本発明の1つの実施例を第5図に示す0図において5は
バックワードポインタであり、それ以外の第2図と同一
部分については同一番号を付して説明を省略する。WN
2図のソーステキストに基づいて第S図の中間テキスト
を作成し、該中間テキスト作成中にノ(ツクワードポイ
ンタ5、ペアレントポインタ島と、データサイズ格納領
域4にそれぞれの情報を登録する。集団項目毎のデータ
サイズを算出するには、先ず最後尾の中間テキストから
、バンクワードポインタをたどりつつ、それぞれの中間
テキストのデータサイズを親(ペアレントポインタが示
す中間テキスト)のデータサイズ格納領域に記録されて
いる数値に加算する。第5図では、中間テキストGのデ
ータサイズ4をその親(ペアレントポインタの指す中間
テキス)C)のデータ格納領域4の数値Oに加算する。
(3) Embodiment of the Invention One embodiment of the present invention is shown in FIG. Omitted. WN
The intermediate text shown in Figure S is created based on the source text shown in Figure 2, and during the creation of the intermediate text, the respective information is registered in the word pointer 5, parent pointer island, and data size storage area 4.Group To calculate the data size for each item, first start from the last intermediate text and record the data size of each intermediate text in the data size storage area of the parent (intermediate text indicated by the parent pointer) while following the bank word pointer. In FIG. 5, the data size 4 of the intermediate text G is added to the numerical value O of the data storage area 4 of its parent (the intermediate text pointed to by the parent pointer) C).

然る後中間テキストGのバックワードポインタによって
中間テキストFをたどり、中間テキストFのデータ数5
をその親である中間テキストCに上記同様加算する。続
いて中間テキス)Fのバックワードポインタによって中
間テキストEをたどりそのデータ数2をその親中間テキ
ストCに加算し、以下同様にして中間テキス)Dのデー
タ数1をその親である中間テキス)Cに加算する。以上
の結果中間テキス)C(DATA。
After that, the intermediate text F is traced using the backward pointer of the intermediate text G, and the number of data of the intermediate text F is 5.
is added to its parent intermediate text C in the same manner as above. Next, use the backward pointer of intermediate text (intermediate text) F to trace intermediate text E and add its data number 2 to its parent intermediate text C, and in the same way, add the data number 1 of intermediate text (intermediate text) D to its parent intermediate text). Add to C. The above result intermediate text)C(DATA.

s+)の累積データ数は0−4−4+5+2で10とな
る。更にその値を中間テキストCの親である中間テキス
トBに加算しく1o +o −1Q)かつその値を中間
テキス)Hの親である中間テキストAに加算して(1o
+o=1o)全ての集団項目のデータ数の算出を完了す
る。
The cumulative number of data for s+) is 0-4-4+5+2, which is 10. Further, add that value to intermediate text B, which is the parent of intermediate text C, (1o +o -1Q), and add that value to intermediate text A, which is the parent of intermediate text ()H, to get (1o
+o=1o) Complete calculation of data counts for all group items.

以上の方式により、バックワードポインタ及び親へのポ
インタを一度だけたどることにより、すべての集団項目
の大きさが算出できるため、従来の方式に比し演算回数
もポインタをたどる回数も著しく減少して単純化され、
演算時間も極めて短縮できる。
With the above method, the size of all group items can be calculated by following the backward pointer and the pointer to the parent only once, so the number of operations and the number of pointer tracing is significantly reduced compared to the conventional method. simplified,
Computation time can also be significantly reduced.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はソーステキストの例、第2図は従来の集団項目
のデータサイズ算出方式を示す図、第3図は本発明の集
団項目のデータサイズ算出方式の説明図である。 1:中間テキスト、2;フォワードポインタ、5:ペア
レント(ロ)ポインタ、4;データサイズ格納領域、5
;バックワードポインタ j、’3i’、片大)
FIG. 1 is an example of a source text, FIG. 2 is a diagram showing a conventional group item data size calculation method, and FIG. 3 is an explanatory diagram of a group item data size calculation method according to the present invention. 1: Intermediate text, 2: Forward pointer, 5: Parent (b) pointer, 4: Data size storage area, 5
;backward pointer j, '3i', one size)

Claims (1)

【特許請求の範囲】[Claims] 中間テキストを用いてデータベースの編成を行う情報処
理装置に入力するデータのデータ領域のサイズを求める
方式において、ソースデータの各々に対応し、かつ、フ
ォワードポインタ、バンクワードポインタ、ペアレント
ポインタ及びデータサイズ格納領域を有する中間テキス
トを設けてソースデータの情報を登録し、データの順位
が最後の中間テキストから始めて順次そのパックワード
ポインタが示す順序に従い、それぞれの中間テキストの
データサイズ格納領域の数値をそれぞれのペアレントポ
インタが指す中間テキストに加算することを特徴とする
集団項目のデータサイズ算出方式
In a method for determining the data area size of data to be input to an information processing device that organizes a database using intermediate text, a forward pointer, bank word pointer, parent pointer, and data size storage are provided that correspond to each source data. Create an intermediate text with an area, register the information of the source data, and sequentially calculate the numerical value of the data size storage area of each intermediate text in the order indicated by the packed word pointer, starting from the intermediate text with the last data rank. Data size calculation method for group items characterized by adding to intermediate text pointed to by parent pointer
JP57061261A 1982-04-13 1982-04-13 Calculation system of data size of group item Granted JPS58178453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57061261A JPS58178453A (en) 1982-04-13 1982-04-13 Calculation system of data size of group item

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57061261A JPS58178453A (en) 1982-04-13 1982-04-13 Calculation system of data size of group item

Publications (2)

Publication Number Publication Date
JPS58178453A true JPS58178453A (en) 1983-10-19
JPS6363936B2 JPS6363936B2 (en) 1988-12-09

Family

ID=13166109

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57061261A Granted JPS58178453A (en) 1982-04-13 1982-04-13 Calculation system of data size of group item

Country Status (1)

Country Link
JP (1) JPS58178453A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60250437A (en) * 1984-05-25 1985-12-11 Fujitsu Ltd Memory area allocation processing system for plural data having nested structure

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60250437A (en) * 1984-05-25 1985-12-11 Fujitsu Ltd Memory area allocation processing system for plural data having nested structure

Also Published As

Publication number Publication date
JPS6363936B2 (en) 1988-12-09

Similar Documents

Publication Publication Date Title
JPS58178453A (en) Calculation system of data size of group item
JP2001265791A (en) Electronic book display device and storage medium storing electronic book display program
JPH0193843A (en) System for coupling table
JP3059330B2 (en) CAD data converter
JPS62121532A (en) Data retrieving method
JP2001222536A (en) System and method for preparing patent map and recording medium
JPS6235138B2 (en)
JP2611641B2 (en) Data item name converter
Frappier et al. A specification method for cleanroom's black box description
JPH07105223A (en) Data base retrieval device
JP2788849B2 (en) Grouping method by serial number description
JPH0685169B2 (en) Document processing method
Hammond et al. Data-processing and analysis in epidemiological research.
JPH02294875A (en) Data retrieving system
JPH03194656A (en) Cad device
JPH03222049A (en) Null value storage system
JPS63118836A (en) Data retrieving method
JPS6272026A (en) Data item definition system
JPS6053327B2 (en) Item search method
JPH0522269B2 (en)
JPS5962943A (en) Code data input device
JPH057741B2 (en)
JPS61105590A (en) Data display system
JPS63155275A (en) Graphic data access system
JPS58208846A (en) Priority deciding system for kana (japanese syllabary) letter train