Bubblesort: determining the invariant for inner- and outer-loop

前端 未结 0 1936
挽巷
挽巷 2021-02-06 02:00

I am not 100 % sure how to determine the invariants for the following bubblesort-implementation:

BubbleSort(A[1,...,n])

s <- 1
while s = 1
        s <- 0
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题