action priority list generate algorithm