Addition

Addition is a mathematical operation that represents combining collections of objects together into a larger collection

Division

In mathematics, division (÷) is an arithmetic elementary operation.

Time example cycles

Quality | Example |
---|---|

Far more |
"Best example the division it an an addition are both o 1 but usually the division takes far more cycles time to execute than the addition" from question "Big-O of division" |

More time |
"I remember it says something like division takes much much more time than addition" from question "Complexity of basic operations: Addition subtraction multiplication division greater equal" |

Higher precedence subtraction

Difference expensive costly

Quality | Example |
---|---|

Much more |
"The first difference is that division is much more expensive than addition" from question "Why is Sieve of Eratosthenes more efficient than the simple "dumb" algorithm?" |

More costly |
"Generally the division is more costly than addition i think but not much difference in this case" from question "32bit floating division is not as slow as I expected" |

Faster gpu careful

Quality | Example |
---|---|

Operation faster |
"I need to find out that how much division operation is faster than addition operation in a gpu" from question "Comparing the time requirements of addition and division operation in GPU (CUDA)" |

Faster |
"With careful optimization however you can make addition 61 times faster than division" from question "How expensive are IEEE 754 double operations in respect to each other on Intel I7 chips?" "Performing addition on this slightly larger type will pretty much always be faster than doing division or modulo on the type itself" from question "Is there any way to find arithmetic mean "better" than sum()/N?" "So if your code has tough data dependency problems addition is about 12 times faster than division" from question "How expensive are IEEE 754 double operations in respect to each other on Intel I7 chips?" |

Others