Home/stolen algorithm