I corrected the function proposal_update_allocations() in the implementation of the Split&Merge algorithm: in the last iteration of the for loop the iterator next_it was pointing to the element after the end_it, causing, in some cases, a segmentation fault. Following the suggestion of @mberaha, I removed next_it and modified the if clause where it was used.
I corrected the function proposal_update_allocations() in the implementation of the Split&Merge algorithm: in the last iteration of the for loop the iterator
next_it
was pointing to the element after theend_it
, causing, in some cases, a segmentation fault. Following the suggestion of @mberaha, I removednext_it
and modified the if clause where it was used.