optimal vs top of the line

optimal

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

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

noun
  • The best of its kind 

top of the line

adj
  • The best, or of the highest quality, especially among a range of products. 

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