A method and device for comparing tree structure files
A tree structure, file technology, applied in the computer field, can solve problems such as poor accuracy, and achieve the effect of improving accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] image 3 The flow chart of the method for comparing tree-structured files provided in Embodiment 1 of the present application specifically includes the following processing steps:
[0036] Step S301, respectively determine the number of node layers of the node structure of the first tree structure file and the second tree structure file to be compared, and respectively determine the layer information corresponding to each node layer based on the determined number of node layers.
[0037] Specifically, the layer information corresponding to the node layer may be preset. For example, it is the set value corresponding to the node layer. If the set value is fixed, the saved preset set value corresponding to each node layer can be directly obtained;
[0038] Preferably, the set value corresponding to the node layer can also be randomly generated. For example, in each file comparison, a random number corresponding to the node layer is generated using a set random number gen...
Embodiment 2
[0075] Based on the same inventive concept, according to the method for comparing tree-structured files provided in the above-mentioned embodiments of the present application, correspondingly, Embodiment 2 of the present application also provides a device for comparing tree-structured files, and its structural diagram is as follows Figure 5 shown, including:
[0076] A weight determination unit 501, configured to determine the weights of the root nodes of the first tree structure file and the second tree structure file respectively, wherein the weight of the root node is obtained by determining the weights of each node of the tree structure file ;
[0077] A comparison unit 502, configured to determine the first tree-structure file according to a comparison result between the weight of the root node of the first tree-structure file and the weight of the root node of the second tree-structure file Whether it is the same as the second tree structure file.
[0078] Preferably,...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 