Update searching method and device for file comparison, storage medium and equipment

A file and element technology, applied in the field of file comparison update search methods, devices, storage media and electronic equipment, can solve the problems of difficult implementation, complex update search methods and algorithms, etc.

Active Publication Date: 2019-05-10
NEUSOFT CORP
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of this disclosure is to provide an update search method, device, storage medium and electronic equipment for file comparison, which is used to solve the problem that the algorithm of the existing update search method is complex and difficult to implement

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
  • Update searching method and device for file comparison, storage medium and equipment
  • Update searching method and device for file comparison, storage medium and equipment
  • Update searching method and device for file comparison, storage medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0068] Specific embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present disclosure, and are not intended to limit the present disclosure.

[0069] figure 1 is a schematic flowchart of an update search method for file comparison according to an exemplary embodiment of the present disclosure, as shown in figure 1 As shown, the method includes:

[0070] Step 101: Taking the content of each preset unit as an element in the first file and the second file, comparing the first file with the second file to obtain the longest common value between the first file and the second file subsequence.

[0071] Among them, before the comparison between the first file and the second file, the first file and the second file need to be serialized first. Serialization can be understood as taking the content of each...

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 invention relates to an updating and searching method and device for file comparison, a storage medium and equipment, and the method comprises the steps: taking the content of each preset unit asan element in a first file and a second file, and comparing the first file with the second file, so as to obtain the longest common subsequence of the first file and the second file; performing indexalignment on the common elements in the first file and the common elements in the second file according to the longest common subsequence; and determining update elements in the first file and the second file according to a position corresponding relation between the common element gap where the deleted elements in the first file are located and the common element gap where the added elements in the second file are located. According to the method and the device, comparison between the files and alignment of the common contents can be realized without depending on a complex algorithm, so thatupdate contents between the files can be searched according to the aligned common contents, the implementation difficulty can be reduced, and the method and the device are easy to implement.

Description

technical field [0001] The present disclosure relates to the technical field of text processing, and in particular, relates to an update search method, device, storage medium and electronic equipment for file comparison. Background technique [0002] In daily applications, file or text comparison is a relatively common requirement in many fields. For example, compare two articles in two files (for example, compare two word files), or compare codes in two files (for example, code differences in two scripts), etc. The purpose of file comparison is usually to achieve the alignment of lines or paragraphs of two files, so as to find content correlation and differences. [0003] Because file comparison can help users quickly find the correlation and differences between two files, file comparison is an important function in daily applications, whether for individuals or multi-person collaboration, and can improve user work efficiency. For example, in the current software developm...

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 Applications(China)
IPC IPC(8): G06F17/22G06F16/16
CPCY02D10/00
Inventor 韩志刚宋洋于广伟姜楠
Owner NEUSOFT CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products