Блог пользователя monyet

Автор monyet, 10 лет назад, По-английски

Hello guys, sometimes i'm having trouble proofing my algorithm correctness. I've seen many Editorial where the author make some lemmas and proof their correctness. Is there a book where I can learn something like that? I've read several books this , it doesn't help much.

Thanks guys!

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится

»
10 лет назад, # |
  Проголосовать: нравится +16 Проголосовать: не нравится

One way to proof an algorithm is, find something that is always true when the program iterates over. You need to: 1.prove that the condition is true before start; 2.proof iterations will not change it.

And it sounds very similar to Proof by Induction in math. Maybe some math proving guide is helpful too.

»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I think a rigorous introductory class on algorithms would be good. You should be able to find such MOOC courses on Coursera, MIT OpenCourseWare, ...