I just too focus on the implementation. This is really not good. But finally, after one minute searching and half an hour to read about the methods, I can have a bigger view on the algorithm's correctness proving.
There are a lot of methods to prove the correctness of the algorithm, but one of the most usual method is induction. Now, just need to think about the base step and the inductive step to prove the correctness of the algorithm.
Let's try !
Không có nhận xét nào:
Đăng nhận xét