Псевдокод:
N = 80 (Может меняться)
for (i=0; i<10000000; i++)
{
insert into table1 (N строк);
row1 = select left,right,hash from table1 (N строк)
foreach row1
{
array1[left] = left
array1[right] = right
array1[hash] = hash
}
row2 = select seed from table2 (15 млн. строк)
while (row2)
{
foreach array1 {
nextseed = array1[left].row2[seed].array1[right];
nexthash = sha256(nextseed)
if nexthash = array1[hash] {udpdate table3 save nextseed, nexthash; exit}
}
}
truncate table1
insert into table2 (Добавляется N новых строк)
}
Сделать на С++
Без предоплаты.
Опубликован 30.10.2015 в 09:48
Заказ находится в архиве