algorithm vs device

algorithm

noun
  • A collection of ordered steps that solve a mathematical problem. A precise step-by-step plan for a computational procedure that possibly begins with an input value and yields an output value in a finite number of steps. 

device

noun
  • A project or scheme, often designed to deceive; a stratagem; an artifice. 

  • A peripheral device; an item of hardware. 

  • An improvised explosive device, home-made bomb 

  • A technique that an author or speaker uses to evoke an emotional response in the audience; a rhetorical device. 

  • An image used in whole or in part as a trademark or service mark. 

  • A motto, emblem, or other mark used to distinguish the bearer from others. A device differs from a badge or cognizance primarily as it is a personal distinction, and not a badge borne by members of the same house successively. 

  • Any piece of equipment made for a particular purpose, especially a mechanical or electrical one. 

  • An image or logo denoting official or proprietary authority or provenience. 

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