MrBrightside
Brightest Member
- Joined
- Jan 18, 2010
- Messages
- 2,032
- Gender
- Undisclosed
- HSC
- N/A
Bubble - Yes/No?Everytime i've seen them in exams at school they usually provide a subprogram containing those algorithms. I'd say as long as you know the function of each of those algorithms and considering you will be given a main program to make a sub program for if anything, so you will probably be able to just come up with one from that.
Oh and that depends on which type of sort it is.
Insertion - Yes/No?
Selection - Yes/No?
and btw my algorithm of my insertion sort, I'm desk checking it and I seem to be misinterpreting some part of it. The sort isn't making sense, because atm I have
Pass 3
Index: 1 2 3 4 5 6
Value: 18 14 2 21 7 39
As of Pass 3, and according to BOS document everything to the right of 21 should be sorted, why the fuck is 7 still there >.> - like wtf it's treating it as a bubbleSort........WTFFF IS WRONG WITH IT.
Ehhh software....The mindfuck subject.
Also whats the point of this..WHILE (Current < Last)...Current is always going to be less than Last.
Last edited: