Identities of Regular Expression

  Рет қаралды 707,233

Neso Academy

Neso Academy

Күн бұрын

Пікірлер: 115
@ugcnet8015
@ugcnet8015 2 жыл бұрын
Eminent channel and Eminent Teacher. Hats off to you Sir.
@LALANKumar-en5rv
@LALANKumar-en5rv Жыл бұрын
00:01 The identity Phi plus R equals R represents the union of an empty set and any regular expression R, resulting in R. 00:50 Different properties of regular expressions explained. 01:36 Epsilon Closure 02:28 Concatenating the closure of two regular expressions gives the total of that SS patient as the result. 03:21 The closure of a regular expression when performed again gives the closure of the same expression. 04:10 The closure of R plus excluding the epsilon symbol gives the closure of R 05:01 Concatenation and closure properties of regular expressions 05:57 Important identities of regular expressions
@flakeyguy000
@flakeyguy000 Ай бұрын
Thanks for this!
@ZinxM8
@ZinxM8 5 жыл бұрын
is there a difference between closure properties and identities?
@aryanv1406
@aryanv1406 4 жыл бұрын
Let R be {a,b} and R* would be {epsilon, a, b, aa , bb , ab , ba ...}, now let's take one symbol from R and one Symbol from R* and we will never be able to have only epsilon. There will be always epsilon and a or epsilon and b. As we know (epslion and a = a). Thats why it is R+.
@vasireddyganesh
@vasireddyganesh 3 жыл бұрын
thank you so much
@Yuki-wn9kj
@Yuki-wn9kj 3 жыл бұрын
thats correct
@MM-vc5ic
@MM-vc5ic 3 жыл бұрын
thank you
@Lian-np5xm
@Lian-np5xm Жыл бұрын
Thank u so much
@leanroorael
@leanroorael 4 ай бұрын
But what if R includes epsilon? Since epsilon is also a regular expression. Then epsilon from R and epsilon from R* would result in epsilon. Why is it that R*R*=R* but RR*=R+?
@unknownlifeform4077
@unknownlifeform4077 7 жыл бұрын
Is RR* = R+ ?
@ayankumarpahari83
@ayankumarpahari83 7 жыл бұрын
Zhechun zhou yes
@ProfessionalTycoons
@ProfessionalTycoons 7 жыл бұрын
This is such good comment.
@ChristianBurnsShafer
@ChristianBurnsShafer 7 жыл бұрын
You can figure this out if you look at identity (9). Observe, Epsilon + RR* = R*. If we subtract Epsilon from both sides we obtain, RR* = R+
@javaexpertsa8947
@javaexpertsa8947 6 жыл бұрын
Let R be {a,b} and R* would be {epsilon, a, b, aa , bb , ab , ba ...}, now let's take one symbol from R and one Symbol from R* and we will never be able to have only epsilon. There will be always epsilon and a or epsilon and b. As we know (epslion and a = a). Thats why it is R+.
@kushwanthkapa2041
@kushwanthkapa2041 4 жыл бұрын
yes
@sirisha.vamisetti
@sirisha.vamisetti 6 жыл бұрын
Thanks for giving the video but I need example also
@karanvenkateshupamanyuise-9407
@karanvenkateshupamanyuise-9407 4 жыл бұрын
How is RR* = R+ as said in example 9?
@aakashp
@aakashp 3 жыл бұрын
According to definition of + there should be at least 1 R. There fore first R for atleast one R , And after that any number of R can come (R*)
@aryankhanna8295
@aryankhanna8295 2 жыл бұрын
R*={€ , R , RR , RRR ,..........} R.R*=R.{€ , R , RR , RRR ,..........} ={R.€ , R.R , R.RR , R.RRR ,.....} ={R , RR , RRR , RRRR ,.........} =R+
@pozlong8614
@pozlong8614 2 жыл бұрын
@@shahrak6306 THANK YOU.
@mohammadzaid9189
@mohammadzaid9189 2 жыл бұрын
With that logic, ^ also get included in that set, and if empty symbol included then how it is referred to as R+ not R*. ?
@rajatmishra9676
@rajatmishra9676 2 жыл бұрын
r+ = r.r* = r*r, as r* = ∈ + r + rr+ rrr …. and r.r* = r+ rr + rrr …… and rE=Er=r
@sandipdas5684
@sandipdas5684 4 жыл бұрын
Thank you so much sir 🙏
@talhamalik3tm
@talhamalik3tm 3 ай бұрын
Point 9: R* already includes the epsilon symbol within itself. Hence the concatenation of R* with R yields R* regardless if you add epsilon to it or not.
@krishnakrmahto97
@krishnakrmahto97 6 жыл бұрын
second identity should be: (phi)R = R(phi) = phi
@aydict
@aydict 6 жыл бұрын
you sure? I was so confused because of that
@backslash8874
@backslash8874 5 жыл бұрын
@@aydict Yes, it should be (Phi)R=R(Phi)=Phi...
@Farahat1234
@Farahat1234 5 жыл бұрын
@@backslash8874 to vhi to h!
@athukutti
@athukutti 4 жыл бұрын
It may can be also like that , bcoz when R is multiply with phi the result will be phi , the phi is like zero then when two zeros are added then result will be phi
@venkatarohitpotnuru38
@venkatarohitpotnuru38 2 жыл бұрын
@@backslash8874 yaa
@BigyanChap
@BigyanChap 5 жыл бұрын
I was expecting that you would explain with examples.
@ruhanmuzaffar2012
@ruhanmuzaffar2012 5 жыл бұрын
me too .....or else why would someone come here
@sanchitbhalla1176
@sanchitbhalla1176 4 жыл бұрын
Watch knowledge gate Sanchit sir is best
@Shivam-wg6eq
@Shivam-wg6eq 4 жыл бұрын
@@sanchitbhalla1176 tum bhi binod nikle 🙄🤔
@arjunmalli50
@arjunmalli50 11 ай бұрын
I have one doubt sir. In previous video you told instead of or (a, b) we used in RE + (a+b) in this video we used + for union?
@mnaresh3382
@mnaresh3382 10 ай бұрын
technically they are the same, we can represent Union of a and b as (a, b) or a+b, both means the same, for concatenation we can write either a . b or (ab)
@arjunmalli50
@arjunmalli50 10 ай бұрын
@@mnaresh3382 thank you
@arjunmalli50
@arjunmalli50 10 ай бұрын
​@@mnaresh3382thank you sir...
@AL-go2mv
@AL-go2mv 7 жыл бұрын
Can you tell me what all the symbols mean?? *, epsilon, +, concat
@varunkamani2528
@varunkamani2528 7 жыл бұрын
Aaron Loomis In video above this all this symbol are described. € means null * Means occurance of element 0 or more time which includes ^ too + Is same as * but it doesn't include ^
@nabhavlogs371
@nabhavlogs371 6 жыл бұрын
But in the previous video ^ was shown as null symbol
@Farahat1234
@Farahat1234 5 жыл бұрын
@@varunkamani2528 now where are you after 2years?
@amanlrwtfsm1323
@amanlrwtfsm1323 3 жыл бұрын
@@Farahat1234 where u are after 1 year ??
@Farahat1234
@Farahat1234 3 жыл бұрын
@@amanlrwtfsm1323 😅😅😅at home but why did you asked😄
@gouravvishak6046
@gouravvishak6046 6 жыл бұрын
what will be R + R* ? if there any identity?
@raghavmanish24
@raghavmanish24 8 ай бұрын
R*
@ahmednabil5119
@ahmednabil5119 4 жыл бұрын
Thanks alot for you clear explanation.
@kainaatmakhani6550
@kainaatmakhani6550 2 жыл бұрын
good job
@phralma1000BC
@phralma1000BC 7 жыл бұрын
what is the difference between € and phi?
@simran4930
@simran4930 7 жыл бұрын
epsilon means that a set contains a value called null value but phi means that a set doesn't contain any value.
@ProfessionalTycoons
@ProfessionalTycoons 7 жыл бұрын
I was asking the same thing
@vasudevp1703
@vasudevp1703 6 жыл бұрын
If you have the idea of Finite State Machines or any mathematical model machine then PHI means NO INPUT STRING SET, ie. MACHINE IS NOT EVEN IN THE START STATE. Whereas the € means Machine has a input string set, but no elements in it. MACHINE IS NOW IN START STATE. Major difference is where the control lies whether in START STATE or machine didn't even need to start.
@abhijeetsharma5715
@abhijeetsharma5715 6 жыл бұрын
​@@simran4930​ i think epsilon is a word and not a set.( math.stackexchange.com/questions/1116218/difference-between-phi-anf-epsilon-in-regular-language )
@akashkaaa7193
@akashkaaa7193 3 жыл бұрын
What is the result of fi . {a} = ? fi concatenation of {a} = ?
@rajatmishra9676
@rajatmishra9676 2 жыл бұрын
fi
@rahulbhoir3498
@rahulbhoir3498 6 жыл бұрын
you have changed the 2nd equation in another video(regular languages and finite automata problem 2) so which is correct
@HosRo4161
@HosRo4161 Жыл бұрын
Agree: The second identity should read: 0R = R0 = 0
@surbhiyadav4461
@surbhiyadav4461 6 жыл бұрын
what is the difference between fii ,null and epsilon??
@vishaliguru3630
@vishaliguru3630 5 жыл бұрын
@surbhi yadav Null and epsilon means the same....it's a string of length zero.phi is a null set symbol.
@kamalpatel5262
@kamalpatel5262 3 жыл бұрын
∅ is the empty set. ϵ is the empty string.
@prohightension2000
@prohightension2000 2 жыл бұрын
@@kamalpatel5262 Thanks you!! I was wondering about this too
@u_ziben
@u_ziben 6 жыл бұрын
I apologize but can you give me a link to the track you play at the end of the video? It sounds really cool
@dhairyasharma6243
@dhairyasharma6243 5 жыл бұрын
still finding the link huh?
@vybhavchaturvedi8348
@vybhavchaturvedi8348 4 жыл бұрын
Description man, its not that tough
@youssef_uchiha
@youssef_uchiha 3 жыл бұрын
Axol x Alex Skrindo - You [NCS Release]
@scottzeta3067
@scottzeta3067 2 жыл бұрын
I don't understand the second one.
@mohamadtabbakh9887
@mohamadtabbakh9887 9 ай бұрын
I wish you demonstrated the laws using an aribitrary set of symbols. That would have made this into 100/100 instead of a 80/100
@doudou7074
@doudou7074 4 жыл бұрын
abstract. I can't understand. I don't know why. But I find the comments are very useful. Thanks.
@vasireddyganesh
@vasireddyganesh 3 жыл бұрын
Yeah
@vatsalgp
@vatsalgp 4 жыл бұрын
The second identity is wrong. It should be either : phiR + Rphi = R or phiR = Rphi = R
@amanagarwal9700
@amanagarwal9700 5 жыл бұрын
(a*ab+ba)*a*=(a+ab+ba)* how to prove this?
@LetTheWritersWrite
@LetTheWritersWrite 7 жыл бұрын
What exactly does epsilon mean?
@abhinav9058
@abhinav9058 7 жыл бұрын
LetTheWritersWrite its a constant of physics
@abhinav9058
@abhinav9058 7 жыл бұрын
Also it means null here
@yassinerh7709
@yassinerh7709 7 жыл бұрын
empty string
@jeneyify
@jeneyify 7 жыл бұрын
It's like space in a sentence, nothing.
@yassinerh7709
@yassinerh7709 7 жыл бұрын
Its not even a space :) actually its something like char c=''; in this case c equal to epsilon
@MagaTecnologica
@MagaTecnologica 2 жыл бұрын
I missed some examples... It was just too abstract
@ozanercan2052
@ozanercan2052 6 жыл бұрын
where is the proof of this identities ?
@surbhiyadav4461
@surbhiyadav4461 6 жыл бұрын
there is no need to prove these identities
@Karansingh-gh4oy
@Karansingh-gh4oy 7 жыл бұрын
thankyou sir
@asanitian6218
@asanitian6218 11 ай бұрын
Epsilon+regular expression=??
@jethanpaul818
@jethanpaul818 9 ай бұрын
it is regular expression because epsilon represent an empty string and not set as phi, if it was phi it would have meant an empty set and the outcome could be empty set
@blahblahbla710
@blahblahbla710 5 жыл бұрын
Why is 10 true
@oshoconner4003
@oshoconner4003 2 жыл бұрын
Sir operating system memory management dal do...please🇮🇳🇮🇳
@marcaironcantal515
@marcaironcantal515 3 ай бұрын
🤔
@marxman1010
@marxman1010 3 жыл бұрын
Why ∅ star becomes epsilon? ∅ means nothing inside and not contain empty string.
@therealkon_
@therealkon_ 2 жыл бұрын
I guess with an empty set you can't create any strings. That is why it is the empty string
@neiljohn2637
@neiljohn2637 3 жыл бұрын
47
@mohssinmanj3874
@mohssinmanj3874 4 жыл бұрын
Its help us a looot
@GagandeepSingh-b9k
@GagandeepSingh-b9k Жыл бұрын
2nd identity is wrong
@LadderVictims
@LadderVictims 11 ай бұрын
it is indeed correct
@arpitsaxena5972
@arpitsaxena5972 4 жыл бұрын
Sirf padh kr ni sunana tha chacha....
@vimalsheoran8040
@vimalsheoran8040 5 жыл бұрын
I believe it should be called intersection and not concatenation.
@6066Y
@6066Y Жыл бұрын
Brother where is explaination Ur just reading 😂
@dhairyasharma6243
@dhairyasharma6243 5 жыл бұрын
are sir, kya hi bol gaye ;_;
@kasozivincent107
@kasozivincent107 4 жыл бұрын
what u are doing is what any book will do. i wish u could really explain
@solarchat9413
@solarchat9413 2 жыл бұрын
You are just reading what is written. That's not teaching
@probot_x_falcon9054
@probot_x_falcon9054 2 жыл бұрын
i think the second identity is wrong because i checked it on geeks for geeks theres it is ∅.r= r.∅ = ∅ instead of +
@yitzchakmeltz1309
@yitzchakmeltz1309 3 жыл бұрын
Why is ∅ ∗ = ε ? If you repeat the empty set {} many times, isn't it still the empty set {}?
@mypowerlevelisover9000
@mypowerlevelisover9000 2 жыл бұрын
Repeat empty set 0 times you get ε
@SaatvikPandey-t2y
@SaatvikPandey-t2y Ай бұрын
what is the difference between epsilon and phi?
Arden’s Theorem
7:35
Neso Academy
Рет қаралды 811 М.
NFA to Regular Expression Conversion
13:37
Neso Academy
Рет қаралды 977 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Designing Regular Expressions
6:55
Neso Academy
Рет қаралды 758 М.
REGEX (REGULAR EXPRESSIONS) WITH EXAMPLES IN DETAIL | Regex Tutorial
10:43
An Example Proof using Identities of Regular Expressions
5:49
Neso Academy
Рет қаралды 559 М.
Regular Expression - Examples
5:32
Neso Academy
Рет қаралды 809 М.
Conversion of Regular Expression to Finite Automata
4:27
Neso Academy
Рет қаралды 637 М.
Pumping Lemma (For Regular Languages)
8:08
Neso Academy
Рет қаралды 1,3 МЛН