+ 2
Tell me the concept of bubble sorting,selection sorting,insertation sortimg in array............plz help me
plz also give me the example of each.........................
11 Answers
+ 2
no one is gonna help you with that attitude
+ 11
Bubble:
* Go through list
* If next index is smaller than the current, swap the index's
* Never look at this garbage sort again đ
https://en.m.wikipedia.org/wiki/Bubble_sort
Insertion:
* Go through list
* While going through the list place the current index in the proper position. Do this by comparing it with the previous index's. If a previous index is larger, move it forward, else place the value you are comparing into the current position.
https://en.m.wikipedia.org/wiki/Insertion_sort
Selection:
* Go through list
* Find smallest value
* Swap smallest with the index of how many smallest values you've found
https://en.m.wikipedia.org/wiki/Selection_sort
Have a look at the animations on each of the wiki pages to understand further.
+ 3
okay mate....:-)
+ 2
c++
+ 1
nice try bud. do your own homework
+ 1
this is not my homework ........it is for my concepts .....could I make my own shit about that f****** stuff.....
+ 1
any one plz help?!
+ 1
thanks for the help
0
I am sorry mate...........:-(