filmov
tv
Context-Free Grammars (CFGs): 15 Examples
Показать описание
Here we go through 15 examples for creating context-free grammars, and how to approach these problems generally.
Timeline:
0:00 - Intro
0:16 - Problem 1: a^n b^n
2:17 - Problem 2: a^n b^m, n more than m
4:54 - Problem 3: a^n b^m a^n
6:44 - Problem 4: a^i b^j c^k, i + j = k
9:12 - Problem 5: a^i b^j c^k, i + k = j
11:14 - Problem 6: Complement of a^n b^n
16:22 - Problem 7: Complement of a^n b^n c^n
21:51 - Problem 8: a^n b^n c^m d^m
23:17 - Problem 9: a^n b^m c^p, n at least m or m = p
26:51 - Problem 10: a^i b^j c^k, i=j or j=k
29:28 - Problem 11: a^n b^m c^m d^n
31:00 - Problem 12: Equal number of a's and b's
35:37 - Problem 13: More a's than b's
38:48 - Problem 14: Regex to CFG
41:32 - Problem 15: Balanced Parentheses
▶ABOUT ME◀
I am a professor of Computer Science, and am passionate about it. I have taught many courses at several different universities, including several sections of undergraduate and graduate theory-level classes.
The views expressed in this video are not reflective of any of my current or former employers.
Timeline:
0:00 - Intro
0:16 - Problem 1: a^n b^n
2:17 - Problem 2: a^n b^m, n more than m
4:54 - Problem 3: a^n b^m a^n
6:44 - Problem 4: a^i b^j c^k, i + j = k
9:12 - Problem 5: a^i b^j c^k, i + k = j
11:14 - Problem 6: Complement of a^n b^n
16:22 - Problem 7: Complement of a^n b^n c^n
21:51 - Problem 8: a^n b^n c^m d^m
23:17 - Problem 9: a^n b^m c^p, n at least m or m = p
26:51 - Problem 10: a^i b^j c^k, i=j or j=k
29:28 - Problem 11: a^n b^m c^m d^n
31:00 - Problem 12: Equal number of a's and b's
35:37 - Problem 13: More a's than b's
38:48 - Problem 14: Regex to CFG
41:32 - Problem 15: Balanced Parentheses
▶ABOUT ME◀
I am a professor of Computer Science, and am passionate about it. I have taught many courses at several different universities, including several sections of undergraduate and graduate theory-level classes.
The views expressed in this video are not reflective of any of my current or former employers.
Context-Free Grammars (CFGs): 15 Examples
Context-Free Grammars (CFGs): 5 Easy Examples
Context-Free Grammars (CFGs): 5 Intermediate Examples
Context Free Grammar in automata | CFG || Example-2 | TOC | Lec-50 | Bhanu Priya
Context Free Grammar: Example and Solution | Theory of Computation
🎯ALL TRICKS CFG | context free grammar and language | easy grammer | examples | all type #toc #cse...
2-12 Language Specification of CFG example 2
Context-Free Grammars (CFG) and Context-Free Languages (CFL) - what are they?
Natural Language Processing | Context Free Grammar | CFG | Easy explanation with Example
CFG and Parse Tree Examples! (Sipser 2.1 Solution)
1 - Context Free Grammar Solved Example | Theory of Computation
Context-Free Grammar (CFG) Example: Union/Concat/Star
Construction of CFG for the given language Examples - part 1 || TOC || Theory of Computation|| FLAT
Lec-48: Convert Context free language to Context free grammar with examples | TOC
Designing Context-Free Grammars II (Theory of Computing)
Context-Free Grammars
2 Context free grammar with example
Simplification of Context Free Grammar(CFG) Reduction of Context Free Grammar |TOC | Lect 55
What is Grammar in Automata? Context free Grammar (CFG) Urdu Hindi ' Lecture 20 ' Exam Pre...
CS 320 - Chapter 12 - Context Free Grammars
Context Free Grammar
#CFL to #CFG 🥵 trick | best | easy | simple | context free language to grammer| #cse #gate2023 #toc...
Designing Context-Free Grammars III (Theory of Computing)
CONTEXT FREE GRAMMAR IN AUTOMATA THEORY || CFG IN ATFL || TOC || AUTOMATA THEORY
Комментарии