all algorithm in presentation