How to cope with NP-hardness