Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Thanks for asking! (but I bet you're sorry you did)

You're not wrong there :) :)

Its situations like this where MathML or equivalent would be really nice, since you could just give me the forumlae :)

In essence, what I understood was the following:

For every permutation 1->n check every permutation 1->n to see if it is equivalent according to the rules. If it is, mark it as such.

Results: a set of groups of permutations who are deemed equivalent.

Are the rules transitive?

My head generated psuedocode something like this (no efficiency or anything, just a general algorithm):

foreach $p_1 (permutation(1..n)) { if ($tags{$p_1}) { next; } $tags{$p_1} = $p_1; foreach $p_2 (permutation(1..n)) { if (rule1($p_1, $p_2) && rule2($p_1,$p_2) && rule3($p_1, $p_2)) + { $tags{$p_2} = $p_1; } } }

But that only works if the rules are both transitive and symmetric (you hint that they are but I may be reading it wrong)

I would be interested in the contents of the rules 1->3 if they're not going to make my head ache :)

In reply to Re: Re: Big Picture by PhiRatE
in thread constructing large hashes by duelafn

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.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2023-09-22 19:13 GMT
Find Nodes?
    Voting Booth?

    No recent polls found