It looks like the described technique is an example of Dynamic programming.

In reply to Re: Benchmarks aren't everything by zby
in thread Benchmarks aren't everything by tilly

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":