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
JPH0378666B2 - - Google Patents
[go: Go Back, main page]

JPH0378666B2 - - Google Patents

Info

Publication number
JPH0378666B2
JPH0378666B2 JP58012332A JP1233283A JPH0378666B2 JP H0378666 B2 JPH0378666 B2 JP H0378666B2 JP 58012332 A JP58012332 A JP 58012332A JP 1233283 A JP1233283 A JP 1233283A JP H0378666 B2 JPH0378666 B2 JP H0378666B2
Authority
JP
Japan
Prior art keywords
data
data group
group
hashing
bit
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
Application number
JP58012332A
Other languages
Japanese (ja)
Other versions
JPS59139444A (en
Inventor
Hideaki Takeda
Kyomi Sato
Ushio Inoe
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.)
NTT Inc
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP58012332A priority Critical patent/JPS59139444A/en
Publication of JPS59139444A publication Critical patent/JPS59139444A/en
Publication of JPH0378666B2 publication Critical patent/JPH0378666B2/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/9014Indexing; Data structures therefor; Storage structures hash tables

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

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、2つのデータ群について相互にデー
タ内容の一致するデータのみを選別するデータ選
別方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a data selection method for selecting only data whose data contents match each other from two data groups.

〔従来技術〕[Prior art]

データ管理システムの分野では、2つのデータ
群について相互にデータ内容の一致するデータを
抽出して結合する要求がしばしば生じる。この場
合、各々のデータ群のデータ量が多く、結合に長
い時間を要する場合、あらかじめ各々のデータ群
から結合可能性のないデータを除去し、結合時間
を短縮させるデータ選択の操作が用いられる。第
1図は、かゝるデータ選別方式の原理を説明する
図で、1,2はデータ群、4は定められたハツシ
ユ関数を持つハツシユ装置、6は有限のビツトア
レイを持つビツトアレイ装置、8は選別されたデ
ータ群である。操作は、先ずビツトアレイ装置6
のビツトアレイのビツトを全て“0”に設定した
後、操作11を実行し、データ群1のデータ内容
をハツシユ装置4でハツシングして、ビツトアレ
イ装置6のアドレス空間に対応する値に変換し、
その値を番地とするビツトアレイのビツト位置に
“1”を設定する。次に、この操作11が終了し
たら操作13を実行し、データ群2のデータ内容
をハツシユ装置4で同様にハツシングして、その
値を番地とするビツトアレイ装置4のビツト位置
が“1”であるデータのみを選別してデータ8を
得る。第1図では、例えばデータ群1を
“ABDDFG”、データ群2を“AACDEFFH”と
した場合、選別データ群8として“AADFF”が
得られることを示している。第2図は第1図の操
作のタイムチヤートである。
In the field of data management systems, there is often a need to extract and combine data whose data contents match each other from two data groups. In this case, if each data group has a large amount of data and requires a long time to combine, a data selection operation is used in which data that cannot be combined is removed from each data group in advance to shorten the combination time. FIG. 1 is a diagram explaining the principle of such a data sorting method, where 1 and 2 are data groups, 4 is a hashing device with a predetermined hashing function, 6 is a bit array device with a finite bit array, and 8 is a This is a selected data group. The operation begins with bit array device 6.
After setting all bits of the bit array to "0", execute operation 11 to hash the data contents of the data group 1 with the hashing device 4 and convert it into a value corresponding to the address space of the bit array device 6.
Set "1" to the bit position of the bit array whose address is that value. Next, when this operation 11 is completed, operation 13 is executed, and the data contents of data group 2 are similarly hashed by the hashing device 4, and the bit position of the bit array device 4, which uses this value as an address, is "1". Data 8 is obtained by selecting only the data. FIG. 1 shows that, for example, if data group 1 is "ABDDFG" and data group 2 is "AACDEFFH", "AADFF" is obtained as the selected data group 8. FIG. 2 is a time chart of the operation of FIG.

第1図は一方のデータ群のみの選別データを得
る場合があるが、実際には2つのデータ群1,2
について相互にデータ内容の一致する選別データ
をそれぞれ必要とする場合が多い。このような場
合、従来は第3図に示すデータ選別方式を用いて
いた。
In Figure 1, there are cases where the sorted data of only one data group is obtained, but in reality two data groups 1 and 2 are obtained.
In many cases, screening data with matching data content is required for each. In such cases, conventionally, a data selection method shown in FIG. 3 has been used.

第3図において、1,2はデータ群、3,4は
同じハツシユ関数を持つハツシユ装置、5,6は
有限のビツトアレイを持つビツトアレイ装置、
7,8は選別されたデータ群である。操作は、ビ
ツトアレイ装置3,4の各ビツトアレイのビツト
を全て“0”に設定した後、まず操作11を実行
し、第1図で説明したようにデータ群1のデータ
内容をハツシユ装置4でハツシングして、その値
を番地とするビツトアレイ装置4のビツト位置に
“1”を設定する。次に、操作12と操作13を
同時に実行する。こゝで、操作12はデータ群2
のデータ内容をハツシユ装置3でハツシングし
て、その値を番地とするビツトアレイ装置3のビ
ツト位置に“1”を設定する操作であり、操作1
3は同データ群2のデータ内容をハツシユ装置4
でハツシングして、その値を番地とするビツトア
レイ装置6のビツト位置が“1”であるデータの
みを選別してデータ8を得る操作である。この操
作12,13の終了後、操作14を実行し、デー
タ群1のデータ内容を再びハツシユ装置3でハツ
シングして、その値を番地とするビツトアレイ装
置5のビツト位置が“1”であるデータのみを選
別してデータ7を得る。第3図では、データ群1
を“ABDDFG”、データ群2を“ACDEFFH”
とした場合、選別データ7では“ADDF”、選択
データ8は“AADFF”になることを示してい
る。
In Fig. 3, 1 and 2 are data groups, 3 and 4 are hashing devices with the same hashing function, 5 and 6 are bit array devices with finite bit arrays,
7 and 8 are selected data groups. In the operation, after setting all the bits in each bit array of the bit array devices 3 and 4 to "0", first execute operation 11, and then hash the data contents of data group 1 with the hashing device 4 as explained in FIG. Then, "1" is set in the bit position of the bit array device 4 whose address is that value. Next, operations 12 and 13 are executed simultaneously. Here, operation 12 is data group 2
This is an operation of hashing the data contents in the hashing device 3 and setting "1" to the bit position of the bit array device 3, which uses the value as an address.
3 is a hashing device 4 for data contents of the same data group 2.
This is an operation in which data 8 is obtained by hashing the data and selecting only the data whose bit position in the bit array device 6 is "1", using that value as the address. After operations 12 and 13 are completed, operation 14 is executed, and the data contents of data group 1 are again hashed by hashing device 3, and the data whose bit position in bit array device 5 is “1” with the value as the address is Data 7 is obtained by selecting only those. In Figure 3, data group 1
“ABDDFG” and data group 2 “ACDEFFH”
In this case, the selection data 7 indicates "ADDF" and the selection data 8 indicates "AADFF".

第4図に第3図の操作のタイムチヤートを示
す。これから分かるように、第3図に示す従来の
データ選別方式は、処理を3段階で逐次的に行う
ため、処理時間が長くなるという欠点を有してい
る。
FIG. 4 shows a time chart of the operation of FIG. 3. As can be seen from this, the conventional data sorting method shown in FIG. 3 has the disadvantage that the processing time is long because the processing is performed sequentially in three stages.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、従来に比べてデータ選別全体
に要する時間を短縮できるデータ選択方式を提供
することにある。
An object of the present invention is to provide a data selection method that can shorten the time required for the entire data selection compared to the conventional method.

〔発明の概要〕[Summary of the invention]

本発明の要点は、第3図に示すデータ選択方式
において、各々のデータ群のビツトアレイに
“1”を設定する操作と、ビツトアレイを参照し
てデータを選別する操作を重ね合わせることによ
り、データ選別全体に要する時間の短縮を図つた
ものである。
The key point of the present invention is that in the data selection method shown in FIG. The aim is to shorten the overall time required.

〔発明の実施例〕[Embodiments of the invention]

第5図は本発明のデータ選別方式の操作を説明
する図で、基本的には第3図と同じである。本発
明による操作のタイムチヤートを第6図に示す。
こゝで、第6図はデータ群1のデータ量の方がデ
ータ群2のそれよりも小さい場合の例である。以
下、この例の場合について説明する。
FIG. 5 is a diagram for explaining the operation of the data selection method of the present invention, and is basically the same as FIG. 3. A time chart of the operation according to the invention is shown in FIG.
Here, FIG. 6 shows an example where the amount of data in data group 1 is smaller than that in data group 2. This example will be explained below.

操作は、まずビツトアレイ装置5,6のビツト
アレイの全てのビツトを“0”に設定する。次
に、データ群1,2に対し、各々のデータ群の先
頭のデータから操作11と操作12を同時に行
う。操作11,12の内容は第3図と同じであ
る。こゝで、データ群1,2のデータ量はデータ
群1の方が小さいとしているため、操作11が終
了しても操作12はまだ終了しない。この操作1
1が終了した時点で、操作12はそのまま続け、
同時に該操作12で使用しているデータ群2のデ
ータをハツシユ装置4にも入力して操作13を開
始する。その後、操作12が終了した時点で、デ
ータ群1に対しては、該データ群1の先頭データ
から操作14を行うが、データ群2は、先頭デー
タから未だ操作13の操作が施されていないデー
タまでのものに対して操作13を行う。操作1
3,14の内容も第3図と同じである。第5図に
示したように、データ群1を“ABDDFG”、デ
ータ群2を“AACDEFFH”とした場合、選別デ
ータ7,8の内容は第3図に示したものと同じで
あるが、本発明の操作では、選別データ8は
“FAADF”の順で得られる。
In operation, all bits in the bit arrays of the bit array devices 5 and 6 are first set to "0". Next, operations 11 and 12 are performed simultaneously on data groups 1 and 2, starting from the first data of each data group. The contents of operations 11 and 12 are the same as in FIG. Here, since it is assumed that the data amount of data groups 1 and 2 is smaller in data group 1, even if operation 11 is completed, operation 12 is not completed yet. This operation 1
When step 1 is finished, continue step 12,
At the same time, the data of data group 2 used in operation 12 is also input to the hashing device 4, and operation 13 is started. After that, when operation 12 is completed, operation 14 is performed on data group 1 from the first data of data group 1, but data group 2 has not yet been subjected to operation 13 from the first data. Operation 13 is performed for the data. Operation 1
The contents of 3 and 14 are also the same as in FIG. As shown in Figure 5, when data group 1 is set to "ABDDFG" and data group 2 is set to "AACDEFFH", the contents of selection data 7 and 8 are the same as those shown in Figure 3, but this In the operation of the invention, the screening data 8 is obtained in the order of "FAADF".

ここで、第3図の従来方式と本発明方式とを比
較してみる。今、2つのデータ群1,2のデータ
の数を各々n,m(nm)とし、1つのデータ
の操作11,12に要する時間をds、操作13,
14に要する時間をdrとする。第4図より、第3
図の方式での全処理時間は、 dso+max(ds,dr)m+dr
Here, the conventional method shown in FIG. 3 and the method of the present invention will be compared. Now, let the numbers of data in the two data groups 1 and 2 be n and m (nm), respectively, and the time required for operations 11 and 12 on one data is d s , operation 13,
Let the time required for 14 be d r . From Figure 4, the third
The total processing time using the method shown in the figure is d so + max (d s , d r ) m + d r

Claims (1)

【特許請求の範囲】[Claims] 1 2つのデータ群について相互にデータ内容の
一致するデータを選別するため、ビツトアレイと
ハツシユ装置の組を2組備え、それぞれ、一方の
データ群のデータ内容を他方の組のハツシユ装置
でハツシングして、その値を番地とする当該組の
ビツトアレイのビツト位置に“1”(又は“0”)
を設定して第1操作を行い、他方のデータ群のデ
ータ内容を前記他方の組のハツシユ装置でハツシ
ングして、その値を番地とする当該組のビツトア
レイのビツト位置が“1”(又は“0”)であるデ
ータのみを選別する第2操作を行う方式におい
て、2つのデータ群に対してそれぞれ同時に第1
操作を開始し、一方のデータ群の第1操作が終了
した時点で、他方のデータ群に対し、前記第1操
作を続行すると同時に第2操作を開始し、前記他
方のデータ群の第1操作が終了した時で、一方の
データ群に対して第2操作を行うと共に他方のデ
ータ群の未だ選別していない部分に対する第2操
作を続行することを特徴とするデータ選別方式。
1. In order to select data whose data contents match each other between two data groups, two sets of bit arrays and hashing devices are provided, and the data contents of one data group are hashed by the hashing device of the other set. , "1" (or "0") is placed in the bit position of the bit array of the set whose address is that value.
is set, the first operation is performed, and the data contents of the other data group are hashed by the hashing device of the other set, so that the bit position of the bit array of the set with that value as the address is "1" (or "0''), the first operation is performed on two data groups at the same time.
When the operation is started and the first operation on one data group is completed, the first operation is continued on the other data group, and at the same time, the second operation is started, and the first operation on the other data group is completed. 1. A data sorting method characterized in that when the second data group is completed, a second operation is performed on one data group, and the second operation is continued on a portion of the other data group that has not been sorted yet.
JP58012332A 1983-01-28 1983-01-28 Data selecting system Granted JPS59139444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58012332A JPS59139444A (en) 1983-01-28 1983-01-28 Data selecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58012332A JPS59139444A (en) 1983-01-28 1983-01-28 Data selecting system

Publications (2)

Publication Number Publication Date
JPS59139444A JPS59139444A (en) 1984-08-10
JPH0378666B2 true JPH0378666B2 (en) 1991-12-16

Family

ID=11802347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58012332A Granted JPS59139444A (en) 1983-01-28 1983-01-28 Data selecting system

Country Status (1)

Country Link
JP (1) JPS59139444A (en)

Also Published As

Publication number Publication date
JPS59139444A (en) 1984-08-10

Similar Documents

Publication Publication Date Title
JPH0378666B2 (en)
US5309559A (en) Picture processing device having an editing function of input concatenated-command
JPH0531790B2 (en)
JPS58222376A (en) Table search system
JP2926803B2 (en) Sorting method
JP2507399B2 (en) Database equipment
JPS60211541A (en) Data retireval circuit
JPS6346537A (en) Method for deciding retrieving condition of retrieving processor
JPS6266326A (en) Array processing system for japanese data
JPH02294729A (en) Sort processing system
JPS6134620A (en) Inputting method to computer
KR20250156582A (en) Method, apparatus and computer program for accelerating vector indexing using PIM (Processing-In-Memory)
JP2655410B2 (en) Multiplexed N-unit coincidence protection circuit
JPH09330322A (en) Data retrieval device
JPH01284961A (en) Data parallel processing system
JPH023225B2 (en)
JPH0452967A (en) And operation processing system for set file
JPS6385823A (en) Multi-key sorter
JPS59116992A (en) Associative memory
JPH09293061A (en) Circuit for converting cluster number
JPH05151054A (en) Document file control system
JPH0736755A (en) Input/output method for index file
JPH03216730A (en) Electronic computer
JPS6074729A (en) Data compression system
JPS6072023A (en) Information retrieving device