Three Basic Algorithm And Problem