Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93340
| Return-Path | <ian.g.kelly@gmail.com> |
|---|---|
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.081 |
| X-Spam-Evidence | '*H*': 0.84; '*S*': 0.00; 'subject:skip:b 10': 0.07; 'table.': 0.07; 'lookup': 0.09; '64,': 0.16; 'bases,': 0.16; 'digits.': 0.16; 'wrote:': 0.16; 'instance,': 0.18; 'fairly': 0.22; 'am,': 0.23; '2015': 0.23; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'right.': 0.27; 'converting': 0.27; 'message- id:@mail.gmail.com': 0.28; "doesn't": 0.28; 'convert': 0.29; 'subject:time': 0.31; "can't": 0.32; 'table': 0.32; 'received:google.com': 0.34; 'that,': 0.34; 'could': 0.35; 'to:addr:python-list': 0.35; 'done': 0.35; 'but': 0.36; 'there': 0.36; 'subject:: ': 0.37; 'tue,': 0.38; 'to:addr:python.org': 0.39; 'simple': 0.61; 'map': 0.61; 'taking': 0.62; '30,': 0.63; 'complete': 0.63; 'within': 0.64; 'between': 0.65; 'million': 0.73; 'discrete': 0.84; 'to:name:python': 0.84; 'ratio': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=QrG/bUsaI14O5nIClW4hLc02qLavVNO5wgNA74z92tc=; b=pZ6A77P7ZBAtWIX5qT1eVUkeV3BCggaPCFLjnnVw1bJRuzpC+jll2nQz05sGykNvje r/RFeRafn7Y8HUrb67Zl5VeGOb92mG+uD8OIW3hFZNpi0l9OWTOr+9K+1ZiwMCpYrzcy niJ7IyDThlFUdVcU8kWHE9yvkKSlKdPD4B7ZEeyAHjziivjHgQTUiCKQ2wOPt7bxS71D zyLEmftUScNsv9Kw2CuKXO82RSwa3DZxRoSWxGiq3xIqqDM8o9hPVRr2pFYfCn033sYm gCZ5W4RtLKlJ0V20ZmHaJRd989GoXEaMTeBAJjeRZQhf9QtwfEIv4i/+HEZa/ngKW9P2 3OBQ== |
| X-Received | by 10.129.103.84 with SMTP id b81mr26525684ywc.55.1435682085623; Tue, 30 Jun 2015 09:34:45 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <CAPTjJmrSp3BCyaJuO=m-k97XH2r_XORNDTPpVam=5YwEObYpOg@mail.gmail.com> |
| References | <777831f0-d4b4-48f6-ae0b-c9b1ea7ffc06@googlegroups.com> <CALwzidms2BGRjHCuLB5_uszbx9Q-rdtOob_LGHQoO3K3ZD=Q7Q@mail.gmail.com> <mailman.175.1435619500.3674.python-list@python.org> <87r3ouawgt.fsf@bsb.me.uk> <7c6dac9d-5722-4179-bd7e-ceaac6698490@googlegroups.com> <mmtm6k$8b7$1@dont-email.me> <CALwzidkHuWJkqFEDHp6LT2UJxHh6sHZM=2qde0acrSvp12vyRw@mail.gmail.com> <CALwzidnTP_2k-m0iRn5=nEHmNzQoDDw45g58gDXXa9kYhJnbiQ@mail.gmail.com> <CAPTjJmrSp3BCyaJuO=m-k97XH2r_XORNDTPpVam=5YwEObYpOg@mail.gmail.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Tue, 30 Jun 2015 10:34:06 -0600 |
| Subject | Re: Linear time baseconversion |
| To | Python <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.196.1435682093.3674.python-list@python.org> (permalink) |
| Lines | 12 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1435682093 news.xs4all.nl 2850 [2001:888:2000:d::a6]:50051 |
| X-Complaints-To | abuse@xs4all.nl |
| Path | csiph.com!usenet.pasdenom.info!news.stben.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
| Xref | csiph.com comp.lang.python:93340 |
Show key headers only | View raw
On Tue, Jun 30, 2015 at 10:10 AM, Chris Angelico <rosuav@gmail.com> wrote: > When there's a simple ratio between the bases, it's fairly > straight-forward to convert a few digits at a time. Converting base > 256 into base 64, for instance, can be done by taking three digits and > yielding four. But within that, you would still need a complete table > of all sixteen million possibilities, if you want to do the lookup > table. And that only works when there is that kind of relationship. You're right. I was thinking that for base 5 to base 7, for instance, one could read digits in groups of 7, but that doesn't work out; you can't map any discrete number of base 5 digits to a corresponding number of base 7 digits.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Linear time baseconversion jonas.thornvall@gmail.com - 2015-06-29 15:39 -0700
Re: Linear time baseconversion Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-29 16:56 -0600
Re: Linear time baseconversion Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-29 17:10 -0600
Re: Linear time baseconversion jonas.thornvall@gmail.com - 2015-06-29 16:23 -0700
Re: Linear time baseconversion Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-06-30 01:09 +0100
Re: Linear time baseconversion jonas.thornvall@gmail.com - 2015-06-30 01:52 -0700
Re: Linear time baseconversion Christian Gollwitzer <auriocus@gmx.de> - 2015-06-30 11:07 +0200
Re: Linear time baseconversion jonas.thornvall@gmail.com - 2015-06-30 02:20 -0700
Re: Linear time baseconversion jonas.thornvall@gmail.com - 2015-06-30 02:34 -0700
Re: Linear time baseconversion jonas.thornvall@gmail.com - 2015-06-30 02:43 -0700
Re: Linear time baseconversion jonas.thornvall@gmail.com - 2015-06-30 06:22 -0700
Re: Linear time baseconversion jonas.thornvall@gmail.com - 2015-06-30 07:13 -0700
Re: Linear time baseconversion Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-30 09:29 -0600
Re: Linear time baseconversion Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-30 09:45 -0600
Re: Linear time baseconversion Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-30 09:40 -0600
Re: Linear time baseconversion Christian Gollwitzer <auriocus@gmx.de> - 2015-07-01 00:22 +0200
Re: Linear time baseconversion Chris Angelico <rosuav@gmail.com> - 2015-07-01 02:10 +1000
Re: Linear time baseconversion Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-30 10:34 -0600
Re: Linear time baseconversion Christian Gollwitzer <auriocus@gmx.de> - 2015-07-01 00:27 +0200
Re: Linear time baseconversion jonas.thornvall@gmail.com - 2015-06-29 23:49 -0700
Re: Linear time baseconversion Michael Torrie <torriem@gmail.com> - 2015-06-30 10:12 -0600
Re: Linear time baseconversion jonas.thornvall@gmail.com - 2015-06-30 09:24 -0700
Re: Linear time baseconversion Michael Torrie <torriem@gmail.com> - 2015-06-30 13:55 -0600
csiph-web