100〜1000桁のような非常に大きな数を除算する(整数除算、浮動小数点は重要ではありません)ためのアルゴリズム(これは割り当てであるため、サードパーティのライブラリを使用できません)を作成する必要があります。http://en.wikipedia.org/wiki/Fourier_divisionアルゴリズムを見つけましたが、それが正しい方法かどうかわかりません。何か提案はありますか?
1) check divisior < dividend, otherwise it's zero (because it will be an int division)
2) start from the left
3) get equal portion of digits from the dividend
4) if it's divisor portion is still bigger, increment digits of dividend portion by 1
5) multiply divisor by 1-9 through the loop
6) when it exceeds the dividend portion, previous multiplier is the answer
7) repeat steps 3 to 5 until reaching to the end