Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

File comparing algorithm

Status
Not open for further replies.

Aeren

Newbie level 3
Joined
Aug 30, 2005
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,310
Hi everyone!

I would like to make an algorithm, which compares 2 files. It takes the first file as basic, and makes the comparison to the other. The file can be modfied like this:
1. parts get removed: the prog indicates, nothing special
2. parts get included: the prog highlights these parts(different color example), no spec either
3. parts get modified: case 1 and 2 together

The program should work for unlimited depth, the program should find the matching parts correctly even after longer distance. I think after a matching sentence we can assume matching(3rd case).

Can anyone help me with this problem of mine? I want to make this in JAVA, but i really need the theory not the code itself.

Thanks!

Aeren
 

vikkyse

Newbie level 5
Joined
Sep 30, 2004
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
74
goto code project.com and search in c# projects. there is a sample that does all this.
 

artem

Advanced Member level 4
Joined
May 22, 2003
Messages
1,350
Helped
126
Reputation
252
Reaction score
32
Trophy points
1,328
Location
Turkey
Activity points
13,450
CVS already does that . Check code - it is open.
 

jinics

Member level 2
Joined
Mar 28, 2004
Messages
50
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Location
Pakistan
Activity points
339
a study of diff utility in linux can help you.see man page.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top