+ 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 :(

27th Jan 2018, 7:43 PM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
4 Respostas
+ 7
easy way, with run time summary of all algorithm, check it once, https://code.sololearn.com/cY7SC8lmidwy/?ref=app
7th Feb 2018, 6:00 PM
ASIF BILAKHIYA
ASIF BILAKHIYA - avatar
+ 3
it shows that bubble is faster than selection
7th Feb 2018, 6:06 PM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 2
I think I have discovered the problem I am using filter to delete vector minimum element this may be make the code slow
27th Jan 2018, 8:01 PM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 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
1st Feb 2021, 10:05 PM
David Ordás
David Ordás - avatar