Some algorithms and codes