wu :: forums
« wu :: forums - pushdown automata and context free language »

Welcome, Guest. Please Login or Register.
May 3rd, 2024, 5:57am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: Grimbal, SMQ, Eigenray, towr, ThudnBlunder, Icarus, william wu)
   pushdown automata and context free language
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: pushdown automata and context free language  (Read 5473 times)
jop
Newbie
*





   


Posts: 1
pushdown automata and context free language  
« on: Feb 10th, 2013, 3:07pm »
Quote Quote Modify Modify

for a set of strings with the pattern:
10, 10100, 101001000, 10100100010000........
 
(the number of consecutive zeros equals n if they are trailing the nth "1" in the string)
 
Is there a PDA or CFG for this? If not, is there a PDA or CFG for the set of strings that don't conform to this pattern?
IP Logged
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7527
Re: pushdown automata and context free language  
« Reply #1 on: Feb 11th, 2013, 2:20am »
Quote Quote Modify Modify

Define PDA and CFG.
 
PS: CFG would be Context-Free Grammar.

 
Oops, silly me!   It's in the title.
« Last Edit: Feb 11th, 2013, 9:50am by Grimbal » IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: pushdown automata and context free language  
« Reply #2 on: Feb 11th, 2013, 9:02am »
Quote Quote Modify Modify

It's been a while since I've dealt with grammar and automatons; can a PDA (pushdown automaton) have two stacks? Because with two stacks I can easily see it done.
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
SMQ
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 2084
Re: pushdown automata and context free language  
« Reply #3 on: Feb 11th, 2013, 11:21am »
Quote Quote Modify Modify

on Feb 11th, 2013, 9:02am, towr wrote:
It's been a while since I've dealt with grammar and automatons; can a PDA (pushdown automaton) have two stacks? Because with two stacks I can easily see it done.

No. Two stacks are equivalent to an infinite tape and now you have a Turing Machine rather than a PDA.
 
--SMQ
IP Logged

--SMQ

Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board