Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6363936B2 - - Google Patents
[go: Go Back, main page]

JPS6363936B2 - - Google Patents

Info

Publication number
JPS6363936B2
JPS6363936B2 JP57061261A JP6126182A JPS6363936B2 JP S6363936 B2 JPS6363936 B2 JP S6363936B2 JP 57061261 A JP57061261 A JP 57061261A JP 6126182 A JP6126182 A JP 6126182A JP S6363936 B2 JPS6363936 B2 JP S6363936B2
Authority
JP
Japan
Prior art keywords
data
intermediate text
pointer
parent
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.)
Expired
Application number
JP57061261A
Other languages
Japanese (ja)
Other versions
JPS58178453A (en
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 filed Critical
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 OR CALCULATING; 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)

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図
の例のDATA01、DATA021、DATA031の如く
子を持つ形のいわゆる集団項目のデータサイズは
前記各データサイズを加算して算出しなければな
らない。
Conventionally, based on a source text such as the example shown in FIG. 1, in order to analyze and organize the source text, an intermediate text is created in which the names, attributes, mutual relationships, etc. of each piece of data 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 DATA01, DATA021, DATA031 in the example of FIG. The data size of a so-called group item that has children as shown in the figure must be calculated by adding the above-mentioned data sizes.

従来このようなデータサイズの算出は、中間テ
キストに設けられたデータ相互の関連を示すポイ
ンタを用い、第2図に示すような方式で行われて
いた。第2図において、1は第1図の各データに
対応する中間テキストであり、2はフオワードポ
インタ、3はペアレントポインタであり、最初の
データ(DATA01)からフオワードポインタの
指示する順序に従い次々に各データサイズを加算
する方式によつていた。この場合、データの総数
を算出するのは、比較的容易であつたが、集団項
目毎のデータ数を算出するのは極めて面倒であつ
た。即ち、第2図において、集団項目のデータ数
を算出するにはDATA01の中間テキストからフ
オワードポインタをDATA021、DATA031、
DATA041……の順にたどりかつそれぞれのデー
タ数を親に加算する手順が必要である。同図A
(DATA01)の中間テキストのデータサイズは
0、中間テキストAのフオワードポインタの指す
中間テキストB(DATA021)、同じくC
(DATA031)のデータサイズも0であるが、同
じくD(DATA041)のデータサイズは1バイト
であるので該中間テキストDの1バイトをそのペ
アレントポインタの指す中間テキストCのデータ
サイズ格納領域に加算し、該加算結果1を該中間
テキストCのペアレントポインタの指す中間テキ
ストBのデータサイズ格納領域に加算し、該加算
結果1を該中間テキストBのペアレントポインタ
の指す中間テキストAに加算する必要がある。然
る後Dのフオワードポインタの指す中間テキスト
Eをたどり、該データ数2をそのペアレントポイ
ンタの指すC及びB,Aの中間テキストにそれぞ
れ加算し、前記Eのフオワードポインタに従いF
のデータ数3を同様にして前記C,B,Aにそれ
ぞれ加算する。続いて同様中間テキストGのデー
タ数4を前記C,B,Aに加算し、結局集団項目
A,B,Cについてそれぞれ10バイトのデータ数
を算出するという結果を得ていた。以上の方式は
演算回数も多く、ポインタをたどる回数も多く複
雑で、演算時間もかかる欠点があつた。
Conventionally, such calculation of data size has been performed using a method shown in FIG. 2, using pointers provided in intermediate text that indicate the relationship between data. In Fig. 2, 1 is an intermediate text corresponding to each data in Fig. 1, 2 is a forward pointer, and 3 is a parent pointer. Starting from the first data (DATA01), data is sequentially displayed in the order indicated by the forward pointer. It was based on the method of adding each data size to . 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 in a group item, move the forward pointer from the intermediate text of DATA01 to DATA021, DATA031,
A procedure is required to trace the data in the order of DATA041... and add each data number to the parent. Same figure A
The data size of the intermediate text (DATA01) is 0, and the intermediate text B (DATA021) pointed to by the forward pointer of intermediate text A is also C.
The data size of (DATA031) is also 0, but the data size of D (DATA041) is 1 byte, so 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. , it is necessary to add the addition result 1 to the data size storage area of the intermediate text B pointed to by the parent pointer of the intermediate text C, and add the addition result 1 to the intermediate text A pointed to by the parent pointer of the intermediate text B. . After that, trace the intermediate text E pointed to by the forward pointer of D, add the data number 2 to the intermediate text of C, B, and A pointed to by the parent pointer, and move F according to the forward pointer of E.
Similarly, the number of data 3 is added to C, B, and A respectively. Subsequently, in the same way, the number of data of intermediate text G, 4, was added to the above-mentioned C, B, and A, and in the end, a result of calculating the number of data of 10 bytes for each of group items A, B, and C was obtained. The above-mentioned method has the disadvantage that it requires a large number of calculations, a large number of pointer traces, is complex, and takes a long calculation time.

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

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

(3) 発明の実施例 本発明の1つの実施例を第3図に示す。図にお
いて5はバツクワードポインタであり、それ以外
の第2図と同一部分については同一番号を付して
説明を省略する。第1図のソーステキストに基づ
いて第3図の中間テキストを作成し、該中間テキ
スト作成中にバツクワードポインタ5、ペアレン
トポインタ3と、データサイズ格納領域4にそれ
ぞれの情報を登録する。集団項目毎のデータサイ
ズを算出するには、先ず最後尾の中間テキストか
ら、バツクワードポインタをたどりつつ、それぞ
れの中間テキストのデータサイズを親(ペアレン
トポインタが示す中間テキスト)のデータサイズ
格納領域に記録されている数値に加算する。第3
図では、中間テキストGのデータサイズ4をその
親(ペアレントポインタの指す中間テキストC)
のデータ格納領域4の数値0に加算する。然る後
中間テキストGのバツクワードポインタによつて
中間テキストFをたどり、中間テキストFのデー
タ数3をその親である中間テキストCに上記同様
加算する。続いて中間テキストFのバツクワード
ポインタによつて中間テキストEをたどりそのデ
ータ数2をその親中間テキストCに加算し、以下
同様にして中間テキストDのデータ数1をその親
である中間テキストCに加算する。以上の結果中
間テキストC(DATA031)の累積データ数は0
+4+3+2で10となる。更にその値を中間テキ
ストCの親である中間テキストBに加算し(10+
0=10)かつその値を中間テキストBの親である
中間テキストAに加算して(10+0=10)全ての
集団項目のデータ数の算出を完了する。
(3) Embodiment of the Invention One embodiment of the present invention is shown in FIG. In the figure, 5 is a backward pointer, and other parts that are the same as those in FIG. 2 are given the same numbers and their explanations will be omitted. The intermediate text shown in FIG. 3 is created based on the source text shown in FIG. 1, and during the creation of the intermediate text, the respective information is registered in the backward pointer 5, parent pointer 3, and data size storage area 4. To calculate the data size for each group item, first start from the last intermediate text, follow the backward pointer, and store the data size of each intermediate text in the data size storage area of the parent (intermediate text indicated by the parent pointer). Add to the recorded value. Third
In the figure, the data size 4 of intermediate text G is its parent (intermediate text C pointed to by the parent pointer)
is added to the numerical value 0 in the data storage area 4. Thereafter, the intermediate text F is traced using the backward pointer of the intermediate text G, and the data number 3 of the intermediate text F is added to its parent intermediate text C in the same manner as described above. Next, the backward pointer of intermediate text F is used to trace intermediate text E, and the data number 2 is added to its parent intermediate text C. In the same manner, the data number 1 of intermediate text D is added to its parent intermediate text C. Add to. As a result of the above, the cumulative data count of intermediate text C (DATA031) is 0
+4+3+2 equals 10. Furthermore, add that value to intermediate text B, which is the parent of intermediate text C (10 +
0=10) and that value is added to intermediate text A, which is the parent of intermediate text B (10+0=10), to complete the calculation of the data counts of all group items.

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

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

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

Claims (1)

【特許請求の範囲】[Claims] 1 中間テキストを用いてデータベースの編成を
行う情報処理装置に入力するデータのデータ領域
のサイズを求める方式において、ソースデータの
各々に対応し、かつ、フオワードポインタ、バツ
クワードポインタ、ペアレントポインタ及びデー
タサイズ格納領域を有する中間テキストを設けて
ソースデータの情報を登録し、データの順位が最
後の中間テキストから始めて順次そのバツクワー
ドポインタが示す順序に従い、それぞれの中間テ
キストのデータサイズ格納領域の数値をそれぞれ
のペアレントポインタが指す中間テキストに加算
することを特徴とする集団項目のデータサイズ算
出方式。
1. In a method for determining the size of the data area of data input to an information processing device that organizes a database using intermediate text, the size of the data area corresponding to each source data and the forward pointer, backward pointer, parent pointer, and data An intermediate text having a size storage area is provided, information on the source data is registered, and the value of the data size storage area of each intermediate text is sequentially calculated starting from the intermediate text with the last data rank and sequentially in the order indicated by the backward pointer. A group item data size calculation method characterized by adding to the intermediate text pointed to by each 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 JPS58178453A (en) 1983-10-19
JPS6363936B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0644232B2 (en) * 1984-05-25 1994-06-08 富士通株式会社 Multiple data storage area allocation method with forward and backward nesting structure

Also Published As

Publication number Publication date
JPS58178453A (en) 1983-10-19

Similar Documents

Publication Publication Date Title
JPS6363936B2 (en)
JPH0193843A (en) System for coupling table
JPS642970B2 (en)
US3356997A (en) Print-out control systems
JPS58191057A (en) Miniature electronic computer with program
JPH042961B2 (en)
JP2924222B2 (en) Logic simulator
JP2605402B2 (en) Data derivation method in dictionary system
JPH0731309Y2 (en) Information processing device having simulation function
JPH05274134A (en) Screen operation manual creation method
JPH01234931A (en) Relational database projection processing method
JPS6016948Y2 (en) Segment type display device
JPS59100965A (en) Electronic device
CLARKE Identification package for a PDP-11 computer(estimating linear transfer functions)
JPS6053327B2 (en) Item search method
JPH0256059A (en) document creation device
JPS6084587A (en) Graphic managing display
JPS6111857A (en) Display device of program module
JPH01175663A (en) Document edition system
JPH03194656A (en) Cad device
JPH03276374A (en) Logical simulation result tracking device
JPS63153671A (en) Data processor
Young Geschichte der Mathematik. By O. Becker & JE Hofmann DM. 10. 1951.(Athenäum Verlag, Bonn)
JPS593626A (en) Data output device to X-Y recorder
JPS60184289A (en) Cursor control system