Page 1 of 1

(e) What is the worst-case complexity of NEWSORT2 if the array of size n consists of k(k<=n) pre-sorted blocks of identi

Posted: Thu May 05, 2022 1:32 pm
by answerhappygod
(e) What is the worst-case complexity of NEWSORT2 if the array of size n consists of k(k<=n) pre-sorted blocks of identical size? for example, the following array consists of 4 pre-sorted blocks of size 3:
[5, 6, 7, 1, 8, 9, 2, 3, 11, 12, 15, 16]
Pyton