The Student Room Group

D1 Alphabetical Sort, Edexcel

So Edexcel D1 exam tomorrow.

I'm slow at using sorting algorithms on letters to sort them into alphabetical order. I can do it much faster if I assign numbers to each letter according to its position in the alphabet i.e. A = 1, K = 11 etc. and then running the algorithm on the numbers.

As long as I finish with returning the list to the letters/names, will I lose marks for using numbers in the middle?

Cheers
To be safe, I wouldn't but you'd really need to ask your maths teacher about this :smile:
on the glossary on the edexcel website it says on the page after that the midpoints of any algorithm have to be worked out by (n+1)/2
i found the numbers easier too but still ask someone more qualified:smile:
Reply 3
Original post by Smile Generator
To be safe, I wouldn't but you'd really need to ask your maths teacher about this :smile:


I asked myself: still don't know :P
its on the spec, on the website

Quick Reply

Latest