Loop Invariants II

Поділитися
Вставка
  • Опубліковано 25 сер 2024
  • This a short video on how to find and prove something is a loop invariant.

КОМЕНТАРІ • 5

  • @overlord529
    @overlord529 Рік тому +2

    Its great to see you posting again! Its been too long Andy. I look forward to seeing what you get up to in the future professor!

    • @andyguna
      @andyguna  Рік тому +2

      lack of time Brian. I have a good data science course that I want to make videos next time.

  • @user-gr3yl6vd5e
    @user-gr3yl6vd5e 3 місяці тому +1

    do we need to proof all of them.. or just one to say that this a correct code PLEAASE ANSWER ME !!!!!!!

    • @andyguna
      @andyguna  3 місяці тому +1

      proving correct code means that you need to show pre conditions + loop invariants lead to post-condition. Correct code means post condition is what you expect the code to do, You often need more than one LI to show this.

    • @user-gr3yl6vd5e
      @user-gr3yl6vd5e 3 місяці тому

      @@andyguna thank u proff