Generalized Multi-Path Algorithm