INNER CODE UNIT · C++

diff

torognes/swarm · src/algo.cpp:747

            auto const diff = batch.diffs_v[member_it->offset + i];

            if (diff > parameters.opt_differences) { continue; }

            // swarmed by an earlier subseed since its candidacy was
            // recorded? then it is gone from the pool, as it would have
            // been from a late-selected candidate list
            auto const target =
              pool_position_of(batch.target_ids[member_it->offset + i],
                               cursor.swarmed, amps_v);
            if (target == amps_v.size()) { continue; }

            /* find correct position in list */

            auto const pos = find_correct_position_in_list(cursor.swarmed, target, cursor.seeded,
                                                           subseed, amps_v);

            move_target_to_first_unswarmed_position(pos, target, amps_v);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…