1. Gyanastra
  2. Theory of Computation
  3. Context-Free Grammars

Theory of Computation

Context-Free Grammars: lessons and notes

14 lessons on context-free grammars for GATE CSE, ISRO and UGC NET. Read the first two lessons free, right here; the rest of the chapter is for signed-in learners. Each lesson shows the exam years that asked it and ends with practice questions.

14 lessons2 simulators
  1. 1
    Definition of Grammar (V, T, P, S) and Language Generated by a Grammar6 min read · Asked in past papers: GATE 2026, 2023, 2017, 2016, 2008, 2007, 2006, 2004, 2000, 1995; ISRO 2023, 2020, 2018, 2017, 2015, 2014, 2011; UGC NET 2022, 2019, 2018, 2016, 2015, 2014, 2013, 2012, 2010, 2009, 2007, 2006.
    Read free
  2. 2
    Leftmost and Rightmost Derivations6 min read · Asked in past papers: GATE 2017; ISRO 2020, 2014; UGC NET 2022, 2018, 2016, 2013, 2012, 2009.
    Read free
  3. 3Free account
  4. 4
    Derivation Trees and Yield of a Parse Tree6 min read · Asked in past papers: ISRO 2023, 2020; UGC NET 2022, 2017, 2016, 2015, 2012.
    Free account
  5. 5Pass
  6. 6Pass
  7. 7
    Grammar for (a+b)* (All Strings over {a,b})6 min read · Asked in past papers: GATE 2016; UGC NET 2015.
    Pass
  8. 8
    Constructing Grammars for Strings of Length at Least Two6 min read · Asked in past papers: GATE 2000.
    Pass
  9. 9Pass
  10. 10Pass
  11. 11Pass
  12. 12
    Grammar for a^n b^n4 min read · Asked in past papers: GATE 2026, 2023, 2017, 2016, 2014, 2009, 2008, 2001, 2000, 1996, 1995; ISRO 2023, 2018, 2017; UGC NET 2019, 2017, 2014, 2013.
    Pass
  13. 13
    Grammar for Palindromes5 min read · Asked in past papers: GATE 2025, 2021, 2009, 2008, 2006, 2003; ISRO 2020, 2016; UGC NET 2012.
    Pass
  14. 14Pass