What is the relation between an algorithm and its implementation at the level of code?
An algorithm is a method for performing some task; an implementation is an expression of that method in a particular language.