General Algorithm gist