How the diff is computed
The tool finds the longest common subsequence (LCS) of lines between the two texts. Lines in the LCS are unchanged; lines only in the original are shown as removed (−), lines only in the new text as added (+). This is the same idea behind diff and git diff, which use faster variants such as the Myers algorithm.
Reading the output
The two number columns are the line numbers in the original and in the changed text. A modified line appears as one removal followed by one addition.