No video

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

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

hhp3

hhp3

Күн бұрын

"Theory of Computation"; Portland State University: Prof. Harry Porter; www.cs.pdx/~harry

Пікірлер: 53
@amichael9670
@amichael9670 7 жыл бұрын
Let's all thank God for this human being :-)
@blabarsris6012
@blabarsris6012 3 жыл бұрын
@Brentley Jaxtyn wtf
@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 6 жыл бұрын
my exam will start in two hours lol
@osama002009
@osama002009 6 жыл бұрын
The Same with me Lol
@cesaredecal2230
@cesaredecal2230 5 жыл бұрын
These videos are pure gold, I feel I understand everything with your teaching style. I appreciate how concise and clear these videos are. Thanks!
@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....
@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
@spyros07
@spyros07 9 жыл бұрын
Thank you so much Professor.
@mandy1339
@mandy1339 7 жыл бұрын
reupload videos with higher resulution please. These are gold.
@kenudice9841
@kenudice9841 2 жыл бұрын
Review 12:30 for understanding grammar and language definitions.
@james_01
@james_01 5 жыл бұрын
Thank you for explaining things so clearly.
@corbinmckeeth2124
@corbinmckeeth2124 6 жыл бұрын
you're a wizard harry!
@pablobiedma
@pablobiedma 4 жыл бұрын
never heard that joke before
@Liaomiao
@Liaomiao 4 жыл бұрын
What this made earlier? Not quite as clear as the FSM segments, still good though.
@ydanneg
@ydanneg Жыл бұрын
Starting from this video this course became really complicated to understand. What happened?
@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?
@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 7 жыл бұрын
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 ?
@eljeanxp
@eljeanxp 8 жыл бұрын
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.
@selamikadoglu7451
@selamikadoglu7451 4 жыл бұрын
Tomorrow we have an exam ! And this video gave me hope too much...Appreciate thanks thanks muah muah i love yaaaaaaaaaaaaaaaaaa...
@agakov1
@agakov1 3 жыл бұрын
Thank you!
@ZawirAmin
@ZawirAmin 9 жыл бұрын
Definition: 12:33
@navneetrks
@navneetrks 9 жыл бұрын
Thank you! Sir !
@21stcenturygurl
@21stcenturygurl 4 жыл бұрын
Thank you for this sensational video!
@ghty102
@ghty102 8 жыл бұрын
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 7 жыл бұрын
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.
@onursimsek6094
@onursimsek6094 5 жыл бұрын
Is the following derivation also true : E -> T -> F -> a
@ridwa
@ridwa 5 жыл бұрын
yes, it is
@ManoToor
@ManoToor 7 жыл бұрын
Thank you for these videos, they are very helpful
@GoodStageProduction0
@GoodStageProduction0 2 жыл бұрын
UGA 2021 boi!!!!
@bilal.ashraf
@bilal.ashraf 9 жыл бұрын
Great stuff..!
@Marox007-m3i
@Marox007-m3i 6 жыл бұрын
thank you
@omart9411
@omart9411 3 жыл бұрын
this was uploaded in 2015 why the potato quality?
@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.
@user-pl2ex3zd5p
@user-pl2ex3zd5p 7 жыл бұрын
I can't see the writting clearly.
@WissalBe
@WissalBe 7 жыл бұрын
Thank you!
Lecture 14/65: Context Free Grammar Example
15:32
hhp3
Рет қаралды 42 М.
Context-Free Grammars (CFGs): 5 Easy Examples
19:03
Easy Theory
Рет қаралды 44 М.
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 41 МЛН
Incredible Dog Rescues Kittens from Bus - Inspiring Story #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 34 МЛН
When you discover a family secret
00:59
im_siowei
Рет қаралды 32 МЛН
Lecture 11/65: Pumping Lemma (For Regular Languages)
33:08
Context-Free Grammar to Pushdown Automaton Conversion (CFG to PDA)
9:15
Context-Free Grammars (Brief Intro to Formal Language Theory 5)
12:08
Isabel Cooke McKay
Рет қаралды 7 М.
Lecture 19/65:  The Pumping Lemma for CFLs
41:32
hhp3
Рет қаралды 34 М.
Context Free Grammar to Pushdown Automaton Conversion (CFG to PDA)
24:21
Pumping Lemma for Context-Free Languages: Four Examples
48:49
Easy Theory
Рет қаралды 51 М.
All possible pythagorean triples, visualized
16:58
3Blue1Brown
Рет қаралды 3,8 МЛН
Regular Grammars (Brief Intro to Formal Language Theory 4)
7:01
Isabel Cooke McKay
Рет қаралды 10 М.
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00