Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Comparing strings from different files

by Laurent_R (Monsignor)
on Oct 08, 2013 at 18:57 UTC ( #1057451=note: print w/ replies, xml ) Need Help??

in reply to Comparing strings from different files

If the file are not too big, then the hash, as per Hippo's solution.

If they are too big, then sort them according to the key that matters to you, and read both files in parallel (but watch out, there are a number of edge cases, the algorithm can be a bit tricky).

Comment on Re: Comparing strings from different files

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057451]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2015-11-25 23:50 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (693 votes), past polls