Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

(tye)Re: Restarting script without losing handles

by tye (Sage)
on Aug 21, 2002 at 19:33 UTC ( #191850=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        open( FILE, ">&=$fd" )  or  die ...
  2. or download this
        exec( $^X, $0, fileno(SOCK), fileno(LOG) );
  3. or download this
        open( SOCK, "<&=$ARGV[0]" )  or  die ...
        open( LOG, ">>&=$ARGV[1]" )  or  die ...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://191850]
[Discipulus]: I already know how much distinct paths exists but to demonstrate the property i want to have them all
[oiskuu]: ie C(n, k); where n is height difference, k is position in the line
[Discipulus]: infact there are 70 distinct path to reach the tale wich holds 70
[Discipulus]: what i want is to compute them
[oiskuu]: You want to draw the path? $iter = combinations( $TOP_HEIGHT .. $NODE_HEIGHT, $pos); then get the path from the iter, level change at depth x, for(..) $pos += $level_change; something like that
[oiskuu]: yergh, <code> tags... [$top_height .. $node_height]

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2018-03-19 11:05 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (239 votes). Check out past polls.