Context-Free Grammars (CFGs): 5 Easy Examples

  Рет қаралды 48,601

Easy Theory

Easy Theory

Күн бұрын

Пікірлер: 40
@flamediamond8668
@flamediamond8668 6 ай бұрын
Never thought I'd see a video on such a niche topic, thanks to his video I'm able to do my CS Theory assignments
@CLG111
@CLG111 Жыл бұрын
I have a fighting chance now to pass my midterm because of these videos. Salute to you for making this series.
@julien8097
@julien8097 Жыл бұрын
if i ever manage to pass my computer theory class, it'll be thanks to you ! thanks for the video man !
@senugege
@senugege 7 ай бұрын
man i am litterally crying that i couldnt somehow find your channel and videos before, i had an exam last friday and luckily i passed it but... with the least amount of points to pass it, i didnt learn the lecture from any videos or so i only used the resources and lecture videos of the prof and script, as i found a video of you a couple days prior i watched it bc i had nothing to do after the exam month and the lecture seems right now pretty interesting and cool, i think its frankly unimaginable, i have always thought that this lecture is a phase i have to learn it and i will just forget it and dont ever find it interesting or important to even give a bit of time to, thank you for making me like the lecture and making me have a bit of interest, after all you are doing an amazing job with the whole lecture videos and the way you are explaining things are great!!!
@HNMCK
@HNMCK 2 жыл бұрын
These videos are so helpful! Thank you for taking the time to make them.
@davidtorres718
@davidtorres718 8 ай бұрын
This video was the best at helping me understand basic language theory! I have a test soon and I feel confident I'll do well.
@kin_1997
@kin_1997 6 ай бұрын
very helpfull thank you very much, help in developing skills to think about CFG!
@hansolo4626
@hansolo4626 8 ай бұрын
This guy is so goated, best explanations on youtube
@colonelh.s.l.3834
@colonelh.s.l.3834 Жыл бұрын
Nice video! For your example 2, would it be fine to say S--> 0S | 1S | E?
@vimalathithand917
@vimalathithand917 9 ай бұрын
Just wonderful ,u r an awsome teacher ! Thanks a lott!!
@rishabhjain7119
@rishabhjain7119 26 күн бұрын
You are a really good teacher :D
@unexpectedfox
@unexpectedfox 11 ай бұрын
Thanks for your explanation. It helps me a lot
@abhijatchauhan956
@abhijatchauhan956 Жыл бұрын
In the last problem, for the scenario of having i > j, shouldn't the "a"s be first? The grammar given for that will have some "a"s after b, thereby putting them out of order. What about A_i>j -> aA_i>j | aX, then have X -> aXb | epsilon
@hanaviyano2622
@hanaviyano2622 2 жыл бұрын
Thank you very much for making these videos! You have helped me so soooo much!
@elisabettapassmore781
@elisabettapassmore781 Жыл бұрын
so clean and clear
@30benasabu65
@30benasabu65 Жыл бұрын
Sir i think for 0*1*, the production rule must be S->0S | epsilon | P , P-> 1P, E. as a string of zero is possible and belongs to the language and cannot be produced by the rule you had written at 6:05
@serdarkacka
@serdarkacka Жыл бұрын
You are right; S->ε is necessary for the grammar to produce ε.
@gloverelaxis
@gloverelaxis Жыл бұрын
Just so you know, the Latin/English character "e" is a totally different character to the Greek character "epsilon" (ε) even though they are historically linked and look visually similar. In math notation, it's essential to always use the correct letter case - two variables that use the same letter in both upper- and lower-case are considered separate variables. By writing "ε" as its upper-case equivalent, "Ε", you made that symbol look exactly like the upper-case Latin/English character "E". Because we have already established a convention whereby upper-case Latin characters are only used to name *variables*, and not special characters like the empty string, this "Ε" you used appears to denote a variable that you didn't define anywhere. Your comment confused me for a long while, especially since you wrote the full name "epsilon" earlier!
@Kerreber
@Kerreber Жыл бұрын
You can still derive the empty string from S. S=> P => epsilon
@Ayesha-uw4dt
@Ayesha-uw4dt 5 ай бұрын
literally the best 10/10
@n0ne0ne
@n0ne0ne 3 ай бұрын
hi where are you from?
@Ayesha-uw4dt
@Ayesha-uw4dt 3 ай бұрын
@@n0ne0ne why do you want to know
@n0ne0ne
@n0ne0ne 3 ай бұрын
@@Ayesha-uw4dt I don't know brother I am just looking for some computer scientist friends
@Bradelbirne
@Bradelbirne 7 ай бұрын
thank you for this video!
@akshitjain2906
@akshitjain2906 6 ай бұрын
legend
@שניליטוב
@שניליטוב 2 ай бұрын
Thank you!
@jamescommon478
@jamescommon478 10 ай бұрын
For the last question. I think the languages which are: either i or j is equal to 0 are cannot be written by your grammar. Am I right?
@fuadjaganjac9193
@fuadjaganjac9193 5 ай бұрын
no.
@nahomaseged3324
@nahomaseged3324 Жыл бұрын
thanks teacher , but in the last example what if we add more condition which is i!=j or j !=k ?
@bradleetulio4801
@bradleetulio4801 5 ай бұрын
you forgot to account for the case when a is zero or when b is zero as such the cfg can not produce a string like : bc or even ac , so your cfg can produce only in L{a^ib^jc^k i!=j, i and j >0}
@fuadjaganjac9193
@fuadjaganjac9193 5 ай бұрын
you can generate "bc" with following the rules: S->A(ibBC->bεC->bC->bcC->bcε->bc and for "ac" is similar: S->A(i>j)C->aXC->aεC->aC->acC->acε->ac
@RohanShrirame-m3z
@RohanShrirame-m3z 25 күн бұрын
So nice vdeo❤
@tiananmentank-pj7sf
@tiananmentank-pj7sf 6 ай бұрын
shouldnt the first one be a regular?
@n0ne0ne
@n0ne0ne 3 ай бұрын
all regular languages are context free
@umarbashir1236
@umarbashir1236 2 жыл бұрын
Thank you sir
@QuynhNhu-gu5ql
@QuynhNhu-gu5ql 11 күн бұрын
my love from HCM
@RohanShrirame-m3z
@RohanShrirame-m3z 25 күн бұрын
Can u have a mic plz
@Agadr
@Agadr 7 ай бұрын
easy
@QuynhNhu-gu5ql
@QuynhNhu-gu5ql 11 күн бұрын
dcu gioi vc
@dakotahkurtz5011
@dakotahkurtz5011 Жыл бұрын
awesome. thank you
Context-Free Grammars (CFGs): 5 Intermediate Examples
18:57
Easy Theory
Рет қаралды 23 М.
Context Free Grammar to Pushdown Automaton Conversion (CFG to PDA)
24:21
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 115 МЛН
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,4 МЛН
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 126 МЛН
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 18 МЛН
What is the Pumping Lemma
5:11
lydia
Рет қаралды 122 М.
7.1: Intro to Session 7: Context-Free Grammar - Programming with Text
14:30
Context-Free Grammars (Brief Intro to Formal Language Theory 5)
12:08
Isabel Cooke McKay
Рет қаралды 8 М.
Chomsky Normal Form Conversion Example
22:04
Easy Theory
Рет қаралды 28 М.
Pumping Lemma for Context-Free Languages: Four Examples
48:49
Easy Theory
Рет қаралды 52 М.
Pumping Lemma (For Context Free Languages) - Examples (Part 1)
12:22
Closure Properties of Context-Free Languages
14:08
Easy Theory
Рет қаралды 22 М.
Equivalence of CFG and PDA (Part 1)
22:49
Neso Academy
Рет қаралды 713 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 115 МЛН