1 1 vote Why option (A) is not correct ? Algorithms sorting insertion-sort selection-sort nptel-quiz + – mcjoshi 1.6k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote I think the answer has to be (B) or (D) because the statment "Quick sort always takes less than 1 sec " is false due to max time complexity of $n^{2}$. Now, selection sort always runs in $n^{2}$ time. So, (D) is discarded, atleast partially. So, I think answer is (B). The other reason is for (A) to be wrong choice for this question is Merge sort is taking 0.2 sec while selection sort is taking 2.77 hrs. Sushant Gokhale answered Aug 24, 2016 Sushant Gokhale comment Share Follow See all 7 Comments 7 7 Comments reply mcjoshi commented Aug 24, 2016 reply Follow flag Correct Option is (C), But i just need to know why is (A) not right answer 0 0 replyShare Sushant Gokhale commented Aug 25, 2016 i edited by Sushant Gokhale Nov 7, 2016 reply Follow flag ohh..I misread the question. I thought that which answer could be false. The reason that why (A) isnt the answer is strictly speaking the recurrance for selection sort evaluates to n(n-1)/2 which comes out less than 2.5 hrs. 0 0 replyShare mcjoshi commented Aug 25, 2016 reply Follow flag The option says " Merge Sort always takes less than 1 sec which is True " 0 0 replyShare Sushant Gokhale commented Aug 25, 2016 reply Follow flag yes bro. So whats your query? 0 0 replyShare mcjoshi commented Aug 26, 2016 reply Follow flag I figured out why other's are false but I don't know why (A) is wrong 0 0 replyShare Sushant Gokhale commented Aug 26, 2016 i edited by Sushant Gokhale Nov 7, 2016 reply Follow flag Thats what I told you. Selection sort doesnt always take min of 2.5 hrs. 0 0 replyShare mcjoshi commented Aug 26, 2016 reply Follow flag Got it ! Thanks Bro 0 0 replyShare Please log in or register to add a comment.