Fast solution of some random NP-hard problems