Algorithm for choosing a place of residence to buy a flat in the suburbs of Lisbon. The most popular request when searching for a first flat in Portugal sounds like "a secondhand property in decent condition up to 100 thousand (or better 70) euros, half the amount...