Optimization with Pattern-Avoiding Input | Synapse