Data management statistical method based on dynamic open point line segment tree and related equipment thereof

By applying the data management statistical method of dynamic open-point line segment tree in the insurance recommendation scenario, the problems of waste of computing resources and low processing efficiency caused by traditional methods are solved, and efficient data statistical analysis is achieved, reducing time complexity and resource consumption.

CN119671649AActive Publication Date: 2025-03-21CHINA PING AN LIFE INSURANCE CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411566638.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-03-21
Estimated Expiration
2044-11-05

AI Technical Summary

Technical Problem

In the insurance recommendation scenario under the scale of big data, traditional data management statistical methods lead to waste of computing resources, low processing efficiency, and easily cause excessive pressure on the algorithm server.

Method used

The data management statistical method based on the dynamic open-point line segment tree is adopted. By obtaining the task indicator data in the source database, filtering the maximum and minimum values, creating a dynamic open-point line segment tree, creating child nodes in two-dimensional layers, and updating the statistical results based on the node position information.

Benefits of technology

The time complexity of data statistical analysis is reduced, from O(N) to O(logN), and the efficiency of statistical analysis is improved, especially in insurance sales scenarios under the scale of big data, which significantly reduces the time and resource consumption of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119671649A_ABST
    Figure CN119671649A_ABST
Patent Text Reader

Abstract

The embodiment of the invention belongs to the technical field of research, development and design, is applied to a data management statistical scene under a big data scale, and relates to a data management statistical method based on a dynamic open point line segment tree and related equipment thereof. All the task index data in the source database are sorted, summarized and analyzed through the dynamic open-point line segment tree data structure, so that secondary analysis is carried out on all the task index data in the source database subsequently; according to the method, secondary analysis can be carried out by directly adopting the arrangement and summarization result of the dynamic open point line segment tree data structure, and compared with analysis directly carried out from a source database, the time complexity of query and update is reduced from O (N) to O (logN), and the analysis efficiency of subsequent secondary analysis is improved. The method can be applied to management statistics between the insurance sales price and the sales volume, and the statistical analysis efficiency between the insurance sales price and the sales volume is improved by taking the insurance sales price as task index data and taking the sales volume as a statistical result at different nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of R&D and design technology, and is applied to data management and statistical scenarios under large data scale, and in particular to a data management and statistical method based on a dynamic open-point segment tree and related equipment. Background Art

[0002] When making insurance recommendations, data analysis is required, and recommendations are often made based on the relationship between insurance sales price and sales volume. Traditional practices include encapsulating the premium price and sales volume count of insurance products into a tuple (price, count) and persisting it to the database. If you want to query the premium price corresponding to the policy with the highest sales volume in a certain premium range, you need to first obtain all the data and traverse all the data from beginning to end. The time complexity is O(N), where N is the total amount of all data.

[0003] However, with the surge in insurance business volume and the number of users, the insurance policy data generated has also surged. If the above method is still used to make insurance recommendations, this will lead to continuous traversal and recommendation in the big data state, resulting in a waste of computing resources. The more data there is, the lower the processing efficiency, which can easily cause excessive pressure on the algorithm server. Summary of the invention

[0004] The purpose of the embodiments of the present application is to propose a data management statistical method based on a dynamic open-point segment tree and related equipment to solve the problem that the existing insurance recommendation method uses the above-mentioned method, which causes a waste of computing resources, and the more data there is, the lower the processing efficiency, which easily causes excessive pressure on the algorithm server.

[0005] In order to solve the above technical problems, the embodiment of the present application provides a data management and statistical method based on a dynamic open-point segment tree, which adopts the following technical solution:

[0006] The data management statistical method based on the dynamic open-point segment tree includes the following steps:

[0007] Obtaining task indicator data of all historical users in the source database, wherein the task indicator data is numerical data;

[0008] Filter out the maximum and minimum values ​​from all task indicator data;

[0009] Create and initialize the root node of the dynamic open-point line segment tree, and set the minimum value as the left endpoint value of the root node, and set the maximum value as the right endpoint value of the root node;

[0010] According to the left endpoint value and the right endpoint value, perform binary division layer by layer, create a multi-level child node of the root node, and set the left and right endpoint values ​​of all nodes in the multi-level child node;

[0011] Selecting task indicator data of different users in turn from all the task indicator data as current insertion data;

[0012] According to the left and right endpoint values ​​of all nodes, identifying the node position information corresponding to each of the currently inserted data at all levels of the dynamic open-point line segment tree;

[0013] According to the node position information corresponding to all the inserted data at all levels of the dynamic open-point line segment tree, the statistical results of the multi-level child nodes of the dynamic open-point line segment tree are updated to complete the management statistics of all task indicator data.

[0014] Furthermore, the step of filtering out the maximum and minimum values ​​from all task indicator data specifically includes:

[0015] Record the values ​​corresponding to all task indicator data to obtain the value recording results, wherein when recording, repeated values ​​are recorded only once;

[0016] Comparing the magnitude of all the values ​​in the numerical recording results in pairs;

[0017] The maximum value and the minimum value are determined according to the results of pairwise comparison of the size relationships.

[0018] Furthermore, the step of performing binary division layer by layer according to the left endpoint value and the right endpoint value, creating multi-level child nodes of the root node, and setting the left and right endpoint values ​​of all nodes in the multi-level child nodes specifically includes:

[0019] According to the preset first function: Calculate the right endpoint value of the left node of the lower layer layer by layer, where left represents the left endpoint value of the current root node, len represents the length of the numerical range between the left and right endpoint values ​​of the current root node, len=right-left+1, and right represents the right endpoint value of the current root node;

[0020] According to the preset second function: Calculate the left endpoint value of the right node of the lower layer layer by layer, where left represents the left endpoint value of the current root node, len represents the length of the numerical range between the left and right endpoint values ​​of the current root node, len=right-left+1, and right represents the right endpoint value of the current root node.

[0021] Furthermore, the step of sequentially selecting task indicator data of different users from all the task indicator data as the current insertion data specifically includes:

[0022] According to the user identification identifier, task indicator data of different users are selected in turn from all the task indicator data as current insertion data.

[0023] Furthermore, the step of identifying the node position information corresponding to each of the currently inserted data at all levels of the dynamic open-point line segment tree according to the left and right endpoint values ​​of all nodes specifically includes:

[0024] The left and right endpoint values ​​of all nodes in the dynamic open-point line segment tree are set to the numerical range of the corresponding nodes;

[0025] Determine the inclusion relationship between the currently inserted data and the value interval range of each node;

[0026] If the currently inserted data is included in the value interval range of the current node, the node position information corresponding to the currently inserted data in the dynamic open-point segment tree includes the current node;

[0027] If the currently inserted data is not included in the value interval range of the current node, the node position information corresponding to the currently inserted data in the dynamic open-point segment tree does not include the current node.

[0028] Further, the step of updating the statistical results of the multi-level child nodes of the dynamic point-initiated line segment tree according to the node position information corresponding to all the inserted data at all levels of the dynamic point-initiated line segment tree, and completing the management and statistics of all the task indicator data, specifically includes:

[0029] Initialize the amount of task indicator data currently counted by all nodes to 0;

[0030] Determine all nodes in the dynamic point-opening line segment tree to which all inserted data respectively correspond according to node position information at all levels of the dynamic point-opening line segment tree;

[0031] Each time a piece of inserted data corresponding to the current node is identified, the preset accumulation function is executed in an iterative manner so that the amount of task indicator data currently counted by the current node is accumulated by 1;

[0032] After the identification is completed, the iterative accumulation is stopped to obtain the data volume of the task indicator data corresponding to all nodes;

[0033] According to the data amount of the task indicator data corresponding to all the nodes respectively, the statistical results of the multi-level child nodes of the dynamic open-point line segment tree are obtained.

[0034] Furthermore, the step of obtaining the statistical results of the multi-level child nodes of the dynamic open-point segment tree according to the data volume of the task indicator data corresponding to all nodes respectively includes:

[0035] Determine whether there is a node with a data volume of 0 task indicator data among all the nodes;

[0036] If there is no node whose data amount of task indicator data is 0 among all the nodes, the data amount of task indicator data corresponding to all the nodes is used as the statistical result of the multi-level child nodes of the dynamic open-point line segment tree;

[0037] If there are nodes with a data volume of 0 in task indicator data among all the nodes, then the nodes with a data volume of 0 in task indicator data are screened out as nodes to be deleted through a screening method, and all nodes to be deleted are deleted, and the data volume of the task indicator data corresponding to all the nodes that have not been deleted is used as the statistical result of the multi-level child nodes of the dynamic open-point segment tree.

[0038] In order to solve the above technical problems, the embodiment of the present application also provides a data management and statistics device based on a dynamic open-point segment tree, which adopts the following technical solution:

[0039] The data management and statistics device based on the dynamic open-point segment tree includes:

[0040] A task indicator data acquisition module is used to acquire the task indicator data of all historical users in the source database, wherein the task indicator data is numerical data;

[0041] Maximum and minimum value screening modules are used to screen out the maximum and minimum values ​​from all task indicator data;

[0042] A root node creation module, used to create and initialize the root node of the dynamic open-point line segment tree, and set the minimum value as the left endpoint value of the root node, and set the maximum value as the right endpoint value of the root node;

[0043] A multi-level child node creation module, used to perform binary division layer by layer according to the left endpoint value and the right endpoint value, create multi-level child nodes of the root node and set the left and right endpoint values ​​of all nodes in the multi-level child nodes;

[0044] A currently inserted data selection module is used to select task indicator data of different users in turn from all the task indicator data as currently inserted data;

[0045] A node position information identification module, used to identify the node position information corresponding to the current insertion data at all levels of the dynamic open-point line segment tree according to the left and right endpoint values ​​of all nodes;

[0046] The statistical result updating module is used to update the statistical results of the multi-level child nodes of the dynamic open-point segment tree according to the node position information corresponding to all inserted data at all levels of the dynamic open-point segment tree, and complete the management statistics of all task indicator data.

[0047] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0048] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the data management and statistical method based on the dynamic open-point segment tree are implemented.

[0049] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0050] A computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the data management statistics method based on a dynamic open-point line segment tree as described above.

[0051] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0052] The data management and statistical method based on the dynamic open-point segment tree in the embodiment of the present application is to organize and summarize all the task index data in the source database through the dynamic open-point segment tree data structure, so that when all the task index data in the source database are subsequently analyzed again, the organization and summary results of the dynamic open-point segment tree data structure can be directly used for secondary analysis. Compared with directly analyzing from the source database, the time complexity of query and update is reduced from O(N) to O(logN), which improves the analysis efficiency of subsequent secondary analysis. The present invention can be applied to the management statistics between insurance sales prices and sales volumes. By taking the insurance sales price as the task index data and the sales volume as the statistical results at different nodes, the management statistics between insurance sales prices and sales volumes are realized. Especially in the insurance sales scenario under the large data scale, the management and statistical method disclosed by the present invention is adopted, which greatly reduces the time complexity of data statistical analysis and improves the statistical analysis efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0054] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0055] Figure 2 is a flow chart of an embodiment of a data management and statistical method based on a dynamic open-point segment tree according to the present application;

[0056] Figure 3 yes Figure 2 A flowchart of a specific embodiment of step 202 is shown;

[0057] Figure 4 A schematic diagram of creating and setting the dynamic open-point line segment tree is shown;

[0058] Figure 5 yes Figure 2 A flowchart of a specific embodiment of step 206 is shown;

[0059] Figure 6 yes Figure 2 A flowchart of a specific embodiment of step 207 is shown;

[0060] Figure 7 yes Figure 6 A flowchart of a specific embodiment of step 605 is shown;

[0061] Figure 8 It is a structural schematic diagram of an embodiment of a data management and statistics device based on a dynamic open-point line segment tree according to the present application;

[0062] Fig. 9 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0064] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0065] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0066] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The terminal device 101 may be a laptop 1011, a tablet computer 1012 or a mobile phone 1013. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables.

[0067] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0068] The terminal device 101 can be any electronic device with a display screen and supporting web browsing. In addition to a laptop computer 1011, a tablet computer 1012 or a mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, etc.

[0069] The server 103 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal device 101 .

[0070] It should be noted that the data management and statistics method based on the dynamic point-opening line segment tree provided in the embodiment of the present application is generally executed by a server, and accordingly, the data management and statistics device based on the dynamic point-opening line segment tree is generally set in the server.

[0071] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0072] Continue to refer Figure 2 , shows a flow chart of an embodiment of a data management and statistics method based on a dynamic point-opening line segment tree according to the present application. The data management and statistics method based on a dynamic point-opening line segment tree comprises the following steps:

[0073] Step 201: Obtain task indicator data of all historical users in a source database, wherein the task indicator data is numerical data.

[0074] In this embodiment, the source database includes an insurance business management database in an insurance company, all historical users include users who have purchased insurance business in the past, and the task indicator data includes purchase costs of different insurance types.

[0075] By acquiring the task indicator data of all historical users in the source database, it is convenient to manage, analyze and count all the task indicator data in the source database.

[0076] Step 202, filter out the maximum value and the minimum value from all task indicator data.

[0077] In this embodiment, the maximum value and the minimum value are screened out from all the task indicator data, that is, the maximum purchase cost and the minimum purchase cost are screened out from the purchase costs of the different insurance types.

[0078] Step 203, creating and initializing the root node of the dynamic open-point line segment tree, and setting the minimum value as the left endpoint value of the root node, and setting the maximum value as the right endpoint value of the root node.

[0079] By screening out the maximum purchase cost and the minimum purchase cost from the purchase costs of the different types of insurance, and setting the maximum purchase cost and the minimum purchase cost as the root node endpoint values ​​of the dynamic open-point segment tree data structure, it is convenient to subsequently use the dynamic open-point segment tree data structure to organize and summarize all task indicator data in the source database.

[0080] In this embodiment, a dynamic open-point line segment tree data structure is used to organize and summarize all task indicator data in the source database for analysis, so that when all task indicator data in the source database are subsequently subjected to secondary analysis, the organization and summary results of the dynamic open-point line segment tree data structure can be directly used for secondary analysis. Compared with directly analyzing from the source database, the time complexity of query and update is reduced from O(N) to O(logN), thereby improving the analysis efficiency of subsequent secondary analysis.

[0081] Step 204, performing binary division layer by layer according to the left endpoint value and the right endpoint value, creating multiple levels of child nodes of the root node and setting the left and right endpoint values ​​of all nodes in the multiple levels of child nodes.

[0082] By performing binary search layer by layer according to the left endpoint value and the right endpoint value, creating multi-level child nodes of the root node and setting the left and right endpoint values ​​of all nodes in the multi-level child nodes, a binary search method is used for query and update in subsequent secondary analysis, which reduces the time complexity to O(logN).

[0083] Step 205 : Selecting task indicator data of different users in turn from all the task indicator data as current insertion data.

[0084] Step 206 , identifying the node position information corresponding to each of the current insertion data at all levels of the dynamic open-point line segment tree according to the left and right endpoint values ​​of all nodes.

[0085] Specifically, assume that there are 10 users, and the corresponding task indicator data are 100, 100, 200, 200, 300, 300, 300, 400, 500, and 500 respectively.

[0086] According to the maximum value obtained in step 202 is 500, and the minimum value is 100, after executing step 203, the left and right endpoint values ​​of the root node of the dynamic open-point line segment tree are 100 and 500. Subsequently, step 204 is executed to perform layer-by-layer binary division, that is, to create two lower-layer child nodes for the root node, then the left and right endpoint values ​​of the left child node are 100 and 300 respectively, and the left and right endpoint values ​​of the right child node are 301 and 500 respectively. The left child node is further binary divided layer by layer to create two child nodes of the left child node, and the right child node is further binary divided layer by layer to create two child nodes of the left child node, and the right child node is further binary divided layer by layer to create two child nodes of the left child node. Continue to perform binary division layer by layer to create two child nodes of the right child node; at this time, assuming that the node identifiers of the two child nodes of the left child node are leftA and leftB respectively, and the node identifiers of the two child nodes of the right child node are rightA and rightB respectively, then the left and right endpoint values ​​of the node leftA are 100 and 200, the left and right endpoint values ​​of the node leftB are 201 and 300, the left and right endpoint values ​​of the node rightA are 301 and 400, and the left and right endpoint values ​​of the node rightB are 401 and 500.

[0087] Assuming that the currently inserted data is 400, since the left and right endpoint values ​​of the root node are 100 and 500, the left and right endpoint values ​​of the right child node are 301 and 500, and the left and right endpoint values ​​of the node rightA are 301 and 400, then the node position information corresponding to the currently inserted data at all levels of the dynamic open-point segment tree includes the root node, the right child node and node rightA.

[0088] Step 207, based on the node position information corresponding to all the inserted data at all levels of the dynamic open-point segment tree, the statistical results of the multi-level child nodes of the dynamic open-point segment tree are updated to complete the management statistics of all task indicator data.

[0089] All the task indicator data in the source database are sorted and summarized and analyzed through the dynamic open-point segment tree data structure, so that when all the task indicator data in the source database are subsequently analyzed again, the sorting and summary results of the dynamic open-point segment tree data structure can be directly used for secondary analysis. Compared with directly analyzing from the source database, the time complexity of query and update is reduced from O(N) to O(logN), which improves the analysis efficiency of subsequent secondary analysis. The present invention can be applied to the management statistics between insurance sales prices and sales volumes. By taking the insurance sales price as the task indicator data and the sales volume as the statistical results at different nodes, the management statistics between the insurance sales price and sales volume can be achieved. Especially in the insurance sales scenario under the large data scale, the management statistics method disclosed by the present invention is adopted, which greatly reduces the time complexity of data statistical analysis and improves the statistical analysis efficiency.

[0090] In this embodiment, all the task indicator data in the source database are sorted and summarized and analyzed through a dynamic open-point segment tree data structure, so that when all the task indicator data in the source database are subsequently analyzed again, the sorting and summary results of the dynamic open-point segment tree data structure can be directly used for secondary analysis. Compared with directly analyzing from the source database, the time complexity of query and update is reduced from O(N) to O(logN), which improves the analysis efficiency of subsequent secondary analysis. The present invention can be applied to the management statistics between insurance sales prices and sales volumes. By taking the insurance sales price as the task indicator data and the sales volume as the statistical results at different nodes, the management statistics between the insurance sales price and sales volume can be achieved. Especially in the insurance sales scenario under the large data scale, the management statistics method disclosed by the present invention is adopted, which greatly reduces the time complexity of data statistical analysis and improves the statistical analysis efficiency.

[0091] Continue to refer Figure 3 , Figure 3 yes Figure 2 The flowchart of a specific embodiment of step 202 shown includes the following steps:

[0092] Step 301, recording the values ​​corresponding to all task indicator data respectively to obtain the value recording result, wherein, when recording, repeated values ​​are recorded only once;

[0093] Step 302, comparing all the values ​​in the numerical record results in pairs;

[0094] Step 303: Determine the maximum value and the minimum value based on the comparison results of the size relationship between the two values.

[0095] By determining the maximum value and the minimum value, the root node of the dynamic open-point line segment tree is subsequently created and initialized.

[0096] In this embodiment, the steps of performing binary division layer by layer according to the left endpoint value and the right endpoint value, creating multi-level child nodes of the root node, and setting the left and right endpoint values ​​of all nodes in the multi-level child nodes specifically include:

[0097] According to the preset first function: Calculate the right endpoint value of the left node of the lower layer layer by layer, where left represents the left endpoint value of the current root node, len represents the length of the numerical range between the left and right endpoint values ​​of the current root node, len=right-left+1, and right represents the right endpoint value of the current root node;

[0098] According to the preset second function: Calculate the left endpoint value of the right node of the lower layer layer by layer, where left represents the left endpoint value of the current root node, len represents the length of the numerical range between the left and right endpoint values ​​of the current root node, len=right-left+1, and right represents the right endpoint value of the current root node.

[0099] In the above formula, Indicates rounding up to an integer. "·" indicates or

[0100] In conjunction with the embodiment given in the above step 206, assume that there are 10 users, and the corresponding task indicator data are 100, 100, 200, 200, 300, 300, 300, 400, 500, 500 respectively.

[0101] According to the maximum value obtained in step 202, which is 500, and the minimum value which is 100, after executing step 203, the left and right endpoint values ​​of the root node of the dynamic open-point line segment tree are 100 and 500.

[0102] Please refer to Figure 4 , Figure 4 The schematic diagram of the creation and setting of the dynamic open-point line segment tree corresponding to step 204 is shown. Perform layer-by-layer binary division, that is, create two lower-layer child nodes for the root node, then the left endpoint value of the left child node is 100, and the right endpoint value is 300 calculated by the first function, the left endpoint value of the right child node is 301 calculated by the second function, and the right endpoint value is 500, the left child node is further divided layer by layer to create two child nodes of the left child node, and the right child node is further divided layer by layer to create two child nodes of the right child node; at this time, assuming that the node identifiers of the two child nodes of the left child node are leftA and leftB respectively, and the node identifiers of the two child nodes of the right child node are rightA and rightB respectively, then the left and right endpoint values ​​of the node leftA are 100 and 200, the left and right endpoint values ​​of the node leftB are 201 and 300, the left and right endpoint values ​​of the node rightA are 301 and 400, and the left and right endpoint values ​​of the node rightB are 401 and 500.

[0103] In this embodiment, the step of selecting task indicator data of different users from all the task indicator data in turn as the current insertion data specifically includes: selecting task indicator data of different users from all the task indicator data in turn as the current insertion data according to user identification identifiers.

[0104] Specifically, the user identification includes the user's unique identity, or the insurance policy number identification corresponding to each user.

[0105] Continue to refer Figure 5 , Figure 5 yes Figure 2 The flowchart of a specific embodiment of step 206 shown includes the following steps:

[0106] Step 501, setting the left and right endpoint values ​​of all nodes in the dynamic open-point line segment tree to the numerical range of the corresponding nodes;

[0107] Step 502, determining whether the currently inserted data is included in the value range of each node;

[0108] Step 503: If the currently inserted data is included in the value interval of the current node, the node position information corresponding to the currently inserted data in the dynamic open-point segment tree includes the current node;

[0109] Step 504: If the currently inserted data is not included in the value interval of the current node, the node position information corresponding to the currently inserted data in the dynamic open-point segment tree does not include the current node.

[0110] By determining the inclusion relationship between the currently inserted data and the numerical interval range of each node, the nodes to which all task indicator data belong in the dynamic open-point segment tree are identified, so as to facilitate the creation of the dynamic open-point segment tree.

[0111] Continue to refer Figure 6 , Figure 6 yes Figure 2 The flowchart of a specific embodiment of step 207 shown includes the following steps:

[0112] Step 601, initializing the amount of task indicator data currently counted by all nodes to 0;

[0113] Step 602, determining all nodes corresponding to all inserted data in the dynamic point-initiated line segment tree according to node position information corresponding to all inserted data in all levels of the dynamic point-initiated line segment tree;

[0114] Step 603, each time a piece of inserted data corresponding to the current node is identified, a preset accumulation function is executed in an iterative manner so that the amount of task indicator data currently counted for the current node is accumulated by 1;

[0115] Step 604, until the identification is completed, stop iterative accumulation, and obtain the data volume of the task indicator data corresponding to all nodes;

[0116] Step 605, obtaining statistical results of the multi-level child nodes of the dynamic open-point line segment tree according to the data volume of the task indicator data corresponding to all nodes respectively.

[0117] Continuing with the embodiment given in combination with the above step 206, assume that there are 10 users, and the corresponding task indicator data are 100, 100, 200, 200, 300, 300, 300, 400, 500, 500 respectively.

[0118] According to the maximum value obtained in step 202 is 500 and the minimum value is 100, after executing step 203, the left and right endpoint values ​​of the root node of the dynamic open-point line segment tree are 100 and 500. Figure 4 It can be seen that the dynamic open-point line segment tree contains three levels, the first level is the root node, the nodes in the second level are the left child node and the right child node from left to right, and the nodes in the third level are leftA, leftB, rightA and rightB from left to right.

[0119] After executing steps 601 to 605, it can be obtained that the data amount of the task indicator data corresponding to the root node is 10, that is, the task indicator data corresponding to the above 10 users are all in the range of 100 to 500; the data amount of the task indicator data corresponding to the left child node is 7, that is, there are 7 users among the above 10 users whose corresponding task indicator data are in the range of 100 to 300; the data amount of the task indicator data corresponding to the right child node is 3, that is, there are 3 users among the above 10 users whose corresponding task indicator data are in the range of 301 to 500; similarly, the data amount of the task indicator data corresponding to leftA is 4, the data amount of the task indicator data corresponding to leftB is 3, the data amount of the task indicator data corresponding to rightA is 1, and the data amount of the task indicator data corresponding to rightB is 2.

[0120] It should be understood that Figure 4 The dynamic open-point line segment tree given has only a three-layer structure. However, in the actual application of the present invention, the number of levels of the dynamic open-point line segment tree and the left and right endpoint values ​​of each node are determined by the numerical complexity of the task indicator data. That is, the more numerical values ​​involved in the task indicator data and the larger the numerical span, the more levels there are and the finer the division of the left and right endpoint values ​​of the nodes.

[0121] All task indicator data in the source database are sorted and summarized and analyzed through a dynamic open-point line segment tree data structure, so that when all task indicator data in the source database are subsequently subjected to secondary analysis, the sorting and summary results of the dynamic open-point line segment tree data structure can be directly used for secondary analysis. Compared with directly analyzing from the source database, the time complexity of query and update is reduced from O(N) to O(logN), thereby improving the analysis efficiency of subsequent secondary analysis.

[0122] Continue to refer Figure 7 , Figure 7 yes Figure 6 The flowchart of a specific embodiment of step 605 shown includes the following steps:

[0123] Step 701, determining whether there is a node with a data volume of 0 task indicator data among all the nodes;

[0124] Step 702, if there is no node with a data volume of 0 task indicator data among all the nodes, the data volume of the task indicator data corresponding to all the nodes is used as the statistical result of the multi-level child nodes of the dynamic open-point line segment tree;

[0125] Step 703: If there are nodes with a data volume of 0 in the task indicator data among all the nodes, the nodes with a data volume of 0 in the task indicator data are screened out as nodes to be deleted through a screening method, and all the nodes to be deleted are deleted, and the data volume of the task indicator data corresponding to all the nodes that have not been deleted is used as the statistical result of the multi-level child nodes of the dynamic open-point segment tree.

[0126] Through screening, nodes with a data volume of 0 in task indicator data are screened out as nodes to be deleted, and all nodes to be deleted are deleted. The data volume of the task indicator data corresponding to all undeleted nodes is used as the statistical result of the multi-level child nodes of the dynamic open-point segment tree, thereby avoiding the empty nodes in the dynamic open-point segment tree occupying statistical resources.

[0127] The present application organizes and summarizes all the task indicator data in the source database through a dynamic open-point segment tree data structure, so that when all the task indicator data in the source database are subsequently analyzed again, the organization and summary results of the dynamic open-point segment tree data structure can be directly used for secondary analysis. Compared with directly analyzing from the source database, the time complexity of query and update is reduced from O(N) to O(logN), which improves the analysis efficiency of subsequent secondary analysis. The present invention can be applied to the management statistics between insurance sales prices and sales volumes. By taking the insurance sales price as the task indicator data and the sales volume as the statistical results at different nodes, the management statistics between the insurance sales price and sales volume can be achieved. Especially in the insurance sales scenario under the large data scale, the management statistics method disclosed by the present invention is adopted, which greatly reduces the time complexity of data statistical analysis and improves the efficiency of statistical analysis.

[0128] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0129] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0130] In the embodiment of the present application, all the task index data in the source database are sorted and summarized and analyzed through a dynamic open-point segment tree data structure, so that when all the task index data in the source database are subsequently analyzed again, the sorting and summary results of the dynamic open-point segment tree data structure can be directly used for secondary analysis. Compared with directly analyzing from the source database, the time complexity of query and update is reduced from O(N) to O(logN), which improves the analysis efficiency of subsequent secondary analysis. The present invention can be applied to the management statistics between insurance sales prices and sales volumes. By taking the insurance sales price as the task index data and the sales volume as the statistical results at different nodes, the management statistics between the insurance sales price and sales volume can be achieved. Especially in the insurance sales scenario under the large data scale, the management statistics method disclosed by the present invention is adopted, which greatly reduces the time complexity of data statistical analysis and improves the efficiency of statistical analysis.

[0131] Further references Figure 8 , as a response to the above Figure 2 The present application provides an embodiment of a data management and statistics device based on a dynamic open-point segment tree. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0132] like Figure 8 As shown, the data management and statistics device 800 based on the dynamic open-point segment tree described in this embodiment includes: a task indicator data acquisition module 801, a maximum and minimum value screening module 802, a root node creation module 803, a multi-level child node creation module 804, a current insertion data selection module 805, a node position information identification module 806 and a statistical result update module 807. Among them:

[0133] The task indicator data acquisition module 801 is used to acquire the task indicator data of all historical users in the source database, wherein the task indicator data is numerical data;

[0134] The maximum and minimum value screening module 802 is used to screen out the maximum and minimum values ​​from all task indicator data;

[0135] A root node creation module 803 is used to create and initialize the root node of the dynamic open-point line segment tree, and set the minimum value as the left endpoint value of the root node, and set the maximum value as the right endpoint value of the root node;

[0136] A multi-level child node creation module 804 is used to perform binary division layer by layer according to the left endpoint value and the right endpoint value, create multi-level child nodes of the root node, and set the left and right endpoint values ​​of all nodes in the multi-level child nodes;

[0137] The currently inserted data selection module 805 is used to select task indicator data of different users in turn from all the task indicator data as currently inserted data;

[0138] A node position information identification module 806 is used to identify the node position information corresponding to the current insertion data at all levels of the dynamic open-point line segment tree according to the left and right endpoint values ​​of all nodes;

[0139] The statistical result updating module 807 is used to update the statistical results of the multi-level child nodes of the dynamic open-point segment tree according to the node position information corresponding to all inserted data at all levels of the dynamic open-point segment tree, and complete the management statistics of all task indicator data.

[0140] The present application organizes and summarizes all the task indicator data in the source database through a dynamic open-point segment tree data structure, so that when all the task indicator data in the source database are subsequently analyzed again, the organization and summary results of the dynamic open-point segment tree data structure can be directly used for secondary analysis. Compared with directly analyzing from the source database, the time complexity of query and update is reduced from O(N) to O(logN), which improves the analysis efficiency of subsequent secondary analysis. The present invention can be applied to the management statistics between insurance sales prices and sales volumes. By taking the insurance sales price as the task indicator data and the sales volume as the statistical results at different nodes, the management statistics between the insurance sales price and sales volume can be achieved. Especially in the insurance sales scenario under the large data scale, the management statistics method disclosed by the present invention is adopted, which greatly reduces the time complexity of data statistical analysis and improves the efficiency of statistical analysis.

[0141] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0142] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0143] To solve the above technical problems, the present application also provides a computer device. Fig. 9 , Fig. 9 This is a basic structural block diagram of the computer device in this embodiment.

[0144] The computer device 9 includes a memory 9a, a processor 9b, and a network interface 9c which are interconnected through a system bus. It should be noted that: Fig. 9 Only a computer device 9 having a component memory 9a, a processor 9b, and a network interface 9c is shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital processor (DSP), an embedded device, etc.

[0145] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0146] The memory 9a includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 9a can be an internal storage unit of the computer device 9, such as a hard disk or memory of the computer device 9. In other embodiments, the memory 9a can also be an external storage device of the computer device 9, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 9. Of course, the memory 9a can also include both the internal storage unit of the computer device 9 and its external storage device. In this embodiment, the memory 9a is generally used to store the operating system and various application software installed on the computer device 9, such as computer-readable instructions of a data management statistical method based on a dynamic open point segment tree, etc. In addition, the memory 9a can also be used to temporarily store various types of data that have been output or are to be output.

[0147] The processor 9b may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 9b is generally used to control the overall operation of the computer device 9. In this embodiment, the processor 9b is used to run the computer-readable instructions stored in the memory 9a or process data, such as running the computer-readable instructions of the data management statistical method based on the dynamic open-point line segment tree.

[0148] The network interface 9c may include a wireless network interface or a wired network interface. The network interface 9c is generally used to establish a communication connection between the computer device 9 and other electronic devices.

[0149] The computer device proposed in this embodiment belongs to the field of research and development design technology, and is applied to data management statistics scenarios under large data scale. This application organizes and summarizes all task indicator data in the source database through a dynamic open-point segment tree data structure, so that when all task indicator data in the source database are subsequently analyzed for secondary analysis, the organization and summary results of the dynamic open-point segment tree data structure can be directly used for secondary analysis. Compared with directly analyzing from the source database, the time complexity of query and update is reduced from O(N) to O(logN), which improves the analysis efficiency of subsequent secondary analysis. The present invention can be applied to the management statistics between insurance sales prices and sales volumes. By taking the insurance sales price as the task indicator data and the sales volume as the statistical results at different nodes, the management statistics between insurance sales prices and sales volumes are realized. Especially in the insurance sales scenario under large data scale, the management statistics method disclosed by the present invention is adopted, which greatly reduces the time complexity of data statistical analysis and improves the statistical analysis efficiency.

[0150] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by a processor to enable the processor to perform the steps of the data management statistical method based on the dynamic open-point segment tree as described above.

[0151] The computer-readable storage medium proposed in this embodiment belongs to the field of research and development design technology and is applied to data management statistics scenarios under large data scale. This application uses a dynamic open-point segment tree data structure to organize and summarize all task indicator data in the source database, so that when all task indicator data in the source database are subsequently analyzed again, the organization and summary results of the dynamic open-point segment tree data structure can be directly used for secondary analysis. Compared with directly analyzing from the source database, the time complexity of query and update is reduced from O(N) to O(logN), which improves the analysis efficiency of subsequent secondary analysis. The present invention can be applied to the management statistics between insurance sales prices and sales volumes. By taking the insurance sales price as the task indicator data and the sales volume as the statistical results at different nodes, the management statistics between insurance sales prices and sales volumes are realized. Especially in the insurance sales scenario under large data scale, the management statistics method disclosed by the present invention is adopted, which greatly reduces the time complexity of data statistical analysis and improves the efficiency of statistical analysis.

[0152] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0153] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A data management and statistical method based on a dynamic open-point segment tree, characterized in that: The steps include: Obtaining task indicator data of all historical users in the source database, wherein the task indicator data is numerical data; Filter out the maximum and minimum values ​​from all task indicator data; Create and initialize the root node of the dynamic open-point line segment tree, and set the minimum value as the left endpoint value of the root node, and set the maximum value as the right endpoint value of the root node; According to the left endpoint value and the right endpoint value, perform binary division layer by layer, create a multi-level child node of the root node, and set the left and right endpoint values ​​of all nodes in the multi-level child node; Selecting task indicator data of different users in turn from all the task indicator data as current insertion data; According to the left and right endpoint values ​​of all nodes, identifying the node position information corresponding to each of the currently inserted data at all levels of the dynamic open-point line segment tree; According to the node position information corresponding to all the inserted data at all levels of the dynamic open-point line segment tree, the statistical results of the multi-level child nodes of the dynamic open-point line segment tree are updated to complete the management statistics of all task indicator data.

2. The data management and statistical method based on the dynamic point-opening line segment tree according to claim 1 is characterized in that: The step of filtering out the maximum and minimum values ​​from all task indicator data specifically includes: Record the values ​​corresponding to all task indicator data to obtain the value recording results, wherein when recording, repeated values ​​are recorded only once; Comparing the magnitude of all the numerical values ​​in the numerical recording results in pairs; The maximum value and the minimum value are determined according to the results of pairwise comparison of the size relationships.

3. The data management and statistical method based on dynamic point-opening line segment tree according to claim 1 is characterized in that: The step of performing binary division layer by layer according to the left endpoint value and the right endpoint value, creating multi-level child nodes of the root node, and setting the left and right endpoint values ​​of all nodes in the multi-level child nodes specifically includes: According to the preset first function: Calculate the right endpoint value of the left node of the lower layer layer by layer, where left represents the left endpoint value of the current root node, len represents the length of the numerical range between the left and right endpoint values ​​of the current root node, len=right-left+1, and right represents the right endpoint value of the current root node; According to the preset second function: Calculate the left endpoint value of the right node of the lower layer layer by layer, where left represents the left endpoint value of the current root node, len represents the length of the numerical range between the left and right endpoint values ​​of the current root node, len=right-left+1, and right represents the right endpoint value of the current root node.

4. The data management and statistical method based on dynamic point-opening line segment tree according to claim 1 is characterized in that: The step of sequentially selecting task indicator data of different users from all the task indicator data as the current insertion data specifically includes: According to the user identification identifier, task indicator data of different users are selected in turn from all the task indicator data as current insertion data.

5. The data management and statistical method based on dynamic point-opening line segment tree according to claim 1, characterized in that: The step of identifying the node position information corresponding to each of the current insertion data at all levels of the dynamic open-point line segment tree according to the left and right endpoint values ​​of all nodes specifically includes: The left and right endpoint values ​​of all nodes in the dynamic open-point line segment tree are set to the numerical range of the corresponding nodes; Determine the inclusion relationship between the currently inserted data and the value interval range of each node; If the currently inserted data is included in the value interval of the current node, the node position information corresponding to the currently inserted data in the dynamic open-point segment tree includes the current node; If the currently inserted data is not included in the value interval range of the current node, the node position information corresponding to the currently inserted data in the dynamic open-point segment tree does not include the current node.

6. The data management and statistical method based on dynamic point-opening line segment tree according to claim 1, characterized in that: The step of updating the statistical results of the multi-level child nodes of the dynamic point-opening line segment tree according to the node position information corresponding to all the inserted data at all levels of the dynamic point-opening line segment tree to complete the management and statistics of all the task indicator data specifically includes: Initialize the amount of task indicator data currently counted by all nodes to 0; Determine all nodes in the dynamic point-opening line segment tree to which all inserted data respectively correspond according to node position information at all levels of the dynamic point-opening line segment tree; Each time a piece of inserted data corresponding to the current node is identified, the preset accumulation function is executed in an iterative manner so that the amount of task indicator data currently counted by the current node is accumulated by 1; After the identification is completed, the iterative accumulation is stopped to obtain the data volume of the task indicator data corresponding to all nodes; According to the data amount of the task indicator data corresponding to all the nodes respectively, the statistical results of the multi-level child nodes of the dynamic open-point line segment tree are obtained.

7. The data management and statistical method based on the dynamic point-opening line segment tree according to claim 6 is characterized in that: The step of obtaining the statistical results of the multi-level child nodes of the dynamic open-point line segment tree according to the data volume of the task indicator data corresponding to all nodes respectively comprises: Determine whether there is a node with a data volume of 0 task indicator data among all the nodes; If there is no node whose data amount of task indicator data is 0 among all the nodes, the data amount of task indicator data corresponding to all the nodes is used as the statistical result of the multi-level child nodes of the dynamic open-point line segment tree; If there are nodes with a data volume of 0 in task indicator data among all the nodes, then the nodes with a data volume of 0 in task indicator data are screened out as nodes to be deleted through a screening method, and all nodes to be deleted are deleted, and the data volume of the task indicator data corresponding to all the nodes that have not been deleted is used as the statistical result of the multi-level child nodes of the dynamic open-point segment tree.

8. A data management and statistics device based on a dynamic open-point segment tree, characterized in that: include: A task indicator data acquisition module is used to acquire the task indicator data of all historical users in the source database, wherein the task indicator data is numerical data; Maximum and minimum value screening modules are used to screen out the maximum and minimum values ​​from all task indicator data; A root node creation module, used to create and initialize the root node of the dynamic open-point line segment tree, and set the minimum value as the left endpoint value of the root node, and set the maximum value as the right endpoint value of the root node; A multi-level child node creation module, used to perform binary division layer by layer according to the left endpoint value and the right endpoint value, create multi-level child nodes of the root node and set the left and right endpoint values ​​of all nodes in the multi-level child nodes; A currently inserted data selection module is used to select task indicator data of different users in turn from all the task indicator data as currently inserted data; A node position information identification module, used to identify the node position information corresponding to the current insertion data at all levels of the dynamic open-point line segment tree according to the left and right endpoint values ​​of all nodes; The statistical result updating module is used to update the statistical results of the multi-level child nodes of the dynamic open-point segment tree according to the node position information corresponding to all inserted data at all levels of the dynamic open-point segment tree, and complete the management statistics of all task indicator data.

9. A computer device, characterized in that: It comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the data management statistics method based on the dynamic open-point segment tree as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the data management and statistics method based on a dynamic open-point segment tree according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Data storage and query method based on classification characteristics and balanced binary tree

    CN102521334A

  • Multi-class support vector machine classification method based on dynamic binary tree

    CN102722726A

  • Access method and device for data in tree structure

    CN106294545A

  • A method and device for dynamically adding a database by a strict balanced binary tree

    CN109815238A

  • Dynamic navigation tree automatic generation method and device, terminal and storage medium

    CN112396400A