Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Algorithm::Loops::NestedLoops and LCS sequence

by hv (Prior)
on Jun 13, 2004 at 14:36 UTC ( [id://363846]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub lcs {
      my($x, $y) = @_;
    ...
      } 
      return $v[length($x) - 1][length($y) - 1];
    }
    
  2. or download this
    sub matchss {
      my($ss, $str) = @_;
    ...
      } 
      pop @state;
    }
    
  3. or download this
    sub lcscount {
      my($x, $y) = @_;
    ...
      );
      $count;
    }
    
  4. or download this
      $count += $seen{$_} * matchss($_, $y) for keys %seen;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://363846]
Approved by TStanley
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-28 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found