![]() | This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||
|
In my opinion the normalization of example 1 is not correct.
// Example 1
for ( i = 7; i < MAX; i+=3 )
a[i] = b[i] + 5;
the normalization should look like this:
for ( i = 0; i < (MAX-7+3)/3; i++ )
a[i*3+7] = b[i*3+7] + 5;
or
for ( i = 0; i < (MAX-7)/3+1; i++ )
a[i*3+7] = b[i*3+7] + 5;
--Tuxold1964 (talk) 17:53, 9 May 2011 (UTC)