The idea of quandle cocycle invariants was used to determine the minimal number of Reidemeister moves needed to move one diagram to another diagram of the same knot for some examples in [CESS05*].