Vehicle configuration data comparison method, device and electronic equipment
By splitting and scoring vehicle configuration data into arrays and matching elements, the method addresses inefficiencies in existing comparison methods, enhancing development efficiency through reduced calculations and faster identification of changes.
Patent Information
- Application Number
- CN202210631735.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-06
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-06-06
AI Technical Summary
Existing vehicle configuration data comparison methods require traversing all possibilities, leading to high calculation amounts and low efficiency, which affects the efficiency of vehicle development.
A method involving splitting vehicle configuration data into arrays, establishing scoring systems, and matching array elements based on pre-designed scoring rules to identify changes, reducing the need for pairwise data comparisons.
This approach reduces calculation complexity and improves comparison efficiency, allowing R&D personnel to quickly identify configuration changes and enhance development efficiency.
Smart Images

Figure CN115129742B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile technology, and in particular to a vehicle configuration data comparison method, device and electronic equipment. Background Art
[0002] During the vehicle development process, vehicle product configuration data will be updated frequently. In order for upstream and downstream collaborative departments to quickly identify configuration content changes in different versions, the software system is required to quickly compare the new, deleted, and modified content between the two versions of data to ensure the efficiency of collaboration between multiple collaborative departments and prevent serious consequences caused by insufficient information communication.
[0003] In the related art, when comparing product configuration data pairwise, a direct substitution method is used to solve the comparison results, traverse all possibilities, and finally output the comparison results for comparing changes in vehicle model product configuration data.
[0004] The above solution needs to traverse all possibilities, that is, each data needs to be compared with all data. The calculation amount is very large and the comparison efficiency is low, which affects the efficiency of vehicle development. Summary of the invention
[0005] In order to solve or partially solve the problems existing in the related art, the present application provides a vehicle configuration data comparison method, device and electronic equipment, which can reduce the amount of calculation and improve the comparison efficiency and vehicle development efficiency.
[0006] The first aspect of the present application provides a vehicle configuration data comparison method, comprising:
[0007] Obtain source data and target data that need to be compared from vehicle product configuration data;
[0008] Splitting the source data and the target data by row information to obtain a first array corresponding to the source data and a second array corresponding to the target data, and splitting the source data and the target data by column information to obtain a third array corresponding to the source data and a fourth array corresponding to the target data;
[0009] Establishing a first scoring system corresponding to the first array and the second array, and a second scoring system corresponding to the third array and the fourth array;
[0010] Determine a first score corresponding to each item of the first scoring system and a second score corresponding to each item of the second scoring system according to a pre-designed scoring rule;
[0011] Matching the array elements in the first array with the array elements in the second array according to the value path corresponding to the first score to obtain a first matching result, and matching the array elements in the third array with the array elements in the fourth array according to the value path corresponding to the second score to obtain a second matching result;
[0012] The comparison result between the source data and the target data is output according to the first matching result and the second matching result, and the comparison result is used for comparing the changes in the vehicle model product configuration data.
[0013] In a possible implementation manner, establishing a first scoring system corresponding to the first array and the second array includes:
[0014] Establishing a first score matrix corresponding to the first array and the second array, wherein the columns of the first score matrix correspond to the array elements of the first array, and the rows of the first score matrix correspond to the array elements of the second array;
[0015] Determining the first score corresponding to each item of the first scoring system according to the pre-designed scoring rule includes:
[0016] The first score and path value of each element in the first score matrix are determined according to pre-designed scoring rules.
[0017] In a possible implementation manner, determining the first score and path value of each element in the first score matrix according to the pre-designed score rule includes:
[0018] Determine the first scores of the elements in the first row and the first column of the first score matrix by an arithmetic progression, and determine the path values of the elements in the first row and the first column of the first score matrix by a preset path value;
[0019] Calculate the upper left score, upper score and left score of each element except the first row and the first column in the first scoring matrix by the upper left scoring method, the upper scoring method and the left scoring method respectively;
[0020] If the maximum value among the upper left score, the upper score and the left score is the upper left score, then determining that the first score of the element is the upper left score, and the path value of the element is the first path value;
[0021] If the maximum value among the upper left score, the upper score and the left score is the left score, then determining the first score of the element to be the left score, and the path value of the element to be the second path value;
[0022] If the maximum value among the upper left score, the upper score and the left score is the upper score, then the first score of the element is determined to be the upper score, and the path value of the element is the third path value.
[0023] In a possible implementation, the upper-left scores of the elements except the first row and the first column in the first score matrix are calculated by the upper-left scoring method, the upper scoring method and the left scoring method respectively, and the upper score and the left score include:
[0024] If the array element of the second array corresponding to the row where the element is located is the same as the array element of the first array corresponding to the column where the element is located, then the first score of the element to the upper left of the element minus half of the common difference of the arithmetic progression is obtained to obtain the upper left score of the element;
[0025] If the array element of the second array corresponding to the row where the element is located is different from the array element of the first array corresponding to the column where the element is located, then the first score of the element to the upper left of the element is added to half of the common difference of the arithmetic progression to obtain the upper left score of the element;
[0026] Add the first score of the element above the element to the common difference of the arithmetic progression to obtain the upper score of the element;
[0027] The first score of the element to the left of the element is added to the common difference of the arithmetic progression to obtain the left score of the element.
[0028] In a possible implementation, matching the array elements in the first array with the array elements in the second array according to the value path corresponding to the first score to obtain a first matching result includes:
[0029] According to the path values of the elements in the first score matrix, tracing back from the farthest element in the first score matrix to the elements in the first row or first column, to obtain a tracing path from the farthest element to the elements in the first row or first column of the first score matrix;
[0030] For a target element in the backtracking path, if the path value of the target element is a first path value, determine whether the second array element is the same as the first array element, and if they are the same, determine that a first matching result between the second array element and the first array element is a first matching value, the first matching value is used to indicate information that has not changed in the vehicle model product configuration data, the first array element is an array element in the first array corresponding to the column where the target element is located, and the second array element is an array element in the second array corresponding to the row where the target element is located;
[0031] If they are not the same, determining that the first matching result between the second array element and the first array element is a second matching value, the second matching value being used to indicate that there is modified information in the vehicle model product configuration data;
[0032] If the path value of the target element is the second path value, determining that the first matching result between the second array element and the first array element is a third matching value, the third matching value is used to indicate the newly added information in the vehicle model product configuration data;
[0033] If the path value of the target element is the third path value, it is determined that the first matching result of the second array element and the first array element is a fourth matching value, and the fourth matching value is used to indicate the information deleted in the vehicle model product configuration data.
[0034] In a possible implementation, outputting a comparison result between the source data and the target data according to the first matching result and the second matching result includes:
[0035] If the first matching result between the first array element and the second array element is the first matching value, it is indicated in the comparison result that the row information corresponding to the first array element is the row information that has not changed in the vehicle model product configuration data;
[0036] If the first matching result between the first array element and the second array element is the third matching value, then in the comparison result, it is indicated that the row information corresponding to the first array element is the row information newly added in the vehicle model product configuration data;
[0037] If the first matching result between the first array element and the second array element is a fourth matching value, it is indicated in the comparison result that the row information corresponding to the second array element is the row information deleted in the vehicle model product configuration data;
[0038] If the first matching result between the first array element and the second array element is the second matching value, the first character in the first array element and the second character in the second array are compared, and if they are the same, it is prompted in the comparison result that the first character in the row information corresponding to the first array element is the unchanged character in the vehicle model product configuration data; if they are not the same, it is prompted in the comparison result that the second character in the row information corresponding to the second array element in the vehicle model product configuration data is modified to the first character in the row information corresponding to the first array element;
[0039] If the second matching result of the third array element and the fourth array element is the first matching value, it is indicated in the comparison result that the column information corresponding to the third array element is the column information that has not changed in the vehicle model product configuration data;
[0040] If the second matching result between the third array element and the fourth array element is a third matching value, it is indicated in the comparison result that the column information corresponding to the third array element is the newly added column information in the vehicle model product configuration data;
[0041] If the second matching result between the third array element and the fourth array element is a fourth matching value, it is indicated in the comparison result that the column information corresponding to the fourth array element is the column information deleted in the vehicle model product configuration data;
[0042] If the second matching result of the third array element and the fourth array element is the second matching value, the third character in the third array element and the fourth character in the fourth array are compared. If they are the same, the comparison result indicates that the third character in the corresponding column information of the third array element is the character that has not changed in the vehicle model product configuration data; if they are not the same, the comparison result indicates that the fourth character in the corresponding column information of the fourth array element in the vehicle model product configuration data is modified to the third character in the corresponding column information of the third array element.
[0043] In a possible implementation, the step of obtaining source data and target data to be compared from vehicle model product configuration data includes:
[0044] Acquire the positioning parameters of the vehicle model product configuration data, wherein the positioning parameters include: the project number of the vehicle model product configuration data and the version number of the vehicle model product configuration data;
[0045] The vehicle model product configuration data is located according to the positioning parameters, and source data and target data that need to be compared are obtained from the vehicle model product configuration data.
[0046] A second aspect of the present application provides a data comparison device, comprising:
[0047] The acquisition module is used to obtain the source data and target data that need to be compared from the vehicle model product configuration data;
[0048] a splitting module, configured to split the source data and the target data by row information to obtain a first array corresponding to the source data and a second array corresponding to the target data, and split the source data and the target data by column information to obtain a third array corresponding to the source data and a fourth array corresponding to the target data;
[0049] A first establishing module, used for establishing a first scoring system corresponding to the first array and the second array;
[0050] A second establishing module, used for establishing a second scoring system corresponding to the third array and the fourth array;
[0051] A first determination module, used to determine a first score corresponding to each item of the first scoring system according to a pre-designed scoring rule;
[0052] A second determination module, used to determine a second score corresponding to each item of the second scoring system according to a pre-designed scoring rule;
[0053] A third determination module, configured to match array elements in the first array with array elements in the second array according to a value path corresponding to the first score to obtain a first matching result;
[0054] a fourth determination module, configured to match the array elements in the third array with the array elements in the fourth array according to the value path corresponding to the second score to obtain a second matching result;
[0055] An output module is used to output a comparison result between the source data and the target data according to the first matching result and the second matching result, wherein the comparison result is used to compare changes in the vehicle model product configuration data.
[0056] A third aspect of the present application provides an electronic device, including:
[0057] Processor; and
[0058] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0059] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.
[0060] In the technical solution provided by the present application, after the source data and target data to be compared are obtained from the vehicle product configuration data, the source data and the target data are split into row information to obtain a first array corresponding to the source data and a second array corresponding to the target data, and the source data and the target data are split into column information to obtain a third array corresponding to the source data and a fourth array corresponding to the target data, and then a first scoring system corresponding to the first array and the second array and a second scoring system corresponding to the third array and the fourth array are established, and the first scores corresponding to each item of the first scoring system and the second scores corresponding to each item of the second scoring system are determined according to pre-designed scoring rules, and then the array elements in the first array are matched with the array elements in the second array according to the value path corresponding to the first score to obtain a first matching result, and the array elements in the third array are matched with the array elements in the fourth array according to the value path corresponding to the second score to obtain a second matching result, and finally the comparison result of the source data and the target data is output according to the first matching result and the second matching result, and the comparison result is used for comparing the changes in the vehicle product configuration data. This solution can split and combine the source data and target data of the vehicle product configuration to obtain the corresponding array, and then compare and score the array elements based on the scoring matrix corresponding to the array, and find the final comparison result by backtracking the scoring path. The comparison of vehicle product configuration data can be completed by simply comparing each array element in the array corresponding to the source data with each array element in the array corresponding to the target data, without comparing each data of the source data with all data of the target data, which reduces the amount of calculation and improves the efficiency of vehicle product configuration data comparison, allowing R&D personnel to quickly identify changes in configuration content of different versions and improve development efficiency.
[0061] 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 present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0063] Figure 1 is a flow chart of a vehicle configuration data comparison method shown in an embodiment of the present application;
[0064] Figure 2 is a structural schematic diagram of a data comparison device shown in an embodiment of the present application;
[0065] Figure 3 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0066] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0067] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0068] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0069] To address the above issues, an embodiment of the present application provides a vehicle configuration data comparison method that can reduce the amount of calculation and improve comparison efficiency and vehicle development efficiency.
[0070] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0071] Figure 1 It is a flow chart of the vehicle configuration data comparison method shown in an embodiment of the present application.
[0072] See also Figure 1 , the vehicle configuration data comparison method comprises:
[0073] 101. The data comparison device obtains source data and target data to be compared from the vehicle model product configuration data;
[0074] When the user inputs a comparison request for the vehicle model product configuration data, the data comparison device obtains source data and target data from the vehicle model product configuration data according to the comparison request.
[0075] In some embodiments, the data comparison device may obtain source data and target data from the vehicle model product configuration data in the following manner: obtain positioning parameters of the vehicle model product configuration data, locate the vehicle model product configuration data according to the positioning parameters, and obtain source data and target data from the vehicle model product configuration data, wherein the positioning parameters include the project number of the vehicle model product configuration data and the version number of the vehicle model product configuration data, and may also include the project name of the vehicle model product configuration data, the version name of the vehicle model product configuration data, the update time of the vehicle model product configuration data or other information, which is not limited to the specific embodiment.
[0076] In some embodiments, the source data and target data of the vehicle model product configuration data are stored in the database in the form of a file stream. After the data comparison device locates the vehicle model product configuration data, it obtains the compressed files of the source data and the target data from the vehicle model product configuration data, and decompresses the compressed files to obtain the source data and the target data in the form of a simplified musical notation (JSON). Specifically, the data comparison device can decompress the compressed files of the source data and the target data through a GZIP tool or other decompression tools, and convert the source data and the target data in the form of a file stream into the source data and the target data in the form of a simplified musical notation.
[0077] In this embodiment, the vehicle model product configuration data is stored in the database in the form of a file stream, which occupies a small storage space and has a fast transmission rate, thereby increasing the data extraction speed and improving the processing efficiency of the solution.
[0078] In some embodiments, the source data and the target data are configuration data of different versions. After the user inputs a comparison request for the vehicle model product configuration data, the data comparison device determines whether the current vehicle model product configuration data is the only version. If so, the data comparison device prompts the user that the comparison cannot be performed. If not, the data comparison device obtains the version information of the current version of the vehicle model product configuration data and the version information of the previous version, and then obtains the configuration data corresponding to the current version of the vehicle model product configuration data based on the version information of the current version, obtains the configuration data corresponding to the previous version of the vehicle model product configuration data based on the version information of the previous version, and determines the configuration data corresponding to the current version as the source data, and determines the configuration data corresponding to the previous version as the target data.
[0079] The user can also input a comparison request for any two versions of the vehicle model product configuration data. The data comparison device obtains the version information corresponding to the comparison request, and obtains the second version of the vehicle model product configuration data based on the version information, and determines one version of the vehicle model product configuration data as the source data and the other version of the vehicle model product configuration data as the target data.
[0080] 102. The data comparison device splits the source data and the target data into row information to obtain a first array corresponding to the source data and a second array corresponding to the target data, and splits the source data and the target data into column information to obtain a third array corresponding to the source data and a fourth array corresponding to the target data;
[0081] After the data comparison device determines the source data, it splits the source data into row information to obtain a first array corresponding to the source data. Specifically, the data comparison device can split the source data row by row to obtain SM pieces of row information, and then arrange the SM pieces of row information in the order of the rows corresponding to the SM pieces of row information in the source data to obtain the first array, that is, each piece of row information in the SM pieces of row information corresponds to an array element in the first array, and the sequence length of the first array is SM, and SM is an integer greater than or equal to zero.
[0082] After the data comparison device determines the source data, it splits the source data into columns to obtain a third array corresponding to the source data. Specifically, the data comparison device can split the source data column by column to obtain SN pieces of column information, and then arrange the SN pieces of column information in the order of the columns corresponding to the SN pieces of column information in the source data to obtain the third array, that is, each piece of column information in the SN pieces of column information corresponds to an array element in the third array, and the sequence length of the third array is SN, where SN is an integer greater than or equal to zero.
[0083] Exemplarily, the source data is the configuration data of the current version V1.1 of the A-type vehicle, and the configuration data is shown in Table 1 below.
[0084]
[0085] Table 1
[0086] The configuration data in Table 1 above is split row by row to obtain 4 row information, and the 4 row information is arranged in row order to obtain a two-dimensional array Source(M) (first array), as shown in Table 2 below.
[0087] ,Vehicle configration 1,Vehicle configration 2,Vehicle configration 3 Item 1,S,O,N Item 2,S,O,N Item 3,S,O,N
[0088] Table 2
[0089] The configuration data in Table 1 above is split column by column to obtain 4 pieces of column information, and the 4 pieces of column information are arranged in column order to obtain a two-dimensional array Source(N) (third array), as shown in Table 3 below.
[0090] ,Item 1,Item 2,Item 3 Vehicle configration 1,S,S,S Vehicle configration 2,O,O,O Vehicle configration 3,N,N,N
[0091] Table 3
[0092] After the data comparison device determines the target data, it splits the target data into row information to obtain a second array corresponding to the source data. Specifically, the data comparison device can split the target data row by row to obtain TM row information, and then arrange the TM row information in the order of the rows corresponding to the TM row information in the target data to obtain the second array, that is, each row information in the TM row information corresponds to an array element in the second array, and the sequence length of the second array is TM, and TM is an integer greater than or equal to zero.
[0093] After the data comparison device determines the target data, it splits the target data into columns to obtain a fourth array corresponding to the source data. Specifically, the data comparison device can split the target data column by column to obtain TN pieces of column information, and then arrange the TN pieces of column information in the order of the columns corresponding to the target data to obtain the fourth array, that is, each piece of column information in the TN pieces of column information corresponds to an array element in the fourth array, and the sequence length of the fourth array is TN, where TN is an integer greater than or equal to zero.
[0094] Exemplarily, the target data is the configuration data of the previous version V1.0 of the A-type vehicle, and the configuration data is shown in Table 4 below.
[0095]
[0096] Table 4
[0097] The configuration data in the above Table 4 is split row by row to obtain 4 row information, and the 4 row information is arranged in row order to obtain a two-dimensional array Target(M) (second array), as shown in the following Table 5.
[0098] ,Vehicle configration 1,Vehicle configration 2,Vehicle configration 3 Item 1,P,N,O Item 2,P,N,O Item 3,P,N,O
[0099] Table 5
[0100] The configuration data in the above Table 4 is split column by column to obtain 4 pieces of column information, and the 4 pieces of column information are arranged in column order to obtain a two-dimensional array Target(N) (the fourth array), as shown in the following Table 6.
[0101] ,Item 1,Item 2,Item 3 Vehicle configration 1,P,P,P Vehicle configration 2,N,N,N Vehicle configration 3,O,O,O
[0102] Table 6
[0103] In addition to splitting the source data and the target data row by row, the data comparison device of this embodiment also splits the source data and the target data column by column, splits the source data and the target data from two dimensions, and compares them based on the row information and column information, thereby improving the accuracy of the solution.
[0104] 103. The data comparison device establishes a first scoring system corresponding to the first array and the second array, and a second scoring system corresponding to the third array and the fourth array;
[0105] After the data comparison device determines the first array and the second array, it establishes a first scoring system corresponding to the first array and the second array. The first scoring system may include a two-dimensional array matrix. In this embodiment, the two-dimensional array matrix is referred to as a first scoring matrix. The rows of the first scoring matrix correspond to the array elements of the second array, and the columns of the first scoring matrix correspond to the array elements of the first array. Specifically, the number of rows of the first scoring matrix (i.e., the width of the matrix) is TM+1, and the number of columns of the first scoring matrix (i.e., the length of the matrix) is SM+1. The array elements in the first array correspond to columns 2 to SM+1 of the first scoring matrix, respectively, and the array elements in the second array correspond to rows 2 to TM+1 of the first scoring matrix, respectively. SM is the sequence length of the first array, and TM is the sequence length of the second array.
[0106] Specifically, the data comparison device may add labels to the array elements in the first array and the array elements in the second array, and establish a first score matrix according to the labels of the array elements in the first array and the labels of the array elements in the second array.
[0107] Exemplarily, the first array is as shown in Table 2 above, the second array is as shown in Table 5 above, the labels added by the data comparison device to the array elements in the first array are as shown in Table 7 below, and the labels added to the array elements in the second array elements are as shown in Table 8 below, and a 5-row and 5-column score matrix (first score matrix) is constructed based on the labels of the array elements in the first array elements and the labels of the array elements in the second array elements, as shown in Table 9 below.
[0108]
[0109] Table 7
[0110]
[0111] Table 8
[0112]
[0113] Table 9
[0114] After the data comparison device determines the third array and the fourth array, it establishes a second scoring system corresponding to the third array and the fourth array. The second scoring system may include a two-dimensional array matrix. In this embodiment, the two-dimensional array matrix is referred to as a second scoring matrix. The rows of the second scoring matrix correspond to the array elements of the fourth array, and the columns of the second scoring matrix correspond to the array elements of the third array. Specifically, the number of rows of the second scoring matrix (i.e., the width of the matrix) is TN+1, and the number of columns of the second scoring matrix (i.e., the length of the matrix) is SN+1. The array elements in the third array correspond to columns 2 to SN+1 of the second scoring matrix, respectively, and the array elements in the fourth array correspond to rows 2 to TN+1 of the second scoring matrix, respectively. SN is the sequence length of the third array, and TN is the sequence length of the fourth array.
[0115] Specifically, the data comparison device may add labels to the array elements in the third array and the array elements in the fourth array, and establish a second score matrix according to the labels of the array elements in the third array and the labels of the array elements in the fourth array.
[0116] Exemplarily, the third array is as shown in Table 3 above, the fourth array is as shown in Table 6 above, the labels added by the data comparison device to the array elements in the third array are as shown in Table 10 below, and the labels added to the array elements in the fourth array elements are as shown in Table 11 below, and a 5-row and 5-column scoring matrix (second scoring matrix) is constructed based on the labels of the array elements in the third array elements and the labels of the array elements in the fourth array elements, as shown in Table 12 below.
[0117] ,Item 1,Item 2,Item 3 SN1 Vehicle configration 1,S,S,S SN2 Vehicle configration 2,O,O,O SN3 Vehicle configration 3,N,N,N SN4
[0118] Table 10
[0119] ,Item 1,Item 2,Item 3 TN1 Vehicle configration 1,P,P,P TN2 Vehicle configration 2,N,N,N TN3 Vehicle configration 3,O,O,O TN4
[0120] Table 11
[0121]
[0122] Table 12
[0123] 104. The data comparison device determines the first score corresponding to each item of the first scoring system according to the pre-designed scoring rule;
[0124] After the data comparison device establishes the first score matrix, it determines the first score and path value of each element in the first score matrix according to the pre-designed score rule.
[0125] Specifically, the data comparison device may determine the first score and path value of each element in the first score matrix by: determining the first score of the elements in the first row and the first column of the first score matrix by an arithmetic progression, and determining the path value of the elements in the first row and the first column of the first score matrix by a preset path value;
[0126] In some embodiments, the first term of the arithmetic progression is a first preset value, and the tolerance is a second preset value. The first preset value may be 0 or any other value, and the second preset value may be -2 or any other value.
[0127] Specifically, the data comparison device determines the first score F(1, 1) = a of the element in the first row and the first column, the first scores F(1, j1) = F(1, j1-1) + d of other elements in the first row, and the first scores F(i1, 1) = F(i1-1, 1) + d of other elements in the first column, where j1 is an integer from 2 to SM+1, i1 is an integer from 2 to TM+1, a is a first preset value, and d is a second preset value.
[0128] In some embodiments, the preset path value includes a first path value, a second path value, and a third path value, wherein the first path value is a value corresponding to a preset upper left scoring method, the second path value is a value corresponding to a preset left scoring method, and the third path value is a value corresponding to a preset upper scoring method. It should be understood that the first path value, the second path value, and the third path value can be any different characters. For example, the first path value can be set to 0, the second path value can be set to 1, and the third path value can be set to 2.
[0129] Correspondingly, determining the path values of the elements in the first row and first column of the first score matrix by preset path values includes: determining the path values of the elements in the first row and first column of the first score matrix as the first path values, determining the path values of other elements in the first row as the second path values, and determining the path values of other elements in the first column as the third path values.
[0130] After the data comparison device determines the first score and path value of each element in the first row and each element in the first column of the first score matrix, the first score and path value of other elements in the first score matrix except the first row and the first column can be determined in the following manner:
[0131] For each element, the top-left score of the element is determined according to the top-left scoring method, the top score of the element is determined according to the top scoring method, the left score of the element is determined according to the left scoring method, and the maximum value of the top-left score, the top score and the left score of the element is determined as the first score of the element; if the maximum value of the top-left score, the top score and the left score of the element is the top-left score, then the path value of the element is determined to be the first path value, if the maximum value of the top-left score, the top score and the left score of the element is the left score, then the path value of the element is determined to be the second path value; if the maximum value of the top-left score, the top score and the left score of the element is the top score, then the path value of the element is determined to be the third path value.
[0132] Optionally, the data comparison device determines the upper left score of the element according to the upper left scoring method, including: if the array element of the second array corresponding to the row where the element is located is the same as the array element of the first array corresponding to the column where the element is located, then the first score of the element to the upper left of the element is subtracted from half of the second preset value to obtain the upper left score of the element; if the array element of the second array corresponding to the row where the element is located is different from the array element of the first array corresponding to the column where the element is located, then the first score of the element to the upper left of the element is added to half of the second preset value to obtain the upper left score of the element;
[0133] The data comparison device determines the upper score of the element according to the upper scoring method, including: adding the first score of the element above the element to the second preset value to obtain the upper score of the element;
[0134] The data comparison device determines the left score of the element according to the left scoring method, including: adding the first score of the element to the left of the element to a second preset value to obtain the left score of the element.
[0135] As an optional method, after the data comparison device determines the first score of each element except the first row and the first column in the first score matrix, the first score F(i1, j1) of the other elements except the first row and the first column in the first score matrix can be determined by the following formula:
[0136]
[0137] Wherein, S(i1,j1) is the comparison score of the corresponding array in the first score matrix. If the array element in the second array corresponding to the i1th row is the same as the array element in the first array corresponding to the j1th column, then S(i1,j1)=-d / 2; if the array element in the second array corresponding to the i1th row is different from the array element in the first array corresponding to the j1th column, then S(i1,j1)=d / 2;
[0138] Correspondingly, the data comparison device can determine the path values of the elements other than the first row and the first column in the first score matrix in the following manner:
[0139] For each element except the first row and first column in the first score matrix, if the first score of the element is F(i1,j1)=F(i1-1,j1-1)+S(i1,j1), then the path value of the element is determined to be the first path value;
[0140] If the first score of the element F(i1,j1)=F(i1-1,j1)+d, then the path value of the element is determined to be the third path value;
[0141] If the first score of the element F(i1, j1)=F(i1, j1-1)+d, the path value of the element is determined to be the second path value.
[0142] As an optional method, the system can set the priority of the scoring method (value path) from high to low as upper left scoring method, upper scoring method, and left scoring method. That is, when the maximum value of the upper left score, left score, and upper score of the element is the upper left score, the upper score, and / or the left score, the value path of the element is the upper left score path, and the path value of the element is the path value corresponding to the upper left scoring method, that is, the first path value; when the maximum value of the upper left score, left score, and upper score of the element is the upper score and the left score, the value path of the element is the path value corresponding to the upper scoring method, that is, the third path value.
[0143] As an optional method, after the data comparison device determines the first score of each element of the first score matrix and the path value corresponding to the first score, the first score and the path value corresponding to the first score can be determined as the element values of each element of the first score matrix, that is, the first score and the path value corresponding to the first score are recorded in the first score matrix; or the path value corresponding to the first score is determined as the element value of each element of the first score matrix, that is, the path value corresponding to the first score is recorded in the first score matrix; or the path value corresponding to the first score and the comparison score are determined as the element values of each element of the first score matrix; or the first score, the path value corresponding to the first score and the comparison score are determined as the element values of each element of the first score matrix.
[0144] Exemplarily, the first preset value a=0, the second preset value d=-2, the first path value is 0, the second path value is 1, and the third path value is 2; the data comparison device initializes the score information of the first score matrix corresponding to Table 9, first determines the first row and first column element to be 0, and then the data comparison device initializes the score of the other elements in the first row and the first column according to the arithmetic progression corresponding to the second preset value, that is, the first scores of the other 4 elements in the first row are determined to be -2, -4, -6, -8 in sequence, and the first scores of the other 4 elements in the first column are determined to be -2, -4, -6, -8 in sequence. The data comparison device can also initialize the path value of the first score matrix corresponding to Table 9, determine the path value of the first row and first column element to be 0, determine the path value of other elements in the first row to be 1, and determine the path value of other elements in the first column to be 2. The first score matrix obtained by score initialization and path value initialization is shown in Table 13 below.
[0145]
[0146] Table 13
[0147] After the scores and path values are initialized to obtain the first score matrix, the data comparison device calculates the first score of each other element in turn. Specifically, for any element, the data comparison device calculates its top-left score, top score and left score, and determines the maximum value of the top-left score, top score and left score as the first score of the element, and then determines the path value of the element according to the value path of the first score.
[0148] Taking the second row and second column element as an example, the array element TM1 in the second array corresponding to the second row and the array element SM1 in the first array corresponding to the second column are compared. If the comparison result is the same, the comparison score is d / 2=1. The first score 0 of the first row and first column element (upper left element) is added to the comparison score 1 to obtain the upper left score 2; the first score -2 of the first row and second column element (upper element) is added to the second preset value -2 to obtain the upper score -4; the first score -2 of the second row and first column element (left element) is added to the second preset value -2 to obtain the left score -4; the maximum value 2 among the upper left score 2, the left score -4, and the upper score -4 is determined as the first score of the element, that is, the first score of the second row and second column is 2. The scoring method of the first score of the second row and second column element is the upper left scoring method, and the data comparison device determines that the path value of the second row and second column element is 0. According to the above method, the array elements in the first array and the second array are traversed to calculate the first score and path value of each element of the first score matrix, and the final result is shown in Table 14 below.
[0149]
[0150] Table 14
[0151] 105. The data comparison device determines the second score corresponding to each item of the second scoring system according to the pre-designed scoring rule;
[0152] After the data comparison device establishes the second score matrix, the second score and path value of each element in the second score matrix are determined according to the pre-designed scoring rules.
[0153] Specifically, the data comparison device may determine the second score and path value of each element in the second score matrix by: determining the second score of the elements in the first row and the first column of the second score matrix by an arithmetic progression, and determining the path value of the elements in the first row and the first column of the second score matrix by a preset path value;
[0154] In some embodiments, the first term of the arithmetic progression is a first preset value, and the tolerance is a second preset value. The first preset value may be 0 or any other value, and the second preset value may be -2 or any other value.
[0155] Specifically, the data comparison device can determine the second score H(1, 1) = a of the element in the first row and first column, the second score H(1, j2) = H(1, j2-1) + d of other elements in the first row, and the second score H(i2, 1) = H(i2-1, 1) + d of other elements in the first column, where j2 is an integer from 2 to SN+1, i2 is an integer from 2 to TN+1, a is a first preset value, and d is a second preset value.
[0156] In some embodiments, determining the path values of the elements in the first row and first column of the second score matrix by preset path values includes: determining the path values of the elements in the first row and first column of the second score matrix as the first path value, determining the path values of other elements in the first row as the second path value, and determining the path values of other elements in the first column as the third path value.
[0157] After the data comparison device determines the second score and path value of each element in the first row and each element in the first column of the second score matrix, the second score and path value of other elements in the second score matrix except the first row and the first column can be determined in the following manner:
[0158] For each element, the top-left score of the element is determined according to the top-left scoring method, the top score of the element is determined according to the top scoring method, the left score of the element is determined according to the left scoring method, and the maximum value of the top-left score, the top score and the left score of the element is determined as the second score of the element; if the maximum value of the top-left score, the top score and the left score of the element is the top-left score, then the path value of the element is determined to be the first path value, if the maximum value of the top-left score, the top score and the left score of the element is the left score, then the path value of the element is determined to be the second path value; if the maximum value of the top-left score, the top score and the left score of the element is the top score, then the path value of the element is determined to be the third path value.
[0159] Optionally, the data comparison device determines the upper left score of the element according to the upper left scoring method, including: if the array element of the fourth array corresponding to the row where the element is located is the same as the array element of the third array corresponding to the column where the element is located, then the second score of the element to the upper left of the element is subtracted from half of the preset value to obtain the upper left score of the element; if the array element of the fourth array corresponding to the row where the element is located is different from the array element of the third array corresponding to the column where the element is located, then the second score of the element to the upper left of the element is added to half of the second preset value to obtain the upper left score of the element;
[0160] The data comparison device determines the upper score of the element according to the upper scoring method, including: adding the second score of the element above the element to a preset value to obtain the upper score of the element;
[0161] The data comparison device determines the left score of an element according to the left scoring method, including: adding a preset value to the second score of the element to the left of the element to obtain the left score of the element.
[0162] Specifically, the data comparison device can determine the second scores H(i1, j1) of the elements other than the first row and the first column in the second score matrix by the following formula:
[0163]
[0164] Among them, Q(i2,j2) is the comparison score of the corresponding array in the second scoring matrix. If the array element in the fourth array corresponding to the i2th row is the same as the array element in the third array corresponding to the j2th column, then Q(i2,j2)=-2 / d; if the array element in the fourth array corresponding to the i2th row is different from the array element in the third array corresponding to the j2th column, then Q(i2,j2)=2 / d.
[0165] Correspondingly, if the second score of the element H(i2,j2)=F(i1-1,j1-1)+S(i1,j1), the path value of the element is determined to be the first path value;
[0166] If the second score of the element F(i1,j1)=F(i1-1,j1)+d, then the path value of the element is determined to be the third path value;
[0167] If the second score of the element F(i1, j1)=F(i1, j1-1)+d, the path value of the element is determined to be the second path value.
[0168] As an optional method, the system can set the priority of the scoring method (value path) from high to low as upper left scoring method, upper scoring method, and left scoring method.
[0169] As an optional method, after the data comparison device determines the second score of each element of the second score matrix and the path value corresponding to the second score, the second score and the path value corresponding to the second score can be determined as the element value of each element of the second score matrix, that is, the second score and the path value corresponding to the second score are recorded in the second score matrix; or the path value corresponding to the second score is determined as the element value of each element of the second score matrix, that is, the path value of the second score is recorded in the second score matrix; or the path value corresponding to the second score and the comparison score are determined as the element values of each element of the second score matrix, or the second score, the path value corresponding to the second score and the comparison score are determined as the element values of each element of the second score matrix.
[0170] 106. The data comparison device matches the array elements in the first array with the array elements in the second array according to the value path corresponding to the first score to obtain a first matching result;
[0171] After the data comparison device determines the path value of each element in the first scoring matrix, the data comparison device can obtain the first matching result in the following manner: trace back from the farthest element in the first scoring matrix to the elements in the first row or the first column according to the path value of the first scoring matrix, and obtain a backtracking path from the element in the TM+1th row and the SM+1th column to the element in the first row or the first column of the first scoring matrix; determine, based on the backtracking path, several pairs of first array elements and second array elements that need to be matched, and the first matching results of these several pairs of first array elements and second array elements.
[0172] The data comparison device determines a number of pairs of first array elements and second array elements that need to be matched according to the backtracking path, and the first matching results of the number of pairs of first array elements and second array elements include: for each target element in the backtracking path, if the path value of the target element is the first path value, then determine whether the array element corresponding to the row where the target element is located (i.e., the second array element) and the array element corresponding to the column where the target element is located (i.e., the first array element) are the same; if they are the same, then determine that the first matching result of the second array element and the first array element is the first matching value, and the first matching value is used to indicate that the information in the vehicle model product configuration data has not changed; if they are not the same, then determine that the first matching result of the second array element and the first array element is the second matching value, and the second matching value is used to indicate that there is modified information in the vehicle model product configuration data;
[0173] If the path value of the target element is the second path value, then determine that the first matching result of the array element corresponding to the row where the target element is located (i.e., the second array element) and the array element corresponding to the column where the target element is located (i.e., the first array element) is the third matching value, and the third matching is used to indicate the newly added information in the vehicle model product configuration data;
[0174] If the path value of the target element is the third path value, then the first matching result of the array element corresponding to the row where the target element is located (i.e., the second array element) and the array element corresponding to the column where the target element is located (i.e., the first array element) is determined to be the fourth matching value, and the fourth matching value is used to indicate the information that has been deleted in the vehicle model product configuration data.
[0175] Specifically, the above-mentioned backtracking rules include: for any element, if the path value of the element is the first path value, the element to the left of the element is determined to be the next backtracking element; if the path value of the element is the second path value, the element to the left of the element is determined to be the next backtracking element; if the path value of the element is the third path value, the element above the element is determined to be the next backtracking element.
[0176] As an optional manner, the process in which the data comparison device determines a plurality of pairs of first array elements and second array elements that need to be matched, and first matching results of the plurality of pairs of first array elements and second array elements comprises the following steps:
[0177] (1) Select the element in the TM+1th row and the SM+1th column in the first scoring matrix as the starting element;
[0178] (2) Determine the starting element as the target element;
[0179] (3) If the path value of the target element is the first path value, determine that the next backtracking element is the element to the upper left of the target element, and determine whether the second array element corresponding to the row of the target element and the first array element corresponding to the column of the target element are the same; if they are the same, determine that the first matching result of the second array element corresponding to the row of the target element and the first array element corresponding to the column of the target element is the first matching value; if they are not the same, determine that the first matching result of the second array element corresponding to the row of the target element and the first array element corresponding to the column of the target element is the second matching value, wherein the first matching value is used to indicate that the first array element corresponding to the column of the target element has not changed compared to the second array element corresponding to the row of the target element, and the second matching value is used to indicate that the first array element corresponding to the column of the target element has been modified compared to the second array element corresponding to the row of the target element;
[0180] (4) If the path value of the target element is the second path value, the next backtracking element is determined to be the element to the left of the target element, and the first matching result of the second array element corresponding to the row where the target element is located and the first array element corresponding to the column where the target element is located is determined to be the third matching value, and the third matching value is used to indicate that the row information corresponding to the first array element corresponding to the column where the target element is located is the newly added information;
[0181] (5) If the path value of the target element is the third path value, determine that the next backtracking element is the element above the target element, and determine that the first matching result of the second array element corresponding to the row where the target element is located and the first array element corresponding to the column where the target element is located is a fourth matching value, and the fourth matching value is used to indicate that the row information corresponding to the second array element corresponding to the row where the target element is located is deleted;
[0182] (6) The next traceback element is determined as the target element, and steps (3) to (6) are executed until the next traceback element is determined to be the element of the first row or the element of the first column.
[0183] It should be understood that the first matching value, the second matching value, the third matching value and the fourth matching value can be any different characters, for example, the first matching value is 0, the second matching value is 1, the third matching value is 2, and the fourth matching value is 3.
[0184] As an optional method, after the data comparison device determines the first matching results of a plurality of pairs of first array elements and second array elements, it can output the transposed matrix of the matrix corresponding to the first matching results. It should be understood that the output order of the first matching results corresponds to the order of elements in the backtracking path, and the backtracking path starts from the farthest element of the first score matrix. Therefore, in order to facilitate data processing in subsequent steps, the data comparison device needs to transpose the matrix corresponding to the first matching result.
[0185] For example, the first matching value is 0, the second matching value is 1, the third matching value is 2, and the fourth matching value is 3. The first scores and path values of the elements of the first scoring matrix are shown in Table 14 above. The element a in the fifth row and fifth column of the first scoring matrix is 5,5 is the starting element, a 5,5 If the path value is 0 (the first path value), then it is determined whether SM4 and TM4 are the same. If they are not the same, then the matching result of SM4 and TM4 is determined to be 1, and the next backtracking element is determined to be a. 5,5 The element a on the upper left 4,4 ; a 4,4 If the path value is 0, it is determined whether SM3 and TM3 are the same. If they are not the same, the matching result of SM3 and TM3 is determined to be 1, and the next backtracking element is determined to be a. 4,4 The element a on the upper left 3,3 ; a 3,3 If the path value is 0, it is determined whether SM2 and TM2 are the same. If they are not the same, the matching result of SM2 and TM2 is determined to be 1, and the next backtracking element is determined to be a. 3,3 The element a on the upper left 2,2 ; a 2,2 If the path value is 0, then determine whether SM1 and TM1 are the same. If the result is the same, then determine that the matching result of SM1 and TM1 is 0, and determine that the next backtracking element is a 2,2 The element a on the upper left 1,1 That is, the backtracking path corresponding to the first score matrix is a 5,5 , a 4,4 , a 3,3 , a 2,2 , a 1,1 , as shown in Table 15 below, the corresponding matching results are 1, 1, 1, 1, 0, and the transposed matrix of the matrix corresponding to the matching results is output [0, 1, 1, 1, 1].
[0186]
[0187] Table 15
[0188] 107. The data comparison device matches the array elements in the third array with the array elements in the fourth array according to the value path corresponding to the second score to obtain a second matching result;
[0189] After the data comparison device determines the path value of each element in the second scoring matrix, the second matching result can be obtained in the following manner: based on the path value of the second scoring matrix, backtrack from the farthest element in the second scoring matrix to the element in the first row or the first column, and obtain a backtracking path from the element in the TN+1th row and the SN+1th column to the element in the first row or the first column of the second scoring matrix; and determine, based on the backtracking path, several pairs of third array elements and fourth array elements that need to be matched, as well as the second matching results of these several pairs of third array elements and fourth array elements.
[0190] Among them, the backtracking rules include: for any element, if the path value of the element is the first path value, the element to the left of the element is determined to be the next backtracking element; if the path value of the element is the second path value, the element to the left of the element is determined to be the next backtracking element; if the path value of the element is the third path value, the element above the element is determined to be the next backtracking element.
[0191] The data comparison device determines a number of pairs of third array elements and fourth array elements that need to be matched according to the backtracking path, and the second matching results of the number of pairs of third array elements and fourth array elements include: for each target element in the backtracking path, if the path value of the target element is the first path value, the fourth array element corresponding to the row where the target element is located is compared with the third array element corresponding to the column where the target element is located, if they are the same, then the second matching result of the fourth array element and the third array element is determined to be a first matching value, and the first matching value is used to indicate that the information in the vehicle model product configuration data has not changed; if they are not the same, then the second matching result of the fourth array element and the third array element is determined to be a second matching value, and the second matching value is used to indicate that there is modified information in the vehicle model product configuration data;
[0192] If the path value of the target element is the second path value, then determine that the second matching result of the array element corresponding to the row where the target element is located (i.e., the fourth array element) and the array element corresponding to the column where the target element is located (i.e., the third array element) is the third matching value, and the third matching is used to indicate the newly added information in the vehicle model product configuration data;
[0193] If the path value of the target element is the third path value, then the second matching result of the array element corresponding to the row where the target element is located (i.e., the fourth array element) and the array element corresponding to the column where the target element is located (i.e., the third array element) is determined to be the fourth matching value, and the fourth matching value is used to indicate the information that has been deleted in the vehicle model product configuration data.
[0194] As an optional manner, the process in which the data comparison device determines a plurality of pairs of third array elements and fourth array elements that need to be matched, and second matching results of the plurality of pairs of third array elements and fourth array elements comprises the following steps:
[0195] (1) Select the element in the TN+1th row and the SN+1th column in the second score matrix as the starting element;
[0196] (2) Determine the starting element as the target element;
[0197] (3) If the path value of the target element is the first path value, determine that the next backtracking element is the element to the upper left of the target element, and determine whether the fourth array element corresponding to the row of the target element and the third array element corresponding to the column of the target element are the same; if they are the same, determine that the second matching result of the fourth array element corresponding to the row of the target element and the third array element corresponding to the column of the target element is the first matching value; if they are not the same, determine that the second matching result of the fourth array element corresponding to the row of the target element and the third array element corresponding to the column of the target element is the second matching value, wherein the first matching value is used to indicate that the third array element corresponding to the column of the target element has not changed compared to the fourth array element corresponding to the row of the target element, and the second matching value is used to indicate that the third array element corresponding to the column of the target element has been modified compared to the fourth array element corresponding to the row of the target element;
[0198] (4) If the path value of the target element is the second path value, the next backtracking element is determined to be the element to the left of the target element, and the second matching result of the fourth array element corresponding to the row where the target element is located and the third array element corresponding to the column where the target element is located is determined to be the third matching value, and the third matching value is used to indicate that the row information corresponding to the third array element corresponding to the column where the target element is located is the newly added information;
[0199] (5) If the path value of the target element is the third path value, determine that the next backtracking element is the element above the target element, and determine that the second matching result of the fourth array element corresponding to the row where the target element is located and the third array element corresponding to the column where the target element is located is a fourth matching value, and the fourth matching value is used to indicate that the row information corresponding to the fourth array element corresponding to the row where the target element is located is deleted;
[0200] (6) The next traceback element is determined as the target element, and steps (3) to (6) are executed until the next traceback element is determined to be the element of the first row or the element of the first column.
[0201] It should be understood that the first matching value, the second matching value, the third matching value and the fourth matching value can be any different characters, for example, the first matching value is 0, the second matching value is 1, the third matching value is 2, and the fourth matching value is 3.
[0202] As an optional method, after the data comparison device determines the second matching results of the plurality of pairs of the third array elements and the fourth array elements, it can output the transposed matrix of the matrix corresponding to the second matching results. It should be understood that the output order of the second matching results corresponds to the order of elements in the backtracking path, and the backtracking path starts from the farthest element of the second score matrix. Therefore, in order to facilitate the data processing in the subsequent steps, the data comparison device needs to transpose the matrix corresponding to the second matching results.
[0203] 108. The data comparison device outputs a comparison result between the source data and the target data according to the first matching result and the second matching result.
[0204] After the data comparison device determines the first matching results of the above-mentioned pairs of first array elements and second array elements and the second matching results of third array elements and fourth array elements, it outputs the comparison results of source data and target data according to the first matching results and the second matching results, and the comparison results are comparisons of changes in user vehicle model product configuration data.
[0205] In this embodiment, after the data comparison device outputs the comparison results of the source data and the target data, the user can intuitively understand the changes in the vehicle model product configuration data based on the comparison results. In this way, during the update and upgrade of the vehicle product configuration data, R&D personnel from different departments can quickly understand what has been added, modified, and deleted, and adjust the vehicle production and manufacturing plan in time to improve development efficiency.
[0206] Specifically, the first matching result includes a first matching value, a second matching value, a third matching value or a fourth matching value; the second matching result includes: a first matching value, a second matching value, a third matching value or a fourth matching value;
[0207] The data comparison device can output the comparison results of the source data and the target data in the following ways:
[0208] For any pair of first array elements and second array elements, if the first matching result of the pair of first array elements and second array elements is the first matching value, it is indicated in the comparison result that the row information corresponding to the first array element is the row information that has not changed in the vehicle model product configuration data. Specifically, the data comparison device may display the row information corresponding to the first array element to the user in the comparison result;
[0209] If the first matching result of the pair of the first array element and the second array element is the third matching value, then it is indicated in the comparison result that the row information corresponding to the first array element is the newly added row information in the vehicle model product configuration data. Specifically, the data comparison device may display the row information corresponding to the first array element to the user in the comparison result, and add a newly added mark to the row information;
[0210] If the first matching result of the pair of the first array element and the second array element is a fourth matching value, it is indicated in the comparison result that the row information corresponding to the second array element is the row information deleted in the vehicle model product configuration data. Specifically, the data comparison device may display the row information corresponding to the second array element to the user in the comparison result, and add a deletion mark to the row information;
[0211] If the first matching result of the pair of the first array element and the second array element is the second matching value, then the first character in the first array element and the second character in the second array are compared one by one. For any group of the first character and the second character, if they are the same, then it is prompted in the comparison result that the first character is the character that has not changed in the vehicle model product configuration data. Specifically, the data comparison device can display the first character of the group of the first character and the second character to the user in the comparison result; if they are not the same, then it is prompted in the comparison result that the second character in the row information corresponding to the second data element in the vehicle model product configuration data is modified to the first character in the row information corresponding to the first array element. Specifically, the data comparison device can splice the group of the first character and the second character with a modification mark, and display the splicing result of the group of the first character and the second character to the user in the comparison result;
[0212] For any pair of the third array element and the fourth array element, if the second matching result of the pair of the third array element and the fourth array element is the first matching value, it is indicated in the comparison result that the column information corresponding to the third array element is the column information that has not changed in the vehicle model product configuration data. Specifically, the data comparison device may display the column information corresponding to the third array element to the user in the comparison result;
[0213] If the second matching result of the third array element and the fourth array element is a third matching value, it is indicated in the comparison result that the column information corresponding to the third array element is the newly added column information in the vehicle model product configuration data. Specifically, the data comparison device may display the column information corresponding to the third array element to the user in the comparison result, and add a newly added mark to the column information;
[0214] If the second matching result of the third array element and the fourth array element is a fourth matching value, it is indicated in the comparison result that the column information corresponding to the fourth array element is the column information deleted in the vehicle model product configuration data. Specifically, the data comparison device may display the column information corresponding to the fourth array element to the user in the comparison result, and add a deletion mark to the column information;
[0215] If the second matching result of the pair of the third array element and the fourth array element is the second matching value, then the third character in the third array element and the fourth character in the fourth array are compared one by one. For any group of the third character and the fourth character, if they are the same, then it is prompted in the comparison result that the third character is the character that has not changed in the vehicle model product configuration data. Specifically, the data comparison device can display the third character of the group of third characters and fourth characters to the user in the comparison result; if they are not the same, then it is prompted in the comparison result that the fourth character in the corresponding column information of the fourth array element in the vehicle model product configuration data is modified to the third character in the corresponding column information of the third array element. Specifically, the data comparison device can splice the group of the third character and the fourth character with a modification mark, and display the splicing result of the group of the third character and the fourth character to the user in the comparison result.
[0216] As an optional method, the data comparison device can also output the comparison results of the source data and the target data in the following manner: the data comparison device outputs the comparison results of the source data and the target data in the order corresponding to the first matching results in the transposed matrix of the first matching result corresponding matrix and the order corresponding to the second matching results in the transposed matrix of the second matching result corresponding matrix. The specific process of outputting the comparison results of the source data and the target data is similar to the above method and will not be repeated here.
[0217] Exemplarily, the transposed matrix of the matrix corresponding to the first matching result is [0, 1, 1, 1, 1], and the transposed matrix of the matrix corresponding to the second matching result is [0, 1, 1, 1, 1]. According to the transposed matrix, the matching result of SM1 and TM1 is 0, then the data comparison device displays the row information corresponding to SM1 in the comparison result; the matching result of TN1 and SN1 is 0, then the data comparison device displays the column information corresponding to TN1 in the comparison result; the matching result of SM2 and TM2 is 1, then the data comparison device compares the characters in SM2 with the characters in TM2 one by one, and the first character in SM2 "Item" is the same as the first character "Item" in TM2, and the data comparison device displays "Item" in the comparison result. The second character "S" in SM2 is different from the second character "P" in TM2, and the modification mark "->" is used to splice "P->S". The third character "O" in SM2 is different from the third character "N" in TM2, and the modification mark "->" is used to splice "N->O". The fourth character "N" in SM2 is different from "O", and the modification mark "->" is used to splice "O->N", and the splicing result is displayed in the comparison result. The matching result of SN2 and TN3 is 1, the matching result of SM3 and TM3 is 1, the matching result of SN3 and TN3 is 1, the matching result of SM4 and TM4 is 1, and the matching result of SN4 and TN4 is 1. The specific comparison process is similar to the comparison process of SM1 and TM1, which will not be repeated here. The final output comparison result is shown in Table 16 below.
[0218]
[0219] Table 16
[0220] It should be noted that, in this embodiment, for the element a in the xth row and yth column of any matrix x,y , element a x,y The upper left element refers to the element in the x-1th row and y-1th column of the matrix. x,y The left element of refers to the element a in the xth row and y-1th column of the matrix x,y-1 , a x,y The upper element of refers to the element a in the x-1th row and yth column of the matrix x-1,y .
[0221] It should also be noted that, in this embodiment, steps 104 and 105 are not sequenced, and steps 106 and 107 are not sequenced.
[0222] In the technical solution provided by the present application, after the source data and target data to be compared are obtained from the vehicle product configuration data, the source data and the target data are split into row information to obtain a first array corresponding to the source data and a second array corresponding to the target data, and the source data and the target data are split into column information to obtain a third array corresponding to the source data and a fourth array corresponding to the target data, and then a first scoring system corresponding to the first array and the second array and a second scoring system corresponding to the third array and the fourth array are established, and the first scores corresponding to each item of the first scoring system and the second scores corresponding to each item of the second scoring system are determined according to pre-designed scoring rules, and then the array elements in the first array are matched with the array elements in the second array according to the value path corresponding to the first score to obtain a first matching result, and the array elements in the third array are matched with the array elements in the fourth array according to the value path corresponding to the second score to obtain a second matching result, and finally the comparison result of the source data and the target data is output according to the first matching result and the second matching result, and the comparison result is used for comparing the changes in the vehicle product configuration data. This solution can split and combine the source data and target data of the vehicle product configuration to obtain the corresponding array, and then compare and score the array elements based on the scoring matrix corresponding to the array, and find the final comparison result by backtracking the scoring path. The comparison of vehicle product configuration data can be completed by simply comparing each array element in the array corresponding to the source data with each array element in the array corresponding to the target data, without comparing each data of the source data with all data of the target data, which reduces the amount of calculation and improves the efficiency of vehicle product configuration data comparison, allowing R&D personnel to quickly identify changes in configuration content of different versions and improve development efficiency.
[0223] This solution splits the data, establishes a weighted scoring system based on the split data, scores the data through the weighted scoring system, uses the dynamic rule algorithm to obtain the optimal solution for each scoring, and traces back the optimal solution through the scoring path to complete the data comparison. The data splitting is upgraded in dimension, and the subsequent processing process is adaptively optimized, so that this solution can adapt to more diverse data forms and business forms, improving the flexibility of the solution.
[0224] Secondly, this embodiment can initialize the score information of the first score matrix and the second score matrix through an arithmetic progression, which is simple to operate, reduces the complexity of the operation logic, and improves the calculation speed of the solution.
[0225] Again, this embodiment can identify the value path of the first score / second score with the first path value, the second path value and the third path value in the first score matrix / second score matrix, without the need to allocate additional storage space for recording, thereby saving storage space and improving processing efficiency.
[0226] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides a data comparison device, an electronic device and corresponding embodiments.
[0227] Figure 2 It is a structural schematic diagram of a data comparison device shown in an embodiment of the present application.
[0228] See also Figure 2 , the data comparison device 200 comprises:
[0229] The acquisition module 201 is used to acquire source data and target data to be compared from vehicle model product configuration data;
[0230] Splitting module 202, used to split the source data and the target data by row information to obtain a first array corresponding to the source data and a second array corresponding to the target data, and split the source data and the target data by column information to obtain a third array corresponding to the source data and a fourth array corresponding to the target data;
[0231] A first establishing module 203, used to establish a first scoring system corresponding to the first array and the second array;
[0232] A second establishing module 204, used to establish a second scoring system corresponding to the third array and the fourth array;
[0233] A first determination module 205, for determining a first score corresponding to each item of the first scoring system according to a pre-designed scoring rule;
[0234] A second determination module 206, configured to determine a second score corresponding to each item of the second scoring system according to a pre-designed scoring rule;
[0235] A third determination module 207, configured to match array elements in the first array with array elements in the second array according to a value path corresponding to the first score to obtain a first matching result;
[0236] A fourth determination module 208, configured to match the array elements in the third array with the array elements in the fourth array according to the value path corresponding to the second score to obtain a second matching result;
[0237] The output module 209 is used to output the comparison result between the source data and the target data according to the first matching result and the second matching result, and the comparison result is used to compare the changes in the vehicle model product configuration data.
[0238] In some embodiments, the first establishing module 203 includes:
[0239] An establishing unit, used to establish a first score matrix corresponding to the first array and the second array, wherein the columns of the first score matrix correspond to the array elements of the first array, and the rows of the first score matrix correspond to the array elements of the second array;
[0240] The first determination module 205 includes:
[0241] The first determining unit is used to determine the first score and path value of each element in the first score matrix according to a pre-designed score rule.
[0242] In some embodiments, the first determining unit includes:
[0243] A first determining subunit, configured to determine a first score of an element in a first row and a first column of a first score matrix by an arithmetic progression, and to determine a path value of an element in a first row and a first column of the first score matrix by a preset path value;
[0244] A calculation subunit, used for calculating the upper left score, the upper score and the left score of each element except the first row and the first column in the first score matrix by using the upper left scoring mode, the upper scoring mode and the left scoring mode;
[0245] A second determining subunit is used to determine that the first score of the element is the upper left score and the path value of the element is the first path value when the maximum value among the upper left score, the upper score and the left score is the upper left score;
[0246] A third determining subunit is used to determine that the first score of the element is the left score and the path value of the element is the second path value when the maximum value among the upper left score, the upper score and the left score is the left score;
[0247] The fourth determining subunit is used to determine that the first score of the element is the upper score and the path value of the element is the third path value when the upper left score, the maximum value among the upper score and the left score is the upper score.
[0248] In some embodiments, the computing subunit is specifically configured to:
[0249] If the array element of the second array corresponding to the row where the element is located is the same as the array element of the first array corresponding to the column where the element is located, then the first score of the element to the upper left of the element is subtracted from half of the common difference of the arithmetic progression to obtain the upper left score of the element;
[0250] If the array element of the second array corresponding to the row where the element is located is not the same as the array element of the first array corresponding to the column where the element is located, then the first score of the element to the upper left of the element is added to half of the common difference of the arithmetic progression to obtain the upper left score of the element;
[0251] Add the first score of the element above the element to the common difference of the arithmetic progression to get the upper score of the element;
[0252] Add the first score of the element to the left of the element plus the common difference of the arithmetic progression to get the left score of the element.
[0253] In some embodiments, the third determination module 207 includes:
[0254] A backtracking unit, used to backtrack from the farthest element in the first score matrix to the element in the first row or first column according to the path value of the element in the first score matrix, so as to obtain a backtracking path from the farthest element to the element in the first row or first column of the first score matrix;
[0255] A judging unit, configured to judge whether the second array element is the same as the first array element when the path value of the target element of the backtracking path is the first path value;
[0256] A second determination unit is used to determine, when the judgment unit determines that they are the same, that a first matching result between the second array element and the first array element is a first matching value, the first matching value is used to indicate information that has not changed in the vehicle model product configuration data, the first array element is an array element in the first array corresponding to the column where the target element is located, and the second array element is an array element in the second array corresponding to the row where the target element is located;
[0257] A third determining unit, configured to determine, when the judging unit determines that they are not the same, that a first matching result between the second array element and the first array element is a second matching value, the second matching value being used to indicate that there is modified information in the vehicle model product configuration data;
[0258] A fourth determining unit is used to determine, when the path value of the target element is the second path value, that a first matching result between the second array element and the first array element is a third matching value, wherein the third matching value is used to indicate newly added information in the vehicle model product configuration data;
[0259] The fifth determination unit is used to determine that the first matching result between the second array element and the first array element is a fourth matching value when the path value of the target element is a third path value, and the fourth matching value is used to indicate the information deleted in the vehicle model product configuration data.
[0260] In some embodiments, the output module 209 includes:
[0261] A first prompting unit, configured to prompt, in a comparison result, that the row information corresponding to the first array element is the row information that has not changed in the vehicle model product configuration data when a first matching result between the first array element and the second array element is a first matching value;
[0262] A second prompting unit, configured to prompt, in the comparison result, that the row information corresponding to the first array element is the newly added row information in the vehicle model product configuration data when the first matching result between the first array element and the second array element is a third matching value;
[0263] A third prompting unit, configured to prompt, in the comparison result, that the row information corresponding to the second array element is the row information deleted in the vehicle model product configuration data when the first matching result between the first array element and the second array element is a fourth matching value;
[0264] A first comparison unit, configured to compare a first character in the first array element with a second character in the second array when a first matching result between the first array element and the second array element is a second matching value;
[0265] A fourth prompting unit, for prompting, in the comparison result, that the first character in the row information corresponding to the first array element is a character that has not changed in the vehicle model product configuration data when the first comparison unit determines that they are identical;
[0266] A fifth prompting unit, for prompting, in the comparison result, that the second character in the row information corresponding to the second array element in the vehicle model product configuration data is modified to the first character in the row information corresponding to the first array element when the first comparison unit determines that they are not the same;
[0267] a sixth prompting unit, configured to prompt, in the comparison result, that the column information corresponding to the third array element is the column information that has not changed in the vehicle model product configuration data when the second matching result between the third array element and the fourth array element is the first matching value;
[0268] a seventh prompting unit, configured to prompt in the comparison result that the column information corresponding to the third array element is the newly added column information in the vehicle model product configuration data when the second matching result between the third array element and the fourth array element is a third matching value;
[0269] an eighth prompting unit, configured to prompt in the comparison result that the column information corresponding to the fourth array element is the column information deleted in the vehicle model product configuration data when the second matching result between the third array element and the fourth array element is a fourth matching value;
[0270] A second comparison unit, used for comparing the third character in the third array element with the fourth character in the fourth array when the second matching result between the third array element and the fourth array element is a second matching value;
[0271] A ninth prompting unit, for prompting, in the comparison result, that the third character in the column information corresponding to the third array element is a character that has not changed in the vehicle model product configuration data when the second comparison unit determines that the third character is the same as the third character in the column information corresponding to the third array element;
[0272] The tenth prompting unit is used to prompt in the comparison result that the fourth character in the column information corresponding to the fourth array element in the vehicle model product configuration data is modified to the third character in the column information corresponding to the third array element when the second comparison unit determines that they are not the same.
[0273] The acquisition module 201 includes:
[0274] A first acquisition unit is used to acquire positioning parameters of vehicle model product configuration data, where the positioning parameters include: a project number of the vehicle model product configuration data and a version number of the vehicle model product configuration data;
[0275] The second acquisition unit is used to locate the vehicle model product configuration data according to the positioning parameters, and acquire the source data and target data that need to be compared from the vehicle model product configuration data.
[0276] In some embodiments, the split module 202 includes:
[0277] A first splitting unit is used to split the source data row by row to obtain SM pieces of row information, and arrange the SM pieces of row information in the order of rows corresponding to the SM pieces of row information in the source data to obtain a first array;
[0278] A second splitting unit is used to split the target data row by row to obtain TM pieces of row information, and arrange the TM pieces of row information in the order of rows corresponding to the target data to obtain a second array;
[0279] A third splitting unit is used to split the source data column by column to obtain SN column information, and arrange the SN column information according to the column order corresponding to the SN column information in the source data to obtain a third array;
[0280] The fourth splitting unit is used to split the target data column by column to obtain TN column information, and arrange the TN column information in the order of columns corresponding to the target data to obtain a fourth array.
[0281] This solution can split and combine the data that need to be paired to obtain the corresponding arrays, and then compare and score the array elements based on the score matrix corresponding to the array, and find the final comparison result by backtracking the scoring path. The comparison of source data and target data can be completed by comparing each array element in the array corresponding to the source data with each array element in the array corresponding to the target data, without comparing each data of the source data with all the data of the target data, which reduces the amount of calculation and improves the comparison efficiency.
[0282] This solution splits the data, establishes a weighted scoring system based on the split data, scores the data through the weighted scoring system, uses the dynamic rule algorithm to obtain the optimal solution for each scoring, and traces back the optimal solution through the scoring path to complete the data comparison. The data splitting is upgraded in dimension, and the subsequent processing process is adaptively optimized, so that this solution can adapt to more diverse data forms and business forms, improving the flexibility of the solution.
[0283] Secondly, this embodiment can initialize the score information of the first score matrix and the second score matrix through an arithmetic progression, which is simple to operate, reduces the complexity of the operation logic, and improves the calculation speed of the solution.
[0284] Again, this embodiment can identify the value path of the first score / second score with the first path value, the second path value and the third path value in the first score matrix / second score matrix, without the need to allocate additional storage space for recording, thereby saving storage space and improving processing efficiency.
[0285] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0286] Figure 3 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.
[0287] See also Figure 3 , the electronic device 300 includes a memory 310 and a processor 320.
[0288] The processor 320 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0289] The memory 310 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 320 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 310 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 310 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. Computer-readable storage media do not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0290] The memory 310 stores executable codes, and when the executable codes are processed by the processor 320 , the processor 320 can execute part or all of the methods described above.
[0291] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0292] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0293] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A vehicle configuration data comparison method, characterized in that: include: Obtain source data and target data that need to be compared from vehicle product configuration data; Splitting the source data and the target data by row information to obtain a first array corresponding to the source data and a second array corresponding to the target data, and splitting the source data and the target data by column information to obtain a third array corresponding to the source data and a fourth array corresponding to the target data; Establishing a first scoring system corresponding to the first array and the second array, and a second scoring system corresponding to the third array and the fourth array; Determine a first score corresponding to each item of the first scoring system and a second score corresponding to each item of the second scoring system according to a pre-designed scoring rule; Matching the array elements in the first array with the array elements in the second array according to the value path corresponding to the first score to obtain a first matching result, and matching the array elements in the third array with the array elements in the fourth array according to the value path corresponding to the second score to obtain a second matching result; The comparison result between the source data and the target data is output according to the first matching result and the second matching result, and the comparison result is used for comparing the changes in the vehicle model product configuration data.
2. The method according to claim 1, characterized in that The establishing of a first scoring system corresponding to the first array and the second array comprises: Establishing a first score matrix corresponding to the first array and the second array, wherein the columns of the first score matrix correspond to the array elements of the first array, and the rows of the first score matrix correspond to the array elements of the second array; Determining the first score corresponding to each item of the first scoring system according to the pre-designed scoring rule includes: The first score and path value of each element in the first score matrix are determined according to pre-designed scoring rules.
3. The method according to claim 2, characterized in that Determining the first score and path value of each element in the first score matrix according to the pre-designed score rule includes: Determine the first scores of the elements in the first row and the first column of the first score matrix by an arithmetic progression, and determine the path values of the elements in the first row and the first column of the first score matrix by a preset path value; Calculate the upper left score, upper score and left score of each element except the first row and the first column in the first scoring matrix by upper left scoring method, upper scoring method and left scoring method respectively; If the maximum value among the upper left score, the upper score and the left score is the upper left score, then determining that the first score of the element is the upper left score, and the path value of the element is the first path value; If the maximum value among the upper left score, the upper score and the left score is the left score, then determining the first score of the element to be the left score, and the path value of the element to be the second path value; If the maximum value among the upper left score, the upper score and the left score is the upper score, then the first score of the element is determined to be the upper score, and the path value of the element is the third path value.
4. The method according to claim 3, characterized in that The upper left scores of the elements except the first row and the first column in the first scoring matrix are calculated by the upper left scoring method, the upper scoring method and the left scoring method respectively, and the upper score and the left score include: If the array element of the second array corresponding to the row where the element is located is the same as the array element of the first array corresponding to the column where the element is located, then the first score of the element to the upper left of the element minus half of the common difference of the arithmetic progression is obtained to obtain the upper left score of the element; If the array element of the second array corresponding to the row where the element is located is different from the array element of the first array corresponding to the column where the element is located, then the first score of the element to the upper left of the element is added to half of the common difference of the arithmetic progression to obtain the upper left score of the element; Add the first score of the element above the element to the common difference of the arithmetic progression to obtain the upper score of the element; The first score of the element to the left of the element is added to the common difference of the arithmetic progression to obtain the left score of the element.
5. The method according to claim 3, characterized in that: The matching the array elements in the first array with the array elements in the second array according to the value path corresponding to the first score to obtain a first matching result includes: According to the path values of the elements in the first score matrix, tracing back from the farthest element in the first score matrix to the elements in the first row or first column, to obtain a tracing path from the farthest element to the elements in the first row or first column of the first score matrix; For a target element in the backtracking path, if the path value of the target element is a first path value, determine whether the second array element is the same as the first array element, and if they are the same, determine that a first matching result between the second array element and the first array element is a first matching value, the first matching value is used to indicate information that has not changed in the vehicle model product configuration data, the first array element is an array element in the first array corresponding to the column where the target element is located, and the second array element is an array element in the second array corresponding to the row where the target element is located; If they are not the same, determining that the first matching result between the second array element and the first array element is a second matching value, the second matching value being used to indicate that there is modified information in the vehicle model product configuration data; If the path value of the target element is the second path value, determining that the first matching result between the second array element and the first array element is a third matching value, the third matching value is used to indicate the newly added information in the vehicle model product configuration data; If the path value of the target element is the third path value, it is determined that the first matching result of the second array element and the first array element is a fourth matching value, and the fourth matching value is used to indicate the information deleted in the vehicle model product configuration data.
6. The method according to any one of claims 1 to 5, characterized in that Outputting the comparison result between the source data and the target data according to the first matching result and the second matching result includes: If the first matching result between the first array element and the second array element is the first matching value, it is indicated in the comparison result that the row information corresponding to the first array element is the row information that has not changed in the vehicle model product configuration data; If the first matching result between the first array element and the second array element is the third matching value, then in the comparison result, it is indicated that the row information corresponding to the first array element is the row information newly added in the vehicle model product configuration data; If the first matching result between the first array element and the second array element is a fourth matching value, it is indicated in the comparison result that the row information corresponding to the second array element is the row information deleted in the vehicle model product configuration data; If the first matching result between the first array element and the second array element is the second matching value, the first character in the first array element and the second character in the second array are compared, and if they are the same, it is prompted in the comparison result that the first character in the row information corresponding to the first array element is the unchanged character in the vehicle model product configuration data; if they are not the same, it is prompted in the comparison result that the second character in the row information corresponding to the second array element in the vehicle model product configuration data is modified to the first character in the row information corresponding to the first array element; If the second matching result of the third array element and the fourth array element is the first matching value, it is indicated in the comparison result that the column information corresponding to the third array element is the column information that has not changed in the vehicle model product configuration data; If the second matching result between the third array element and the fourth array element is a third matching value, it is indicated in the comparison result that the column information corresponding to the third array element is the newly added column information in the vehicle model product configuration data; If the second matching result between the third array element and the fourth array element is a fourth matching value, it is indicated in the comparison result that the column information corresponding to the fourth array element is the column information deleted in the vehicle model product configuration data; If the second matching result of the third array element and the fourth array element is the second matching value, the third character in the third array element and the fourth character in the fourth array are compared. If they are the same, the comparison result indicates that the third character in the corresponding column information of the third array element is the character that has not changed in the vehicle model product configuration data; if they are not the same, the comparison result indicates that the fourth character in the corresponding column information of the fourth array element in the vehicle model product configuration data is modified to the third character in the corresponding column information of the third array element.
7. The method according to any one of claims 1 to 5, characterized in that The step of obtaining source data and target data to be compared from vehicle model product configuration data includes: Acquire the positioning parameters of the vehicle model product configuration data, wherein the positioning parameters include: the project number of the vehicle model product configuration data and the version number of the vehicle model product configuration data; The vehicle model product configuration data is located according to the positioning parameters, and source data and target data that need to be compared are obtained from the vehicle model product configuration data.
8. A data comparison device, characterized in that: include: The acquisition module is used to obtain the source data and target data that need to be compared from the vehicle model product configuration data; a splitting module, configured to split the source data and the target data by row information to obtain a first array corresponding to the source data and a second array corresponding to the target data, and split the source data and the target data by column information to obtain a third array corresponding to the source data and a fourth array corresponding to the target data; A first establishing module, used for establishing a first scoring system corresponding to the first array and the second array; A second establishing module, used for establishing a second scoring system corresponding to the third array and the fourth array; A first determination module, used to determine a first score corresponding to each item of the first scoring system according to a pre-designed scoring rule; A second determination module, used to determine a second score corresponding to each item of the second scoring system according to a pre-designed scoring rule; A third determination module, configured to match array elements in the first array with array elements in the second array according to a value path corresponding to the first score to obtain a first matching result; a fourth determination module, configured to match the array elements in the third array with the array elements in the fourth array according to the value path corresponding to the second score to obtain a second matching result; An output module is used to output a comparison result between the source data and the target data according to the first matching result and the second matching result, wherein the comparison result is used to compare changes in the vehicle model product configuration data.
9. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 7.
