Math sheds light on how living cells ‘think’

How does the ‘brain’ of a living cell work, allowing an organism to function and thrive in changing and unfavourable environments?