Keith Devlin chronicles scientists' centuries-old quest to discover the laws of thought, from the astonishingly adept efforts of the ancient Greeks, to the invention of the first primitive "thinking machine" in the late nineteenth century, to radical findings that are challenging the very notion that the mind follows logical rules.