HACKER Q&A
📣 breck

Algo for 2D Diffs?


Anyone have a good algorithms for minimum 2-dimensional diff? Input is 2 trimmed and clean CSVs (files don’t end in \n; lines don’t end in ,; no quotes or escaping)


  👤 abqexpert Accepted Answer ✓
I don't think I have seen one, but if you can add some other delimiter yourself or modify the file that might help. You can always use a binary(non-line) based diff. I think cperciva's thesis was on one that became bsdiff.

👤 verdverm
You can diff by word or char, look into the flags / options of your diff system