Application configuration method, device, equipment, storage medium and program product
By using applications as nodes and using industry classification to build a binary tree, the problems of data duplication and low traversal efficiency in the construction of application collections are solved, and efficient application configuration and output are achieved.
Patent Information
- Application Number
- CN202111064284.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-10
- Publication Date
- 2024-08-20
- Estimated Expiration
- 2041-09-10
AI Technical Summary
When building an application collection in the existing technology, the application may belong to multiple industry categories at the same time, resulting in duplication of binary tree node data, wasting memory space, and increasing traversal performance overhead. Inserting nodes is inefficient, and the entire forest needs to be traversed when outputting configuration results. , the workload is huge and the time complexity is high.
Use the application as a node and the industry classification as the data item of the node to build a binary tree, generate an application configuration model through logical operators and operand objects, and perform post-order traversal to obtain the target application collection.
It reduces the number of binary tree nodes, avoids data duplication and memory waste, improves node insertion efficiency, reduces traversal overhead and output workload, and simplifies time complexity.
Smart Images

Figure CN113722016B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of data configuration, and in particular to an application configuration method, apparatus, device, storage medium, and program product. Background Art
[0002] With the development of data technology, products such as application markets often need to configure applications. Some related technologies use binary trees to solve the problem of building and outputting application sets, but the existing solutions have the following problems: the industry classification to which the application belongs is used as the root node of each binary tree. Since the application may belong to multiple industry classifications at the same time, when building a binary tree, a certain application node may be inserted into multiple root nodes at the same time, resulting in a large amount of node data duplication, wasting memory space, and increasing the performance overhead when traversing the binary tree; when inserting a node, it is necessary to traverse the entire forest, which will lead to low efficiency in inserting nodes; when outputting the final application configuration result set, it is necessary to traverse all leaf nodes in the entire forest, which is a huge workload and has a high time complexity. Therefore, it is necessary to improve the existing solution. Summary of the invention
[0003] Embodiments of the present disclosure provide an application configuration method, apparatus, device, storage medium, and program product.
[0004] In a first aspect, an application configuration method is provided in an embodiment of the present disclosure.
[0005] Specifically, the application configuration method includes:
[0006] Acquire application configuration requirement information, and determine a logical operator and an operand object corresponding to the logical operator based on the application configuration requirement information;
[0007] Generate an application configuration model based on the logical operator, the operand object corresponding to the logical operator and the initial application set, wherein the application configuration model is a binary tree data structure;
[0008] Post-order traversal is performed on the application configuration model to obtain a set of target applications that meet the application configuration requirement information.
[0009] In combination with the first aspect, in a first implementation manner of the first aspect of the embodiment of the present disclosure, the application configuration requirement information includes: industry classification requirement information to which the application belongs, and application version requirement information.
[0010] In combination with the first aspect and the first implementation method of the first aspect, in the second implementation method of the first aspect of the embodiment of the present disclosure, the logical operator includes a merge operator and a removal operator, and the operand objects corresponding to the logical operator include: industry classification information to which the application belongs, application identification information, and application version information.
[0011] In combination with the first aspect, the first implementation manner of the first aspect, and the second implementation manner of the first aspect, in a third implementation manner of the first aspect of the present disclosure, generating an application configuration model based on the logical operator, the operand object corresponding to the logical operator, and the initial application set includes:
[0012] generating an initial application configuration model based on the initial application set;
[0013] According to the logical operator and the operand object corresponding to the logical operator, corresponding nodes are added to the initial application configuration model based on preset rules to obtain an application configuration model.
[0014] In combination with the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, and the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect of the present disclosure, generating an initial application configuration model based on the initial application set includes:
[0015] Randomly selecting an application from the initial application set as the root node of the initial application configuration model;
[0016] The initial application set is randomly traversed, and according to the operand objects corresponding to the applications and based on the preset rules, the remaining applications are inserted as nodes into the initial application configuration model.
[0017] In combination with the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, and the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect of the present disclosure, the preset rule includes:
[0018] Starting from the root node of the initial application configuration model, accessing each node in the initial application configuration model in a recursive manner;
[0019] If the node to be inserted is a merge operator node, compare whether the node to be inserted has an industry classification intersection with the currently accessed node; if there is no intersection, insert the node to be inserted into the left subtree of the currently accessed node, and if there is already a node in the left subtree, continue to insert it to the next level of the left subtree until the node to be inserted becomes a leaf node; if there is an intersection, confirm whether the currently accessed node has a right subtree, and if not, insert it as if there is no intersection, otherwise insert the node to be inserted into the left subtree of the right subtree node until the node to be inserted becomes a leaf node;
[0020] If the node to be inserted is a merge operator node and has the same application identification information as the currently accessed node, compare the version information of the two nodes; if the version information of the node to be inserted is newer than that of the currently accessed node, first insert a NULL identification node into the right subtree of the currently accessed node, and then insert the node to be inserted as the left subtree under the NULL identification node; otherwise, continue to access the next node until all nodes are visited;
[0021] If the node to be inserted is a removal operator node, compare whether the node to be inserted and the currently visited node have an intersection in industry classification; if there is an intersection, and the currently visited node is a non-NULL identifier node, insert a NULL identifier node in the right subtree of the currently visited node; if there is an intersection, and the currently visited node is a NULL identifier node, continue to visit the left subtree of the currently visited node; if there is no intersection, continue to visit the next node until all nodes have been visited.
[0022] In a second aspect, an application configuration device is provided in an embodiment of the present disclosure.
[0023] Specifically, the application configuration device includes:
[0024] An acquisition module is configured to acquire application configuration requirement information, and determine a logical operator and an operand object corresponding to the logical operator based on the application configuration requirement information;
[0025] A generating module configured to generate an application configuration model based on the logical operator, the operand objects corresponding to the logical operator and the initial application set, wherein the application configuration model is a binary tree data structure;
[0026] The traversal module is configured to perform a post-order traversal on the application configuration model to obtain a set of target applications that meet the application configuration requirement information.
[0027] In combination with the second aspect, in a first implementation manner of the second aspect of the embodiment of the present disclosure, the application configuration requirement information includes: industry classification requirement information to which the application belongs, and application version requirement information.
[0028] In combination with the second aspect and the first implementation method of the second aspect, in the second implementation method of the second aspect of the embodiment of the present disclosure, the logical operator includes a merge operator and a removal operator, and the operand objects corresponding to the logical operator include: industry classification information to which the application belongs, application identification information, and application version information.
[0029] In combination with the second aspect, the first implementation of the second aspect, and the second implementation of the second aspect, in a third implementation of the second aspect of the present disclosure, the generating module is configured as follows:
[0030] generating an initial application configuration model based on the initial application set;
[0031] According to the logical operator and the operand object corresponding to the logical operator, corresponding nodes are added to the initial application configuration model based on preset rules to obtain an application configuration model.
[0032] In combination with the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, and the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect of the present disclosure, the part of generating the initial application configuration model based on the initial application set is configured as follows:
[0033] Randomly selecting an application from the initial application set as the root node of the initial application configuration model;
[0034] The initial application set is randomly traversed, and according to the operand objects corresponding to the applications and based on the preset rules, the remaining applications are inserted as nodes into the initial application configuration model.
[0035] In combination with the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, the third implementation manner of the second aspect, and the fourth implementation manner of the second aspect, in a fifth implementation manner of the second aspect of the present disclosure, the preset rule includes:
[0036] Starting from the root node of the initial application configuration model, accessing each node in the initial application configuration model in a recursive manner;
[0037] If the node to be inserted is a merge operator node, compare whether the node to be inserted has an industry classification intersection with the currently accessed node; if there is no intersection, insert the node to be inserted into the left subtree of the currently accessed node, and if there is already a node in the left subtree, continue to insert it to the next level of the left subtree until the node to be inserted becomes a leaf node; if there is an intersection, confirm whether the currently accessed node has a right subtree, and if not, insert it as if there is no intersection, otherwise insert the node to be inserted into the left subtree of the right subtree node until the node to be inserted becomes a leaf node;
[0038] If the node to be inserted is a merge operator node and has the same application identification information as the currently accessed node, compare the version information of the two nodes; if the version information of the node to be inserted is newer than that of the currently accessed node, first insert a NULL identification node into the right subtree of the currently accessed node, and then insert the node to be inserted as the left subtree under the NULL identification node; otherwise, continue to access the next node until all nodes are visited;
[0039] If the node to be inserted is a removal operator node, compare whether the node to be inserted and the currently visited node have an intersection in industry classification; if there is an intersection, and the currently visited node is a non-NULL identifier node, insert a NULL identifier node in the right subtree of the currently visited node; if there is an intersection, and the currently visited node is a NULL identifier node, continue to visit the left subtree of the currently visited node; if there is no intersection, continue to visit the next node until all nodes have been visited.
[0040] In a third aspect, an embodiment of the present disclosure provides an electronic device, including a memory and a processor, wherein the memory is used to store one or more computer instructions that support an application configuration device to execute the above-mentioned application configuration method, and the processor is configured to execute the computer instructions stored in the memory. The application configuration device may also include a communication interface for the application configuration device to communicate with other devices or a communication network.
[0041] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium for storing computer instructions used by an application configuration device, which includes computer instructions involved in the application configuration device for executing the above-mentioned application configuration method.
[0042] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned application configuration method when executed by a processor.
[0043] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0044] The above technical solution uses the application as a node and the industry classification as the data item of the node to establish a binary tree. This technical solution can not only greatly reduce the number of nodes in the binary tree, avoid duplication of node data and waste of memory space, and reduce the performance overhead when traversing the binary tree, but also only need to traverse a binary tree when inserting a node, thereby greatly improving the efficiency of node insertion. At the same time, when outputting the final application configuration result set, only one post-order traversal of the binary tree is required, thereby greatly reducing the operation workload and time complexity.
[0045] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Other features, purposes and advantages of the embodiments of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:
[0047] Figure 1 A flowchart showing an application configuration method according to an embodiment of the present disclosure is shown;
[0048] Figure 2A-2F An application scenario diagram showing an application configuration method according to an embodiment of the present disclosure;
[0049] Figure 3 A structural block diagram of an application configuration device according to an embodiment of the present disclosure is shown;
[0050] Figure 4 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;
[0051] Figure 5 It is a structural diagram of a computer system suitable for implementing an application configuration method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0052] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0053] In the embodiments of the present disclosure, it should be understood that terms such as "including" or "having" are intended to indicate the existence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in this specification, and are not intended to exclude the possibility of one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof existing or being added.
[0054] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0055] The technical solution provided by the embodiment of the present disclosure uses the application as a node and the industry classification as the data item of the node to establish a binary tree. This technical solution can not only greatly reduce the number of nodes in the binary tree, avoid duplication of node data and waste of memory space, and reduce the performance overhead when traversing the binary tree, but also only need to traverse a binary tree when inserting a node, thereby greatly improving the efficiency of node insertion. At the same time, when outputting the final application configuration result set, only one post-order traversal of the binary tree is required, thereby greatly reducing the operation workload and time complexity.
[0056] Figure 1 A flowchart of an application configuration method according to an embodiment of the present disclosure is shown. Figure 1 As shown, the application configuration method includes the following steps S101-S103:
[0057] In step S101, application configuration requirement information is obtained, and a logical operator and an operand object corresponding to the logical operator are determined based on the application configuration requirement information;
[0058] In step S102, an application configuration model is generated based on the logical operator, the operand objects corresponding to the logical operator and the initial application set, wherein the application configuration model is a binary tree data structure;
[0059] In step S103, the application configuration model is traversed in post-order to obtain a set of target applications that meet the application configuration requirement information.
[0060] As mentioned above, with the development of data technology, products such as application markets often need to configure applications. Some related technologies use binary trees to solve the problem of building and outputting application sets, but the existing solutions have the following problems: the industry classification to which the application belongs is used as the root node of each binary tree. Since the application may belong to multiple industry classifications at the same time, when building a binary tree, a certain application node may be inserted into multiple root nodes at the same time, resulting in a large amount of node data duplication, wasting memory space, and increasing the performance overhead when traversing the binary tree; when inserting a node, it is necessary to traverse the entire forest, which will lead to low efficiency in inserting nodes; when outputting the final application configuration result set, it is necessary to traverse all leaf nodes in the entire forest, which is a huge workload and has a high time complexity. Therefore, it is necessary to improve the existing solution.
[0061] Considering the above problems, in this implementation, an application configuration method is proposed, which uses the application as a node and the industry classification as the data item of the node to establish a binary tree. This technical solution can not only greatly reduce the number of nodes in the binary tree, avoid duplication of node data and waste of memory space, and reduce the performance overhead when traversing the binary tree, but also only need to traverse a binary tree when inserting a node, thereby greatly improving the efficiency of node insertion. At the same time, when outputting the final application configuration result set, only one post-order traversal of the binary tree is required, thereby greatly reducing the operation workload and time complexity.
[0062] In one embodiment of the present disclosure, the application configuration method may be applicable to computers, electronic devices, servers, server clusters, etc. that perform application configuration.
[0063] In one embodiment of the present disclosure, the application configuration requirement information refers to information that requires or restricts the configuration of the application, that is, the ultimately obtained application must meet the requirements of the application configuration requirement information.
[0064] In one embodiment of the present disclosure, the application configuration requirement information may include one or more of the following information: industry classification requirement information of the application, and application version requirement information. Among them, the industry classification requirement information of the application refers to information that restricts the industry classification of the application, and the industry classification may be, for example, O2O (Online To Offline), cashier / hotel / catering, payment, cashier / catering, etc. The industry classification requirement information of the application may be expressed as "the industry classification of the application is cashier / catering" and the like; the application version requirement information refers to information that restricts the version information of the application, and the application version requirement information may be expressed as "the version of the application needs to be 1.0.1" and the like.
[0065] In one embodiment of the present disclosure, the logical operator is used to represent the logical operation relationship between operand objects. In this embodiment, the logical operator may include a merge operator and and a remove operator negate. The merge operator and is characterized as an addition operation, that is, the operand object corresponding to the operator is added to the current binary tree, and the remove operator negate is characterized as a subtraction operation, that is, the node in the binary tree that is the same as the operand object corresponding to the operator is logically removed.
[0066] In one embodiment of the present disclosure, the operand object refers to an object corresponding to the logical operator and serving as the operation object of the logical operator. The operand object may include one or more of the following objects: the industry classification to which the application belongs, the application identifier, and the application version. The industry classification to which the application belongs is used to describe the industry classification to which the application belongs, such as "the industry classification of application 1 is cashier / catering" and so on; the application identifier refers to information for distinguishing the application, such as application ID and so on; the application version is used to describe the version of the application, such as "the version number of application 1 is 1.0.1" and so on.
[0067] In one embodiment of the present disclosure, the initial application set refers to a pre-set set of applications common to the configuration templates used in the prior art, which can serve as the data basis for generating a target application that ultimately meets the requirements of the application configuration requirement information. That is, subsequently, applications that meet the requirements of the application configuration requirement information can be selected based on the applications in the initial application set.
[0068] In one embodiment of the present disclosure, the application configuration model refers to a model generated based on the logical operator, the operand object corresponding to the logical operator and the initial application set, which is related to the application configuration requirement information, can reflect the application configuration requirement information, and can complete the configuration of the application that meets the requirements of the application configuration requirement information, that is, obtains the application that meets the requirements of the application configuration requirement information. Wherein, the application configuration model is a binary tree data structure.
[0069] Among them, the post-order traversal of a binary tree belongs to the knowledge that those skilled in the art should master. For example, the rule of the post-order traversal can be to follow the traversal order of left-right-root, that is, starting from the root node of the binary tree, first visit the left subtree, then visit the right subtree, and finally visit the root node of the current subtree. The specific process of the post-order traversal of a binary tree will not be repeated here.
[0070] In the above implementation, application configuration requirement information serving as a condition for configuring a target application is first obtained, and then the required logical operators and operand objects corresponding to the logical operators are determined based on the application configuration requirement information; then an application configuration model having a binary tree data structure is generated based on the logical operators, the operand objects corresponding to the logical operators, and a preset initial application set, that is, the application configuration model is obtained by means of the establishment of a binary tree; finally, with the help of a post-order traversal of the binary tree, the target applications that meet the application configuration requirement information are obtained to form a target application set.
[0071] In one embodiment of the present disclosure, the step S102, i.e., the step of generating an application configuration model based on the logical operator, the operand object corresponding to the logical operator, and the initial application set, may include the following steps:
[0072] generating an initial application configuration model based on the initial application set;
[0073] According to the logical operator and the operand object corresponding to the logical operator, corresponding nodes are added to the initial application configuration model based on preset rules to obtain an application configuration model.
[0074] In this embodiment, when generating an application configuration model based on the logical operator, the operand objects corresponding to the logical operator, and the initial application set, an initial application configuration model is first generated based on the initial application set; then, according to the logical operator and the operand objects corresponding to the logical operator, corresponding nodes are added to the initial application configuration model based on preset rules, thereby obtaining an application configuration model.
[0075] The above logical operators and operand objects corresponding to the logical operators can be collectively referred to as data items of binary tree nodes, and corresponding nodes can be subsequently added to the initial application configuration model or the current application configuration model according to the data items of the binary tree nodes to obtain the application configuration model. The preset rules refer to the pre-set rules that meet the requirements of the binary tree data structure and are used to insert new binary tree nodes into the current binary tree.
[0076] In one embodiment of the present disclosure, the step of generating an initial application configuration model based on the initial application set may include the following steps:
[0077] Randomly selecting an application from the initial application set as the root node of the initial application configuration model;
[0078] The initial application set is randomly traversed, and according to the operand objects corresponding to the applications and based on the preset rules, the remaining applications are inserted as nodes into the initial application configuration model.
[0079] In this embodiment, when generating an initial application configuration model based on the initial application set, one application can be randomly selected from the initial application set as the root node of the initial application configuration model; then the initial application set is traversed in a random manner, and the remaining applications are inserted into the initial application configuration model as nodes according to the operand objects corresponding to the applications and based on the preset rules, wherein the operand objects corresponding to the applications may include one or more of the following objects: industry classification to which the application belongs, application identification, and application version.
[0080] As mentioned above, the preset rule refers to a pre-set rule that meets the requirements of the binary tree data structure and is used to insert a new binary tree node into the current binary tree. In one embodiment of the present disclosure, the preset rule can be expressed as:
[0081] Starting from the root node of the initial application configuration model, accessing each node in the initial application configuration model in a recursive manner;
[0082] If the node to be inserted is a merge operator node, compare whether the node to be inserted has an intersection in industry classification with the currently accessed node; if there is no intersection, insert the node to be inserted into the left subtree of the currently accessed node, and if there is already a node in the left subtree, continue to insert it to the next level of the left subtree until the node to be inserted becomes a leaf node; if there is an intersection, confirm whether the currently accessed node has a right subtree, and if not, insert it according to the above situation of no intersection, otherwise insert the node to be inserted into the left subtree of the right subtree node until the node to be inserted becomes a leaf node;
[0083] If the node to be inserted is a merge operator node and has the same application identification information as the currently accessed node, compare the version information of the two nodes; if the version information of the node to be inserted is newer than that of the currently accessed node, first insert a NULL identification node into the right subtree of the currently accessed node, and then insert the node to be inserted as the left subtree under the NULL identification node; otherwise, continue to access the next node until all nodes are visited;
[0084] If the node to be inserted is a removal operator node, compare whether the node to be inserted and the currently visited node have an intersection in industry classification; if there is an intersection and the currently visited node is a non-NULL identifier node, insert a NULL identifier node in the right subtree of the currently visited node; if there is an intersection and the currently visited node is a NULL identifier node, continue to visit the left subtree of the currently visited node; if there is no intersection, continue to visit the next node until all nodes are visited.
[0085] Figure 2A-2FAn application scenario diagram of the application configuration method according to an embodiment of the present disclosure is shown. In this application scenario, it is assumed that the initial application set includes three applications: application 1, the corresponding operand object is: application identification information is 1, the industry classification is O2O, and the version number is 1.0.0; application 2, the corresponding operand object is: application identification information is 2, the industry classification is cashier / hotel / catering, and the version number is 1.0.0; application 3, the corresponding operand object is: application identification information is 3, the industry classification is payment, and the version number is 1.0.0. An application is randomly selected from the initial application set: application 1 is used as the initial application configuration model, that is, the root node of the initial binary tree, and then the initial application set is randomly traversed, and the remaining applications are inserted into the initial binary tree as nodes according to the operand objects of the applications and preset rules, such as Figure 2A shown.
[0086] Assuming that the received application configuration requirement information is "block applications with industry classification of O2O, add APP4, APP5 and APP8", based on the above application configuration requirement information, it can be determined that the logical operators and their corresponding operand objects include: Negate operator, whose operand object is: industry classification (O2O); and And operator, whose operand objects are: APP8 (industry classification: cashier / catering), APP4 (industry classification: O2O), APP5 (industry classification: O2O). For the Negate operator, according to the above preset rules, it is necessary to first compare whether the node to be inserted and the currently accessed node have an intersection in industry classification. Figure 2A The industry classification of the root node of the binary tree shown is O2O, and the industry classification of the Negate operator is also O2O, that is, there is an intersection with the root node, and the root node is a non-NULL identification node. Therefore, it is necessary to insert a NULL identification node in the right subtree of the root node, such as Figure 2B As shown. For the And operator, according to the above preset rules, it is also necessary to first compare whether the node to be inserted and the currently accessed node have an intersection in industry classification. Figure 2BThe industry classification of the root node of the binary tree shown is O2O. The industry classification of one of the operand objects APP8 of the And operator is cashier / catering, and there is no industry classification intersection with the root node. The APP8 node should be inserted into the left subtree of the root node. However, since the left subtree of the root node already has a node APP2, the industry classification of the node APP2 is cashier / hotel / catering, and there is an industry classification intersection with the APP8 node, but the node APP2 does not have a right subtree, then according to the situation that there is no intersection, continue to go down to the left subtree node APP3 of the node APP2. The industry classification of the node APP3 is payment, and there is no industry classification intersection with the APP8 node, and the node APP3 does not have a left subtree node, then the APP8 node can be inserted into the left subtree of the node APP3; the other operand object A of the And operator The industry classification of PP4 is O2O, and there is an industry classification intersection with the root node, and the root node has a NULL identification node in the right subtree, so the APP4 node needs to be inserted into the left subtree of the NULL identification node; the industry classification of the last operand object APP5 of the And operator is also O2O, similar to the insertion of the APP4 node. Since the APP5 node and the root node have an industry classification intersection, and the root node has a NULL identification node in the right subtree, the APP5 node needs to be inserted into the left subtree of the NULL identification node, but since the left subtree of the NULL identification node already has the node APP4, and since the APP4 node and the APP5 node have an industry classification intersection, and the APP4 node does not have a right subtree, according to the situation where there is no intersection, the APP5 node is inserted into the left subtree of the node APP4, such as Figure 2C shown.
[0087] Assume that we receive application configuration requirement information "Block applications with industry classification as cashier, add APP6", based on the above application configuration requirement information, we can determine that the logical operators and their corresponding operand objects include: Negate operator, whose operand object is: industry classification (cashier); and And operator, whose operand object is: APP6 (industry classification: cashier). For the Negate operator, according to the above preset rules, we need to first compare whether the node to be inserted and the currently accessed node have an intersection in industry classification. Figure 2C The industry classification of the root node of the binary tree shown is O2O, and the industry classification of the Negate operator is cashier, that is, there is no intersection with the root node. Continue to visit the next node. The left subtree node of the root node is APP2. The industry classification of APP2 is cashier / hotel / catering, which has an intersection with the Negate operator, and APP2 is a non-NULL identification node. Insert a NULL identification node in the right subtree of the APP2 node. And so on, it is also necessary to insert a NULL identification node in the right subtree of the APP8 node whose industry classification is cashier / catering. Figure 2DAs shown. For the And operator, according to the above preset rules, it is also necessary to first compare whether the node to be inserted and the currently accessed node have an intersection in industry classification. Figure 2D The industry classification of the root node of the binary tree shown is O2O, and the industry classification of the And operator is cashier, which does not have an industry classification intersection with the root node. The APP6 node should be inserted into the left subtree of the root node. However, since the left subtree of the root node already has a node APP2, the industry classification of the node APP2 is cashier / hotel / catering, which has an industry classification intersection with the node APP6, and the node APP2 has a NULL identification node in the right subtree, the APP6 node can be inserted into the left subtree of the NULL identification node, such as Figure 2E shown.
[0088] Assume that we receive application configuration requirement information "Add APP6 with version number 1.0.1", based on the above application configuration requirement information, we can determine that the logical operators and their corresponding operand objects include: And operator, whose operand object is: APP6 (industry classification: cashier, version number: 1.0.1). For this And operator, according to the above preset rules, we need to first compare whether the industry classification of the node to be inserted and the currently accessed node intersects. Figure 2E The industry classification of the root node of the binary tree shown is O2O, and the industry classification of the And operator is cashier, which does not have an industry classification intersection with the root node. The new version APP6 node should be inserted into the left subtree of the root node. However, since the left subtree of the root node already has a node APP2, and the industry classification of node APP2 is cashier / hotel / catering, which has an industry classification intersection with the new version APP6 node, and the node APP2 has a NULL identification node in the right subtree, the new version APP6 node can be inserted into the left subtree of the NULL identification node. However, the left subtree of the NULL identification node already has an APP6 node with a different version, and the version information of the APP6 node is lower than that of the new version APP6 node. In this case, a NULL identification node is first inserted into the right subtree of the APP6 node, and then the new version APP6 node is inserted as the left subtree under the NULL identification node, as shown in the following example. Figure 2F As shown, this generates the application configuration model.
[0089] Then, the application configuration model is post-order traversed to obtain a target application set that meets the application configuration requirement information. The post-order traversal rule may be to follow the left-right-root traversal order, that is, starting from the root node of the binary tree, first visit the left subtree, then visit the right subtree, and finally visit the root node of the current subtree.
[0090] Specifically:
[0091] First, for Figure 2FThe binary tree shown starts from the root node, that is Figure 2F APP1 node in the code first visits the left subtree of APP1 node and reaches APP2 node; since APP2 node also has a left subtree, it continues to visit the left subtree of APP2 node and reaches APP3 node; since APP3 node also has a left subtree, it continues to visit the left subtree of APP3 node and reaches APP8 node; since APP8 node has no left subtree, it visits the right subtree of APP8 node and reaches the NULL identification node. The NULL identification node has no left or right subtrees, and according to the rules, the NULL identification node does not need to be output to the final result;
[0092] According to the traversal order principle of left-right-root, the root node of the current subtree, that is, the APP8 node, should be visited now; since the right child of the APP8 node is a NULL flag node, according to the rule, the APP8 node does not need to be output to the final result;
[0093] Now we are back to the APP3 node. We need to access the right subtree of the APP3 node. Since the APP3 node has no right subtree, we directly access the root node APP3 of the subtree. Since the right child of the APP3 node is not a NULL flag node, the APP3 node needs to be output to the final result, that is, the first output item APP3 is obtained.
[0094] Next, we return to the APP2 node and need to visit its right subtree. Its right subtree is a NULL-marked node. Since it has a left subtree, we continue to visit the left subtree and reach the APP6 node. Since the APP6 node has no left subtree, we visit the right subtree of the APP6 node and reach another NULL-marked node. This node has a left subtree, so we continue to visit the left subtree, which is the new version APP6 node. The new version APP6 node has no left or right subtrees, so we directly visit the node, and there is no right child with a NULL-marked node. The new version APP6 node is output as an output item, and the second output item APP6 (1.0.1) is obtained.
[0095] At this time, we return to the NULL flag node, the parent node of APP6 (1.0.1). This node has no right subtree, and the root node of the current subtree is a NULL flag node, so there is no need to output;
[0096] At this point, we return to the APP6 node. Since the right child of the APP6 node is a NULL flag node, there is no need to output it.
[0097] At this time, we return to the NULL flag node, the parent node of the APP6 node. This node also has no right subtree, and the root node of the current subtree is a NULL flag node, so there is no need to output it.
[0098] Now we are back to the APP2 node. According to the post-order traversal rule, we have visited both the left and right subtrees, so we need to visit the root node of the current subtree, which is the APP2 node. Since its right child is a NULL flag node, it cannot be output as an output item either.
[0099] Now we return to the APP1 node. The left subtree of the APP1 node has been completely traversed. Next, we start to traverse the right subtree of the APP1 node, which is the NULL mark node. The NULL mark node has a left subtree, so we continue to visit the left subtree APP4 node. The APP4 node also has a left subtree, so we continue to visit the APP5 node. The APP5 node has no left or right subtrees, and the right child of the node is not a NULL mark node, so we need to output the node, that is, we get the third output item APP5.
[0100] Now we return to the APP4 node. Since the APP4 node does not have a right subtree and the right child of the node is not a NULL flag node, we need to output the node, that is, we get the fourth output item APP4.
[0101] Now we return to the APP1 node. Since the right child of the APP1 node is a NULL flag node, APP1 does not need to be output as an output item.
[0102] Since the APP1 node is the root node of the entire binary tree, the post-order traversal of the binary tree ends here. The output sequence obtained through the above post-order traversal is: APP3, APP6 (1.0.1), APP5, APP4, which is the target application set that meets the application configuration requirement information.
[0103] The following are embodiments of the apparatus of the present disclosure, which can be used to execute embodiments of the method of the present disclosure.
[0104] Figure 3 FIG. 1 is a block diagram showing a structure of an application configuration device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 3 As shown, the application configuration device includes:
[0105] The acquisition module 301 is configured to acquire application configuration requirement information, and determine a logical operator and an operand object corresponding to the logical operator based on the application configuration requirement information;
[0106] A generating module 302 is configured to generate an application configuration model based on the logical operator, the operand object corresponding to the logical operator and the initial application set, wherein the application configuration model is a binary tree data structure;
[0107] The traversal module 303 is configured to perform a post-order traversal on the application configuration model to obtain a set of target applications that meet the application configuration requirement information.
[0108] As mentioned above, with the development of data technology, products such as application markets often need to configure applications. Some related technologies use binary trees to solve the problem of building and outputting application sets, but the existing solutions have the following problems: the industry classification to which the application belongs is used as the root node of each binary tree. Since the application may belong to multiple industry classifications at the same time, when building a binary tree, a certain application node may be inserted into multiple root nodes at the same time, resulting in a large amount of node data duplication, wasting memory space, and increasing the performance overhead when traversing the binary tree; when inserting a node, it is necessary to traverse the entire forest, which will lead to low efficiency in inserting nodes; when outputting the final application configuration result set, it is necessary to traverse all leaf nodes in the entire forest, which is a huge workload and has a high time complexity. Therefore, it is necessary to improve the existing solution.
[0109] Considering the above problems, in this embodiment, an application configuration device is proposed, which uses the application as a node and the industry classification as the data item of the node to establish a binary tree. This technical solution can not only greatly reduce the number of nodes in the binary tree, avoid duplication of node data and waste of memory space, and reduce the performance overhead when traversing the binary tree, but also only need to traverse a binary tree when inserting a node, thereby greatly improving the efficiency of node insertion. At the same time, when outputting the final application configuration result set, only one post-order traversal of the binary tree is required, thereby greatly reducing the operation workload and time complexity.
[0110] In one embodiment of the present disclosure, the application configuration device may be implemented as a computer, electronic device, server, server cluster, etc. that performs application configuration.
[0111] In one embodiment of the present disclosure, the application configuration requirement information refers to information that requires or restricts the configuration of the application, that is, the ultimately obtained application must meet the requirements of the application configuration requirement information.
[0112] In one embodiment of the present disclosure, the application configuration requirement information may include one or more of the following information: industry classification requirement information of the application, and application version requirement information. Among them, the industry classification requirement information of the application refers to information that restricts the industry classification of the application, and the industry classification may be, for example, O2O (Online To Offline), cashier / hotel / catering, payment, cashier / catering, etc. The industry classification requirement information of the application may be expressed as "the industry classification of the application is cashier / catering" and the like; the application version requirement information refers to information that restricts the version information of the application, and the application version requirement information may be expressed as "the version of the application needs to be 1.0.1" and the like.
[0113] In one embodiment of the present disclosure, the logical operator is used to represent the logical operation relationship between operand objects. In this embodiment, the logical operator may include a merge operator and and a remove operator negate. The merge operator and is characterized as an addition operation, that is, the operand object corresponding to the operator is added to the current binary tree, and the remove operator negate is characterized as a subtraction operation, that is, the node in the binary tree that is the same as the operand object corresponding to the operator is logically removed.
[0114] In one embodiment of the present disclosure, the operand object refers to an object corresponding to the logical operator and serving as the operation object of the logical operator. The operand object may include one or more of the following objects: the industry classification to which the application belongs, the application identifier, and the application version. The industry classification to which the application belongs is used to describe the industry classification to which the application belongs, such as "the industry classification of application 1 is cashier / catering" and so on; the application identifier refers to information for distinguishing the application, such as application ID and so on; the application version is used to describe the version of the application, such as "the version number of application 1 is 1.0.1" and so on.
[0115] In one embodiment of the present disclosure, the initial application set refers to a pre-set set of applications common to the configuration templates used in the prior art, which can serve as the data basis for generating a target application that ultimately meets the requirements of the application configuration requirement information. That is, subsequently, applications that meet the requirements of the application configuration requirement information can be selected based on the applications in the initial application set.
[0116] In one embodiment of the present disclosure, the application configuration model refers to a model generated based on the logical operator, the operand object corresponding to the logical operator and the initial application set, which is related to the application configuration requirement information, can reflect the application configuration requirement information, and can complete the configuration of the application that meets the requirements of the application configuration requirement information, that is, obtains the application that meets the requirements of the application configuration requirement information. Wherein, the application configuration model is a binary tree data structure.
[0117] Among them, the post-order traversal of a binary tree belongs to the knowledge that those skilled in the art should master. For example, the rule of the post-order traversal can be to follow the traversal order of left-right-root, that is, starting from the root node of the binary tree, first visit the left subtree, then visit the right subtree, and finally visit the root node of the current subtree. The specific process of the post-order traversal of a binary tree will not be repeated here.
[0118] In the above implementation, application configuration requirement information serving as a condition for configuring a target application is first obtained, and then the required logical operators and operand objects corresponding to the logical operators are determined based on the application configuration requirement information; then an application configuration model having a binary tree data structure is generated based on the logical operators, the operand objects corresponding to the logical operators, and a preset initial application set, that is, the application configuration model is obtained by means of the establishment of a binary tree; finally, with the help of a post-order traversal of the binary tree, the target applications that meet the application configuration requirement information are obtained to form a target application set.
[0119] In one embodiment of the present disclosure, the generating module 302 may be configured as follows:
[0120] generating an initial application configuration model based on the initial application set;
[0121] According to the logical operator and the operand object corresponding to the logical operator, corresponding nodes are added to the initial application configuration model based on preset rules to obtain an application configuration model.
[0122] In this embodiment, when generating an application configuration model based on the logical operator, the operand objects corresponding to the logical operator, and the initial application set, an initial application configuration model is first generated based on the initial application set; then, according to the logical operator and the operand objects corresponding to the logical operator, corresponding nodes are added to the initial application configuration model based on preset rules, thereby obtaining an application configuration model.
[0123] The above logical operators and operand objects corresponding to the logical operators can be collectively referred to as data items of binary tree nodes, and corresponding nodes can be subsequently added to the initial application configuration model or the current application configuration model according to the data items of the binary tree nodes to obtain the application configuration model. The preset rules refer to the pre-set rules that meet the requirements of the binary tree data structure and are used to insert new binary tree nodes into the current binary tree.
[0124] In one embodiment of the present disclosure, the part of generating the initial application configuration model based on the initial application set may be configured as follows:
[0125] Randomly selecting an application from the initial application set as the root node of the initial application configuration model;
[0126] The initial application set is randomly traversed, and according to the operand objects corresponding to the applications and based on the preset rules, the remaining applications are inserted as nodes into the initial application configuration model.
[0127] In this embodiment, when generating an initial application configuration model based on the initial application set, one application can be randomly selected from the initial application set as the root node of the initial application configuration model; then the initial application set is traversed in a random manner, and the remaining applications are inserted into the initial application configuration model as nodes according to the operand objects corresponding to the applications and based on the preset rules, wherein the operand objects corresponding to the applications may include one or more of the following objects: industry classification to which the application belongs, application identification, and application version.
[0128] As mentioned above, the preset rule refers to a pre-set rule that meets the requirements of the binary tree data structure and is used to insert a new binary tree node into the current binary tree. In one embodiment of the present disclosure, the preset rule can be expressed as:
[0129] Starting from the root node of the initial application configuration model, accessing each node in the initial application configuration model in a recursive manner;
[0130] If the node to be inserted is a merge operator node, compare whether the node to be inserted has an intersection in industry classification with the currently accessed node; if there is no intersection, insert the node to be inserted into the left subtree of the currently accessed node, and if there is already a node in the left subtree, continue to insert it to the next level of the left subtree until the node to be inserted becomes a leaf node; if there is an intersection, confirm whether the currently accessed node has a right subtree, and if not, insert it according to the above situation of no intersection, otherwise insert the node to be inserted into the left subtree of the right subtree node until the node to be inserted becomes a leaf node;
[0131] If the node to be inserted is a merge operator node and has the same application identification information as the currently accessed node, compare the version information of the two nodes; if the version information of the node to be inserted is newer than that of the currently accessed node, first insert a NULL identification node into the right subtree of the currently accessed node, and then insert the node to be inserted as the left subtree under the NULL identification node; otherwise, continue to access the next node until all nodes are visited;
[0132] If the node to be inserted is a removal operator node, compare whether the node to be inserted and the currently visited node have an intersection in industry classification; if there is an intersection and the currently visited node is a non-NULL identifier node, insert a NULL identifier node in the right subtree of the currently visited node; if there is an intersection and the currently visited node is a NULL identifier node, continue to visit the left subtree of the currently visited node; if there is no intersection, continue to visit the next node until all nodes are visited.
[0133] The present disclosure also discloses an electronic device, Figure 4 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. Figure 4 As shown, the electronic device 400 includes a memory 401 and a processor 402; wherein,
[0134] The memory 401 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 402 to implement the above method steps.
[0135] Figure 5 It is a structural diagram of a computer system suitable for implementing an application configuration method according to an embodiment of the present disclosure.
[0136] like Figure 5As shown, the computer system 500 includes a processing unit 501, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The processing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0137] The following components are connected to the I / O interface 505: an input part 506 including a keyboard, a mouse, etc.; an output part 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part 508 including a hard disk, etc.; and a communication part 509 including a network interface card such as a LAN card, a modem, etc. The communication part 509 performs communication processing via a network such as the Internet. The drive 510 is also connected to the I / O interface 505 as needed. Removable media 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive 510 as needed, so that the computer program read therefrom is installed into the storage part 508 as needed. Among them, the processing unit 501 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.
[0138] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a readable medium, and the computer program includes a program code for executing the unimpeded information determination method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 509, and / or installed from a removable medium 511.
[0139] The embodiment of the present disclosure also discloses a computer program product, which includes a computer program / instruction, and when the computer program / instruction is executed by a processor, any of the above method steps is implemented.
[0140] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the road map or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a different order from the order marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0141] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The units or modules described may also be arranged in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.
[0142] As another aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, which may be a computer-readable storage medium included in the device described in the above-mentioned embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the methods described in the embodiments of the present disclosure.
[0143] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.
Claims
1. An application configuration method, include: Acquire application configuration requirement information, and determine a logical operator and an operand object corresponding to the logical operator based on the application configuration requirement information; Generate an application configuration model based on the logical operator, the operand object corresponding to the logical operator and the initial application set, wherein the application configuration model is a binary tree data structure, the logical operator includes a merge operator and a remove operator, and the operand object corresponding to the logical operator includes: industry classification information to which the application belongs, application identification information, and application version information; Performing a post-order traversal on the application configuration model to obtain a target application set that meets the application configuration requirement information; The step of generating the application configuration model based on the logical operator, the operand objects corresponding to the logical operator and the initial application set includes: generating an initial application configuration model based on the initial application set; According to the logical operator and the operand object corresponding to the logical operator, corresponding nodes are added to the initial application configuration model based on preset rules to obtain an application configuration model.
2. The method according to claim 1, in, The application configuration requirement information includes: application industry classification requirement information and application version requirement information.
3. The method according to claim 1, wherein the initial application configuration model is generated based on the initial application set. include: Randomly selecting an application from the initial application set as the root node of the initial application configuration model; The initial application set is randomly traversed, and according to the operand objects corresponding to the applications and based on the preset rules, the remaining applications are inserted as nodes into the initial application configuration model.
4. The method according to any one of claims 1 to 3, wherein the preset rule include: Starting from the root node of the initial application configuration model, accessing each node in the initial application configuration model in a recursive manner; If the node to be inserted is a merge operator node, compare whether the node to be inserted and the currently accessed node have an intersection in industry classification; If there is no intersection, the node to be inserted is inserted into the left subtree of the currently visited node. If there is already a node in the left subtree, the node is inserted to the next level of the left subtree until the node to be inserted becomes a leaf node. If there is an intersection, it is confirmed whether the currently visited node has a right subtree. If not, the node is inserted as if there is no intersection. Otherwise, the node to be inserted is inserted into the left subtree of the right subtree node until the node to be inserted becomes a leaf node. If the node to be inserted is a merge operator node and has the same application identification information as the currently accessed node, compare the version information of the two nodes; if the version information of the node to be inserted is newer than that of the currently accessed node, first insert a NULL identification node into the right subtree of the currently accessed node, and then insert the node to be inserted as the left subtree under the NULL identification node; otherwise, continue to access the next node until all nodes are visited; If the node to be inserted is a removal operator node, compare whether the node to be inserted and the currently accessed node have an intersection in industry classification; If there is an intersection, and the currently visited node is a non-NULL identification node, insert a NULL identification node into the right subtree of the currently visited node. If there is an intersection, and the currently visited node is a NULL identification node, continue to visit the left subtree of the currently visited node. If there is no intersection, continue to visit the next node until all nodes are visited.
5. An application configuration device, include: An acquisition module is configured to acquire application configuration requirement information, and determine a logical operator and an operand object corresponding to the logical operator based on the application configuration requirement information; A generation module is configured to generate an application configuration model based on the logical operator, the operand object corresponding to the logical operator and the initial application set, wherein the application configuration model is a binary tree data structure, the logical operator includes a merge operator and a remove operator, and the operand object corresponding to the logical operator includes: industry classification information to which the application belongs, application identification information, and application version information; A traversal module is configured to perform a post-order traversal on the application configuration model to obtain a target application set that meets the application configuration requirement information; Wherein, the generating module is configured as follows: generating an initial application configuration model based on the initial application set; According to the logical operator and the operand object corresponding to the logical operator, corresponding nodes are added to the initial application configuration model based on preset rules to obtain an application configuration model.
6. The device according to claim 5, in, The application configuration requirement information includes: application industry classification requirement information and application version requirement information.
7. The apparatus according to claim 5, wherein the part of generating the initial application configuration model based on the initial application set is configured to: Randomly selecting an application from the initial application set as the root node of the initial application configuration model; The initial application set is randomly traversed, and according to the operand objects corresponding to the applications and based on the preset rules, the remaining applications are inserted as nodes into the initial application configuration model.
8. The device according to any one of claims 5 to 7, wherein the preset rule include: Starting from the root node of the initial application configuration model, accessing each node in the initial application configuration model in a recursive manner; If the node to be inserted is a merge operator node, compare whether the node to be inserted and the currently accessed node have an intersection in industry classification; If there is no intersection, the node to be inserted is inserted into the left subtree of the currently visited node. If there is already a node in the left subtree, the node is inserted to the next level of the left subtree until the node to be inserted becomes a leaf node. If there is an intersection, it is confirmed whether the currently visited node has a right subtree. If not, the node is inserted as if there is no intersection. Otherwise, the node to be inserted is inserted into the left subtree of the right subtree node until the node to be inserted becomes a leaf node. If the node to be inserted is a merge operator node and has the same application identification information as the currently accessed node, compare the version information of the two nodes; if the version information of the node to be inserted is newer than that of the currently accessed node, first insert a NULL identification node into the right subtree of the currently accessed node, and then insert the node to be inserted as the left subtree under the NULL identification node; otherwise, continue to access the next node until all nodes are visited; If the node to be inserted is a removal operator node, compare whether the node to be inserted and the currently accessed node have an intersection in industry classification; If there is an intersection, and the currently visited node is a non-NULL identification node, insert a NULL identification node into the right subtree of the currently visited node. If there is an intersection, and the currently visited node is a NULL identification node, continue to visit the left subtree of the currently visited node. If there is no intersection, continue to visit the next node until all nodes are visited.
9. An electronic device comprising a memory and a processor; in, The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the steps of the method according to any one of claims 1 to 4.
10. A computer-readable storage medium having computer instructions stored thereon, in, When the computer instruction is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
11. A computer program product, comprising a computer program / instruction, which implements the steps of the method according to any one of claims 1 to 4 when executed by a processor.
