This is the entire question of P vs NP. I'd love to point you to a reference, but the question remains unresolved. Good hunting.