代理机构 |
Birch, Stewart, Kolasch & Birch, LLP |
代理人 |
Birch, Stewart, Kolasch & Birch, LLP |
主权项 |
1. A computer-implemented method for reducing central processing unit usage when dividing numbers, the method comprising:
receiving, using a processor, at least two division operations to compute, consisting of at least four numbers, two numerators and two denominators; building, using a processor, a binary tree from the bottom up, the binary tree including parent and child nodes, a bottom level of the binary tree containing child nodes with values corresponding to the denominator numbers, other child nodes containing values of a product of a combination of the denominator numbers, and a root node, having a value of the product of all denominator numbers; inverting, using a processor, the root node's value and assigning the inverted value to the root node; traversing, using a processor, the binary tree, starting at one level below the root node, in the traversal of each node computing a new value for the node by multiplying the node's current value with the node's parent value and swapping node values to obtain node values at the bottom level of the binary tree corresponding to inverses of the denominator numbers; and multiplying each bottom node value which is an inverse of one of the denominators with the denominator's corresponding numerator; outputting results for each multiplication as final quotients of the at least two division operations. |