Learn network algorithm