Lecture 13/65: Intro to Context Free Grammars and Languages

  Рет қаралды 118,955

hhp3

hhp3

Күн бұрын

Пікірлер: 54
@amichael9670
@amichael9670 8 жыл бұрын
Let's all thank God for this human being :-)
@blabarsris6012
@blabarsris6012 3 жыл бұрын
@Brentley Jaxtyn wtf
@cesaredecal2230
@cesaredecal2230 6 жыл бұрын
These videos are pure gold, I feel I understand everything with your teaching style. I appreciate how concise and clear these videos are. Thanks!
@ARK-ju7xx
@ARK-ju7xx 8 күн бұрын
First explanation I completely understand! Thank you!
@HollyFRyan
@HollyFRyan 6 жыл бұрын
You're so goals. I'm in love. You turn logic into lovemaking with your beautiful videos. Thank you Harry Porter
@hhp3
@hhp3 6 жыл бұрын
Holly Whimsy Thanks for your nice compliment, Holly.
@plekkchand
@plekkchand 3 жыл бұрын
Hmm. You might be getting a little carried away here....
@RED-pi9wo
@RED-pi9wo 8 жыл бұрын
Thanks man! I got an exam in like 2 hours. Just learned it all from scratch.
@computerscientist5953
@computerscientist5953 8 жыл бұрын
lol...
@mudsky
@mudsky 8 жыл бұрын
was feeling crap about starting the night before, but this gave me hope. lmao
@Dr1nc
@Dr1nc 7 жыл бұрын
i'm in the exact same spot right now lol
@doguseyidoglu5937
@doguseyidoglu5937 7 жыл бұрын
my exam will start in two hours lol
@osama002009
@osama002009 6 жыл бұрын
The Same with me Lol
@spyros07
@spyros07 9 жыл бұрын
Thank you so much Professor.
@mandy1339
@mandy1339 7 жыл бұрын
reupload videos with higher resulution please. These are gold.
@james_01
@james_01 5 жыл бұрын
Thank you for explaining things so clearly.
@amirkamalian8045
@amirkamalian8045 6 жыл бұрын
*2018 poor computer science student here and I have no fucking Idea why should I know these things But thank god I found you Thank you*
@Braden_Buchanan
@Braden_Buchanan 6 жыл бұрын
this comment is me rn lmao
@corbinmckeeth2124
@corbinmckeeth2124 7 жыл бұрын
you're a wizard harry!
@pablobiedma
@pablobiedma 4 жыл бұрын
never heard that joke before
@selamikadoglu7451
@selamikadoglu7451 5 жыл бұрын
Tomorrow we have an exam ! And this video gave me hope too much...Appreciate thanks thanks muah muah i love yaaaaaaaaaaaaaaaaaa...
@21stcenturygurl
@21stcenturygurl 4 жыл бұрын
Thank you for this sensational video!
@Liaomiao
@Liaomiao 4 жыл бұрын
What this made earlier? Not quite as clear as the FSM segments, still good though.
@BrettClimb
@BrettClimb 7 жыл бұрын
If you had the expression A = B + C * D, and you did a LMD using an ambiguous grammar, couldn't that potentially add B + C before multiplying by D, and if you did a RMD, couldn't it multiply C * D before adding B? In other words, for an ambiguous CFG, wouldn't the LMD and RMD produce different parse trees, and not be abstracted to the same parse tree?
@ManoToor
@ManoToor 7 жыл бұрын
Thank you for these videos, they are very helpful
@DeveshBeri
@DeveshBeri 8 жыл бұрын
In the first example, after 'a + F', why didn't we made it 'a + a' instead of making it 'a + (E)'??
@aminazmus
@aminazmus 8 жыл бұрын
+Devesh Beri Do you got the answer?
@mudsky
@mudsky 8 жыл бұрын
been bothering me too. any answers?
@LeTheory
@LeTheory 8 жыл бұрын
Would a + a be accepted instead of a + (a x a)?
@dr1303
@dr1303 5 жыл бұрын
"a + (E)" and "a + a" are both described by the grammar, so both are correct. The purpose of a grammar is (usually) not to generate expressions, but to check if they are valid. In this case the question would be "Is 'a + (a * a)' valid within this grammar?", and the answer is "Yes, because we can apply the rules until we arrive at that string of characters."
@onursimsek6094
@onursimsek6094 5 жыл бұрын
@@dr1303 Is 'a' valid within this grammar ?
@ydanneg
@ydanneg Жыл бұрын
Starting from this video this course became really complicated to understand. What happened?
@navneetrks
@navneetrks 9 жыл бұрын
Thank you! Sir !
@ghty102
@ghty102 9 жыл бұрын
What I can't seem to figure out is, when doing a left most derivation; does this assume we use the left-most rule in the CFG rules as well? Like what if your grammar is: S->a|B B->Bb|b is the left-most derivation just S=>a? because a is the left-most rule in the definition S->a|B? How do we determine rule to use in these types of situations?
@iali01987
@iali01987 8 жыл бұрын
No and this is because A or B is the same as B or A. So S -> a|b is the same as S -> b|a You don't apply the left mot derivation when choosing a rule.
@dr1303
@dr1303 5 жыл бұрын
Nope. Left most derivation is the idea of expanding the left-most token in your input. With your example grammar, and the input of "SB": SB => aB => aBb => abb Thus "abb" is valid grammar. If we only chose the left rule, we would arrive at: SB => aB => aBb => aBbb => aBbbb => aBbbbb => ... This tells us that abbbbbbb... is also valid within this grammar. This is however an infinite string, which is rather impractical, so at some point it must NOT follow the left most rule of B -> Bb, but rather the right rule of B -> b. This will give the string a finite length.
@eljeanxp
@eljeanxp 9 жыл бұрын
How do you know when to stop expanding?
@kenanofify
@kenanofify 7 жыл бұрын
You stop expanding when there is no more non-terminals (when all of the symbols are terminals). At this point, there is no way to expand anymore. Consider "a + (a x a)", 'a' is a terminal symbol and there is no way to convert it to any other symbol, and also ('+', 'x', '(', ')') are all terminals.
@kenudice9841
@kenudice9841 2 жыл бұрын
Review 12:30 for understanding grammar and language definitions.
@ZawirAmin
@ZawirAmin 9 жыл бұрын
Definition: 12:33
@agakov1
@agakov1 3 жыл бұрын
Thank you!
@onursimsek6094
@onursimsek6094 5 жыл бұрын
Is the following derivation also true : E -> T -> F -> a
@ridwa
@ridwa 5 жыл бұрын
yes, it is
@bilal.ashraf
@bilal.ashraf 9 жыл бұрын
Great stuff..!
@oldlavygenes
@oldlavygenes 3 жыл бұрын
UGA 2021 boi!!!!
@Marox007-m3i
@Marox007-m3i 7 жыл бұрын
thank you
@realAgitated
@realAgitated 4 жыл бұрын
I don’t get it I absolutely hate this, because I don’t know why I don’t understand any of it.
@omart9411
@omart9411 3 жыл бұрын
this was uploaded in 2015 why the potato quality?
@杨健邦
@杨健邦 7 жыл бұрын
I can't see the writting clearly.
@WissalBe
@WissalBe 7 жыл бұрын
Thank you!
Lecture 14/65: Context Free Grammar Example
15:32
hhp3
Рет қаралды 42 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 19 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 19 МЛН
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 57 МЛН
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 24 МЛН
Lecture 17/65: Chomsky Normal Form
15:18
hhp3
Рет қаралды 71 М.
Regular Grammars (Brief Intro to Formal Language Theory 4)
7:01
Dr. Isabel the Linguist
Рет қаралды 10 М.
Context-Free Grammars (CFGs): 5 Easy Examples
19:03
Easy Theory
Рет қаралды 51 М.
Pumping Lemma for Context-Free Languages: Four Examples
48:49
Easy Theory
Рет қаралды 54 М.
The Boundary of Computation
12:59
Mutual Information
Рет қаралды 1 МЛН
Nobody Cares About AI Anymore
19:22
KnowledgeHusk
Рет қаралды 16 М.
What is the Pumping Lemma
5:11
lydia
Рет қаралды 127 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 19 МЛН