How to dry run with Trace Tables
<p>This is a <strong>basic</strong> question on the use of Trace Tables to assist in a dry run of a simple algorithm. </p>

<p>What I find most tricky is <strong>when to take a new line in the trace table</strong>?  For example, take the following question:</p>

<p><a href="https://i.stack.imgur.com/HYbA2.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HYbA2.jpg" alt="enter image description here"></a></p>

<p>Here is the array of integers which it applies to:
<a href="https://i.stack.imgur.com/dg6HY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dg6HY.jpg" alt="enter image description here"></a></p>

<p>The following trace table is presented as one completes a dry run.  Here is the solution:</p>

<p><a href="https://i.stack.imgur.com/Y4el7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y4el7.jpg" alt="enter image description here"></a></p>

<p>I understand that initialising the variables <em>Number</em>, <em>Lower</em> &amp; <em>Upper</em> appear on the first line, but when I go into the While Loop, I am tempted to put the value <strong>5</strong> <strong>on the first line also</strong>, for the variable <em>Current</em>.  In essence, this is what I am tempted to do:</p>

<p><a href="https://i.stack.imgur.com/EKjyL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EKjyL.jpg" alt="enter image description here"></a></p>

<p>Why does this solution  require that the value for Current, which is 5, appear on the second line? I suppose the question could be rephrased to '<em>When do I take a new line in a trace table?</em>'</p>

<p>Thanks.</p>