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


Groups > comp.lang.python > #65767

Re: Sort one sequence by O(n) in time and O(1) in space

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <oscar.j.benjamin@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.080
X-Spam-Evidence '*H*': 0.84; '*S*': 0.00; 'cc:addr:python-list': 0.11; '&gt;&gt;': 0.16; 'cc:name:python list': 0.16; 'subject:Sort': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'email addr:gmail.com&gt;': 0.22; 'otherwise,': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; '&gt;': 0.26; 'header :In-Reply-To:1': 0.27; 'subject:) ': 0.29; 'message- id:@mail.gmail.com': 0.30; 'url:wiki': 0.31; 'url:wikipedia': 0.31; 'subject:time': 0.33; 'received:google.com': 0.35; 'subject:one': 0.36; 'url:org': 0.36; 'list,': 0.38; 'pm,': 0.38; 'space': 0.40; 'read': 0.60; 'new': 0.61; 'to:addr:gmail.com': 0.65; 'oscar': 0.84; 'subject:space': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kP8IR30IKYlEfx5W6Dss79y8rR3+f0FEJX500dDDypw=; b=muzZ9U2m+bgRECfqKXqKy1z0A5Wjx1tn2xyC+YLMLzDZvZj+zahC5g2Enz9R8xYzYB h2UKgvbk6sGnPQIBt7xBY5X649o1/AvSP/vR7HIGqdkScbt9KeoF81RTvkuYZ/L2l/h7 Kh7olrVfiCrdzQDUfotU9ciEHgwHAXL+ZzPzFJ+t7zQ3q223+DnN8InvZGIzg04Wl2+p tGeWYFzAc3Q+gspeqbqfBRm4Ca6e3Ge3xWnH8gp+9aDwYp4VuCfHjWPqOaqZfK5G5nVB cQ4SqP3dAGUQ5jK+0lW49f6g4vkE7hJfBJHr8rMA9DKfSZv2DhQUZ2QHkM8SJWbWORQF gLHA==
MIME-Version 1.0
X-Received by 10.221.40.10 with SMTP id to10mr644744vcb.22.1391960897906; Sun, 09 Feb 2014 07:48:17 -0800 (PST)
In-Reply-To <CACL3mTD+3bPpZ7JofeGz3Q2J7WGdsByOR=1J5fcXGXhOp=HuQQ@mail.gmail.com>
References <ae372652-0f1c-4d79-82db-a522eb592579@googlegroups.com> <CAHVvXxSi+wHuC+ssMQkf5mFNaT0rrq-zHoW1UsTHb+XdddrORQ@mail.gmail.com> <CAHVvXxR9jaqgMSA5xZvkeoP4HWpVn36=TeLf=mQCgiz3fZBzpQ@mail.gmail.com> <CACL3mTD+3bPpZ7JofeGz3Q2J7WGdsByOR=1J5fcXGXhOp=HuQQ@mail.gmail.com>
Date Sun, 9 Feb 2014 15:48:17 +0000
Subject Re: Sort one sequence by O(n) in time and O(1) in space
From Oscar Benjamin <oscar.j.benjamin@gmail.com>
To Ni Wesley <nispray@gmail.com>
Content-Type multipart/alternative; boundary=001a11337576dc6c3204f1fb26d2
Cc Python List <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.6593.1391960905.18130.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1391960905 news.xs4all.nl 2957 [2001:888:2000:d::a6]:35847
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:65767

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Please don't top-post.

On Feb 9, 2014 2:40 PM, "Ni Wesley" <nispray@gmail.com> wrote:
>
> Yes, with no new list, otherwise, space won't to be O(1)

Did you read the link I posted:

>> http://en.wikipedia.org/wiki/In-place_matrix_transposition

Oscar

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


Thread

Sort one sequence by O(n) in time and O(1) in space Wesley <nispray@gmail.com> - 2014-02-09 04:13 -0800
  Re: Sort one sequence by O(n) in time and O(1) in space Asaf Las <roegltd@gmail.com> - 2014-02-09 04:29 -0800
  Re: Sort one sequence by O(n) in time and O(1) in space Chris Angelico <rosuav@gmail.com> - 2014-02-09 23:39 +1100
    Re: Sort one sequence by O(n) in time and O(1) in space Wesley <nispray@gmail.com> - 2014-02-09 18:09 -0800
      Re: Sort one sequence by O(n) in time and O(1) in space Dave Angel <davea@davea.name> - 2014-02-09 22:00 -0500
  Re: Sort one sequence by O(n) in time and O(1) in space Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2014-02-09 13:41 +0000
  Re: Sort one sequence by O(n) in time and O(1) in space Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2014-02-09 14:30 +0000
  Re: Sort one sequence by O(n) in time and O(1) in space Ni Wesley <nispray@gmail.com> - 2014-02-09 22:40 +0800
  Re: Sort one sequence by O(n) in time and O(1) in space Roy Smith <roy@panix.com> - 2014-02-09 10:05 -0500
    Re: Sort one sequence by O(n) in time and O(1) in space Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-02-09 23:14 +0000
      Re: Sort one sequence by O(n) in time and O(1) in space Roy Smith <roy@panix.com> - 2014-02-09 19:15 -0500
      Re: Sort one sequence by O(n) in time and O(1) in space Wesley <nispray@gmail.com> - 2014-02-09 18:26 -0800
        Re: Sort one sequence by O(n) in time and O(1) in space Sturla Molden <sturla.molden@gmail.com> - 2014-02-10 10:20 +0000
          Re: Sort one sequence by O(n) in time and O(1) in space Steven D'Aprano <steve@pearwood.info> - 2014-02-11 05:20 +0000
            Re: Sort one sequence by O(n) in time and O(1) in space Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-12 11:56 +1300
          Re: Sort one sequence by O(n) in time and O(1) in space Tim Daneliuk <tundra@tundraware.com> - 2014-02-10 23:37 -0600
          Re: Sort one sequence by O(n) in time and O(1) in space Tim Daneliuk <tundra@tundraware.com> - 2014-02-10 23:37 -0600
        Re: Sort one sequence by O(n) in time and O(1) in space Chris Angelico <rosuav@gmail.com> - 2014-02-10 21:37 +1100
        Re: Sort one sequence by O(n) in time and O(1) in space Sturla Molden <sturla.molden@gmail.com> - 2014-02-10 15:03 +0000
        Re: Sort one sequence by O(n) in time and O(1) in space Chris Angelico <rosuav@gmail.com> - 2014-02-11 02:23 +1100
        Re: Sort one sequence by O(n) in time and O(1) in space Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2014-02-10 15:45 +0000
        Re: Sort one sequence by O(n) in time and O(1) in space Chris Angelico <rosuav@gmail.com> - 2014-02-11 02:52 +1100
          Re: Sort one sequence by O(n) in time and O(1) in space Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-11 13:19 +1300
        Re: Sort one sequence by O(n) in time and O(1) in space Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2014-02-10 16:41 +0000
  Re: Sort one sequence by O(n) in time and O(1) in space Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2014-02-09 15:48 +0000
    Re: Sort one sequence by O(n) in time and O(1) in space Wesley <nispray@gmail.com> - 2014-02-09 18:07 -0800
  Re: Sort one sequence by O(n) in time and O(1) in space Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-02-09 21:31 +0000

csiph-web