dynamic time warping (DTW) algorithm
<p>I'm trying to understand the so called <a href="https://en.wikipedia.org/wiki/Dynamic_time_warping" rel="nofollow noreferrer">DTW algorithm</a>.</p>

<p>What's the meaning of the following? </p>

<pre><code>for i := 1 to n
   DTW[i, 0] := infinity
</code></pre>

<p>And how the is different from the below?</p>

<pre><code>for i := 1 to m
   DTW[0, i] := infinity
</code></pre>