Talk:Egyptian division: Difference between revisions

Line 41:
:: The Perl and Python versions are absolutely consistent with the task description, and of course there's not much to be gained from antiquarianism or reconstructive archaeology here :-)
:: The kernel of Nigel's point does, however, seem interesting and fruitful to me – the heart, motivation, and logic of the algorithm is precisely to derive division from more primitive operators – and I think we might get a simpler (and perhaps more interesting ?) task description by foregrounding that, even tho it would cost us some tweaks to some of our first drafts. Asking people to show how one could formalise this algorithm, in a given language, '''purely in (arithmetic) terms of addition/subtraction''', seems like a more interesting task constraint, for example, than over-specifying the intermediate data structure. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 17:19, 11 August 2017 (UTC)
 
:: The point is that if you use exponentiation and multiplication you can generate each row of the table as needed, so the requirement to first create the table and store it is just a pointless restriction. The beauty is that the table can be produced just by adding the previous row to itself.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 11:49, 12 August 2017 (UTC)
 
That is an interesting point by Nigel, and some nice replies. I originally was debating adding extra information on how the table could be created by bit shifting, and the summations gave the binary result, but left all that guff out for a simpler task. I had not thought of restricting mathematical operators in Nigel's manner - now I know, it would be a valid but different task. I don't think it would be good to change the current task however. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 20:06, 11 August 2017 (UTC)
2,172

edits