Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

comment on

( [id://3333] : superdoc . print w/replies, xml ) Need Help??
Why multiply by two? It just means odd values will never be used.

I have a counterproposal for the formula: $t = int(rand(100)).

  • On average, it seems about right.
  • Low computational overhead
  • Nodes with few votes aren't given artificially inflated values
  • Provably produces the precisely correct answer, at least once in a while. This cannot be said of the original formula.
  • Even if this somehow induces lemming voting, half the lemmings should fall off each side of the cliff
  • Runs no risk of influencing monks' interpretation of votes. After all, monks' current behavior has made the site what it is today; what if this is the butterfly that carries the slashdot mentality between its flapping wings?

There is the problem that the value flips around a lot, and people might not take it seriously. So how about:

  • $t[0] = rand(100)
  • $t[$i+1] = 0.9 * $t[$i] + 0.1 * rand(100)
  • The index $i is age in days, age in hours, number of votes, times viewed, or something similar.
  • The computation is hidden. Instead, it is described as "the tension takes as input the node upvotes, downvotes, number of responses, and the votes on the responses." Which is true, it just doesn't look at any of them.

In reply to Re: Node Tension by sfink
in thread Node Tension by mojotoad

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.