Geez dude, I wrote about the same thing. They are going to think theres something shifty going on here. Almost same m/c answers and similar answers! :O
Oh shut up you geek :rolleyes:
Just messing with ya buddy..
Such a cliche SDD comment to make.
If 6 is C which I'm torn over then I infact got 17/20. 17 is nowhere near as good as 18. :(
Thats the impression my SDD teacher gives me, I don't think I've dropped a mark in algorithms in exams over the past 2 years.
He says that the examiners arent going to deskcheck each algorithm, rather look for the functionality and mark accordingly.
Since I'm new to the forums and all, and...
Here we go, just threw this together in paint:
You'll find that the last result for 0111 is 0. Highly unlikely there is another mixture that will go through and also output a 0, actually 99% sure there isnt.
Edit: There's yer damn truth table.. :P
For part II, I had 3 arrays.
FirstArray
SecondArray
Original (or something intrinsic like that)
My algorithm looped through the indexes and compared to the opposite values, slotting them in order. A slight mixture between bubble and insertion sorting. All the values were inserted into...
I got 18/20 from your answers Mars, that band 6 is still in reach.
I put down B for question 17 (anybody who knows how to program at a decent standard will know why) and B for question 6. I'm not 100% on question 6, but they might reward marks for both of them, since the question has such a...