flawed vs optimal

flawed

adj
  • Having a flaw or imperfection. 

optimal

adj
  • Describing a search algorithm that always returns the best result. 

  • The best, most favourable or desirable, especially under some restriction. 

noun
  • The best of its kind 

How often have the words flawed and optimal occurred in a corpus of books? (source: Google Ngram Viewer )