Please help me understand this formula (in case anybody is wondering, that is the Needleman-Wunsch-algorithm), I am supposed to write a code that uses recursion but I don't understand how to do so, I already have the full dynamic version written, so I know how the algorithm works but I have no idea on how to implement it with recursion/the stack. I'm open for any suggestion.
This is the formula: