Difference between revisions of "Talk:TADM2E 1.9"

From Algorithm Wiki
Jump to: navigation, search
(Created page with "What if the code in the inner loop is wrong? function bubblesort (A : list[1…n]) var int i,j for i from n to 1 for j from 1 to i−1 bla...")
 
(Blanked the page)
 
Line 1: Line 1:
What if the code in the inner loop is wrong?
 
  
function bubblesort (A : list[1…n])
 
      var int i,j
 
      for i from n to 1
 
          for j from 1 to i−1
 
              blablabla... (wrong code)
 
 
No matter what "blablabla" is, it looks like we can still prove the algorithm's correctness by the same approach...
 

Latest revision as of 13:18, 18 April 2017