Here | separates the dangling nucleotide position from the adjacent base pair, d5' (k - 1|k, l) thus is the energy of the nucleotide at position k - 1 when interacting with following base pair (k, l), while d3' (k, l|l + 1) scores the interaction of position l + 1 with the preceding pair (k, l).