Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2016-12-14
TAOBAO CHINA SOFTWARE
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, the embodiment of the present application provides a method and device for comparing tree-structured files, which are used to solve the problem of poor accuracy of tree-structured file comparisons existing in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for comparing tree structure files
  • A method and device for comparing tree structure files
  • A method and device for comparing tree structure files

Examples

Experimental program
Comparison scheme
Effect test

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,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The application discloses a method and device for comparing tree-structured files, which determine the weights of the root nodes of the first tree-structured file and the second tree-structured file respectively, wherein the weight of the root node is determined by determining the tree-structured The weight of each node of the file is obtained; And according to the weight of the root node of the first tree structure file, and the comparison result of the weight of the root node of the second tree structure file, determine the first tree structure file and the second Whether the two tree structure files are the same. By adopting the solution provided in the embodiment of the present application, the accuracy of the comparison result of tree structure files is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for comparing tree-structured files. Background technique [0002] In existing computer technology, configuration files are often used in order to achieve certain functions. For example, a configuration file is used on a website server to configure some specified parameters and attribute information, and the structure of the configuration file is usually a tree structure. [0003] During the process of generating, modifying and using configuration files, it is often necessary to compare two configuration files to determine whether the two configuration files are the same. For example, for the configuration files used to generate website pages, by comparing whether the two configuration files are the same, it can be determined whether the corresponding two website pages are the same, so as to determine whether the website pages have been tampered w...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 郭志通
Owner TAOBAO CHINA SOFTWARE