Text this: Optimization of multiple sampling for solving network boundary specification problem