Click here to Skip to main content
16,017,376 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralComputing Binary File Changes Pin
Skippums12-Mar-08 10:24
Skippums12-Mar-08 10:24 
GeneralRe: Computing Binary File Changes Pin
Member 419459326-Mar-08 8:43
Member 419459326-Mar-08 8:43 
QuestionRe: Computing Binary File Changes Pin
Skippums29-Mar-08 17:38
Skippums29-Mar-08 17:38 
GeneralRe: Computing Binary File Changes Pin
Member 419459329-Mar-08 18:27
Member 419459329-Mar-08 18:27 
GeneralRe: Computing Binary File Changes Pin
Member 419459330-Mar-08 6:48
Member 419459330-Mar-08 6:48 
QuestionRe: Computing Binary File Changes Pin
Skippums30-Mar-08 10:37
Skippums30-Mar-08 10:37 
GeneralRe: Computing Binary File Changes Pin
Member 419459330-Mar-08 12:38
Member 419459330-Mar-08 12:38 
GeneralRe: Computing Binary File Changes Pin
Member 419459316-Apr-08 16:19
Member 419459316-Apr-08 16:19 
I have just completed my version to compare two files. I had created a program that just did the MaxSubstring function, and used the source and EXE as the files to compare against with the new file compare version of the files. It compares 161527 bytes to 57897 bytes (161KB to 58KB the source code files) in 1.079 seconds producing a difference file of 13KB. The .EXE comparisons were 41015 bytes to 36916 bytes (41KB to 36KB the .exe files) in .906 seconds producing a 15KB difference file. The algorithm could still stand some tweeking because my debug version (slower but outputs lots of data) shows some sections that consist of many replications of match 1 byte, 1 byte different, match 1 byte... Just addressing each of the differences (file locations and sizes) requires much more file space than the changes themselves. The algorithm is based on my version of the MaxSubstring function. To verify the result, I created another function that took the base file, applied the difference file, reconstructed the second file, and then did a file compare to verify that they were accurate. Are you still interested in the algorithm?

Dave Augustine
GeneralRe: Computing Binary File Changes Pin
Skippums16-Apr-08 17:39
Skippums16-Apr-08 17:39 
GeneralRe: Computing Binary File Changes Pin
Member 419459316-Apr-08 18:50
Member 419459316-Apr-08 18:50 
GeneralRe: Computing Binary File Changes Pin
Skippums18-Apr-08 6:38
Skippums18-Apr-08 6:38 
GeneralRe: Computing Binary File Changes Pin
Member 419459327-Apr-08 8:25
Member 419459327-Apr-08 8:25 
GeneralRe: Computing Binary File Changes Pin
Skippums27-Apr-08 22:17
Skippums27-Apr-08 22:17 
GeneralRe: Computing Binary File Changes Pin
Member 419459328-Apr-08 15:34
Member 419459328-Apr-08 15:34 
GeneralSegment selected region from the video frames Pin
ptr_Electron12-Mar-08 3:17
ptr_Electron12-Mar-08 3:17 
QuestionAlgorithm performance comparison question Pin
Nick Alexeev8-Mar-08 16:32
professionalNick Alexeev8-Mar-08 16:32 
GeneralRe: Algorithm performance comparison question Pin
Skippums13-Mar-08 5:36
Skippums13-Mar-08 5:36 
GeneralWhole Number Ratios Pin
MikeMarq8-Mar-08 11:08
MikeMarq8-Mar-08 11:08 
GeneralRe: Whole Number Ratios Pin
cp98768-Mar-08 11:51
cp98768-Mar-08 11:51 
GeneralTimetable algorithm Pin
Slick697-Mar-08 0:42
Slick697-Mar-08 0:42 
GeneralRe: Timetable algorithm Pin
Paul Conrad7-Mar-08 11:13
professionalPaul Conrad7-Mar-08 11:13 
GeneralRe: Timetable algorithm Pin
Slick6911-Mar-08 1:34
Slick6911-Mar-08 1:34 
GeneralRe: Timetable algorithm Pin
Colin Angus Mackay8-Mar-08 11:23
Colin Angus Mackay8-Mar-08 11:23 
GeneralRe: Timetable algorithm Pin
Dexterus11-Mar-08 4:14
Dexterus11-Mar-08 4:14 
GeneralRe: Timetable algorithm Pin
Dan Neely11-Mar-08 5:41
Dan Neely11-Mar-08 5:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.