A British-Canadian researcher has won the Nobel Prize in physics for work developing the foundations of machine learning and artificial intelligence.