For faster navigation, this Iframe is preloading the Wikiwand page for カラツバ法.

カラツバ法

カラツバ法(カラツバほう)とは、主に多倍長乗算乗算アルゴリズム英語版において、乗算の回数を4分の3にするアルゴリズムである。 加減算の回数は増加するが、乗算コストはそれより遥かに大きいため、結果として演算コストそのものもほぼ4分の3となる。 発見者のAnatolii Alexeevitch KaratsubaКарацуба Анатолий Алексеевич)の名前を取ってKaratsuba法(Karatsuba-algorithm)、あるいは単にKaratsubaとも呼ばれる。

従来の乗算はだったが、Karatsuba法の再帰的適用により、≒1.585)まで計算コストが抑えられる。

アルゴリズム

[編集]

単純な例として、被乗数と乗数の積を求める()。 まず、被乗数と乗数をそれぞれ上位・下位の2つに分割する。 分割の基数を(例えば3桁ずつに分割するなら)とすると、

この乗算をKaratsuba以前の方法(Long multiplication)で行うと、乗算を4回行うことになる。

Karatsubaの方法では、乗算を3回で済ませられる。

計算例

[編集]

とすると、

関連項目

[編集]
{{bottomLinkPreText}} {{bottomLinkText}}
カラツバ法
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?