Algorithms for Circuits and Circuits for Algorithms: Connecting the Tractable and Intractable