calhoun.seq
Class RepeatedSubsequence

java.lang.Object
  extended by calhoun.seq.RepeatedSubsequence

public class RepeatedSubsequence
extends java.lang.Object


Constructor Summary
RepeatedSubsequence()
           
 
Method Summary
static java.lang.String calc(java.lang.String seq)
          Returns the largest repeated subsequence in a given string.
static boolean checkRepeat(java.lang.String s, int l, int n)
          Checks to see if the given sequence begins with n repeats, each of length l.
static boolean isRollingMatch(java.lang.String a, java.lang.String b)
          Test if infinite repetitions of a and b can be aligned
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepeatedSubsequence

public RepeatedSubsequence()
Method Detail

isRollingMatch

public static boolean isRollingMatch(java.lang.String a,
                                     java.lang.String b)
Test if infinite repetitions of a and b can be aligned


calc

public static java.lang.String calc(java.lang.String seq)
Returns the largest repeated subsequence in a given string.


checkRepeat

public static boolean checkRepeat(java.lang.String s,
                                  int l,
                                  int n)
Checks to see if the given sequence begins with n repeats, each of length l.