I was coding my own sorting algorithm, and when I ran it, I was unsure what category it would fall into (Eg: Bubble Sort, Selection Sort, and so on). When I ran the program to see individual patterns, I could find none. Could someone explain what category my algorithm is? Here is my code:
No, that was really it. And also, could you tell me how bubble sort works, because i must have misread about it since I already thought about that category?
This is a selection sort, without copy optimization.
(You copy every time you find a smaller value, instead of waiting to copy the smallest just once.)