Hub cover algorithm