[Paper Review] A parallel framework for reverse search using mts
This paper presents mts, a generic C framework that enables parallelization of reverse search algorithms with minimal code changes by wrapping legacy sequential codes. Using MPI, mts achieves near-linear speedup on 192 cores by distributing tree search tasks across workers, dynamically budgeting subproblems, and efficiently managing load balancing through adaptive job scheduling and message tracking.
We describe mts, which is a generic framework for parallelizing certain types of tree search programs, that (a) provides a single common wrapper containing all of the parallelization, and (b) minimizes the changes needed to the existing single processor legacy code. The mts code was derived from ideas used to develop mplrs, a parallelization of the reverse search vertex enumeration code lrs. The tree search properties required for the use of mts are satisfied by any reverse search algorithm as well as other tree search methods such as backtracking and branch and bound. mts is programmed in C, uses the MPI parallel environment, and can be run on a network of computers. As examples we parallelize two simple existing reverse search codes: generating topological orderings and generating spanning trees of a graph. We give computational results comparing the parallel codes with state of the art sequential codes for the same problems.
Motivation & Objective
- To address the challenge of parallelizing legacy sequential tree search codes, especially those used in reverse search, backtracking, and branch-and-bound.
- To reduce the complexity and risk of modifying deeply nested, well-tested sequential codes by providing a reusable, generic parallelization wrapper.
- To enable high-performance parallel execution of reverse search algorithms on distributed clusters without requiring changes to the core enumeration logic.
- To support efficient load balancing and dynamic job scheduling in distributed tree search by introducing adaptive budgeting and message tracking mechanisms.
Proposed method
- mts wraps existing sequential reverse search codes using a minimal interface, requiring only the definition of a local search function f and adjacency oracle Adj.
- The framework uses MPI for distributed execution, with a master process managing a job list and distributing subproblems to worker processes.
- Each worker performs a depth-first traversal of a subtree, using a dynamic budgeting strategy controlled by -scale and -maxnodes parameters to balance load.
- Workers report back to the master with the number of unexplored nodes (via bts() function), enabling the master to track progress and adjust job distribution.
- The system maintains a histogram of worker activity and job list size, with visualization scripts (plotL.gp) to guide parameter tuning for performance.
- A frequency file of subproblem sizes (from bts() outputs) is generated to inform optimal budget settings, with a separate script (plotD.gp) for visualizing job size distributions.
Experimental results
Research questions
- RQ1Can a generic, minimal-wrapper framework be designed to parallelize diverse reverse search algorithms without modifying their core logic?
- RQ2How can dynamic load balancing be achieved in distributed tree search when subproblem sizes vary significantly and are unknown in advance?
- RQ3What parameter settings (e.g., -scale, -maxnodes) yield optimal performance across different input types and cluster configurations?
- RQ4To what extent can the same framework achieve near-linear speedup across different reverse search problems with minimal tuning?
- RQ5Can the framework be extended to other tree search paradigms such as branch-and-bound or SAT solving with similar performance gains?
Key findings
- mts achieved nearly linear speedup on a 192-core cluster when applied to two reverse search problems: topological ordering and spanning tree generation.
- Using default parameters, the framework produced a histogram showing the master struggled to keep all workers busy, indicating underutilization due to small job budgets.
- Increasing -maxnodes to 1,000,000 caused excessive idle time as the job list emptied too quickly, showing that overly large budgets reduce load balancing efficiency.
- Tuning with -scale 200 and -maxnodes 10,000 reduced total job count by more than half and improved performance by approximately 5% compared to default settings.
- Subproblem size distributions (from frequency files) revealed that many jobs corresponded to small subtrees, suggesting potential for pruning to improve efficiency.
- The framework’s ability to generate performance histograms and subproblem size plots enabled effective parameter tuning, demonstrating practical usability in real-world settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.