#but i got the bubble sort function done. gotta put in the code for insertion and selection sorts using the bones from the bubble sort
Explore tagged Tumblr posts
Text
Started working on my C lab. Remembered how good of a position I left myself in after last week, so yay!! It won't take too much effort to finish.
I'm not gonna finish before lab tho, both bc I dont really have time (whoops I dragged my feet with starting it this morning) but also I realized. Well the sort functions are self-explanatory. Randomly generate an array and then sort it, timing how long each sort takes to do it. But then the search functions... *what* are we supposed to be searching???? That's. Not stated in the document. So I'm gonna ask the TA about that.
#speculation nation#also i think binary search needs them to be sorted already??? so uh. whats the deal here#but i got the bubble sort function done. gotta put in the code for insertion and selection sorts using the bones from the bubble sort#aka i copy pasted all the time stamp and print shit from the bubble sort to build off of. bc it's the same for these too#just that middle part. the loops themselves. those are different. but i can also find those online easy#also the professor literally Gave us the code in class. but im gonna double check them with online stuff too#just in case. since i wrote them down and he wrote them down on the board. several steps where mistakes could be made#the searches probably wont be difficult either. theyre still taking the same time stamps and printing thing from the sorts#just. searching instead. but *what* are they searching... thats what i need to know.#adding in the increased array sizes will be easy peasy. bc i just need to call the execution function additional times for each array size#then the code will do the rest.#graphing all of this output will take some time But so long as i can find out what im fuckin searching early in the class#i could still finish before the end of lab. plus i think i only really need my code checked off#like i gotta get my lab checked off before i can turn it in. which is why i have to have it done b4 the end of lab#even tho the lab is technically due at 11 pm tonight.#and i have to turn in my code And the graph i make from its output... but i dont Think the graph has to be checked off?? idk.#i'll ask i guess. either way i still feel like i'll finish with plenty of time. i got this 👍
1 note
·
View note