Berkeley CSUA MOTD:Entry 37696
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/03 [General] UID:1000 Activity:popular
4/3     

2005/5/15-16 [Computer/Theory] UID:37696 Activity:moderate
5/14    I just flunked my theory of computation midterm. I'm a bit baffled
        at one of the questions that I got wrong. According to the answer
        key, L is finite state, but I'm pretty sure it's not.
        L={uvu^R | u,v  in {0,1}*, |v| is even}
        So I see that u and u^R are reverse, which already tells me that
        this is like Leq (need counting), hence not finite state. Is the
        answer key wrong, or I'm missing something obvious and stupid?
        \_ u^R means u backwards, right?  If so, any even-length string is in
           the language (let u be empty, and put the whole string in v).  No
           odd-length strings are in the language, because |v| would have to
           be odd.  So L is just the language of even-length strings.  --mconst
           \_ Thanks, yes L must be even. However, FS means that I'm able
              to build a machine with finite states, which means I should
              be able to represent it using regular expression. However,
              I can't possibly represent uvu^R because I need a push-down
              automaton to count for the reverse, so the answer should be
              be that L is NOT finite state, right?
              \_ /csua/tmp/regular-language  --mconst
              \_ How much space do you need to tell if a string has an
                 even number of characters?  -- ilyas
                 \_ Yes you're right, it is L={v | |v| is even}. I get
                    confused by that u^R thinking the string MUST conform
                    to that, but when in fact, it doesn't have to.
              \_ If your getting confused by uvu^R thinking you have to check
                 to make sure u is reversed with u^R, think of this:
                 Let v' = uvu^R.  Then consider u' = {} (and u^R = {}).  Now
                 u'v'u'^R is in the language because it was a string originally
                 in the language (its just uvu^R).  Maybe you can start to see
                 that the language is all the even strings, because just
                 consider both u and u^R to be the emptystring.  So you just
                 need to insure v is even (and hence can be recognized with a
                 DFA.)  -mrauser
        \_ Who takes midterms on May 14th?
           \_ Many people do.  I had two on May 14th.
              \_ What kind of whacked quarter/semester system in that?!
2025/04/03 [General] UID:1000 Activity:popular
4/3     

You may also be interested in these entries...
2013/5/1-18 [Computer/SW/Languages/Java, Computer/Theory] UID:54669 Activity:nil
5/1     What's the difference between CS and Computer Engineering?
        http://holykaw.alltop.com/top-ten-paying-degrees-for-college-graduates
        \_ One is science and the other is engineering.
        \_ From http://en.wikiquote.org/wiki/Computer_science
           'A folkloric quotation ... states that "computer science is no more
           about computers than astronomy is about telescopes."  The design
	...
2012/8/30-11/7 [Computer/SW/Apps, Computer/SW/Unix] UID:54470 Activity:nil
8/30    Is wall just dead? The wallall command dies for me, muttering
        something about /var/wall/ttys not existing.
        \_ its seen a great drop in usage, though it seems mostly functional.
            -ERic
        \_ Couldn't open wall log!: Bad file descriptor
           Could not open wall subscription directory /var/wall/ttys: No such file or directory
	...
2010/3/19-4/14 [Computer/SW/OS/OsX] UID:53756 Activity:nil
3/18    Why is a genuine Mac Book charger $60 when it's only $20 on eBay?
        I failed to see a difference in quality.
        \_ Why does popcorn cost so much at the movies? Why do car values
           halve the minute you take it off the lot? Why do you suddenly
           pay less when you become a senior citizen? There are economic
           reasons for just about every pricing puzzle.
	...
2009/12/8-26 [Computer/Theory] UID:53581 Activity:nil
12/8    http://www-cs-faculty.stanford.edu/~knuth/musings.html
        SOUNDS EXCITING
        The next talk in the series will be entitled
        Spanning Trees and Aspects (The 15th Annual Christmas Tree Lecture)
        The spanning trees of a graph with n vertices are the sets of n-1 edges\
that connect the graph. In this lecture I'll discuss the remarkable relation bet\
	...