Exact Solutions for Diluted Spin Glasses and Optimization Problems | Synapse