Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: "Intelligent" array joining (topological sort)

by tye (Sage)
on Feb 05, 2004 at 22:56 UTC ( [id://326925]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    print "@output\n";
    @output= tsort( [1,2,3,4], [1,3,2,4] );
    print "@output\n";
    
  2. or download this
    1 2 3 4 5 6
    Data contains a cycle, breaking at 2.
    1 2 3 4
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://326925]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found