>"How can you recognize optimal / suboptimal solutions"
Maybe because I have 40+ years of programming under my belt starting with machine codes and every type of software one can imagine.