Flooding algorithms