結果 : explain non deterministic algorithm with example