Google Answers Logo
View Question
 
Q: Textural compare algorithms in VB.net ( No Answer,   2 Comments )
Question  
Subject: Textural compare algorithms in VB.net
Category: Computers > Algorithms
Asked by: jdware-ga
List Price: $25.00
Posted: 24 Aug 2003 11:13 PDT
Expires: 24 Aug 2003 12:11 PDT
Question ID: 248221
I need to show the differences between two text files in my
application. This algorithm must run QUICKLY!

Currently, I load these text files into RichTextBox controls, and use
the .Lines array property to first compare lines -- then for lines
which are similar, compare the line word by word. This way is too slow
for larger files.

Unfortunatly I'm not a computer science graduate, but I have been
programming for 10 years now. I need a crash course in compare
algoritms.

Please help!

Request for Question Clarification by answerguru-ga on 24 Aug 2003 11:33 PDT
Hi jdware-ga,

In order to find the best comparison algorithm, it would be necessary
to know what level of comparison is adequate for your needs. Since
line comparison doesn't seem to be enough (as interpreted from your
question), what level of comparison is enough? Perhaps the best way to
describe this would be to provide some sample lines to illustrate your
desired result.

Considering the complexity of this type of request, may I also suggest
that you reconsider your list price? If anyone answers this question,
only $7.50 will end up in their pocket - considering the skill and
expertise required for this type of task that doesn't seem right :)

Thanks,
answerguru-ga

Clarification of Question by jdware-ga on 24 Aug 2003 11:40 PDT
I need something similar to WinDiff (supplied with visual studio).
Where I can detect additions, differences and deletions of lines --
and for different lines, differences word by word. This must run
quickly because I will be comparing more than 2 files -- I'm guessing
this will be done two at a time.

Clarification of Question by jdware-ga on 24 Aug 2003 11:41 PDT
I bumped up the payment another $15. Sry if its not enough.. I must
work within a student's budget.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Textural compare algorithms in VB.net
From: snsh-ga on 24 Aug 2003 11:31 PDT
 
does it have to be your own code?
did this once using a premade activex control named comparefilesx
Subject: Re: Textural compare algorithms in VB.net
From: jdware-ga on 24 Aug 2003 11:35 PDT
 
It depends on how fast the compare runs. How will I know the
differences? Will it display the differences for me?

I didn't mention this in my original question, but I will be comparing
more than two text files -- but will be done two at a time. This is
another reason for the necessity of speed.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy