Sorting algorithms | Sololearn: Learn to code for FREE!

+4

Sorting algorithms

bubble sort is faster than selection one isn't it? I have writen two codes and I was surprised that bubble is faster than selection :(

1/27/2018 7:43:55 PM

Abdurrahman Abulgasim

4 Answers

New Answer

+7

easy way, with run time summary of all algorithm, check it once, https://code.sololearn.com/cY7SC8lmidwy/?ref=app

+3

it shows that bubble is faster than selection

+2

I think I have discovered the problem I am using filter to delete vector minimum element this may be make the code slow

+1

Maybe non optimized algorithm Check my research 🤓😉 and thumb-up in codebit if likes. This also encourage myself to continue with next sorting algorithms https://code.sololearn.com/ciT6SI8eE9Q4/?ref=app