How to efficiently solve almost any problem