結果 : what are the building blocks of an algorithm explain in detail with examples