Big data retrieval method and device and readable storage medium

By performing distance lower bound calculation and screening on clustering in multi-dimensional space, the problem of large computational load in retrieval of massive and high-dimensional data is solved, the efficiency of big data retrieval is improved, and efficient data mining is achieved.

CN118626693APending Publication Date: 2024-09-10SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD

Patent Information

Application Number
CN202410806790.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing big data retrieval methods require large amounts of calculations and low computational efficiency in a massive, high-dimensional data environment, which seriously restricts the mining of the value of big data.

Method used

By performing distance lower bound calculation and sorting from the clustering of the query point to the multi-dimensional space, the preset algorithm and the iterative algorithm are used to filter out the final nearest neighbor point, avoiding access to all VA codes and reducing the computational complexity.

Benefits of technology

It significantly improves the computational efficiency of big data retrieval and reduces the computational complexity, making big data retrieval no longer a factor restricting big data value mining.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626693A
    Figure CN118626693A
Patent Text Reader

Abstract

The invention provides a big data retrieval method and device and a readable storage medium, and relates to the field of big data. Calculating the distance lower bound from the to-be-queried point to each cluster in the multi-dimensional space, sorting all the clusters from small to large according to the distance lower bound, and sequentially judging the size relationship between the distance lower bound corresponding to each cluster and the initial minimum upper bound according to the sorted clusters. And determining a first cluster in the sorted clusters according to a result of the size relationship, determining a second cluster based on the first cluster, and finally calculating the second cluster by using a preset algorithm to obtain a final nearest neighbor point. Compared with a traditional vector approximation file algorithm, the large data retrieval method has the advantages that the linear complexity is reduced to be sub-linear, the calculation complexity is greatly reduced, and all VA codes are prevented from being traversed. And the operation efficiency of big data retrieval is greatly improved, so that the problem is no longer a factor restricting big data value mining, and the method has relatively high practicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data, and in particular to a big data retrieval method, a big data retrieval device and a readable storage medium. Background Art

[0002] With the vigorous development of big data, it has become an important strategic resource for the country. The main part of big data is semi-structured and unstructured data (such as text, images, audio and video data, etc.), accounting for more than 85% of the total data volume and containing huge value.

[0003] In order to fully tap the value of unstructured big data, it is necessary to be able to efficiently retrieve unstructured data, that is, to quickly find the desired information from massive data. This problem currently faces two severe challenges: one is massiveness, and the other is high dimensionality.

[0004] At present, the retrieval methods for massive, high-dimensional big data have a large amount of computation and low computational efficiency, which seriously restricts the mining of the value of big data. Summary of the invention

[0005] In view of the above problems, the present invention proposes a big data retrieval method, a big data retrieval device and a readable storage medium.

[0006] An embodiment of the present invention provides a big data retrieval method, the big data retrieval method comprising:

[0007] Calculate the lower bound of the distance from the query point to each cluster in the multidimensional space, and sort all clusters from small to large according to the lower bound of the distance;

[0008] According to the sorted clusters, the size relationship between the distance lower bound and the initial minimum upper bound corresponding to each cluster is determined in turn, and the initial minimum upper bound is the minimum upper bound distance from the query point to the initial nearest neighbor candidate point set;

[0009] According to the result of the size relationship, a first cluster is determined in the sorted clusters, and a second cluster is determined based on the first cluster;

[0010] Calculating the second cluster using a preset algorithm to obtain the final nearest neighbor point;

[0011] Wherein, the preset algorithm includes:

[0012] Calculate the lower bound of the distance from the query point to each data point in the second cluster, delete all data points whose lower bounds are greater than the initial minimum upper bound or the new minimum upper bound, and retain the remaining data points;

[0013] The retained data points are screened using an iterative algorithm, and the data points remaining after the screening are determined as the final nearest neighbor points.

[0014] Optionally, according to the sorted clusters, the relationship between the distance lower bound corresponding to each cluster and the initial minimum upper bound is determined in turn, including:

[0015] The sorted clusters use i as their sorting sequence number, denoted as i = 1, 2, 3, ..., m;

[0016] With i=1 and assuming that the initial nearest neighbor candidate point set is empty as the initial condition, the distance lower bound corresponding to the sequence number i=1 and the initial minimum upper bound are judged.

[0017] Optionally, determining a first cluster from the sorted clusters according to the result of the size relationship includes:

[0018] If the distance lower bound corresponding to the sequence number i=1 is less than the initial minimum upper bound, the cluster corresponding to the sequence number i=1 is the first cluster.

[0019] Optionally, determining a second cluster based on the first cluster includes:

[0020] Loading the codes of all data points in the first cluster, and calculating the upper bound of the distance from the query point to each data point in the first cluster;

[0021] If the minimum upper distance bound among the upper distance bounds from the query point to all data points in the first cluster is smaller than the initial minimum upper bound, then the minimum upper distance bound is determined as the new minimum upper bound;

[0022] Taking all data points in the first cluster as a new nearest neighbor candidate point set and the new minimum upper bound as a new condition, executing the steps of: judging the distance lower bound corresponding to the sequence number i=i+1 and the new minimum upper bound;

[0023] If the minimum upper bound of the distances from the query point to each data point in the first cluster is not less than the initial minimum upper bound, the following steps are performed: i=i+1, and assuming that the initial nearest neighbor candidate point set is empty as the initial condition, the distance lower bound corresponding to the sequence number i=i+1 is judged against the initial minimum upper bound;

[0024] If the distance lower bound corresponding to the sequence number i=1 is greater than the initial minimum upper bound, the cluster corresponding to the sequence number i=1 is the second cluster, or if the distance lower bound corresponding to the sequence number i=1+1 is greater than the new minimum upper bound, the cluster corresponding to the sequence number i=1+1 is the second cluster.

[0025] Optionally, the retained data points are screened using an iterative algorithm, and the data points remaining after the screening are determined as the final nearest neighbor points, including:

[0026] The retained data points are sorted in ascending order according to their corresponding lower bounds of distance, with j as their sorting sequence number, denoted as j, j = 1, 2, 3, ..., n;

[0027] With j=1, assuming that the initial nearest neighbor candidate point is empty and the initial distance from the query point to the initial nearest neighbor candidate point is used as the initial condition, the lower bound of the distance corresponding to the sequence number j=1 and the initial distance are judged;

[0028] If the lower bound of the distance corresponding to the sequence number j=1 is greater than the initial distance, the initial nearest neighbor candidate point is used as the data point left after screening;

[0029] If the lower limit of the distance corresponding to the serial number j=1 is not greater than the initial distance, the initial distance is updated to a new distance, and the steps are performed: using j=j+1 and the new distance as new conditions, the lower limit of the distance corresponding to the serial number j=j+1 and the new distance are judged.

[0030] Optionally, if the distance lower bound corresponding to the sequence number j=1 is not greater than the initial distance, updating the initial distance to a new distance includes:

[0031] If the lower bound of the distance corresponding to the sequence number j=1 is not greater than the initial distance, then the original distance from the query point to the data point corresponding to the sequence number j=1 is calculated;

[0032] If the original distance is smaller than the initial distance, updating the initial distance to the original distance;

[0033] If the original distance is not less than the initial distance, the initial distance is not updated.

[0034] Optionally, before calculating the lower bound of the distance from the query point to each cluster in the multidimensional space, the following steps are further included:

[0035] Generate encodings of all data points for the data set corresponding to the multidimensional space;

[0036] The multidimensional space is clustered using a clustering algorithm to obtain all clusters of the multidimensional space.

[0037] Optionally, assuming that the initial nearest neighbor candidate point set is empty, the minimum upper bound is infinite;

[0038] Assuming that the initial nearest neighbor candidate point is empty, the initial distance is infinite.

[0039] An embodiment of the present invention provides a large data retrieval device, the large data retrieval device comprising:

[0040] The operation and sorting module is used to calculate the lower bound of the distance from the query point to each cluster in the multidimensional space, and sort all clusters from small to large according to the lower bound of the distance;

[0041] A sequential judgment module is used to judge the size relationship between the distance lower bound and the initial minimum upper bound corresponding to each cluster according to the sorted clusters, and the initial minimum upper bound is the minimum upper bound distance from the query point to the initial nearest neighbor candidate point set;

[0042] A determination module, configured to determine a first cluster from the sorted clusters according to the result of the size relationship, and determine a second cluster based on the first cluster;

[0043] An algorithm module, used to calculate the second cluster using a preset algorithm to obtain the final nearest neighbor point;

[0044] Wherein, the algorithm module includes:

[0045] A deletion and retention submodule is used to calculate the lower bound of the distance from the query point to each data point in the second cluster, delete all data points whose lower bound of the distance is greater than the initial minimum upper bound or the new minimum upper bound, and retain the remaining data points;

[0046] The iterative screening submodule is used to screen the retained data points using an iterative algorithm, and determine the data points remaining after the screening as the final nearest neighbor points.

[0047] Optionally, the sequential determination module is specifically used for:

[0048] The sorted clusters use i as their sorting sequence number, denoted as i = 1, 2, 3, ..., m;

[0049] With i=1 and assuming that the initial nearest neighbor candidate point set is empty as the initial condition, the distance lower bound corresponding to the sequence number i=1 and the initial minimum upper bound are judged.

[0050] Optionally, the determining module includes:

[0051] The first cluster determination submodule is used for determining that if the distance lower bound corresponding to the sequence number i=1 is less than the initial minimum upper bound, the cluster corresponding to the sequence number i=1 is the first cluster.

[0052] Optionally, the determining module includes:

[0053] A loading calculation submodule, used to load the codes of all data points in the first cluster, and calculate the upper bound of the distance from the query point to each data point in the first cluster;

[0054] A new upper bound determination submodule, configured to determine the minimum upper bound of the distances from the query point to all data points in the first cluster as the new minimum upper bound if the minimum upper bound of the distances from the query point to all data points in the first cluster is smaller than the initial minimum upper bound;

[0055] A first execution submodule is used to use all data points in the first cluster as a new nearest neighbor candidate point set and the new minimum upper bound as a new condition, and execute the steps of: judging the distance lower bound corresponding to the sequence number i=i+1 and the new minimum upper bound;

[0056] The second execution submodule is used for, if the minimum upper bound of the distance from the query point to each data point in the first cluster is not less than the initial minimum upper bound, executing the steps of: taking i=i+1 and assuming that the initial nearest neighbor candidate point set is empty as the initial condition, judging the distance lower bound corresponding to the sequence number i=i+1 and the initial minimum upper bound;

[0057] The second cluster determination submodule is used to determine that if the distance lower bound corresponding to the serial number i=1 is greater than the initial minimum upper bound, the cluster corresponding to the serial number i=1 is the second cluster, or if the distance lower bound corresponding to the serial number i=1+1 is greater than the new minimum upper bound, the cluster corresponding to the serial number i=1+1 is the second cluster.

[0058] Optionally, the iterative screening submodule is specifically used for:

[0059] The retained data points are sorted in ascending order according to their corresponding lower bounds of distance, with j as their sorting sequence number, denoted as j, j = 1, 2, 3, ..., n;

[0060] With j=1, assuming that the initial nearest neighbor candidate point is empty and the initial distance from the query point to the initial nearest neighbor candidate point is used as the initial condition, the lower bound of the distance corresponding to the sequence number j=1 and the initial distance are judged;

[0061] If the lower bound of the distance corresponding to the sequence number j=1 is greater than the initial distance, the initial nearest neighbor candidate point is used as the data point left after screening;

[0062] If the lower limit of the distance corresponding to the serial number j=1 is not greater than the initial distance, the initial distance is updated to a new distance, and the steps are performed: using j=j+1 and the new distance as new conditions, the lower limit of the distance corresponding to the serial number j=j+1 and the new distance are judged.

[0063] Optionally, the iterative screening submodule is further used for:

[0064] If the lower bound of the distance corresponding to the sequence number j=1 is not greater than the initial distance, then the original distance from the query point to the data point corresponding to the sequence number j=1 is calculated;

[0065] If the original distance is smaller than the initial distance, updating the initial distance to the original distance;

[0066] If the original distance is not less than the initial distance, the initial distance is not updated.

[0067] Optionally, the big data retrieval device further includes:

[0068] An encoding module, used to generate encodings of all data points for a data set corresponding to a multidimensional space;

[0069] The clustering module is used to cluster the multidimensional space using a clustering algorithm to obtain all clusters of the multidimensional space.

[0070] An embodiment of the present invention further provides a readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in any of the above-described big data retrieval methods.

[0071] The big data retrieval method provided by the present invention first calculates the lower bound of the distance from the query point to each cluster in the multidimensional space, and sorts all clusters from small to large according to the lower bound of the distance, and then determines the size relationship between the lower bound of the distance corresponding to each cluster and the initial minimum upper bound in turn according to the sorted clusters.

[0072] Then, according to the result of the size relationship, the first cluster is determined in the sorted clusters, and the second cluster is determined based on the first cluster. Finally, the second cluster is calculated using the preset algorithm to obtain the final nearest neighbor point. Among them, the preset algorithm is: calculate the lower bound of the distance from the query point to each data point in the second cluster, delete all data points whose lower bound of the distance is greater than the initial minimum upper bound or the new minimum upper bound, and retain the remaining data points; finally, the retained data points are screened using an iterative algorithm, and the data points left after screening are determined as the final nearest neighbor points.

[0073] The big data retrieval method proposed in the present invention aims at the problems of linear complexity, high complexity and large computational overhead in the traditional vector approximation file algorithm (Vector Approximation-file, abbreviated as: VA-file). It creatively proposes a method that can avoid calculating upper and lower bounds for all VA codes (VA-file is the code generated by the data set). The present invention visits each cluster in sequence according to the order of the cluster lower bounds, and according to the size relationship between the distance lower bound corresponding to each cluster and the initial minimum upper bound, and in combination with a preset algorithm, it can avoid accessing all VA codes.

[0074] Throughout the algorithm, a minimum upper bound is maintained. During the retrieval process, before loading each new cluster, it is determined whether the lower bound of the cluster is greater than the minimum upper bound; if the cluster cannot be eliminated, the minimum upper bound will be updated. Obviously, as more clusters are loaded, the minimum upper bound will become smaller and smaller, and the lower bound of the cluster will become larger and larger. When the minimum upper bound is smaller than the lower bound of the cluster at a certain moment, subsequent clusters can be filtered without affecting the nearest neighbor search results. This avoids traversing all VA codes. Compared with the traditional vector approximate file algorithm, the method proposed in the present invention greatly reduces the computational complexity and greatly improves the computational efficiency of big data retrieval, so that this problem no longer becomes a factor restricting the value mining of big data, and has high practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0076] Figure 1 is a flow chart of a big data retrieval method according to an embodiment of the present invention;

[0077] Figure 2 It is a block diagram of a big data retrieval device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0078] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, are only part of the embodiments of the present invention, not all of the embodiments, and are not used to limit the present invention.

[0079] The inventors found that the current main body is semi-structured and unstructured big data (such as text, images, audio and video data, etc.), accounting for more than 85% of the total data volume. In order to fully explore and utilize the value of unstructured big data, it is necessary to be able to efficiently retrieve unstructured data, that is, to quickly find the desired information from massive data. This problem currently faces two severe challenges: one is massive, and the other is high dimensional. The former is easy to understand. The amount of unstructured data is already extremely large. The total amount of data created, collected or copied each year has reached the ZB level (10^21), and is still growing rapidly.

[0080] The so-called high-dimensional challenge comes from the complexity of unstructured data. Due to the complex structure of unstructured data, it is difficult to directly calculate the similarity. It is necessary to first extract feature vectors for it, and then measure the similarity of the original data based on the distance between the feature vectors. For example, given two facial images, the computer does not calculate the similarity between the two facial images based on the pixel values ​​​​one by one, but first locates some typical areas, extracts features, and then compares them based on features. For example, the shape of the corners of the mouth, the distance between the eyes, the position and size of the nose, eyebrows, face shape, etc. If all the above features are very similar, there is a good reason to believe that the two images are the same face; otherwise, they are not. For the convenience of calculation, each feature here is a numerical value, and when combined together, it becomes a vector, called a feature vector. In addition to images, the retrieval of other unstructured data also adopts this idea. It is not difficult to imagine that the more features, the more accurate the results. For example, if only the mouth shape is very similar, it does not mean that it is the same face, but if the features of the facial features are very close, there is a greater probability that it is the same face. The above is just an example. The feature vector dimensions actually used are very high, generally hundreds to thousands of dimensions.

[0081] The dimension of each vector is the same. If d is used to represent the dimension of the vector, then these feature vectors can be regarded as some points in the d-dimensional space. In this way, the retrieval of unstructured data is transformed into a nearest neighbor search problem on the feature vector. Take the face-scanning entry system of the high-speed rail department as an example: the system maintains a face image set containing every citizen in the country. Before the system goes online, features are first extracted from all faces to form a set of face feature vectors. After going online, a passenger waiting to enter the station uploads his own photo by scanning his face. The system will first extract a feature vector from the photo, and then use the vector as a query request to find the vector closest to the vector in the system's feature vector set (also called the nearest neighbor, Nearest Neighbor, abbreviated as NN), and the corresponding image is the result of face recognition.

[0082] The definition of the so-called nearest neighbor search is as follows: given a data set D containing n d-dimensional feature vectors, let ‖,‖ represent the Euclidean distance between two vectors. For a d-dimensional query vector q, the nearest neighbor search refers to finding the feature vector x from D. * , so that x * =argmin x∈D ‖x,q‖.

[0083] Since a d-dimensional feature vector can be regarded as a point in a d-dimensional space, the embodiments of the present invention define "vector" and "point" as the same concept. For example, a "vector to be queried" is a "point to be queried" and a "feature vector" is a "feature point".

[0084] At present, in order to solve the problem of nearest neighbor search, a "Filter and Refine" algorithm design strategy has been proposed. This strategy divides the nearest neighbor search into two steps:

[0085] 1) In the filtering stage, a large amount of irrelevant data (i.e., points far from the query point) is quickly filtered out in some way, leaving a smaller candidate set;

[0086] 2) Refining stage: Find the true nearest neighbors from the candidate set through some more sophisticated calculations (usually more time-consuming, such as calculating the original distance).

[0087] For nearest neighbor search, the key to the above strategy is to increase the filtering ratio of irrelevant points, which should be both fast and accurate, usually achieved by constructing a tighter distance bound.

[0088] There are two types of distance bounds: lower bound (LB) and upper bound (UB), which refers to an estimated distance constructed by the algorithm to quickly evaluate the original distance between data points. The lower bound must be less than or equal to the original distance, and the upper bound must be greater than or equal to the original distance.

[0089] The distance bound works in the following way. For example, let's take the distance lower bound as an example: Suppose at some point in the search process, the best nearest neighbor that the algorithm has found for the query point q is x nn , for the next data point x i Without calculating the original distance first, if we can quickly estimate the lower bound of the distance from the query point q by some means, LB(q,x i )>||q,x nn ||, which means x i Impossible to be better than x nn is closer to q, then x i Can be safely filtered, saving an original distance calculation.

[0090] Generally speaking, a good distance boundary must meet two requirements: one is fast calculation, otherwise it is meaningless; the other is to be as close to the original distance as possible, that is, the so-called "tighter". The tighter the distance boundary, the better the filtering effect. For example: suppose there are only three data points A, B, and C in the data set. The algorithm quickly calculates that the distance boundaries from q to them are [10, 20], [15, 30], and [40, 50] respectively. Then C can be safely filtered out because its lower bound is greater than the upper bound of A and B, indicating that the actual distances of A and B to q (the query point) are closer than C. However, it is impossible to determine which of A and B is the true nearest neighbor. Although A has a smaller lower bound than B, the actual distance from q to A may be 18, and the actual distance to B may be 16.

[0091] The distance bounds constructed by another algorithm are tighter. The distance bounds from q to the three calculated by it are [17, 20], [15, 16], and [42, 44]. Obviously, we can directly determine that B is the nearest neighbor without calculating the original distance.

[0092] Based on the above principles, many algorithms that perform well in high-dimensional space have emerged. A typical example is the Vector Approximation-file (VA-file). The general process of the algorithm is as follows:

[0093] First, divide the multidimensional space into grids, and then generate VA codes for the data points x in the data set D corresponding to the multidimensional space. Calculate the upper and lower bounds of the distance from the query point q to the VA code of each data point in the data set D, and find the minimum upper bound UB mmn The distance from the query point q to each data point VA code in the data set D is less than or equal to UB min The data points are added to the nearest neighbor candidate set Cand, and the rest of the points are ignored. Then the nearest neighbor points are searched based on the nearest neighbor candidate set Cand to obtain the final nearest neighbor points

[0094] The specific method of the above-mentioned VA-file algorithm can be obtained by consulting known technologies and will not be described in detail. The main advantage of the VA-file algorithm is that its upper and lower bounds based on "spatial grid division" are highly compact in high-dimensional space. The core idea of ​​VA-file is to quantize high-dimensional vectors into high-dimensional grids. Each original vector x is represented by its VA code Cx. Cx and q are used to calculate the upper and lower bounds during the search. This upper and lower bound based on "spatial grid division" has no advantage in low-dimensional space, but has extremely high discrimination in high-dimensional space. For example: assuming b=4, that is, each space is divided into 16 intervals. If there are only 2 dimensions, there are a total of 256 spatial grids. If there are a total of k=10 in the data set 10If there are 100 billion (i.e. 1 billion) data points, each spatial grid contains a large amount of data. If each data point is represented by the grid it falls into, then they are difficult to distinguish from each other. However, once the dimension reaches high dimensions, the situation is different. If the dimension becomes 128, then the spatial grid divided in this way suddenly becomes 16. 128 In this case, the probability of two points falling into the same grid is almost zero, so the use of grids to represent the original data is very different from the low-dimensional space. This is the core power of VA-file.

[0095] However, the disadvantage of VA-file is that its nearest neighbor search algorithm has linear complexity. For each nearest neighbor search, VA-file needs to calculate the upper and lower bounds of q to all VA codes. Although the calculation of the upper and lower bounds is not as large as the original distance, for a d-dimensional space, it also includes d table lookup operations and d summation operations, and the complexity is O(d), which is still very expensive in high-dimensional space. Combined with the extremely large data set size, the overall computational overhead of its nearest neighbor search is very high.

[0096] In order to solve the problems existing in the above VA-file algorithm, the inventor has creatively proposed a big data retrieval method, a big data retrieval device and a readable storage medium of the present invention after extensive research and actual measurement. The technical solution proposed in the present invention is explained and illustrated in detail below.

[0097] Reference Figure 1 A flowchart of a big data retrieval method is shown, the big data retrieval method comprising:

[0098] Step 101: Calculate the lower bound of the distance from the query point to each cluster in the multidimensional space, and sort all clusters from small to large according to the lower bound of the distance.

[0099] The big data retrieval method proposed in the present invention improves the traditional VA-file algorithm by calculating the lower bound of the distance from the query point to each cluster in the multidimensional space and sorting all clusters from small to large according to the lower bound of the distance.

[0100] The VA-file algorithm first needs to generate the encoding of all data points for the data set D corresponding to the multidimensional space (i.e., VA encoding, the encoding in the embodiment of the present invention is generally referred to as VA encoding). In the VA-file algorithm, for a given data set D, the value range of D in each dimension is first counted [L i ,U i ]; then divide the value range of each dimension into 2 b intervals (b is a positive integer), and the boundaries of all intervals in all dimensions are stored in the boundary table T B In this way, each dimension contains 2 b+1 border, respectively 2 b The lower boundary of the interval and U i Then generate VA code for data point x in dataset D: first, number all intervals in each dimension as 0, 1, ..., 2 b -1, for each data point x in the data set D, first calculate the interval that x falls into in each dimension, and connect the numbers of all intervals to form the VA code of x

[0101] After the above encoding is completed, different from the traditional VA-file algorithm that directly starts searching for the nearest neighbor point, the big data retrieval method proposed in the present invention clusters the multidimensional space using a clustering algorithm to obtain all clusters of the multidimensional space. For example, a clustering algorithm such as KMeans can be used to cluster the multidimensional space to obtain K clusters. This step 101 and the operations of dividing the multidimensional space into grids and clustering can be completed in advance as preprocessing content.

[0102] Step 102: According to the sorted clusters, determine in turn the size relationship between the distance lower bound corresponding to each cluster and the initial minimum upper bound, where the initial minimum upper bound is the minimum upper bound distance from the query point to the initial nearest neighbor candidate point set.

[0103] After the above preprocessing is completed, when searching for big data, the distance lower bound corresponding to each cluster is judged in order from small to large according to the sorted clusters, that is, according to the order of the distance lower bound from small to large. The so-called initial minimum upper bound refers to the minimum upper bound distance from the query point q to the initial nearest neighbor candidate point set Cand. Assuming that the initial nearest neighbor candidate point set Cand is empty, the minimum upper bound distance UB from the query point q to the initial nearest neighbor candidate point set Cand is min =∞, that is, the initial minimum upper bound is infinite.

[0104] A better method for determining the relationship between the lower bound of the distance corresponding to each cluster and the initial minimum upper bound in turn includes:

[0105] Assume that the sorted cluster uses i as its sorting sequence number, and record it as i=1, 2, 3, ..., m; then take i=1 and assume that the initial nearest neighbor candidate point set is empty as the initial condition, and judge the distance lower bound and the initial minimum upper bound corresponding to the sequence number i=1.

[0106] Step 103: According to the result of the size relationship, a first cluster is determined from the sorted clusters, and a second cluster is determined based on the first cluster.

[0107] After the size relationship comparison is performed in step 102, a first cluster is determined in the sorted clusters according to the size relationship result, and a second cluster is determined based on the first cluster.

[0108] A preferred method for determining the first cluster from the sorted clusters based on the size relationship result includes:

[0109] If the distance lower bound corresponding to sequence number i=1 is less than the initial minimum upper bound, the cluster corresponding to sequence number i=1 is the first cluster; if the distance lower bound corresponding to sequence number i=1 is greater than the initial minimum upper bound, the cluster corresponding to sequence number i=1 is the second cluster.

[0110] As described above, assuming that the initial nearest neighbor candidate point set Cand is empty, the minimum upper bound distance UB from the query point q to the initial nearest neighbor candidate point set Cand is min =∞, then the distance lower bound corresponding to sequence number i=1 must be smaller than the initial minimum upper bound, and it is the first cluster.

[0111] A better method for determining the second cluster based on the first cluster includes:

[0112] First, load the codes of all data points in the first cluster, and calculate the upper bound of the distance from the query point q to each data point in the first cluster; if the minimum upper bound of the distance from the query point q to all data points in the first cluster is Less than the initial minimum upper bound UB min ,Right now: Then the minimum distance upper bound is determined as the new minimum upper bound, that is: Update

[0113] After updating the minimum upper bound, all data points in the first cluster are used as the new nearest neighbor candidate point set and the new minimum upper bound. As a new condition, execute the following steps: compare the distance lower bound and the new minimum upper bound corresponding to sequence number i=i+1 The lower bound of the distance corresponding to the sequence number i=i+1 and the new minimum upper bound The size relationship will be that the former is greater than the latter or the former is less than the latter. If the former is less than the latter, the cluster corresponding to the serial number i=i+1 is the first cluster, and the above steps are continued; if the former is greater than the latter, the cluster corresponding to the serial number i=i+1 is the second cluster, and the method of step 104 is executed.

[0114] If the minimum distance upper bound among the distance upper bounds from the query point q to each data point in the first cluster Not less than the initial minimum upper bound UB min , directly execute step: take i=i+1 and assume that the initial nearest neighbor candidate point set is empty as the initial condition, and judge the distance lower bound and the initial minimum upper bound corresponding to the sequence number i=i+1, and no longer execute step: judge the distance lower bound and the new minimum upper bound corresponding to the sequence number i=i+1 Make a judgment.

[0115] Based on the above theory, we can know that: if the distance lower bound corresponding to sequence number i=1 is greater than the initial minimum upper bound, then the cluster corresponding to sequence number i=1 is the second cluster, or if the distance lower bound corresponding to sequence number i=1+1 is greater than the new minimum upper bound, then the cluster corresponding to sequence number i=1+1 is the second cluster.

[0116] Step 204: Calculate the second cluster using a preset algorithm to obtain the final nearest neighbor point; wherein the preset algorithm includes: calculating the lower bound of the distance from the query point to each data point in the second cluster, deleting all data points whose lower bound of the distance is greater than the initial minimum upper bound or the new minimum upper bound, and retaining the remaining data points; using an iterative algorithm to screen the retained data points, and determining the data points remaining after the screening as the final nearest neighbor points.

[0117] After the second cluster is determined, the preset algorithm can be used to calculate the second cluster to obtain the final nearest neighbor point. The preset algorithm includes: calculating the lower bound of the distance from the query point q to each data point in the second cluster, deleting all data points whose distance lower bound is greater than the initial minimum upper bound or the new minimum upper bound, and retaining the remaining data points; finally, the retained data points are screened using an iterative algorithm, and the data points left after the screening are determined as the final nearest neighbor points.

[0118] From the previous description, we can know that: if it is assumed that the initial nearest neighbor candidate point set is empty, the initial minimum upper bound is infinite, and the lower bound of the distance from the query point q to any data point in the second cluster cannot be greater than the initial minimum upper bound. When the initial minimum upper bound is updated to the new minimum upper bound, the lower bounds of the distance from the query point q to all data points in the second cluster may have lower bounds that are larger than the new minimum upper bound, or may have lower bounds that are smaller than the new minimum upper bound. The data points corresponding to the lower bounds of the distances that are larger than the new minimum upper bound are deleted, and the data points corresponding to the lower bounds of the distances that are smaller than the new minimum upper bound are retained.

[0119] For the retained data points, an iterative algorithm can be used to screen them, and the data points left after screening are determined as the final nearest neighbor points. The specific method is:

[0120] First, the retained data points are sorted in ascending order according to their corresponding lower distance bounds, with j as the sorting sequence number, denoted as j, j = 1, 2, 3, ..., n; then, with j = 1, and assuming that the initial nearest neighbor candidate point is empty and the initial distance from the query point to the initial nearest neighbor candidate point is used as the initial condition, the lower distance bound and the initial distance corresponding to sequence number j = 1 are judged.

[0121] If the lower bound of the distance corresponding to the sequence number j=1 is greater than the initial distance, the initial nearest neighbor candidate point is used as the data point left after screening; if the lower bound of the distance corresponding to the sequence number j=1 is not greater than the initial distance, the initial distance is updated to the new distance, and the steps are executed: using j=j+1 and the new distance as new conditions, the lower bound of the distance corresponding to the sequence number j=j+1 and the new distance are judged.

[0122] Similarly, assuming that the initial nearest neighbor candidate point is empty, the initial distance from the query point to the initial nearest neighbor candidate point is infinite. Take i=1, and assume that the initial nearest neighbor candidate point NN is empty and the initial distance NNDist from the query point q to the initial nearest neighbor candidate point NN is infinite as the initial conditions, and judge the lower bound of the distance corresponding to the serial number j=1 and the initial distance NNDist.

[0123] The reason why the initial nearest neighbor candidate point NN is assumed to be empty is that at the beginning, it is not certain or known where the nearest neighbor candidate point NN is. Therefore, the initial nearest neighbor candidate point NN is assumed to be empty. Since it is assumed to be empty, the initial distance NNDist from the query point q to the initial nearest neighbor candidate point NN is infinite.

[0124] When making a judgment, if the lower bound of the distance corresponding to the sequence number j=1 is greater than the initial distance, the initial nearest neighbor candidate point is used as the data point left after screening. From the above, it can be seen that: because the initial distance NNDist is infinite, the lower bound of the distance corresponding to the natural sequence number j=1 must not be greater than the initial distance, and in the subsequent iteration process, the lower bound of the distance corresponding to the sequence number j=j+1 or j=j+m, etc. may not be greater than the subsequent new distance, but may also be greater than the subsequent new distance (the distance from the query point to the new nearest neighbor candidate point is the new distance).

[0125] If the sequence number j=1 or the sequence number j=j+1 or j=j+m and other corresponding distance lower limits are not greater than the initial distance, the initial distance is updated to the new distance, and the steps are executed: using j=j+1 and the new distance as new conditions, the distance lower limit corresponding to the sequence number j=j+1 and the new distance are judged.

[0126] The method of updating the initial distance to the new distance includes: if the lower bound of the distance corresponding to the serial number j=1 is not greater than the initial distance NNDist, then calculating the original distance ‖q,x1‖ from the query point q to the data point x1 corresponding to the serial number j=1; if the original distance ‖q,x1‖ is less than the initial distance NNDist, then updating the initial distance NNDist to the original distance ‖q,x1‖; if the original distance NNDist is not less than the initial distance ‖q,x1‖, then not updating the initial distance.

[0127] After updating the initial distance, take j=j+1 and the new distance ‖q,x1‖ as new conditions to judge the lower bound of the distance corresponding to the serial number j=j+1 and the new distance ‖q,x1‖. If the lower bound of the distance corresponding to the serial number j=1+1 is greater than the new distance ‖q,x1‖, the data point corresponding to the serial number j=j+1 is used as the data point left after screening; if the lower bound of the distance corresponding to the serial number j=1+1 is still not greater than the new distance ‖q,x1‖, then continue to update the new distance to another new distance (that is, the original distance ‖q,x2‖ from the query point q to the data point x2 corresponding to the serial number j=j+2), and execute the steps: take j=j+2 and another new distance ‖q,x2‖ as new conditions to judge the lower bound of the distance corresponding to the serial number j=j+2 and another new distance ‖q,x2‖. The rest of the cases are similar and will not be described one by one. The above process is iterated until the data points left after screening are obtained.

[0128] It can be seen that: since the second cluster is closer to the query point q than the first cluster, that is, the distance between any data point in the second cluster and the query point q is shorter than the distance between any data point in the first cluster and the query point q. This is because the big data retrieval method of the present invention always maintains a minimum upper bound UB min During the search process, before loading each new cluster, it will be determined whether the lower bound of the cluster is greater than UB. min ; If the cluster cannot be eliminated, UB will be updated min Obviously, as more clusters are loaded, UB min will become smaller and smaller, and the lower bound of the cluster will become larger and larger. At some point, UB min <The lower bound of the cluster, the subsequent clusters can be filtered without affecting the nearest neighbor search results, thus avoiding traversing all VA codes. Therefore, the correct nearest neighbor point can be obtained by directly searching for the final nearest neighbor point in the second cluster, and the remaining subsequent clusters can be filtered without affecting the nearest neighbor search results, thus avoiding traversing all VA codes. The computational complexity of VA code when searching for the nearest neighbor of VA-file is reduced from linear to sublinear, thereby improving the nearest neighbor search speed, reducing the overall amount of calculation, and greatly improving the computational efficiency of big data retrieval.

[0129] Based on the above-mentioned big data retrieval method, the embodiment of the present invention also proposes a big data retrieval device, referring to Figure 2 The block diagram of the big data retrieval device shown includes:

[0130] An operation and sorting module 210 is used to calculate the lower bound of the distance from the query point to each cluster in the multidimensional space, and sort all clusters from small to large according to the lower bound of the distance;

[0131] A sequential judgment module 220 is used to judge the size relationship between the distance lower bound and the initial minimum upper bound corresponding to each cluster according to the sorted clusters, and the initial minimum upper bound is the minimum upper bound distance from the query point to the initial nearest neighbor candidate point set;

[0132] A determination module 230, configured to determine a first cluster from the sorted clusters according to the size relationship result, and determine a second cluster based on the first cluster;

[0133] An algorithm module 240, configured to calculate the second cluster using a preset algorithm to obtain the final nearest neighbor point;

[0134] Wherein, the algorithm module 240 includes:

[0135] A deletion and retention submodule 2401 is used to calculate the lower bound of the distance from the query point to each data point in the second cluster, delete all data points whose lower bound of the distance is greater than the initial minimum upper bound or the new minimum upper bound, and retain the remaining data points;

[0136] The iterative screening submodule 2402 is used to screen the retained data points using an iterative algorithm, and determine the data points remaining after the screening as the final nearest neighbor points.

[0137] Optionally, the sequential determination module 220 is specifically configured to:

[0138] The sorted clusters use i as their sorting sequence number, denoted as i = 1, 2, 3, ..., m;

[0139] With i=1 and assuming that the initial nearest neighbor candidate point set is empty as the initial condition, the distance lower bound corresponding to the sequence number i=1 and the initial minimum upper bound are judged.

[0140] Optionally, the determining module 230 includes:

[0141] The first cluster determination submodule is used for determining that if the distance lower bound corresponding to the sequence number i=1 is less than the initial minimum upper bound, the cluster corresponding to the sequence number i=1 is the first cluster.

[0142] Optionally, the determining module 230 includes:

[0143] A loading calculation submodule, used to load the codes of all data points in the first cluster, and calculate the upper bound of the distance from the query point to each data point in the first cluster;

[0144] A new upper bound determination submodule, configured to determine the minimum upper bound of the distances from the query point to all data points in the first cluster as the new minimum upper bound if the minimum upper bound of the distances from the query point to all data points in the first cluster is smaller than the initial minimum upper bound;

[0145] A first execution submodule is used to use all data points in the first cluster as a new nearest neighbor candidate point set and the new minimum upper bound as a new condition, and execute the steps of: judging the distance lower bound corresponding to the sequence number i=i+1 and the new minimum upper bound;

[0146] The second execution submodule is used for, if the minimum upper bound of the distance from the query point to each data point in the first cluster is not less than the initial minimum upper bound, executing the steps of: taking i=i+1 and assuming that the initial nearest neighbor candidate point set is empty as the initial condition, judging the distance lower bound corresponding to the sequence number i=i+1 and the initial minimum upper bound;

[0147] The second cluster determination submodule is used to determine that if the distance lower bound corresponding to the serial number i=1 is greater than the initial minimum upper bound, the cluster corresponding to the serial number i=1 is the second cluster, or if the distance lower bound corresponding to the serial number i=1+1 is greater than the new minimum upper bound, the cluster corresponding to the serial number i=1+1 is the second cluster.

[0148] Optionally, the iterative screening submodule 2402 is specifically used for:

[0149] The retained data points are sorted in ascending order according to their corresponding lower bounds of distance, with j as their sorting sequence number, denoted as j, j = 1, 2, 3, ..., n;

[0150] With j=1, assuming that the initial nearest neighbor candidate point is empty and the initial distance from the query point to the initial nearest neighbor candidate point is used as the initial condition, the lower bound of the distance corresponding to the sequence number j=1 and the initial distance are judged;

[0151] If the lower bound of the distance corresponding to the sequence number j=1 is greater than the initial distance, the initial nearest neighbor candidate point is used as the data point left after screening;

[0152] If the lower limit of the distance corresponding to the serial number j=1 is not greater than the initial distance, the initial distance is updated to a new distance, and the steps are performed: using j=j+1 and the new distance as new conditions, the lower limit of the distance corresponding to the serial number j=j+1 and the new distance are judged.

[0153] Optionally, the iterative screening submodule 2402 is further used for:

[0154] If the lower bound of the distance corresponding to the sequence number j=1 is not greater than the initial distance, then the original distance from the query point to the data point corresponding to the sequence number j=1 is calculated;

[0155] If the original distance is smaller than the initial distance, updating the initial distance to the original distance;

[0156] If the original distance is not less than the initial distance, the initial distance is not updated.

[0157] Optionally, the big data retrieval device further includes:

[0158] An encoding module, used to generate encodings of all data points for a data set corresponding to a multidimensional space;

[0159] The clustering module is used to cluster the multidimensional space using a clustering algorithm to obtain all clusters of the multidimensional space.

[0160] Based on the above-mentioned big data retrieval method, an embodiment of the present invention further proposes a readable storage medium on which a program is stored. When the program is executed by a processor, the steps in the big data retrieval method as described in any one of steps 101 to 104 are implemented.

[0161] To sum up, the big data retrieval method proposed in the present invention first calculates the lower bound of the distance from the query point to each cluster in the multidimensional space, and sorts all clusters from small to large according to the lower bound of the distance. Then, according to the sorted clusters, the size relationship between the lower bound of the distance corresponding to each cluster and the initial minimum upper bound is determined in turn.

[0162] If the lower bound of the distance corresponding to the first cluster is greater than the initial minimum upper bound, all data points in the first cluster are determined as the final nearest neighbor point set; if the lower bound of the distance corresponding to the second cluster is less than the initial minimum upper bound, the second cluster is calculated using a preset algorithm to obtain the final nearest neighbor point set. The preset algorithm is: calculate the lower bound of the distance from the query point to each data point in the second cluster, delete all data points whose lower bound is greater than the initial distance of the upper bound, and retain the remaining data points; finally, use an iterative algorithm to screen the retained data points, and determine the data points left after screening as the final nearest neighbor point set.

[0163] The big data retrieval method proposed in the present invention aims at the problems of linear complexity, high complexity and large computational overhead in the traditional vector approximation file algorithm (Vector Approximation-file, abbreviated as: VA-file). It creatively proposes a method that can avoid calculating upper and lower bounds for all VA codes (VA-file is the code generated by the data set). The present invention visits each cluster in sequence according to the order of the cluster lower bounds, and according to the size relationship between the distance lower bound corresponding to each cluster and the initial minimum upper bound, and in combination with a preset algorithm, it can avoid accessing all VA codes.

[0164] Throughout the algorithm, a minimum upper bound is maintained. During the retrieval process, before loading each new cluster, it is determined whether the lower bound of the cluster is greater than the minimum upper bound; if the cluster cannot be eliminated, the minimum upper bound will be updated. Obviously, as more clusters are loaded, the minimum upper bound will become smaller and smaller, and the lower bound of the cluster will become larger and larger. When the minimum upper bound is smaller than the lower bound of the cluster at a certain moment, subsequent clusters can be filtered without affecting the nearest neighbor search results. This avoids traversing all VA codes. Compared with the traditional vector approximate file algorithm, the method proposed in the present invention greatly reduces the computational complexity and greatly improves the computational efficiency of big data retrieval, so that this problem no longer becomes a factor restricting the value mining of big data, and has high practicality.

[0165] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0166] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0167] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A big data retrieval method, characterized in that: The big data retrieval method comprises: Calculate the lower bound of the distance from the query point to each cluster in the multidimensional space, and sort all clusters from small to large according to the lower bound of the distance; According to the sorted clusters, the size relationship between the distance lower bound and the initial minimum upper bound corresponding to each cluster is determined in turn, and the initial minimum upper bound is the minimum upper bound distance from the query point to the initial nearest neighbor candidate point set; According to the result of the size relationship, a first cluster is determined in the sorted clusters, and a second cluster is determined based on the first cluster; Calculating the second cluster using a preset algorithm to obtain the final nearest neighbor point; Wherein, the preset algorithm includes: Calculate the lower bound of the distance from the query point to each data point in the second cluster, delete all data points whose lower bounds are greater than the initial minimum upper bound or the new minimum upper bound, and retain the remaining data points; The retained data points are screened using an iterative algorithm, and the data points remaining after the screening are determined as the final nearest neighbor points.

2. The big data retrieval method according to claim 1, characterized in that: According to the sorted clusters, determine the relationship between the lower bound of the distance corresponding to each cluster and the initial minimum upper bound, including: The sorted cluster uses i as its sorting number, denoted as i=1,2,3,…,m; With i=1 and assuming that the initial nearest neighbor candidate point set is empty as the initial condition, the distance lower bound corresponding to the sequence number i=1 and the initial minimum upper bound are judged.

3. The big data retrieval method according to claim 2, characterized in that: According to the result of the size relationship, determining a first cluster from the sorted clusters includes: If the distance lower bound corresponding to the sequence number i=1 is less than the initial minimum upper bound, the cluster corresponding to the sequence number i=1 is the first cluster.

4. The big data retrieval method according to claim 2, characterized in that: Determining a second cluster based on the first cluster includes: Loading the codes of all data points in the first cluster, and calculating the upper bound of the distance from the query point to each data point in the first cluster; If the minimum upper distance bound among the upper distance bounds from the query point to all data points in the first cluster is smaller than the initial minimum upper bound, then the minimum upper distance bound is determined as the new minimum upper bound; Taking all data points in the first cluster as a new nearest neighbor candidate point set and the new minimum upper bound as a new condition, executing the steps of: judging the distance lower bound corresponding to the sequence number i=i+1 and the new minimum upper bound; If the minimum upper bound of the distances from the query point to each data point in the first cluster is not less than the initial minimum upper bound, the following steps are performed: i=i+1, and assuming that the initial nearest neighbor candidate point set is empty as the initial condition, the distance lower bound corresponding to the sequence number i=i+1 is judged against the initial minimum upper bound; If the distance lower bound corresponding to the sequence number i=1 is greater than the initial minimum upper bound, the cluster corresponding to the sequence number i=1 is the second cluster, or if the distance lower bound corresponding to the sequence number i=1+1 is greater than the new minimum upper bound, the cluster corresponding to the sequence number i=1+1 is the second cluster.

5. The big data retrieval method according to claim 1, characterized in that: The retained data points are screened using an iterative algorithm, and the data points remaining after the screening are determined as the final nearest neighbor points, including: Sort the retained data points in ascending order according to their corresponding lower bounds of distance, with j as its sorting number, denoted as j, j = 1, 2, 3, ..., n; With j=1, assuming that the initial nearest neighbor candidate point is empty and the initial distance from the query point to the initial nearest neighbor candidate point is used as the initial condition, the lower bound of the distance corresponding to the sequence number j=1 and the initial distance are judged; If the lower bound of the distance corresponding to the sequence number j=1 is greater than the initial distance, the initial nearest neighbor candidate point is used as the data point left after screening; If the lower limit of the distance corresponding to the serial number j=1 is not greater than the initial distance, the initial distance is updated to a new distance, and the steps are performed: using j=j+1 and the new distance as new conditions, the lower limit of the distance corresponding to the serial number j=j+1 and the new distance are judged.

6. The big data retrieval method according to claim 5, characterized in that: If the lower bound of the distance corresponding to the sequence number j=1 is not greater than the initial distance, updating the initial distance to a new distance includes: If the lower bound of the distance corresponding to the sequence number j=1 is not greater than the initial distance, then the original distance from the query point to the data point corresponding to the sequence number j=1 is calculated; If the original distance is smaller than the initial distance, updating the initial distance to the original distance; If the original distance is not less than the initial distance, the initial distance is not updated.

7. The big data retrieval method according to claim 1, characterized in that: Before calculating the lower bound of the distance from the query point to each cluster in the multidimensional space, it also includes: Generate encodings of all data points for the data set corresponding to the multidimensional space; The multidimensional space is clustered using a clustering algorithm to obtain all clusters of the multidimensional space.

8. The big data retrieval method according to claim 5, characterized in that: Assuming that the initial nearest neighbor candidate point set is empty, the minimum upper bound is infinite; Assuming that the initial nearest neighbor candidate point is empty, the initial distance is infinite.

9. A big data retrieval device, characterized in that: The big data retrieval device comprises: An operation and sorting module is used to calculate the lower bound of the distance from the query point to each cluster in the multidimensional space, and sort all clusters from small to large according to the lower bound of the distance; A sequential judgment module is used to judge the size relationship between the distance lower bound and the initial minimum upper bound corresponding to each cluster according to the sorted clusters, and the initial minimum upper bound is the minimum upper bound distance from the query point to the initial nearest neighbor candidate point set; A determination module, configured to determine a first cluster from the sorted clusters according to the result of the size relationship, and determine a second cluster based on the first cluster; An algorithm module, used to calculate the second cluster using a preset algorithm to obtain the final nearest neighbor point; Wherein, the algorithm module includes: A deletion and retention submodule is used to calculate the lower bound of the distance from the query point to each data point in the second cluster, delete all data points whose lower bound of the distance is greater than the initial minimum upper bound or the new minimum upper bound, and retain the remaining data points; The iterative screening submodule is used to screen the retained data points using an iterative algorithm, and determine the data points remaining after the screening as the final nearest neighbor points.

10. A readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the big data retrieval method as described in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • High-dimensional data accurate neighbor quick searching method based on euclidean distance

    CN103279551A

  • Approximate nearest neighbor searching method and system of high dimensional data

    CN105550368A

  • Quick large-scale high-dimensional data retrieval method and system

    CN107944046A

  • Data retrieval method based on regional grading route map algorithm

    CN112286942A

  • High-dimensional vector data quick similar search method

    CN1477563A

Cited By

  • Data determination method and device, storage medium and electronic equipment

    CN119202771A