Instruction sequences expressing multiplication algorithms
From MaRDI portal
Publication:4621216
Abstract: For each function on bit strings, its restriction to bit strings of any given length can be computed by a finite instruction sequence that contains only instructions to set and get the content of Boolean registers, forward jump instructions, and a termination instruction. We describe instruction sequences of this kind that compute the function on bit strings that models multiplication on natural numbers less than with respect to their binary representation by bit strings of length , for a fixed but arbitrary , according to the long multiplication algorithm and the Karatsuba multiplication algorithm. We find among other things that the instruction sequence expressing the former algorithm is longer than the one expressing the latter algorithm only if the length of the bit strings involved is greater than . We also go into the use of an instruction sequence with backward jump instructions for expressing the long multiplication algorithm. This leads to an instruction sequence that it is shorter than the other two if the length of the bit strings involved is greater than .
Recommendations
- On algorithmic equivalence of instruction sequences for computing bit string functions
- How fast can we multiply large integers on an actual computer?
- Quantitative expressiveness of instruction sequence classes for computation on single bit registers
- Algorithms for Iterative Array Multiplication
- scientific article; zbMATH DE number 4203715
This page was built for publication: Instruction sequences expressing multiplication algorithms
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q4621216)