kaist-cp / cs500

Moved to https://cp-git.kaist.ac.kr/jeehoon.kang/cs500
25 stars 7 forks source link

Proof of correctness odd-even sort #48

Closed HaritzPuerto closed 5 years ago

HaritzPuerto commented 5 years ago

Hello,

I have a question about the proof of correctness of the odd-even sort algorithm.

We have that COi <= max (AOk, BOi-k), where does it expression came from? k comes from the second lemma (there is k st. AEk <= CEi <= AEk+1 and BEi-k <= CEi <= BEi-k+1) but how can we link COi with AO and BO using the k index from the second lemma?

Thank you

jeehoonkang commented 5 years ago
HaritzPuerto commented 5 years ago

thank you