Click here to Skip to main content
15,890,186 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: How to Remove duplicate files rapidly? Pin
happy liu9-Oct-13 16:44
professionalhappy liu9-Oct-13 16:44 
GeneralRe: How to Remove duplicate files rapidly? Pin
Manfred Rudolf Bihy9-Oct-13 16:51
professionalManfred Rudolf Bihy9-Oct-13 16:51 
GeneralRe: How to Remove duplicate files rapidly? Pin
happy liu9-Oct-13 16:52
professionalhappy liu9-Oct-13 16:52 
GeneralRe: How to Remove duplicate files rapidly? Pin
saephoed8-Jan-14 12:50
saephoed8-Jan-14 12:50 
AnswerRe: How to Remove duplicate files rapidly? Pin
Kornfeld Eliyahu Peter9-Oct-13 0:50
professionalKornfeld Eliyahu Peter9-Oct-13 0:50 
GeneralRe: How to Remove duplicate files rapidly? Pin
happy liu9-Oct-13 16:42
professionalhappy liu9-Oct-13 16:42 
GeneralRe: How to Remove duplicate files rapidly? Pin
Kornfeld Eliyahu Peter10-Oct-13 1:10
professionalKornfeld Eliyahu Peter10-Oct-13 1:10 
AnswerRe: How to Remove duplicate files rapidly? Pin
Chris Losinger10-Oct-13 5:05
professionalChris Losinger10-Oct-13 5:05 
i wrote a little app to do this for my own use, and i used multiple tests:

for every file to compare, find:
1. size - if they aren't the same size, they aren't the same file.
2. a copy of the first 100 bytes - if the first 100 bytes don't match, they aren't the same file. this is easy and fast to compare, requires no computation, and doesn't take much to store.

that stage is very fast. it generally takes far longer to just get the list of files than it does to do all of those tests.

after that,
calculate the hash (i used SHA1) of the first few KB for each of the remaining files. compare the hashes.

after those two stages, you will have eliminated most of the non-duplicates. then, you can do a full hash of the remaining files to find any definite duplicates.

GeneralRe: How to Remove duplicate files rapidly? Pin
Kornfeld Eliyahu Peter10-Oct-13 5:42
professionalKornfeld Eliyahu Peter10-Oct-13 5:42 
GeneralRe: How to Remove duplicate files rapidly? Pin
Manoj Kumar Rai13-Oct-13 9:26
professionalManoj Kumar Rai13-Oct-13 9:26 
AnswerRe: How to Remove duplicate files rapidly? Pin
theafien3-Dec-13 3:58
theafien3-Dec-13 3:58 
QuestionEstimating RGB function blackbox Pin
codetowns27-Sep-13 23:04
codetowns27-Sep-13 23:04 
AnswerRe: Estimating RGB function blackbox Pin
Alan Balkany30-Sep-13 4:16
Alan Balkany30-Sep-13 4:16 
GeneralRe: Estimating RGB function blackbox Pin
codetowns1-Oct-13 5:26
codetowns1-Oct-13 5:26 
GeneralRe: Estimating RGB function blackbox Pin
Alan Balkany1-Oct-13 5:29
Alan Balkany1-Oct-13 5:29 
SuggestionRe: Estimating RGB function blackbox Pin
Matt T Heffron1-Oct-13 7:22
professionalMatt T Heffron1-Oct-13 7:22 
Questionhow to implement this Algorithm? (for DOM) Pin
computer_programmer121-Sep-13 5:42
computer_programmer121-Sep-13 5:42 
AnswerRe: how to implement this Algorithm? (for DOM) Pin
Richard MacCutchan21-Sep-13 7:13
mveRichard MacCutchan21-Sep-13 7:13 
QuestionI need help on Genetic Algorithm using C# Pin
Uche Osahor4-Sep-13 2:37
Uche Osahor4-Sep-13 2:37 
AnswerRe: I need help on Genetic Algorithm using C# Pin
Alan Balkany4-Sep-13 5:00
Alan Balkany4-Sep-13 5:00 
GeneralRe: I need help on Genetic Algorithm using C# Pin
Uche Osahor4-Sep-13 5:08
Uche Osahor4-Sep-13 5:08 
Questioninversion algorithm Pin
amnakhan78612-Aug-13 18:51
amnakhan78612-Aug-13 18:51 
GeneralRe: inversion algorithm Pin
harold aptroot15-Aug-13 21:43
harold aptroot15-Aug-13 21:43 
AnswerRe: inversion algorithm Pin
Alan Balkany16-Aug-13 4:31
Alan Balkany16-Aug-13 4:31 
QuestionTLS HMAC and the Pseudorandom Function Simplification Assistance Pin
Dominick Marciano10-Aug-13 19:37
professionalDominick Marciano10-Aug-13 19:37 

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.