Three Basic Algorithm Math Definition