study of Algorithm