How ramnindra/bridge_torch_problem works
This is a small C++ command-line solver for bridge-and-torch crossing times. The documented workflow is to provide a YAML configuration, run the program, and receive per-bridge minimum crossing times and totals. The implementation reads each bridge’s walk-time array and applies a bitmask dynamic program that considers pair crossings and torch returns. The README also describes a broader hikers-and-bridge scenario, but the sampled implementation accepts walk-time arrays; that richer scenario is not represented here.
Main entry points: torchbridge.cpp Test Runner · test.yaml YAML Config
Components 6
Other components
- User
- YAML Config
test.yaml - Test Runner
src/torchbridge.cpp - YAML Parser
- Crossing Solver
src/torchbridge.cpp - Console Output
Connections 6
- User → Test Runner: runs
README.md - YAML Config → Test Runner: provides input
src/torchbridge.cpp - Test Runner → YAML Parser: loads documents
src/torchbridge.cpp - Test Runner → Crossing Solver: solves crossings
src/torchbridge.cpp - Crossing Solver → Crossing Solver: recurses
src/torchbridge.cpp - Test Runner → Console Output: prints totals
src/torchbridge.cpp