Algorithm in brief