The document is a quiz question paper from National University of Computer and Emerging Sciences, Lahore Campus. It contains two questions asking to (1) Give a PDA for the language of all strings over {a,b} where the number of as is a perfect square and equal to the number of bs and (2) Give a CFG for the language of all strings over {a,b} where the number of as is one more than the number of bs. Students are required to provide the solutions on the paper within 10 minutes for a total of 10 marks.
The document is a quiz question paper from National University of Computer and Emerging Sciences, Lahore Campus. It contains two questions asking to (1) Give a PDA for the language of all strings over {a,b} where the number of as is a perfect square and equal to the number of bs and (2) Give a CFG for the language of all strings over {a,b} where the number of as is one more than the number of bs. Students are required to provide the solutions on the paper within 10 minutes for a total of 10 marks.
The document is a quiz question paper from National University of Computer and Emerging Sciences, Lahore Campus. It contains two questions asking to (1) Give a PDA for the language of all strings over {a,b} where the number of as is a perfect square and equal to the number of bs and (2) Give a CFG for the language of all strings over {a,b} where the number of as is one more than the number of bs. Students are required to provide the solutions on the paper within 10 minutes for a total of 10 marks.