Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.109 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.78; '*S*': 0.00; '(its': 0.09; 'logic': 0.09; 'null,': 0.09; 'algorithm.': 0.16; 'jumping': 0.16; 'sorting': 0.16; 'wrote:': 0.18; 'lets': 0.24; 'math': 0.24; 'suggested': 0.26; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'didnt': 0.31; 'one,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'crazy': 0.36; 'so,': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'previous': 0.38; 'anything': 0.39; 'explain': 0.39; 'to:addr:python.org': 0.39; 'users': 0.40; 'algorithms': 0.60; 'identify': 0.61; 'simple': 0.61; 'sum': 0.64; 'here': 0.66; 'nobody': 0.68; 'jul': 0.74; '2013': 0.98 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=6JiU2QVe+XvCJbMofQOo1PL4QkY1Qq8Lws9VdhdrT80=; b=cVxZEfGqFiWDKozFyw9JWVZNtT3iK55/QgaMDMPqDSGWyZ5gI4lUJz0qUxljSW3AN3 3ph+d5TEC+TAbkrS+WIql8PhtwMesTbcEnPR2GuWVxAMQ1/VCMZOdxFWnS8jRdw3Vy3E DGdibAtei8mZTH7JSZ2Besp4hcoRXRYUrwiCKGsVUA7T8EJvB5v3od54wkdnsJC4KsFW BmQNgeGJHFkbVSPyCUhw1quKbdNpLqlAww3qZqVxzO0GhEjraeefonrF8ggAtz17Nn85 pitGOn+mnkI53CKyM/6yeZisgomVvtTxqudjIjb36ZQmkaJsuI3Y/e4C6bApnZAWPsuj /Lew== X-Received: by 10.68.28.232 with SMTP id e8mr31455490pbh.94.1372804219148; Tue, 02 Jul 2013 15:30:19 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Tue, 2 Jul 2013 16:29:38 -0600 Subject: Re: how to calculate reputation To: Python Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372804228 news.xs4all.nl 15976 [2001:888:2000:d::a6]:37323 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49662 On Tue, Jul 2, 2013 at 4:19 PM, Surya Kasturi wrote: > I think I didnt explain it clearly.. let me make it clear.. > > 1. The database we are using is having BooleanField for it!! so, cant do > anything > 2. I am not looking for sorting algorithms .. just simple math :) It sounds > crazy but let me describe my confusion Nobody has suggested a *sorting* algorithm. > lets have 3 users with > > [null, null, null] > reputation = 0 > > [T, - - ] > rept = 1 > > [T T T] > rept = 3 > > [T T F] > rept = 1 (its jumping from 3 to 1 -->but generally, we observe only decrease > in 1 right?) I'm with you so far. You see the reputation drop by 2 here because you have both removed an up-vote and added a down-vote. Each of these things individually will cause the sum to drop by 1. > [T T F] > rept = 3 (its jumping from 1 to 3) > > These jumpings are common? or my logic is going any wrong? This is the same scenario as the previous one, so I don't understand why you identify the reputation sum as 3 here.