Data replacement device, data replacement method, and computer program product

By designing a data replacement device in a personal computer and using the Mondrian algorithm and the continuous access algorithm, the problem of efficiency in processing large-scale data on a small-capacity main storage device is solved, and efficient data micro-aggregation and concealment processing in the personal computer are achieved.

CN113544684BActive Publication Date: 2024-10-15NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202080019714.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-03-11
Filing Date
2020-02-20
Publication Date
2024-10-15
Estimated Expiration
2040-02-20

AI Technical Summary

Technical Problem

In personal computers, micro-aggregation of large-scale data cannot be efficiently performed on a small-capacity main storage device because existing technology requires processing all data on the main storage device, resulting in insufficient resources to effectively perform micro-aggregation.

Method used

A data replacement device is designed. Through the attribute value set acquisition part, the median calculation part and the segmentation determination part, the attribute values ​​are grouped using the Mondrian algorithm, and the data is divided between the main storage device and the auxiliary storage device, using continuous access. and sorting algorithms improve processing efficiency and ensure rapid data replacement on small-capacity main storage devices.

Benefits of technology

It achieves high-speed micro-aggregation of large-scale data on small-capacity primary storage devices, improves processing efficiency, reduces random access requirements for auxiliary storage devices, and ensures efficient data concealment processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113544684B_ABST
    Figure CN113544684B_ABST
Patent Text Reader

Abstract

A data replacement device capable of micro-aggregating large-scale data at high speed using only a small-capacity main storage device is provided. The data replacement device for replacing attribute values ​​with representative values ​​for each group includes: an attribute value set acquisition unit, which acquires the grouped attribute value set on the main storage device when the size of the grouped attribute value set is less than a predetermined size, and acquires the grouped attribute value set on the auxiliary storage device when the size of the grouped attribute value set is larger than the predetermined size; a median calculation unit, which calculates the median of the grouped attribute value set on the main storage device or the auxiliary storage device; and a split determination unit, which, when the grouped attribute value set is split into two based on the median, when the size of each of the split attribute value sets becomes greater than a predetermined threshold, respectively regards the two split attribute value sets as new groups.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a technology for concealing individual data in a database, and to a data replacement device, a data replacement method, and a computer program product. Background Art

[0002] As a technology for concealing individual data of a database by a certain method, there is Non-Patent Document 1. In the concealment process of Non-Patent Document 1, each value of the database is grouped and replaced with a representative value, thereby concealing the database. This concealment process is called micro-aggregation.

[0003] Prior art literature

[0004] Non-patent literature

[0005] Non-patent document 1: Kristen LeFevre, David J DeWitt, and Raghu Ramakrishnan, "Mondrian multidimensional k-anonymity" In Proceedings of the 22nd International Conference on Data Engineering, pp. 25-25, 2006. Summary of the invention

[0006] Problems to be solved by the invention

[0007] However, when the anonymization process is implemented in a computer such as a personal computer, the process is performed on the premise that all data is stored in the main storage device. In other words, micro aggregation cannot be performed on large-scale data that cannot be stored in the main storage device.

[0008] Therefore, the present invention aims to provide a data replacement device capable of micro-aggregating large-scale data at high speed using only a small-capacity main storage device.

[0009] Means for solving problems

[0010] The data replacement device of the present invention is a data replacement device that replaces attribute values ​​with representative values ​​for each group, and includes an attribute value set acquisition unit, a median calculation unit, and a segmentation determination unit.

[0011] The attribute value set acquisition unit acquires the grouped attribute value set on the main storage device when the size of the grouped attribute value set is less than a predetermined size, and acquires the grouped attribute value set on the auxiliary storage device when the size of the grouped attribute value set is larger than the predetermined size. The median calculation unit calculates the median of the grouped attribute value set on the main storage device or the auxiliary storage device. The split determination unit divides the grouped attribute value set into two based on the median, and when the size of each of the divided attribute value sets becomes greater than a predetermined threshold, the two divided attribute value sets are respectively regarded as new groups.

[0012] Effects of the Invention

[0013] According to the data replacement device of the present invention, large-scale data can be micro-aggregated at high speed using only a small-capacity main storage device. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is a block diagram showing the structure of the data replacement device of the first embodiment.

[0015] Figure 2 This is a flowchart showing the group generation operation of the data replacement device of the first embodiment.

[0016] Figure 3 This is a flowchart showing the data replacement operation of the data replacement device of the first embodiment.

[0017] Figure 4 This is a diagram for illustrating and explaining the operation of the sorting unit of the data replacement device of the first embodiment.

[0018] Figure 5 This is a diagram illustrating lookahead processing. DETAILED DESCRIPTION

[0019] Hereinafter, the embodiments of the present invention will be described in detail. In addition, the same numbers are added to the components having the same functions, and the repeated description is omitted.

[0020] <Overview of the Process>

[0021] In the following embodiments, a data replacement device, a data replacement method, and a program are disclosed for micro-aggregating large-scale data at high speed through a small-capacity main storage device. In the data replacement device, data replacement method, and program of Embodiment 1, the following features are considered and efforts are made on the algorithm and data structure to achieve high-speed processing: the feature that sequential access is faster than random access of an auxiliary storage device (such as HDD); the feature that the auxiliary storage device (such as HDD) is slower than the main storage device (such as memory); the feature that the auxiliary storage device (such as HDD) has a larger storage capacity than the main storage device (such as memory).

[0022] In the following embodiments, the Mondrian algorithm (Non-Patent Document 1) is used as a basis for creating groups for micro-aggregation. The Mondrian algorithm performs grouping by segmenting data according to each attribute, repeatedly segmenting the data until the size of the group reaches a specified threshold, and creating a group. After grouping, the attribute values ​​in the group are replaced with corresponding representative values ​​to complete the anonymization process.

[0023] When executing the Mondrian algorithm using only a small-capacity main storage device, two approaches are used. One is to assume that the data allocated to the auxiliary storage device is locally referenced when dividing the duplicate data, and to allocate the data to the main storage device using the LRU algorithm. The other is to perform a sorting process and implement a study of a process for reading the attribute values ​​in succession so that random access is not performed when replacing the representative value after grouping.

[0024] In addition, each value is marked as a scalar and marked with a lowercase or uppercase letter such as a. Attributes are marked as vectors and "^" is added after the character such as a^. In addition, this is a representation generated by the document creation software. For example, the case of a^ means adding a circumflex to bold [number 1]

[0025]

[0026] In addition, the i-th element of the vector is labeled a i In addition, the number of elements of the vector a^ is marked as |a^|. In addition, only in the case of vector r^=(r 1 ,r 2 ,...,r |r| ) is a positive integer, set

[0027] [Number 2]

[0028]

[0029] . The matrix is ​​capitalized and "^" is added after the character to express it. In addition, this is the expression generated by the document creation software. For example, the case of expressing it as X^ means that the circumflex character is added to the bold [number 3]

[0030]

[0031] Data can be represented by a matrix, with attributes as columns and records as rows. For example, the data is labeled X^ and the lth attribute is labeled x^ l , mark the value of the i-th record of a certain attribute l as をx (l) i .

[0032] [Example 1]

[0033] Below, reference Figure 1 The structure of the data replacement device of the first embodiment is described. As shown in the figure, the data replacement device 1 of the present embodiment includes a main storage device 10A, an auxiliary storage device 10B, an attribute value set acquisition unit 11, a median calculation unit 12, a segmentation determination unit 13, a combined set generation unit 14, a sorting unit 15, a representative value replacement unit 16, and a re-sorting unit 17. Figure 2 , Figure 3 , the operation of each structural element is explained.

[0034] <Attribute value set acquisition unit 11>

[0035] In this process, the attribute value set acquisition unit 11 acquires the grouped attribute value set. Here, the grouped attribute value set refers to the attribute value set that is divided and grouped by the operation of the segmentation determination unit 13 described later. In addition, when the operation of the segmentation determination unit 13 is not executed (i.e., in the initial state), it is assumed that the entire data of the attribute value set is regarded as one group, and the entire data of the attribute value set is processed as the grouped attribute value.

[0036] When the size of the grouped attribute value sets is smaller than a predetermined size ( Figure 2 , conditional branch: size? → small), the grouped attribute value set is obtained on the main storage device 10A (S11a), and when the size of the grouped attribute value set is larger than the predetermined size ( Figure 2 , conditional branch: size? →large), the grouped attribute value set is obtained on the auxiliary storage device 10B (S11b).

[0037] Furthermore, as described above, the attribute value set acquisition unit 11 preferably updates the grouped attribute value sets acquired in the primary storage device 10A based on the LRU algorithm.

[0038] <Median calculation unit 12>

[0039] The median calculation unit 12 calculates the median of the attribute value sets grouped on the primary storage device 10A or the secondary storage device 10B ( S12 a , S12 b ).

[0040] <Division determination unit 13>

[0041] When the attribute value set to be grouped is divided into two based on the median value, if the size of each attribute value set after the division becomes larger than a predetermined threshold value ( Figure 2 , conditional branch: threshold? → above threshold), the segmentation determination unit 13 sets the two attribute value sets after segmentation as new groups (S13a, S13b). In addition, if the size of any one of the attribute value sets after segmentation is smaller than the specified threshold ( Figure 2 , conditional branch: threshold? → less than threshold), exit from the loop processing of steps S11 to S13, and continue to execute step S14 and the processing after S14 for the attribute value set before segmentation.

[0042] The processing ( S11 to S13 ) of the attribute value set acquisition unit 11 , the median calculation unit 12 , and the segmentation determination unit 13 is repeatedly executed until the group converges.

[0043] <Joining set generation unit 14>

[0044] like Figure 3 As shown, the combined set generation unit 14 generates a combined set (S14) formed by arranging the record numbers associated with the attribute values ​​so that the attribute values ​​in the group converged by repeatedly executing the processing (S11 to S13) of the attribute value set acquisition unit 11, the median calculation unit 12, and the segmentation determination unit 13 are continuous. For example, when there are attribute values ​​p1, p2, ..., p|P| in group P and attribute values ​​q1, q2, ..., q|Q| in group Q, "so that the attribute values ​​in the group are continuous" means that the attribute values ​​in a certain group are arranged without being mixed with the attribute values ​​in other groups, such as p1, p2, ..., p|P|, q1, q2, ..., q|Q| or q1, q2, ..., q|Q|, p1, p2, ..., p|P|, and the combined set generation unit 14 arranges the record numbers associated with the attribute values ​​to generate a combined set so that the above-mentioned arrangement of "the attribute values ​​in the group are continuous" can be reproduced.

[0045] <Sorting section 15>

[0046] The sorting unit 15 sorts the attribute values ​​on the auxiliary storage device 10B based on the coupling set ( S15 ).

[0047] <Representative value replacement unit 16>

[0048] The representative value replacing unit 16 continuously executes a process of acquiring part of the sorted attribute values ​​from the auxiliary storage device 10B to the main storage device 10A, and replaces the attribute values ​​acquired in the main storage device 10A with representative values ​​( S16 ).

[0049] As described above, the attribute value set on the auxiliary storage device 10B is sorted so that the attribute values ​​in the group are continuous. Therefore, when replacing with the representative value, the attribute values ​​can be continuously read from the auxiliary storage device 10B, and the processing speed is improved.

[0050] <Re-sorting section 17>

[0051] The re-sorting unit 17 moves the representative value to the auxiliary storage device 10B and sorts the data into the original order (S17).

[0052] Hereinafter, a specific algorithm example will be disclosed to further explain the above-mentioned steps.

[0053] 《Algorithm 1: Large-scale data grouping algorithm GROUP》

[0054] Input: Number of records N, number of attributes M, data D^ stored in the auxiliary storage device 10B, threshold k, set of record numbers r^, set of M attribute vectors A^=a^ used in the main storage device 10A 1 ,...,a^ M (corresponding to the attributes of M types respectively)

[0055] Output: The record number set of each group R^'=(r^ 1 ,...,r^ |R^'| )

[0056] [1]: Determines the attribute l of the segmented object.

[0057] [2]:if|r^|≦|a^l|then( Figure 2 , equivalent to conditional branch: size? → small)

[0058] [3]: Set the attribute value set d^ corresponding to the record number set r^ in the attribute l of the segmented object (l) r By using Algorithm 4 (described later), the vector a^ l Middle (equivalent to S11a).

[0059] [4]: Calculate d^ (l) r The median value m (calculated from a^l, equivalent to S12a).

[0060] [5]: D^(l) r The set of record numbers less than m is taken as lr^, and the set of record numbers greater than m is taken as rr^ (equivalent to S13a).

[0061] [6]:else( Figure 2 , equivalent to conditional branch: size? → large)

[0062] [7]: Set the attribute value set d^ corresponding to the record number set r^ in the attribute l of the segmented object (l) r Continuously arrange in the auxiliary storage device 10B (equivalent to S11b). Here, "continuously arrange" means to arrange data continuously so that other data is not inserted.

[0063] [8]: Calculate d^ (l) r The median m of (equivalent to S12b). At this time, access to each value is performed by Algorithm 5 (described later). In addition, the median is calculated so that the vector is externally sorted (for example, merge sort) and the middle value of the vector is calculated as the median.

[0064] [9]: D^ (l) r The set of record numbers less than m is taken as lr^, and the set of record numbers greater than m is taken as rr^ (equivalent to S13b).

[0065]

[10] :end if

[0066]

[11] : if|lr^| <k OR|rr^|<k then( Figure 2 , which is equivalent to conditional branch: threshold? → less than threshold)

[0067]

[12] :return r( Figure 2 , which is equivalent to being less than the threshold →*)

[0068]

[13] :else( Figure 2 , which is equivalent to conditional branching: threshold? → above threshold)

[0069]

[14] : return GROUP(D^,k,lr^,A^)∪GROUP(D^,k,rr^,A^)( Figure 2 , which is equivalent to returning to the beginning and looping process)

[0070]

[15] :end if

[0071] 《Algorithm 2: Representative Value Replacement Algorithm》

[0072] Input: Record set R^' of each group, data D^ stored in auxiliary storage device 10B

[0073] Output: D^' replaced with the representative value

[0074] [1]: Set the record number set of each group R^' = {r^' 1 ,r^' 2 ,...} The set (combined set) arranged in order and combined is taken as s^ (equivalent to S14).

[0075] [2]: Sort the data D^ in the order of the combined set s^ according to Algorithm 3 (described later) (equivalent to S15).

[0076] [3]: j = 1

[0077] [4]:for r^' i in R^'do

[0078] [5]: From D^ stored in the auxiliary storage device 10B, the jth to jth + | r^' i |-1 record is stored in the main storage device 10A, replaced with a representative value (such as an average value, a median value, a value specified by the user, etc.), and stored in sequence as D^' (equivalent to S16).

[0079] [6]:j=j+|r^' i |

[0080] [7]:end for

[0081] [8]: Sort D^' into the original order (equivalent to S17).

[0082] [9]:return D^'

[0083] 《Algorithm 3: Algorithm for changing the order of arrangement》

[0084] Input: vector a^ configured on the auxiliary storage device 10B, sequence s^ to be arranged

[0085] Output: sorted a^'

[0086] [1]:Prepare b^=1,2,...,|a^|(ref. Figure 4 C).

[0087] [2]: Sort b^ using s^ as the key (ref. Figure 4 D).

[0088] [3]: Sort a^ using b^ as the key (ref. Figure 4 E).

[0089] [4]:return a^'=a^

[0090] 《Algorithm 4: Obtaining Values ​​through LRU Algorithm》

[0091] Input: Data D^, reference attribute l, record number r configured on the auxiliary storage device 10B i , vector t^ on the main storage device 10A

[0092] Output:

[0093] [Number 4]

[0094]

[0095] [1]: if there is a blank in t^ then

[0096] [2]: The value that matches the value from the auxiliary storage device 10B

[0097] [Number 5]

[0098]

[0099] Store to t^.

[0100] [3]: else

[0101] [4]: if

[0102] [Number 6]

[0103]

[0104] If d^ does not exist, then

[0105] [5]: The least used element in d^ is combined with

[0106] [Number 7]

[0107]

[0108] exchange.

[0109] [6]:end if

[0110] [7]:end if

[0111] [8]: return the number [8] in t^

[0112]

[0113] 《Algorithm 5: Obtaining Values ​​through Prediction Algorithms》

[0114] Input: vector a^ configured on the auxiliary storage device 10B, the position i of the element to be referenced, vector c^ on the main storage device 10A

[0115] Output: value a i

[0116] [1]: If the i-th element does not exist in c^ then

[0117] [2]: Obtain elements from the i-th to i+|c^|-th from the auxiliary storage device 10B and store them in c^.

[0118] [3]:end if

[0119] [4]: return a in c^ i

[0120] exist Figure 5 An example of prediction processing performed by Algorithm 5 is shown in FIG. As shown in the figure, assume that attribute values ​​such as age = 18, 23, 34, and 13 are stored in the auxiliary storage device 10B, and these are read out to the main storage device 10A in sequence. In the example of the same figure, it is assumed that the main storage device 10A can hold up to two elements. First, as shown in FIG. Figure 5 As shown in A, when accessing the value of the 0th index, the values ​​of the 0th and 1st indexes are forwarded to the main storage device 10A, and the value of the 0th index of the main storage device 10A is obtained. Then, when accessing the value of the 1st index, data is read from the main storage device 10A. After that, when accessing the value of the 2nd index, there is no corresponding data in the main storage device 10A, so Figure 5 As shown in FIG. 1B, the values ​​of the second and third indexes are transferred from the auxiliary storage device 10B to the main storage device 10A, and the value of the 0th index in the main storage device 10A (equivalent to the second index in the auxiliary storage device 10B) is read. Assuming continuous access like this, prediction processing is performed when reading data from the auxiliary storage device 10B.

[0121] <Effect>

[0122] According to the data replacement device, data replacement method, and program of the present embodiment, it is possible to perform micro-aggregation of large-scale data with good efficiency. The algorithm of the main storage device is designed based on random access. Therefore, if the algorithm of the main storage device is directly transplanted to the operation of the auxiliary storage device, the execution speed is reduced. Therefore, in the present embodiment, considering configuring the database on the auxiliary storage device 10B, the algorithm is designed so that the auxiliary storage device 10B is accessed as continuously as possible and the access to the auxiliary storage device 10B is reduced as much as possible. For example, in Algorithm 1, by changing the processing to seek speed by whether the data (attribute value set) can be stored in the designated area of ​​the main storage device 10A, the auxiliary storage device 10B can be accessed continuously when it cannot be stored. In Algorithm 2, by pre-sorting, continuous access to the auxiliary storage device 10B is possible.

[0123] <Supplement>

[0124] The device of the present invention, for example, as a single hardware entity, can be connected to an input unit such as a keyboard, an output unit such as a liquid crystal display, a communication unit such as a communication cable, a CPU (Central Processing Unit, which may also have a cache memory or registers, etc.), a RAM (Random Access Memory) or ROM (Read Only Memory) as a memory, an external storage device as a hard disk, and a bus connecting these input units, output units, communication units, CPU, RAM, ROM, and external storage devices to enable data exchange between them. In addition, as needed, a device (drive) capable of reading and writing a recording medium such as a CD-ROM, etc., can also be set on the hardware entity. As a physical entity with such hardware resources, there are general-purpose computers, etc.

[0125] The external storage device of the hardware entity stores programs required to realize the above functions and data required in the processing of the programs, etc. (not limited to the external storage device, for example, the programs can also be read out and stored in ROM as a dedicated storage device). In addition, the data obtained by the processing of these programs can also be appropriately stored in RAM, external storage devices, etc.

[0126] In the hardware entity, each program stored in an external storage device (or ROM, etc.) and the data required for processing each program are read into the memory as needed, and the CPU performs appropriate interpretation / processing. As a result, the CPU realizes the specified function (representing each structural element of the above-mentioned ... part, ... unit, etc.).

[0127] The present invention is not limited to the above-mentioned embodiments and can be appropriately changed within the scope of the purpose of the present invention. In addition, the processing described in the above-mentioned embodiments can not only be performed in chronological order according to the order of recording, but also can be performed in parallel or individually according to the processing capacity or needs of the device performing the processing.

[0128] As mentioned above, when the processing functions in the hardware entity (device of the present invention) described in the above embodiment are implemented by a computer, the processing contents of the functions that the hardware entity should have are described by a program. Furthermore, by executing the program on a computer, the processing functions in the above hardware entity are implemented on the computer.

[0129] The program describing the processing content can be recorded on a recording medium readable by a computer. The recording medium readable by a computer may also be a medium such as a magnetic recording device, an optical disc, an optical magnetic recording medium, a semiconductor memory, etc. Specifically, for example, a hard disk device, a floppy disk, a magnetic tape, etc. can be used as a magnetic recording device, a DVD (Digital Versatile Disc), a DVD-RAM (Random Access Memory), a CD-ROM (Compact Disc Read Only Memory), a CD-R (Recordable) / RW (Rewritable), etc. can be used as an optical magnetic recording medium, an MO (Magneto-Optical Disc), etc. can be used, and an EEP-ROM (Electronically Erasable and Programmable-Read Only Memory), etc. can be used as a semiconductor memory.

[0130] In addition, the program can be circulated by, for example, selling, transferring, or lending a portable recording medium such as a DVD or CD-ROM on which the program is recorded. Furthermore, the program can also be circulated by storing the program in advance in a storage device of a server computer and forwarding the program from the server computer to other computers via a network.

[0131] The computer executing such a program, for example, first temporarily stores the program recorded in the portable recording medium or the program forwarded from the server computer to its own storage device. Then, when executing the process, the computer reads the program stored in its own storage device and executes the process according to the read program. In addition, as other execution methods of the program, the computer can also directly read the program from the portable recording medium and execute the process according to the program, and then can also execute the process according to the received program one by one when forwarding the program from the server computer to the computer each time. In addition, it can also be configured as follows: without forwarding the program from the server computer to the computer, the so-called ASP (Application Service Provider) type service that realizes the processing function only through its execution instructions and result acquisition is used to execute the above-mentioned process. In addition, in the program of this method, it is set to include information for processing by the electronic computer and based on the program (although not a direct instruction to the computer, but having the nature of defining the processing of the computer, etc.).

[0132] In this method, a hardware entity is formed by executing a predetermined program on a computer, but at least a part of the processing contents may be realized by hardware.

Claims

1. A data replacement device, which replaces attribute values ​​with representative values ​​for each group, comprising: an attribute value set acquisition unit that acquires the grouped attribute value set on a main storage device when the size of the grouped attribute value set is smaller than a predetermined size, and acquires the grouped attribute value set on an auxiliary storage device when the size of the grouped attribute value set is larger than the predetermined size; A median calculation unit, which calculates the median of the attribute value set grouped on the primary storage device or the auxiliary storage device; a split determination unit that, when the attribute value set to be grouped is split into two based on the median value, when the size of each of the attribute value sets after the split becomes larger than a predetermined threshold, respectively sets the two attribute value sets after the split as new groups; a combined set generating unit that generates a combined set formed by arranging the record numbers associated with the attribute values ​​so that the attribute values ​​in the group converged by repeatedly executing the processing of the attribute value set acquiring unit, the median calculating unit, and the segmentation determining unit are continuous; a sorting unit, which sorts the attribute values ​​on the auxiliary storage device based on the combined set; a representative value replacement unit that continuously performs the following processing: a processing of acquiring a part of the sorted attribute values ​​from the auxiliary storage device to the main storage device, and replacing the attribute values ​​acquired from the main storage device with the representative values; as well as The reordering unit moves the representative values ​​to the auxiliary storage device and reorders them to the original order, wherein access to the auxiliary storage device is slower than access to the main storage device.

2. The data replacement device according to claim 1, wherein: The attribute value set acquisition unit updates the grouped attribute value sets acquired from the primary storage device based on a LRU algorithm.

3. A data replacement device, which replaces attribute values ​​with representative values ​​for each group, comprising: a combined set generating unit, generating a combined set, the combined set being formed by arranging the sequence numbers of the records associated with the attribute values ​​so that the attribute values ​​in the group are continuous; a sorting unit, which sorts the attribute values ​​on the auxiliary storage device based on the combined set; as well as The representative value replacement unit continuously performs the following processing: a process of acquiring a part of the sorted attribute values ​​from the auxiliary storage device to the main storage device, and replacing the attribute values ​​acquired from the main storage device with the representative values; Access to the auxiliary storage device is slower than access to the primary storage device.

4. A data replacement method, which replaces attribute values ​​with representative values ​​for each group, comprising: an attribute value set acquisition step, when the size of the grouped attribute value set is less than a predetermined size, acquiring the grouped attribute value set on a primary storage device, and when the size of the grouped attribute value set is larger than the predetermined size, acquiring the grouped attribute value set on an auxiliary storage device; a median calculation step, calculating the median of the attribute value set grouped on the primary storage device or the auxiliary storage device; a split determination step, in which, when the attribute value set to be grouped is split into two based on the median value, when the size of each of the attribute value sets after the split becomes larger than a predetermined threshold, the two attribute value sets after the split are respectively used as new groups; A combined set generating step of generating a combined set, the combined set being formed by arranging the record numbers associated with the attribute values ​​so that the attribute values ​​in the group converged by repeatedly executing the processing of the attribute value set acquiring step, the median calculating step, and the segmentation determining step are continuous; a sorting step of sorting the attribute values ​​on the auxiliary storage device based on the combined set; a representative value replacement step, continuously performing the following processing: obtaining a part of the sorted attribute values ​​from the auxiliary storage device to the main storage device, and replacing the attribute values ​​obtained in the main storage device with the representative values; as well as a re-sorting step, moving the representative values ​​to the auxiliary storage device and sorting them into the original order, Access to the auxiliary storage device is slower than access to the primary storage device.

5. A data replacement method, which replaces attribute values ​​with representative values ​​for each group, comprising: a combined set generating step, generating a combined set, wherein the combined set is formed by arranging the sequence numbers of the records associated with the attribute values ​​so that the attribute values ​​in the group are continuous; a sorting step, sorting the attribute values ​​on the auxiliary storage device based on the combined set; as well as The representative value replacement step continuously performs the following processing: a part of the sorted attribute values ​​are obtained from the auxiliary storage device to the main storage device, and the attribute values ​​obtained from the main storage device are replaced by the representative values. Access to the auxiliary storage device is slower than access to the primary storage device. 6 . A computer program product causing a computer to function as the data replacement device according to claim 1 .

Citation Information

Patent Citations

  • Tampering detection device, tampering detection method, and program

    CN104919754A

  • Secret parallel processing device, secret parallel processing method, and program

    CN105593918A

  • Personal information anonymization device and method

    JP2013161428A

  • Anonymity data generation method, apparatus and program

    JP2014109934A

  • Data anonymization apparatus, program, and method

    JP2016115112A