Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Bernardo Sulzbach Newsgroups: comp.lang.python Subject: Re: _siftup and _siftdown implementation Date: Fri, 5 Feb 2016 12:48:18 -0200 Lines: 14 Message-ID: References: <56b3e902$0$1613$c3e8da3$5496439d@news.astraweb.com> <56B4B4D5.20804@mail.de> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de OWJZKDxIDFNMP1qAlnbp6g8j4mvOGKvRMFBIBAayV5Mw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.101 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.00; 'modules.': 0.09; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'language': 0.19; 'library': 0.20; 'subject:skip:i 10': 0.22; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'wonder': 0.27; 'that.': 0.30; 'compared': 0.30; 'posting': 0.32; 'programming,': 0.33; 'message-id:@gmail.com': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'done': 0.35; 'programming.': 0.35; 'received:209.85': 0.36; 'modules': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'thought': 0.37; 'list.': 0.37; 'received:localhost.localdomain': 0.38; 'received:209': 0.38; 'received:localdomain': 0.38; 'stuff': 0.38; 'mailing': 0.38; 'received:209.85.220': 0.38; 'why': 0.39; "didn't": 0.39; 'to:addr:python.org': 0.40; 'competitive': 0.61; 'charset:windows-1252': 0.62; 'else.': 0.66; 'sounds': 0.76 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=k6/UPAwbSHC8OTEZ/pEUqCKU3IVGfliWlcMgjYqmyaM=; b=td9Fns+jw6apo+voCrwfziNx4H0rTzCo3GYqUoBX1LCocqmfpWyCrg+p65/95L5Oth D+Rq6apUn32QvigJ0BPpjFdT2VfvDpTM8CvEL64p9FObwbYR1LIMh0Eo8WsMMSYNfIgm oPgqkaKrUENlhTDWgf7BwIVzizhZ+9i4q4EmAUc5BeWUJg4aKRMpcqx/t7TOZ/hkitQw /kKPc066tcvv0+uEfQPxJesFdOcBbSp6VLqpC+K9o3uz2B9sH2PKP9mIFnTAh8i+q06n b7pr0WUicfygtICl2Fy1I9EZzY3qqL7lQ66SBIVpHwVSD6UsUy1r/uDKqy+GkEexQnxY PS+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=k6/UPAwbSHC8OTEZ/pEUqCKU3IVGfliWlcMgjYqmyaM=; b=TTg+WY8WGGg6erD5dmuOu1HrUo27FifMCSDBnY6TjYteCgM417daM0ag/8XHCtRwOt Jp8yHFvUvzijYEIq2JWPFN6QwzE/07/jE+1b6gcWM7cAavkO6WFqgUFe8968oSlHHMYn DvTqXejhexu2MsWS7VO2A1rIS2IdXy9KgCAKfV3xFeGie7XL6dLUD+WRPcO63Cd/ki+R 7Ink9Oa2wdWsN1AM22LbSY12wtKyxuLANMhBU9AXrcpVWRbB8r8OkGTPVU33TV7MTH85 s0MKjy09lzpNIe8dzI5Cx2FtO9G30hdFHQYndw1J2iAUh+PHp1IjiOCDgXKpXyrPT1rs F2ZA== X-Gm-Message-State: AG10YOQg/BOlCX0Tgk5bK8pVEk22rhlZXITrWBLbPCAJheSY2GXYlg9pk/lkpbQ8BAed+A== X-Received: by 10.55.81.3 with SMTP id f3mr16965175qkb.35.1454683703099; Fri, 05 Feb 2016 06:48:23 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 In-Reply-To: <56B4B4D5.20804@mail.de> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102523 On 02/05/2016 12:42 PM, Sven R. Kunze wrote: >> >> PS: I do competitive programming, I use these modules every couple of >> days >> when compared to other modules. so didn't give much thought when >> posting to >> the mailing list. sorry for that. > > Competitive programming? That sounds interesting. :) > I wonder why you *can* use this amount of already done stuff in competitive programming. When I was into that you could use what the standard library of the language gave you and nothing else.