algorithm-rules