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
JPH0786880B2 - Data storage method - Google Patents
[go: Go Back, main page]

JPH0786880B2 - Data storage method - Google Patents

Data storage method

Info

Publication number
JPH0786880B2
JPH0786880B2 JP3125561A JP12556191A JPH0786880B2 JP H0786880 B2 JPH0786880 B2 JP H0786880B2 JP 3125561 A JP3125561 A JP 3125561A JP 12556191 A JP12556191 A JP 12556191A JP H0786880 B2 JPH0786880 B2 JP H0786880B2
Authority
JP
Japan
Prior art keywords
data
digit
record
stored
node
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 - Fee Related
Application number
JP3125561A
Other languages
Japanese (ja)
Other versions
JPH04328680A (en
Inventor
純 大志茂
浩三 北端
亨 和田
清 福山
浩則 吉村
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.)
Tsubakimoto Chain Co
Original Assignee
Tsubakimoto Chain Co
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 Tsubakimoto Chain Co filed Critical Tsubakimoto Chain Co
Priority to JP3125561A priority Critical patent/JPH0786880B2/en
Publication of JPH04328680A publication Critical patent/JPH04328680A/en
Publication of JPH0786880B2 publication Critical patent/JPH0786880B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、各データに複数桁の識
別コードが付されてあり、複数のデータに共通データが
含まれるデータを記憶する方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of storing data in which each data is provided with an identification code of a plurality of digits and the plurality of data includes common data.

【0002】[0002]

【従来の技術】図8は商品の分類コードと商品名を対照
付けたJANコードマスタデータの一例を示す図であっ
て、分類コードは販売会社毎の商品別に付されてあり、
商品のバーコード等に利用される。
2. Description of the Related Art FIG. 8 is a diagram showing an example of JAN code master data in which a product classification code and a product name are compared with each other. The classification code is attached to each product of each sales company.
Used for product barcodes.

【0003】図9乃至11は、上述のJANコードマス
タデータの従来の記憶方法による記憶状態を示す概念図
である。従来では、1レコードが固定長の数値データ部
と可変長の文字列データ部とからなるデータを2分木の
木構造で記憶している。即ち、図9に示すように、数値
データ部に対応付けて文字列データの記憶位置を示すポ
インタが記憶され、数値データからの分岐先が左右枝の
ポインタとして記憶されている。文字列データは、図1
0に示すようにポインタが示すアドレスにそれぞれ記憶
されてある。図11は上述のような木構造データの記憶
状態を示す概念図である。
9 to 11 are conceptual diagrams showing a storage state of the above-mentioned JAN code master data by a conventional storage method. Conventionally, one record stores data having a fixed-length numerical data part and a variable-length character string data part in a tree structure of a binary tree. That is, as shown in FIG. 9, a pointer indicating the storage position of the character string data is stored in association with the numerical data portion, and the branch destination from the numerical data is stored as the left and right branch pointers. The character string data is shown in Figure 1.
As shown by 0, they are stored at the addresses indicated by the pointers. FIG. 11 is a conceptual diagram showing a storage state of the tree structure data as described above.

【0004】[0004]

【発明が解決しようとする課題】以上のような従来のデ
ータ記憶方法では、JANコードマスタデータのよう
に、多数のデータに共通する販売会社名等の文字列コー
ド及びこれに対応する数値データを含むデータを記憶す
る場合も、各レコードの全データをそれぞれ異なる記憶
領域に記憶するので、レコード数が多くなるほど同一デ
ータが多く記憶されることになり、記憶領域の利用効率
が低下するという問題があった。
In the conventional data storage method as described above, like the JAN code master data, a character string code common to a large number of data such as a sales company name and corresponding numerical data are stored. Even when storing data including all, since all data of each record is stored in different storage areas, the same data is stored as the number of records increases, which causes a problem that the storage area usage efficiency decreases. there were.

【0005】本発明はこのような問題点を解決するため
になされたものであって、他のレコードとの共通データ
を同一アドレスに記憶することにより、記憶領域の利用
効率が高いデータ記憶方法の提供を目的とする。
The present invention has been made in order to solve such a problem, and stores a common data with another record at the same address so that a data storage method with high utilization efficiency of a storage area is provided. For the purpose of provision.

【0006】[0006]

【課題を解決するための手段】本発明のデータ記憶方法
は、データ及び複数桁からなる該データの識別コードを
1レコードとし、1レコードのデータの一部要素が他の
レコードの一部要素と同一である場合、同一データ要素
に対応するそれぞれの識別コードの桁部分に同一値が設
定されてあるデータを記憶する方法において、識別コー
ドの各桁値を、桁順に深くなる木構造の各ノードから指
定される桁値別のリストに記憶するとともに各リストに
次桁のノードアドレスを記憶し、所定桁のリストに、最
上位桁から当該桁までの識別コードにより識別されるデ
ータ要素のうち、当該桁より上位の桁にて識別済みのデ
ータ要素を除くデータ要素の記憶アドレスを記憶すると
ともに、各レコードのデータ要素を、データ要素が他の
レコードと同一の場合は該レコードの該データ要素と同
一のアドレスに記憶することを特徴とする。
According to the data storage method of the present invention, the identification code of the data and the data consisting of a plurality of digits is defined as one record, and one element of the data of one record is identified as one element of another record. If they are the same, in the method of storing the data in which the same value is set in the digit part of each identification code corresponding to the same data element, each digit value of the identification code becomes deeper in the digit order. Are stored in the list for each digit value specified from, and the node address of the next digit is stored in each list, and among the data elements identified by the identification code from the most significant digit to the relevant digit in the list of predetermined digits, The storage address of the data element excluding the data element identified in the digit higher than the relevant digit is stored, and the data element of each record is the same as that of other records. If the and to store to the same address as the data elements in the record.

【0007】[0007]

【作用】本発明のデータ記憶方法は、識別コードを桁別
に分解し、各桁を桁順に深くなる木構造の各ノードに割
り当て、各ノードから指定される桁値別のリストに次桁
のノードアドレスを記憶するとともに、所定桁のリスト
に、最上位桁から当該桁までの識別コードにより識別さ
れるデータ要素のうち、当該桁より上位の桁にて識別済
みのデータ要素を除くデータ要素の記憶アドレスを記憶
しておき、一方、各レコードのデータ要素は、データ要
素が他のレコードと同一の場合は該レコードの該データ
要素の同一のアドレスに記憶する。以上のようにして記
憶されたデータを検索する場合、識別コードの各桁のノ
ードが指定するリストによって、次桁のノードアドレス
を得て、一致検索によって識別コードを桁順にたどって
いき、リストにデータ要素の記憶アドレスが記憶されて
いる場合、この記憶アドレスからデータ要素を読み出し
て、最上位桁から当該桁までに識別済みのデータ要素に
追加し、全桁値を一致検索し終えた時点で全データ要素
を検索結果として出力する。
According to the data storage method of the present invention, the identification code is decomposed into digits, and each digit is assigned to each node of the tree structure that becomes deeper in the digit order, and the node of the next digit is added to the list of digit values specified by each node. In addition to storing the address, in the list of predetermined digits, among the data elements identified by the identification code from the most significant digit to the relevant digit, the storage of data elements excluding the data elements that have been identified by the digits higher than the relevant digit The address is stored, while the data element of each record is stored at the same address of the data element of the record when the data element is the same as the other record. When searching the data stored as above, the node address of the next digit is obtained by the list specified by the node of each digit of the identification code, and the identification code is traced in digit order by the match search, If the storage address of the data element is stored, the data element is read from this storage address, added to the identified data element from the most significant digit to the relevant digit, and when all digits are searched for a match, the data element is read. Output all data elements as search results.

【0008】[0008]

【実施例】以下、本発明をその実施例を示す図面に基づ
いて説明する。図1は本発明に係るデータ記憶方法を実
施するデータ処理装置の構成を示すブロック図である。
図中1は数値,文字等のデータ及び各種命令を入力する
キーボードからなる入力部であって、入力部1から入力
されたデータ,命令はデータ処理部2に入力される。デ
ータ処理部2は、数値データ部及び文字列データ部を1
レコードとするデータを記憶しているデータベース3か
らデータを読み出して処理するとともに、処理結果をC
RTからなる表示部5に表示し、またプリンタ6に印字
する。データ処理部2はデータベース3を検索して検索
結果を検索結果文字列バッファ4に格納する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings showing the embodiments thereof. FIG. 1 is a block diagram showing the configuration of a data processing device for implementing the data storage method according to the present invention.
In the figure, reference numeral 1 denotes an input unit including a keyboard for inputting data such as numerical values and characters and various commands, and the data and commands input from the input unit 1 are input to the data processing unit 2. The data processing section 2 has a numerical data section and a character string data section as 1
The data is read from the database 3 which stores the data to be recorded and processed, and the processing result is C
The image is displayed on the display unit 5 composed of RT and printed on the printer 6. The data processing unit 2 searches the database 3 and stores the search result in the search result character string buffer 4.

【0009】データベース3は、前記識別コードたる数
値データ部を後述する木構造で記憶している木構造デー
タ記憶部31と、前記データたる文字列データ部を、複数
のレコードに共通するデータ要素を同一アドレスに集約
して記憶している集約データ記憶部32とからなる。
The database 3 includes a tree structure data storage unit 31 that stores a numerical data section, which is the identification code, in a tree structure described later, and a character string data section, which is the data, with data elements common to a plurality of records. And an aggregated data storage unit 32 that aggregates and stores them at the same address.

【0010】図2はデータ構造を示す概念図であって、
図2(a) は固定長の数値データ部と可変長の文字列デー
タ部とからなる1レコードの構成を示しており、数値デ
ータ部が検索キーとなる。図2(b) は木構造の各ノード
データ311 の構成を示しており、そのデータは双方向リ
ストの先頭要素へのポインタである。
FIG. 2 is a conceptual diagram showing the data structure.
FIG. 2A shows the structure of one record consisting of a fixed-length numerical data part and a variable-length character string data part, and the numerical data part serves as a search key. FIG. 2B shows the structure of each node data 311 in the tree structure, and the data is a pointer to the head element of the bidirectional list.

【0011】図2(c) は双方向リスト312 の要素構成を
示す図であって、各要素は先頭から数値データ(numb),
集約データへのポインタ(comp), 前方要素へのポインタ
(prev), 後方要素へのポインタ(next), 次の桁のノード
データへのポインタ(nxcl)である。
FIG. 2 (c) is a diagram showing the element structure of the bidirectional list 312, in which each element is a numerical data (numb) from the beginning.
Pointer to aggregated data (comp), pointer to front element
(prev), a pointer to the back element (next), and a pointer to the node data of the next digit (nxcl).

【0012】図3は、本発明のデータ記憶方法によるデ
ータの記憶状態を示す概念図であって、双方向リスト31
2 は、各ノードデータ311 から指される先頭の双方向リ
スト312 から数値データ(numb)の昇順に後方へ記憶され
ており、双方向リスト312 の集約データへのポインタ(c
omp)から指されるアドレスに集約データ321 が記憶され
ている。また、双方向リスト312 は、複数桁からなる数
値データ部の上位桁から順次深くなる木構造で記憶され
ている。
[0012] Figure 3 is a conceptual diagram illustrating the storage state of the data by the data storage method of the present invention, two-way list 31
2 is stored backward from the first bidirectional list 312 pointed to by each node data 311 in ascending numerical data (numb).
And, a pointer to the aggregated data of the two-way list 312 (c
The aggregated data 321 is stored in the address pointed to by ( omp) . Also, the bidirectional list 312 is a multi-digit number.
It is stored in a tree structure that deepens sequentially from the upper digit of the value data part.
ing.

【0013】以上のような本発明のデータ記憶方法によ
り記憶されたデータの検索手順について、図4及び図5
に示すフローチャートに基づいて説明する。なお、S
[n] は検索キーとなる数値データ部の各桁の数値、iは
数値データ部の各桁の最上位桁からの順番 (0〜n) 、
Aは集約データ321 から読み出される文字列データ、N
はノードデータ、Mは双方向リスト312 の要素データ
(numb,comp, prev, next, nxcl) がそれぞれセットさ
れるレジスタの内容を示す。 オペレータが検索対象のJ
ANコードを入力部1から入力すると、データ処理部2
は、まず、検索キーの各桁の数値をS[n] にセットする
(S1)。次に、“A”に空文字列,“i”に“0”,
“N”に“根のノードデータ”、即ち、数値データ部の
1桁目の深さの双方向リストへのポインタをセットする
(S2)。
The procedure for searching the data stored by the data storage method of the present invention as described above will be described with reference to FIGS.
It will be described based on the flowchart shown in FIG. In addition, S
[n] is the numerical value of each digit in the numerical data part that serves as the search key, and i is
Order from the most significant digit of each digit in the numerical data part (0 to n),
A is character string data read from the aggregated data 321, N
Is node data, M is element data of bidirectional list 312
(numb, comp, prev, next, nxcl) are set respectively
Indicates the contents of the registered register. The operator searches for J
When the AN code is input from the input section 1, the data processing section 2
First sets each digit of the numerical value of the search key in S [n] (S1). Next, "A" is an empty character string, "i" is "0",
"N" is set to "root node data", that is, a pointer to the bidirectional list of the depth of the first digit of the numerical data part (S2).

【0014】“M”に、“N”が指している双方向リス
トの要素データをセットする(S3)。即ち、“Mnum
b”に1桁分の数値データ,“Mcomp”に集約データへ
のポインタ, “Mprev”に前方要素へのポインタ, “M
next”に後方要素へのポインタ, “Mnxcl”に次の桁の
ノードデータへのポインタをセットする。
Element data of the bidirectional list pointed to by "N" is set in "M" (S3). That is, "Mnum
“B” is a digit of numerical data, “Mcomp” is a pointer to aggregated data, “Mprev” is a pointer to the preceding element, and “M”
Set the pointer to the rear element in "next" and the pointer to the node data of the next digit in "Mnxcl".

【0015】“S[i] ”と“Mnumb”とを比較し、等し
くない場合は“Mnext”が“0”であるか否かを判断す
る(S5)。“Mnext”が“0”の場合は、検索対象が
見つからないので(S7)、エラー終了する。“Mnex
t”が“0”でない場合、“N”に“Mnext”をセット
し(S6)、ステップ3に戻って次の数値データを検討
する。
"S [i]" is compared with "Mnumb", and if they are not equal, it is determined whether "Mnext" is "0" (S5). If "Mnext" is "0", the search target is not found (S7), and the process ends in error. "Mnex
If t "is not" 0 "," Mnext "is set to" N "(S6), and the process returns to step 3 to examine the next numerical data.

【0016】S4で“S[i] ”と“Mnumb”とが等しい
場合、求める数値データであるので、“Mcomp”が
“0”であるか否かを判断する(S8)。“Mcomp”が
“0”でない場合は集約データが記憶されているので、
“Mcomp”が指している集約データ文字列を読み出して
“A”の末尾に追加する(S9)。
If "S [i]" is equal to "Mnumb" in S4, since it is the numerical data to be obtained, it is determined whether "Mcomp" is "0" (S8). If "Mcomp" is not "0", the aggregated data is stored.
The aggregated data character string pointed to by "Mcomp" is read and added to the end of "A" (S9).

【0017】“Mcomp”が“0”で集約データが記憶さ
れていない場合、“Mnxcl”が“0”か否かを判断する
(S10)。“Mnxcl”が“0”でなく、即ち次の桁が
ある場合、“Mnxcl”が指しているノードデータを
“N”にセットし(S11)、“i”をインクリメント
して(S12)、ステップ3に戻り、以上をS[0] 〜S
[12] 全桁に対して繰り返す。最終桁まで到達して“Mn
xcl”が“0”になると、“A”の文字列を検索結果と
して表示部5,プリンタ6等へ出力し(S13)、1レ
コード分の検索を終了する。
When "Mcomp" is "0" and the aggregated data is not stored, it is judged whether "Mnxcl" is "0" (S10). If "Mnxcl" is not "0", that is, if there is a next digit, the node data pointed to by "Mnxcl" is set to "N" (S11), "i" is incremented (S12), and the step Return to 3 and the above is S [0] to S
[12] Repeat for all digits. When you reach the last digit, "Mn
When "xcl" becomes "0", the character string "A" is output as a search result to the display unit 5, the printer 6 and the like (S13), and the search for one record is completed.

【0018】次に、入力部1からオペレータが入力した
“4971710007213”をキーとしてデータを
検索する手順を、図6及び7に示す木構造データの記憶
状態の概念図に基づいて説明する。図中、61,64,66,68,
70,77 及び80はそれぞれノードデータを示し、62,65,6
7,69,71,72,74,75,78及び81は双方向リストの要素デー
タを示す。なお、例えば68と69とは線形に連結されたデ
ータである。また、63,76 及び79は、集約データであ
る。
Next, the procedure for retrieving data using "49771710007213" entered by the operator from the input unit 1 as a key will be described based on the conceptual diagrams of the storage state of tree structure data shown in FIGS. In the figure, 61, 64, 66, 68,
70,77 and 80 indicate node data, 62,65,6
7,69,71,72,74,75,78 and 81 indicate the element data of the bidirectional list. Note that, for example, 68 and 69 are linearly connected data. 63, 76 and 79 are aggregated data.

【0019】データ処理部2は、まず、S[0] ←4,S
[1] ←9,S[2] ←7,S[3] ←1,S[4] ←7,S
[5] ←1,S[6] ←0,S[7] ←0,S[8] ←0,S
[9] ←7,S[10]←2,S[11]←1,S[12]←3とセッ
トする。“Mnumb”に数値データ“4”,“Mcomp”に
集約データ“林コーセー”へのポインタ, “Mprev”
に前方要素へのポインタ, “Mnext”に後方要素へのポ
インタ, “Mnxcl”に次の桁“9”のノードデータへの
ポインタをセットしたときに、1桁目のキーと一致する
ので、集約データ“大林コーセー”63を検索結果文字列
バッファ4に記憶する。
The data processing unit 2 firstly S [0] ← 4, S
[1] ← 9, S [2] ← 7, S [3] ← 1, S [4] ← 7, S
[5] ← 1, S [6] ← 0, S [7] ← 0, S [8] ← 0, S
Set [9] ← 7, S [10] ← 2, S [11] ← 1, S [12] ← 3. "Mnumb" numerical data to "4", "Mcomp" to aggregate data pointer to the "large forest Kose", "Mprev"
When the pointer to the front element is set to, the pointer to the rear element is set to "Mnext", and the pointer to the node data of the next digit "9" is set to "Mnxcl", the key matches the first digit key.
So, the search result character string is 63 for the aggregated data "Obayashi Kose".
Store in buffer 4.

【0020】“i”が9回インクリメントされて木構造
の記憶データを桁順にたどり、“497171000”
まで一致検索が終了した時点で、10桁目S[9] のノー
ドデータ70に到達し、桁値“7”を、ノードデータ70が
指す双方向リストの先頭の要素データ71の“Mnumb”と
比較した結果、大きいので後方の要素データ72へ分岐
し、この要素データ72は集約データへのポインタ (Mco
mp) を持たないので、次の桁のノードデータへのポイン
タ(nxcl)が示す、11桁目のノードへ移る。
A tree structure in which “i” is incremented 9 times
"497171000" by tracing the stored data of
When the match search is completed up to, the node data 70 of the 10th digit S [9] is reached, and the digit value “7” is set as “Mnumb” of the element data 71 at the head of the bidirectional list pointed to by the node data 70. As a result of comparison, since it is large, branch to the element data 72 at the rear
However, this element data 72 is a pointer (Mco
mp), the pointer to the node data of the next digit
Move to the 11th digit node indicated by the data (nxcl).

【0021】次に、11桁目S[10]のノードデータ73が
指す双方向リストの先頭要素データの数値データ“0”
と11桁目の桁値“2”とを比較した結果、大きいので
後方の要素データ75へ分岐し、桁値と要素データ75の数
値データ“2”との一致によって、集約データ“S.B.S
ケーキ(クィックT)R ”76を得て、検索結果文字列バッ
ファ4の“林コーセー”に“S.B.S ケーキ(クィック
T)R ”を追加する。12桁目のS[11]のノードデータ77
に指す双方向リストの先頭要素データ78の数値データと
桁値“1”とを比較した結果、一致するので、集約デー
タ“ 110 "79 を得て、検索結果文字列バッファ4の
林コーセーS.B.S ケーキ(クィックT)R ”に“ 110
”を追加する。
Next, the numerical data "0" of the head element data of the bidirectional list pointed to by the node data 73 of the 11th digit S [10].
And the digit value “2” of the 11th digit are larger, branch to the element data 75 at the rear because the digit value and the numerical data “2” of the element data 75 match, the aggregate data “SBS
Cake "to give a 76, the search result of the string buffer 4" (Quick T) R "to" large forest Kose SBS cake (Quick
T) R ”is added. The node data of S [11] at the 12th digit 77
Result of comparing the numerical data and the digit value "1" of the first element data 78 of the bidirectional list pointed to, so consistent, to obtain aggregated data "110" 79, results for the character string buffer 4 "large Hayashi Kose "110" for SBS cake (quick T) R "
"Add.

【0022】最終桁S[12]のノードデータ80が指す双方
向リストの要素データ80の数値データと最終桁の桁値
“3”とを比較した結果、一致し、さらに次の桁のノー
ドデータが指す双方向リストの要素データ81の“Mnxc
l”が“0”であるので、最終桁まで一致検索が終了し
たと判定して“林コーセーS.B.S ケーキ(クィックT)
R110”を検索結果として出力する。以上のように、木構
造のノードを根から葉の方向へたどってき、葉の末端に
達したときに“林コーセーS.B.S ケーキ(クイックT)
R110”を検索結果として出力する。
As a result of comparing the numerical value data of the element data 80 of the bidirectional list pointed to by the node data 80 of the final digit S [12] with the digit value “3” of the final digit, they match and the node data of the next digit. "Mnxc" of element data 81 of the bidirectional list pointed to by
l "is" 0 "because it is, match the search until the final digit is determined to have ended" large forest Kose SBS cake (Quick T)
R110 "and outputs as the search results. As mentioned above, the nodes of the tree structure have roots tracing in the direction of the leaf, when it reaches the end of the leaf" large Lin Kose SBS cake (Quick T)
R110 ”is output as the search result.

【0023】なお、本実施例では、JANコードマスタ
データを記憶する場合について説明したが、これに限る
ものではなく、例えば郵便番号にも適用可能である。
In this embodiment, the case of storing the JAN code master data has been described, but the present invention is not limited to this and can be applied to, for example, a zip code.

【0024】[0024]

【発明の効果】以上のように、本発明のデータ記憶方法
は、複数のレコードにおいて共通のデータ部分を集約し
て共通のアドレスに記憶しているので、記憶領域の節減
が可能となり、小容量の記憶領域で膨大なデータを記憶
できるという優れた効果を奏する。
As described above, according to the data storage method of the present invention, common data portions in a plurality of records are aggregated and stored at a common address, so that the storage area can be saved and the storage capacity can be reduced. It has an excellent effect that a huge amount of data can be stored in the storage area.

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

【図1】本発明のデータ記憶方法を実施する装置の構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an apparatus for implementing a data storage method of the present invention.

【図2】本発明のデータ記憶方法により記憶されるデー
タの構成を示す概念図である。
FIG. 2 is a conceptual diagram showing the structure of data stored by the data storage method of the present invention.

【図3】本発明のデータ記憶方法によるデータの記憶状
態を示す概念図である。
FIG. 3 is a conceptual diagram showing a data storage state according to the data storage method of the present invention.

【図4】本発明のデータ記憶方法により記憶されたデー
タの検索手順を示すフローチャートである。
FIG. 4 is a flowchart showing a search procedure for data stored by the data storage method of the present invention.

【図5】本発明のデータ記憶方法により記憶されたデー
タの検索手順を示すフローチャートである。
FIG. 5 is a flowchart showing a search procedure for data stored by the data storage method of the present invention.

【図6】本発明のデータ記憶方法によるデータの記憶状
態と検索手順との関係を示す概念図である。
FIG. 6 is a conceptual diagram showing a relationship between a data storage state and a search procedure according to the data storage method of the present invention.

【図7】本発明のデータ記憶方法によるデータの記憶状
態と検索手順との関係を示す概念図である。
FIG. 7 is a conceptual diagram showing a relationship between a data storage state and a search procedure according to the data storage method of the present invention.

【図8】JANコードマスタデータの一例を示す図であ
る。
FIG. 8 is a diagram showing an example of JAN code master data.

【図9】従来のデータ記憶方法による数値データ部の記
憶状態を示す概念図である。
FIG. 9 is a conceptual diagram showing a storage state of a numerical data section according to a conventional data storage method.

【図10】従来のデータ記憶方法による文字列データ部
の記憶状態を示す概念図である。
FIG. 10 is a conceptual diagram showing a storage state of a character string data section according to a conventional data storage method.

【図11】従来のデータ記憶方法によるデータの記憶状
態を示す概念図である。
FIG. 11 is a conceptual diagram showing a data storage state according to a conventional data storage method.

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

1 入力部 2 データ処理部 3 データベース 4 検索結果文字列バッファ 31 木構造データ記憶部 32 集約データ記憶部 1 Input Section 2 Data Processing Section 3 Database 4 Search Result Character String Buffer 31 Tree Structure Data Storage Section 32 Aggregated Data Storage Section

───────────────────────────────────────────────────── フロントページの続き (72)発明者 福山 清 大阪府大阪市鶴見区鶴見4丁目17番96号 株式会社椿本チエイン内 (72)発明者 吉村 浩則 大阪府大阪市鶴見区鶴見4丁目17番96号 株式会社椿本チエイン内 (56)参考文献 特開 昭59−5370(JP,A) 特開 昭62−20027(JP,A) 特開 昭63−104133(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kiyoshi Fukuyama 4-17 96 Tsurumi, Tsurumi-ku, Osaka-shi, Osaka Prefecture Tsubakimoto Chain Co., Ltd. (72) Hironori Yoshimura 4-17 Tsurumi, Tsurumi-ku, Osaka-shi, Osaka No. 96, Tsubakimoto Chain Co., Ltd. (56) Reference JP 59-5370 (JP, A) JP 62-20027 (JP, A) JP 63-104133 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データ及び複数桁からなる該データの識
別コードを1レコードとし、1レコードのデータの一部
要素が他のレコードの一部要素と同一である場合、同一
データ要素に対応するそれぞれの識別コードの桁部分に
同一値が設定されてあるデータを記憶する方法におい
て、識別コードの各桁値を、桁順に深くなる木構造の各
ノードから指定される桁値別のリストに記憶するととも
に各リストに次桁のノードアドレスを記憶し、所定桁の
リストに、最上位桁から当該桁までの識別コードにより
識別されるデータ要素のうち、当該桁より上位の桁にて
識別済みのデータ要素を除くデータ要素の記憶アドレス
を記憶するとともに、各レコードのデータ要素を、デー
タ要素が他のレコードと同一の場合は該レコードの該デ
ータ要素と同一のアドレスに記憶することを特徴とする
データ記憶方法。
1. A data and an identification code of the data consisting of a plurality of digits are defined as one record, and when a partial element of the data of one record is the same as a partial element of another record, each corresponds to the same data element. In the method of storing data in which the same value is set in the digit part of the identification code, each digit value of the identification code is stored in the list by digit value specified from each node of the tree structure that becomes deeper in the digit order. In addition, the node address of the next digit is stored in each list, and the data identified by the digit higher than the digit among the data elements identified by the identification code from the most significant digit to the digit in the list of the predetermined digit The storage address of the data element excluding the element is stored, and the data element of each record is the same as the data element of the record when the data element is the same as the other record. A data storage method characterized by storing data without a reply.
JP3125561A 1991-04-26 1991-04-26 Data storage method Expired - Fee Related JPH0786880B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3125561A JPH0786880B2 (en) 1991-04-26 1991-04-26 Data storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3125561A JPH0786880B2 (en) 1991-04-26 1991-04-26 Data storage method

Publications (2)

Publication Number Publication Date
JPH04328680A JPH04328680A (en) 1992-11-17
JPH0786880B2 true JPH0786880B2 (en) 1995-09-20

Family

ID=14913246

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3125561A Expired - Fee Related JPH0786880B2 (en) 1991-04-26 1991-04-26 Data storage method

Country Status (1)

Country Link
JP (1) JPH0786880B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS595372A (en) * 1982-06-30 1984-01-12 Fujitsu Ltd File processing system
JPS6168642A (en) * 1984-09-12 1986-04-09 Fujitsu Ltd Data processing system
JPS6220027A (en) * 1985-07-19 1987-01-28 Hitachi Ltd Storage and retrieval system for proposition expressed with list structure
JPS63104133A (en) * 1986-10-22 1988-05-09 Hitachi Ltd Tree searching system for logical language processing system
GB2196764A (en) * 1986-10-30 1988-05-05 Apple Computer Hierarchical file system

Also Published As

Publication number Publication date
JPH04328680A (en) 1992-11-17

Similar Documents

Publication Publication Date Title
US4924385A (en) Method of detecting types of parts constituting a larger group of parts
US8145667B2 (en) Schemaless XML payload generation
US6990487B2 (en) Searching apparatus and searching method using pattern of which sequence is considered
JPH087669B2 (en) Encoding method, encoding device, and decoding device
JPH05225238A (en) Data base retrieval system
US7487165B2 (en) Computer implemented method for retrieving hit count data from a data base system and according computer program product
JPH0786880B2 (en) Data storage method
Chen et al. Two algorithms for constructing a binary tree from its traversals
US6901396B1 (en) Packed radix search tree implementation
JP2706021B2 (en) High-speed search method for structured databases
JPS642970B2 (en)
JPS6136654B2 (en)
JPH06215044A (en) Information retrieval processor
JPH05181719A (en) Variable length data storage and reference system
KR0159814B1 (en) Article management method in electronic cash register
Chen et al. Nonrecursive algorithms for reconstructing a binary tree from its traversals
JP2001117929A (en) Data search method, data alignment method, and data search device
JP2690175B2 (en) Unequal length code decoding circuit
JPH0764833A (en) File volume reduction method
JP3044718B2 (en) Information processing device
JPS61278932A (en) Method of processing data addition
JP2000148553A (en) Information processing device
JPH0652231A (en) Relational data base operation mechanism
JP2000123014A (en) Data retrieval system and method
JPH01239632A (en) Information retrieval system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees