Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'algorithm': 0.03; 'subject:Python': 0.05; 'brace': 0.09; 'globally': 0.09; 'conformance': 0.16; 'curly': 0.16; 'gained': 0.16; 'naive': 0.16; 'orbiting': 0.16; 'received:80.91': 0.16; 'received:80.91.229': 0.16; 'received:gmane.org': 0.16; 'received:list': 0.16; 'languages.': 0.17; 'usability': 0.17; 'wrote:': 0.19; 'solution.': 0.20; 'header:In-Reply-To:1': 0.22; 'nearly': 0.23; 'header:User-Agent:1': 0.26; 'mention': 0.27; 'programming.': 0.27; 'header:X-Complaints-To:1': 0.29; 'usually': 0.29; "can't": 0.32; 'received:com.au': 0.32; 'perform': 0.33; 'am,': 0.34; 'described': 0.34; 'to:addr:python-list': 0.35; 'end': 0.35; 'programmers': 0.35; 'space': 0.35; 'optimization': 0.36; 'received:org': 0.36; 'why': 0.37; 'subject:: ': 0.37; 'solution': 0.37; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'willing': 0.40; 'information': 0.61; 'cognitive': 0.84; 'improvement': 0.84; 'induce': 0.84; 'moves': 0.84; 'nathan': 0.84; 'greedy': 0.91; 'trained': 0.93; 'received:110': 0.96 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Lie Ryan Subject: Re: Python is readable Date: Sat, 31 Mar 2012 17:15:55 +1100 References: <4f612b19$0$1379$4fafbaef@reader2.news.tin.it> <8e72d74f-c844-4de3-8a37-f6b1fdc2291f@y27g2000yqy.googlegroups.com> <50e9ceec-40f1-4ead-b2b6-87328b30d084@ow8g2000pbc.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 110-175-240-90.static.tpgi.com.au User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120310 Thunderbird/11.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1333174571 news.xs4all.nl 6883 [2001:888:2000:d::a6]:53512 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22409 On 03/21/2012 03:55 AM, Nathan Rice wrote: > In mathematics, when you perform global optimization you must be > willing to make moves in the solution space that may result in a > temporary reduction of your optimality condition. If you just perform > naive gradient decent, only looking to the change that will induce the > greatest immediate improvement in optimality, you will usually end up > orbiting around a solution which is not globally optimal. I mention > this because any readability or usability information gained using > trained programmers is simultaneously measuring the readability or > usability and its conformance to the programmer's cognitive model of > programming. The result is local optimization around the > current-paradigm minimum. This is why we have so many nearly > identical curly brace C-like languages. I think you've just described that greedy algorithm can't always find the globally optimal solution.