[comp.lang.lisp] pattern recognition

xcax12@ucrmath.UCR.EDU (robert miller) (12/02/89)

I am a novice lisp programmer, with access to both the Emacs lisp-interaction
and Xlisp.  I am having a problem with pattern recognition.  I am trying to
write a program that will recognize patterns that are inputted, outputting
the next couple of logical repetitions.  I'm hoping it will work something
like this:

(defun pattern_rec (x)
   ( <<< CODE HERE >>> ))
pattern_rec

(pattern_rec '(a b a c a d a e))
(a b a c a d a e a f)


I have everything figured out except for the 'CODE HERE' part. :-)

If anyone can give me a bit of help, just even a push in the right direction,
I would be greatly appreciative.  I will be monitoring this group, so either
post or send mail.  Thanks.

eliot@phoenix.Princeton.EDU (Eliot Handelman) (12/03/89)

I've posted some discussion and pointes to this in comp.ai, where it's
more appropriate.