Alan Turing was one of Britain's greatest thinkers of the 20th century who defined modern computing and artificial intelligence. He has subsequently become a gay icon.