home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!elroy.jpl.nasa.gov!usc!isi.edu!gremlin!charming!johnson
- From: johnson@nrtc.northrop.com (Greg Johnson)
- Newsgroups: comp.theory
- Subject: cute problem regarding finite automata
- Message-ID: <40853@gremlin.nrtc.northrop.com>
- Date: 4 Sep 92 18:04:00 GMT
- Sender: news@gremlin.nrtc.northrop.com
- Reply-To: johnson@nrtc.northrop.com
- Organization: Northrop Research and Technology Center
- Lines: 15
-
- Here is a cute problem, perhaps suitable as an exam question.
- I offer it to all beleaguered professors trying to think up comp
- questions! ;-)
-
- Define a rotation of a string A as follows: divide A into substrings A1 and
- A2 such that A1 A2 equals A; A2 A1 is a rotation of A.
-
- For the string `abcd', the rotations are abcd, dabc, cdab, bcda.
-
- Now let L be a regular language, and let Rotate(L) be the language consisting
- of all rotations of strings from L. Is Rotate(L) regular? Give proof
- or counter-example.
-
- - Greg Johnson
- johnson@nrtc.northrop.com
-