Dating is a search problem