File differentiation comparison method and device, storage medium and electronic device
A document, difference technology, applied in the computer field, can solve problems such as poor accuracy and readability, and achieve the effect of improving accuracy and scalability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0018] The method embodiment provided in Embodiment 1 of the present application may be executed in a terminal, a computer terminal, or a similar computing device. Take running on the terminal as an example, figure 1 It is a block diagram of the hardware structure of a terminal of a method for file differential comparison in an embodiment of the present invention. Such as figure 1 As shown, the terminal 10 may include one or more ( figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA) and memory 104 for storing data. Optionally, the above-mentioned terminal can also be A transmission device 106 for communication functions and an input and output device 108 are included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and does not limit the structure of the above-mentioned terminal. F...
Embodiment 2
[0069] This embodiment also provides a device for file differential comparison, which is used to implement the above embodiments and preferred implementation modes, and what has already been described will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
[0070] image 3 is a structural block diagram of a device for file differential comparison according to an embodiment of the present invention, such as image 3 As shown, the device includes: a comparison module 32, which is used to compare the first file with the second file according to the ordering of the symbol sequence in the file; a division module 34, which is coupled with the comparison module 32, and is used to The same li...
Embodiment 3
[0077] An embodiment of the present invention also provides a storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
[0078] Optionally, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:
[0079] S1, comparing the first file with the second file according to the sorting of symbol sequences in the files;
[0080] S2. Divide the symbol sequences in the first file and the second file into multiple sub-ranges according to the same row symbols appearing in the comparison result;
[0081] S3. According to the plurality of subranges, perform longest common subsequence LCS on unmatched symbol sequences in the first file and the second file to obtain an alignment difference result.
[0082] Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com