Context-Free Grammars (CFGs): 5 Easy Examples

  Рет қаралды 59,104

Easy Theory

Easy Theory

Күн бұрын

Пікірлер: 43
@flamediamond8668
@flamediamond8668 9 ай бұрын
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
@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 9 ай бұрын
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!!!
@CLG111
@CLG111 Жыл бұрын
I have a fighting chance now to pass my midterm because of these videos. Salute to you for making this series.
@muneebhadul3269
@muneebhadul3269 2 ай бұрын
same bro
@kin_1997
@kin_1997 9 ай бұрын
very helpfull thank you very much, help in developing skills to think about CFG!
@HNMCK
@HNMCK 2 жыл бұрын
These videos are so helpful! Thank you for taking the time to make them.
@hansolo4626
@hansolo4626 10 ай бұрын
This guy is so goated, best explanations on youtube
@davidtorres718
@davidtorres718 10 ай бұрын
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.
@vimalathithand917
@vimalathithand917 Жыл бұрын
Just wonderful ,u r an awsome teacher ! Thanks a lott!!
@rishabhjain7119
@rishabhjain7119 3 ай бұрын
You are a really good teacher :D
@akshitjain2906
@akshitjain2906 9 ай бұрын
legend
@unexpectedfox
@unexpectedfox Жыл бұрын
Thanks for your explanation. It helps me a lot
@hanaviyano2622
@hanaviyano2622 2 жыл бұрын
Thank you very much for making these videos! You have helped me so soooo much!
@elisabettapassmore781
@elisabettapassmore781 Жыл бұрын
so clean and clear
@Ayesha-uw4dt
@Ayesha-uw4dt 8 ай бұрын
literally the best 10/10
@n0ne0ne
@n0ne0ne 5 ай бұрын
hi where are you from?
@Ayesha-uw4dt
@Ayesha-uw4dt 5 ай бұрын
@@n0ne0ne why do you want to know
@n0ne0ne
@n0ne0ne 5 ай бұрын
@@Ayesha-uw4dt I don't know brother I am just looking for some computer scientist friends
@Bradelbirne
@Bradelbirne 10 ай бұрын
thank you for this video!
@30benasabu65
@30benasabu65 2 жыл бұрын
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 2 жыл бұрын
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
@colonelh.s.l.3834
@colonelh.s.l.3834 Жыл бұрын
Nice video! For your example 2, would it be fine to say S--> 0S | 1S | E?
@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
@RohanShrirame-m3z
@RohanShrirame-m3z 3 ай бұрын
So nice vdeo❤
@excorific7514
@excorific7514 Ай бұрын
For example 2, could we just do S->AC, A-> 0A | e, C-> 1C | e?
@dakotahkurtz5011
@dakotahkurtz5011 Жыл бұрын
awesome. thank you
@nahomaseged3324
@nahomaseged3324 Жыл бұрын
thanks teacher , but in the last example what if we add more condition which is i!=j or j !=k ?
@umarbashir1236
@umarbashir1236 2 жыл бұрын
Thank you sir
@jamescommon478
@jamescommon478 Жыл бұрын
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 7 ай бұрын
no.
@o3o814
@o3o814 Ай бұрын
Спасибо братан
@Phong_1302
@Phong_1302 3 ай бұрын
my love from HCM
@tiananmentank-pj7sf
@tiananmentank-pj7sf 8 ай бұрын
shouldnt the first one be a regular?
@n0ne0ne
@n0ne0ne 5 ай бұрын
all regular languages are context free
@bradleetulio4801
@bradleetulio4801 8 ай бұрын
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 7 ай бұрын
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 3 ай бұрын
Can u have a mic plz
@Agadr
@Agadr 10 ай бұрын
easy
@Phong_1302
@Phong_1302 3 ай бұрын
dcu gioi vc
@שניליטוב
@שניליטוב 5 ай бұрын
Thank you!
Context-Free Grammar (CFG) Example: (0 U 1)*
2:31
Easy Theory
Рет қаралды 1,8 М.
Context-Free Grammars (CFGs): 5 Intermediate Examples
18:57
Easy Theory
Рет қаралды 26 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Programming with Math | The Lambda Calculus
21:48
Eyesomorphic
Рет қаралды 251 М.
Theory of Computation: Construction of CFG - Examples
21:18
Anita R
Рет қаралды 330 М.
Derivatives for Regular Expressions
17:26
awalterschulze
Рет қаралды 902
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
If you're ambitious but lazy, please watch this video...
12:57
Mark Tilbury
Рет қаралды 192 М.
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,3 МЛН
7.1: Intro to Session 7: Context-Free Grammar - Programming with Text
14:30
Context Free Grammar to Pushdown Automaton Conversion (CFG to PDA)
24:21
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН