Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #2541

Re: integer multiplication

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.wiretrip.org!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <debatem1@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.010
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'algorithms': 0.07; 'python': 0.07; 'list)': 0.09; 'sun,': 0.09; 'pm,': 0.11; 'wrote:': 0.14; '(sorry': 0.16; 'integers.': 0.16; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'seems': 0.21; 'header:In- Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'compared': 0.22; 'trying': 0.23; 'integer': 0.23; 'compare': 0.26; 'message- id:@mail.gmail.com': 0.28; 'least': 0.30; 'cc:addr:python.org': 0.31; 'use?': 0.31; 'does': 0.31; 'supposed': 0.31; 'anyone': 0.31; 'thank': 0.32; 'received:209.85': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'used': 0.38; 'received:209': 0.39; 'takes': 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'received:209.85.216.181': 0.68; 'received:mail- qy0-f181.google.com': 0.68; 'double': 0.69
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=l3SmYkXJOwm2Uwz4T3zD8CThIUBgsWxn7dqccz5m2vM=; b=qPoYCBFyUx41sVYNsP34cZw8ebrjWfByIS/O48EfsySraLPUhThh52oA+iX57rVcMN Jzc8MPaP5Vh+bH0qfUwlLofnEy4eZtHXO+NHTSl+vrFoSm+Yj2KCBE4xE2DVKq9E8Jlj V94uRlD/7SY63pHENXov1MC1v4UyvCY1tzhFU=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=EmwJAHKmtnpKoUu2YPCulIpMyHbGdMmzn1ncfsedeP/mE6QaswZLdMNNPKtkyzyYrZ 44G+uCYKev4bICwnLFmecZL4GA/rpy0URisKJT4Fws0RABRzJATMvgV5PoHrv38lEQ+e 2eDMg+/bITKgKylpXxKTp6d4ARULOmURjUDN4=
MIME-Version 1.0
In-Reply-To <BANLkTik5Oq0AE5-yrbSa2oES5_g8+gspeA@mail.gmail.com>
References <BANLkTik5Oq0AE5-yrbSa2oES5_g8+gspeA@mail.gmail.com>
Date Sun, 3 Apr 2011 18:33:38 -0700
Subject Re: integer multiplication
From geremy condra <debatem1@gmail.com>
To Eddie Tsay <jianyu44@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.177.1301880825.2990.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 82.94.164.166
X-Trace 1301880825 news.xs4all.nl 32470 [::ffff:82.94.164.166]:50718
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:2541

Show key headers only | View raw


On Sun, Apr 3, 2011 at 6:20 PM, Eddie Tsay <jianyu44@gmail.com> wrote:
> Does anyone know what algorithms for integer multiplication does Python use?
> I am trying to compare it to those used by Sage as it seems like it takes
> much longer for Python to do large integer multiplication as compared to
> Sage (anyone know off the top of their heads?)
> thank you

(sorry for the double email, this was supposed to go to the list)

Karatsuba multiplication, at least for large integers.

Geremy Condra

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: integer multiplication geremy condra <debatem1@gmail.com> - 2011-04-03 18:33 -0700
  Re: integer multiplication Paul Rubin <no.email@nospam.invalid> - 2011-04-03 22:51 -0700
    Re: integer multiplication Terry Reedy <tjreedy@udel.edu> - 2011-04-04 12:41 -0400
      Re: integer multiplication casevh <casevh@gmail.com> - 2011-04-04 12:18 -0700
    Re: integer multiplication geremy condra <debatem1@gmail.com> - 2011-04-04 10:20 -0700
    Re: integer multiplication Terry Reedy <tjreedy@udel.edu> - 2011-04-04 15:04 -0400

csiph-web