SMS dit: Fundamental algorithms :