Representation of algorithms

My definition of Alg: