Курсовая работа: Алгоритмы поиска кратчайших покрытий булевых матриц
break;
} } } }
counter2[0]++;
for(int i=0; i<(a-1); i++)
{
if(counter2[i]>arra_copy[i] && counter2[a-1]<=arra_copy[a-1])
{
counter2[i]=0;
counter2[i+1]++;
}
}
if(counter2[a-1]>arra_copy[a-1])
break;
t++;
if(t==res)
break;
}
delete []arr_copy;
delete []arra_copy;
delete []arrb_copy;
delete []counter1;
delete []counter2;
pokr_d=new int[res];
for(int i=0; i<res; i++)
{
pokr_d[i]=0;
for(int j=0; j<b; j++)
if(pokr1[i][j]==1)
pokr_d[i]++;