public LinkedList<Integer> searchForPattern(String pattern, String context) {
		int[][] dfa = this.DFA(pattern);
		int contextIndex, patternIndex, patternLength = pattern.length(), contextLength = context.length();
		LinkedList<Integer> foundPatternList = new LinkedList<Integer>();
		for(contextIndex = 0, patternIndex = 0; contextIndex < contextLength & patternIndex < patternLength; contextIndex++) { 
			patternIndex = dfa[context.charAt(contextIndex)][patternIndex];
			if(patternIndex == patternLength) { foundPatternList.add((contextIndex - patternLength + 1)); patternIndex = 0;}
			comparisons++;
		}
		return foundPatternList;
	}