/*{
q=0;
int s=0;
int S = 0;
while(true)
{
double a=(B1[s]-B2[S])/B2[S];
if(a<0){a*=-1;};
if(a>0.000000001)
{
++s;
}
else
{
++S;
++B3[s];
}
if(S==20)
break;
}
q=s;
}*/
I put a sample code to call the function void. The data in Table Z [] are always growing and unique, without repetition.
I have written sample code to the random generator, so that the numbers in the table have been growing, for example the number is duplicated,
what you will see after compiling the code given below.
The first and third body of void works on the same principle counts the number of unique repetitive as well. The body of void can do it because
in the actual code I wrote the values are unique and growing.
Moreover, the second body of Void counts unique values in the table, which also is great because they are the unique values in the table Z [].
In turn, the variable 'q' after each iteration function counts the zero in the table Z [], also in this example, the variable q is the start value of 19 or 20 and decreases with the number of iterations function.
The variable q is the need to further optimize the code for the other iterations.
for(int k=0;k<=0;k++) // nie dzialajaca pêtla, by zilustrowac jak jest iterowane wywolanie voida
{ // i zmieniajace siê wartoœci w tablicy Z[] przed kazda iteracji voida