You may use the algorithm
just coding it in a way suitable for the
Android
platform, for instance using
Java
. Roughly speaking, algorithms are abstract specifications of computer programs hence you may implement them with the languages you like (or the platform you're interested in supports).
So make sure you fully understand the algorithm recipe and then have a look at Android development documentation (
Android SDK[
^]), finally enjoy coding.