Before taking any action, the self-driving car needs to check its database to see if it's encountered a similar situation before.