Lec-29: Regular Expressions for Infinite Languages Example 2 | TOC

  Рет қаралды 512,904

Gate Smashers

Gate Smashers

Күн бұрын

Пікірлер: 197
@kundangupta7403
@kundangupta7403 4 жыл бұрын
I don't like to read standard textbook..... But I see your every gate videos and make notes.... That is very helpful...... 👌👌
@ayeshabilal275
@ayeshabilal275 3 жыл бұрын
Same case with me
@aditinageshwar3217
@aditinageshwar3217 2 жыл бұрын
Same here bro
@lonelyboy4385
@lonelyboy4385 2 жыл бұрын
Nice name bro😁
@thanks283-v7f
@thanks283-v7f 2 жыл бұрын
mujhe b notes de do please
@akashkush6631
@akashkush6631 2 жыл бұрын
gate exam diya kya bhai?
@brahmanandakabi8796
@brahmanandakabi8796 4 жыл бұрын
Honestly,you are one of best teacher in KZbin
@nishantgaurav5007
@nishantgaurav5007 2 жыл бұрын
I have gone through all of your videos of TOC and DBMS both.I would like to thank you a lot for providing guidance and to make us understand the subject in easy way..........Thank you so much again.It was really very helpful.
@keepsmiling6192
@keepsmiling6192 3 жыл бұрын
you are my hero teacher sir i am following you from jan 2021 ....thanks for providing such great and helpful videos .....
@SaumyaSharma007
@SaumyaSharma007 3 жыл бұрын
Thanks a lot sir 👌🔥 5.21 lac logo ki blessings saath h isliye apko aur apki family ko kuch nhi ho skta Sir 🌟🙏🤗 Very happy for you sir ki aap ab theek ho
@69upasonabiswas88
@69upasonabiswas88 3 жыл бұрын
so close to 500K.. Damn excited sir ji..
@ramankumar41
@ramankumar41 3 жыл бұрын
Your videos are really very helpful. Thank you Sir.
@VishalChauhan-ts9jm
@VishalChauhan-ts9jm 7 ай бұрын
Sir aap jaise teachers hai tab hi ham students ka jeevan dhanya hai ❤❤❤❤❤❤❤❤
@Swaroop_Rath
@Swaroop_Rath 4 жыл бұрын
Explanation level has no comparison, wowsome videos sir....
@TarunDubey-ig2su
@TarunDubey-ig2su Жыл бұрын
10:45 starting with a and ending with a should be (a+ (a (a+b)* a) instead of a (a+b)* a
@TarunDubey-ig2su
@TarunDubey-ig2su Жыл бұрын
because string " a " is also starting with a and ending with a , we can't write it with video's answer.......................
@md.danish5612
@md.danish5612 Жыл бұрын
a*b^+(a+b)* for 2nd ques is correct?
@17_jain_darsh65
@17_jain_darsh65 3 жыл бұрын
Perfect explaination sir
@tayyab.sheikh
@tayyab.sheikh 6 ай бұрын
Half concepts from Neso half from Gate Smashers, one is better than the other ❤
@techbro5590
@techbro5590 3 жыл бұрын
your the best teacher 🙏
@ravirajkudal5626
@ravirajkudal5626 3 жыл бұрын
How many times I should say thank you You are so awesome Thank you again🙏🙏
@anubhav9158
@anubhav9158 3 жыл бұрын
jo gate smashers ke videos dislike karte hain na unke liye garuda purana mein alag saja likhi hui hain.
@seemadahiya432
@seemadahiya432 3 жыл бұрын
Best teacher ever for cs.....
@EBKCS_DHRUV_SHARMA
@EBKCS_DHRUV_SHARMA 11 ай бұрын
kya badhiya revision karwa diya sir
@kaiserrashidofficial
@kaiserrashidofficial 3 жыл бұрын
Amazing sir love from kashmir
@kundangupta7403
@kundangupta7403 4 жыл бұрын
Great source of knowledge sir 👍
@richardjones7726
@richardjones7726 10 ай бұрын
Sir you are legend !😍
@darshanasonawane8699
@darshanasonawane8699 4 жыл бұрын
thank you very much sir..found it very useful
@tufgaming7390
@tufgaming7390 5 ай бұрын
1 year , 2 year now 3 year you are the best teacher
@pkblaziken3585
@pkblaziken3585 4 ай бұрын
One question plz answer if i say All strings with odd number of a's and b's so what's the regular expression of it
@yugpatel2759
@yugpatel2759 3 жыл бұрын
Sir thank you so much.. amazing explanation...
@AbdulRehman-yb4zf
@AbdulRehman-yb4zf 3 жыл бұрын
Best teacher💚💕💕
@netcracker7353
@netcracker7353 4 жыл бұрын
Thanks sir actually I did my MCA from an open University from IGNOU but meine toc ko as subject nahi pada mca k baad m kai videos se sikne ki koshish bi ki meine i.t.i ke lec tak sune h online but aap k jitna acha India m to kya bahar bi koi nahi karva sakta . Thank you sir
@hussainaslam5676
@hussainaslam5676 3 жыл бұрын
the last trick of 2b's deserves a like👍👍
@ramankumar41
@ramankumar41 3 жыл бұрын
Very nice explanation. Thanks a lot Sir !!
@just-trendingthings
@just-trendingthings 9 ай бұрын
You simply Great sir 👏
@pranavmehendale
@pranavmehendale Жыл бұрын
10:30 Sir I think for 6th L={a,aa,...} so to consider 'a' R=a+a(a+b)*a right?
@vaishnavimore5888
@vaishnavimore5888 3 ай бұрын
Sir You are you teaching very Exllent
@renukajoshi3403
@renukajoshi3403 4 жыл бұрын
Thank you Sir for these TOC videos
@tyece75sayaligawali74
@tyece75sayaligawali74 2 жыл бұрын
Thank you so much sir your teaching a is fabulous....😊 I m getting all the concepts cleared regarding TOC through your vedio so thank you so much sir
@mohammadhasnain4103
@mohammadhasnain4103 3 жыл бұрын
I think regex for Q6 (begin and end with a) should be a + a (a+b)^* a because it contains a single ''a'' too which begins and ends with a.
@shutupandcode
@shutupandcode Жыл бұрын
nice bro... I agree
@mujeebtyagi4695
@mujeebtyagi4695 Жыл бұрын
Bro isme starting me b bhi aa skta h
@bestofnow1162
@bestofnow1162 Жыл бұрын
it (aaa) can come in this notation also "a(a+b)*a" so sir is right, we want to minimize the expression , no need to expand it or make it large
@divyam5935
@divyam5935 Жыл бұрын
I agree but there is an even smarter way to deal with the single 'a' problem we can simply write a(a+b)*a* or a*(a+b)*a
@Dev77g
@Dev77g Жыл бұрын
​@@divyam5935the first example you give is wrong because string ab will be accepted and the second example is wrong because string ba will be accepted
@ritikshrivastava9442
@ritikshrivastava9442 3 жыл бұрын
10:31 laughed very hard
@PriyaKumari-xj1ls
@PriyaKumari-xj1ls 4 жыл бұрын
Sir can you please make video lectures of compiler design for us so that we can utilize this lock down time for our studies by understanding concept and practical approaches of gate subjects Please make videos on that also as soon as possible. 😊
@arshadshaik4961
@arshadshaik4961 3 жыл бұрын
outstanding bro
@alinajaved2165
@alinajaved2165 4 жыл бұрын
great teacher..
@Sammy09s
@Sammy09s 2 жыл бұрын
Mazza aaa gea 😍 Love from pakistan 🇵🇰❤️
@shahraankashaan
@shahraankashaan 2 жыл бұрын
When your views become moree suddenly smjh jana hmari university k papaer start hn or hmari class y lectures smjh k phr prhtiii😂😂😂😂❤❤
@chandnibhatia316
@chandnibhatia316 4 жыл бұрын
Thankyou sir 💫
@jasminerose5733
@jasminerose5733 Жыл бұрын
Like your video... Thanks... From Pakistan 🎉
@amantyagi4653
@amantyagi4653 2 жыл бұрын
Your Funda is always Great Keep it up!
@simrinnaiyma6477
@simrinnaiyma6477 2 жыл бұрын
Thank you so much sir 🥺💗
@quark2248
@quark2248 2 жыл бұрын
Sir at last you told that the regular expression of atleast two b is a*ba*ba*. But one string can also be possible i.e. bbb. But according to your expression, bbb can't be formed.
@priyankpatel9134
@priyankpatel9134 2 жыл бұрын
Thank you..Sir your videos is very usefull for us...
@AmanpreetKaur-lf4ut
@AmanpreetKaur-lf4ut 4 жыл бұрын
Best channel
@ratnakantahanse2661
@ratnakantahanse2661 4 жыл бұрын
Thank you sir....
@kirtipurohit1237
@kirtipurohit1237 4 жыл бұрын
I like your way of speaking
@pradeeppradeepkanaujiya8990
@pradeeppradeepkanaujiya8990 4 жыл бұрын
Great sir
@saqibshinwari78
@saqibshinwari78 3 жыл бұрын
Very helpful … thank u so much
@akankshasharma5602
@akankshasharma5602 3 жыл бұрын
Thank you soo much sir 🙏🙏🙏🙏🙏
@thesandipsunar
@thesandipsunar Жыл бұрын
@vaibhavambrale6805
@vaibhavambrale6805 3 жыл бұрын
For regex of starting and ending with 'a' It should be "a(a+b)*a+a" , the "+a" will be added because a single "a" will be the smallest string that starts and ends with "a" , which cannot be generated by "a(a+b)*a" alone.
@anaskaratela6851
@anaskaratela6851 2 жыл бұрын
Kudos
@itssomeoneyoudontneedtoknow
@itssomeoneyoudontneedtoknow 2 жыл бұрын
correct
@divyam5935
@divyam5935 Жыл бұрын
​​@@akashgarg4043this works too but its just unnecessary. the simplest way to deal with single 'a' problem is to write it as a(a+b)*a* or a*(a+b)*a edit: this doesnt work, as for a*(a+b)*a the string ba can be accepted, which is wrong, therefore its imperative we write, ((a(a+b)*a)+a)
@vikasphulriya1841
@vikasphulriya1841 8 ай бұрын
​@@divyam5935 in a*(a+b)*a ba will pass which is wrong taking a* as empty string output (a+b)* taking b as output a is permanent then final output will be ba which is wrong
@divyam5935
@divyam5935 8 ай бұрын
@@vikasphulriya1841 yes u r correct. i will edit my reply.
@golammuktadir4355
@golammuktadir4355 3 жыл бұрын
Dear Sir, No.2 question: All strings having at least one 'b' = regex -> (a+b)*b^+(a+b)* is it correct ? because b^+ means = one or more . Thanks for your quality lecture .
@md.danish5612
@md.danish5612 Жыл бұрын
can it be this == a*b^+(a+b)* ?
@bleed0P
@bleed0P 4 жыл бұрын
what if we write (a+b)* b^+ (a+b)* or a* b^+ a* in time 8:32
@anishagarwal6482
@anishagarwal6482 4 жыл бұрын
abababa won't satisfy for your second solution
@forkanfahimfhf6563
@forkanfahimfhf6563 2 жыл бұрын
tnq soooo much
@ganeshnanhe9638
@ganeshnanhe9638 4 жыл бұрын
Sir while designing what we have to use NFA Or DFA?❓❓❓
@atik_tanim5991
@atik_tanim5991 3 жыл бұрын
Love from Bangladesh
@rexxter5718
@rexxter5718 3 жыл бұрын
Sir 6th example beginning and ending with 'a' mai ye wala string bhi accept hona chahiye - {a} ie single 'a' but for expr- a (a+b)^* a we require atleast two 'a'. This expr will not accept single 'a'. Pls look into this. Thankyou
@jayshrikhamk97
@jayshrikhamk97 4 жыл бұрын
Concept clear
@kumartiwari6380
@kumartiwari6380 4 жыл бұрын
Confused on -> For Begning and ending with a ; I think it will be a+a(a+b)*a because 'a' itself starts and ends with 'a' and your expression a(a+b)*a will have minimum of 2 a's so , whats the correct answer ????
@shutupandcode
@shutupandcode Жыл бұрын
correct
@snazalsingh2465
@snazalsingh2465 2 жыл бұрын
Can we put diffrent values of kleen closure in same string
@anmolpandey7840
@anmolpandey7840 3 жыл бұрын
thanks sir
@dazewaker262
@dazewaker262 2 жыл бұрын
Sir i got one question..Can {a} count as beginning with a and ending with a ?? If so then,R = a(a+b)*a already gives us minimum of 'a epsilon a' (.i.e. aa)
@devanshramani
@devanshramani 17 күн бұрын
RE for strings starts & ends with ‘a' is : “a(a+b)*a?” or “a?(a+b)*a”
@jayshrikhamk97
@jayshrikhamk97 4 жыл бұрын
Thanks
@praneetabisen9665
@praneetabisen9665 4 жыл бұрын
thank u sir
@aryanshirsat8160
@aryanshirsat8160 2 жыл бұрын
sir 2nd mai a*b^+a* nahi chaleg??
@Spoorti123-r4w
@Spoorti123-r4w 4 жыл бұрын
For all strings having at least 1 b....can we write b^+?bcz + includes any no. Of b but except null Plz clear this sir
@adarshkumar3518
@adarshkumar3518 3 жыл бұрын
No because aap a ke saath kuch nhi kr rhe ho. Agar 'a' aa jaata hai to wo accept hi nhi hoga. Only b, bb, bbb. . . hi accept honge.
@bijayasharma480
@bijayasharma480 3 жыл бұрын
For all strings having at least 1 b. We need atleast 1 'b' anywhere in the expression so we write (a+b)* which signifies we can get anything and also it can end with anything too so we put (a+b)* at the end too. Then we need atleast one b so we put one b in between (a+b)* and (a+b)*. i.e; (a+b)* b (a+b)*
@ManishKumarSahu-jd2ww
@ManishKumarSahu-jd2ww 3 жыл бұрын
@@bijayasharma480 we can write a*b+a* too, right?
@ashleshakedare22
@ashleshakedare22 2 жыл бұрын
@@ManishKumarSahu-jd2ww I think no, because it won't accept strings such as "ababbab".
@ManishKumarSahu-jd2ww
@ManishKumarSahu-jd2ww 2 жыл бұрын
@@ashleshakedare22 ohh truuu, completely agreed, btw, have already passes that sem hehe, which sem this subject is in for you
@30benasabu65
@30benasabu65 2 жыл бұрын
Sir i have a doubt regarding question 4 as end with ab means there must be something preceeding it to end with ab, so shouldn't it be (a+b)^+(ab), avoiding the epsilon
@sk-ie9xr
@sk-ie9xr Жыл бұрын
Sir can we use b+ at the place of b at least one
@c9m111
@c9m111 3 ай бұрын
i was also thinking the same
@sanjughosh5127
@sanjughosh5127 2 жыл бұрын
Could you please say the RE for the language containing strings ab,acb,accb,adb,addb,adddb,....
@HybridCollege
@HybridCollege 2 жыл бұрын
Question sir! (a+b) yahn + means k 'ya' yaa 'a' hogi string m yaa phr 'b' to sir AP ik string m dono sath de rahey hein... {ab , bb , bab} ... 😕 Confused ... Sir kindly guide
@harshiyanasm1192
@harshiyanasm1192 3 жыл бұрын
Can anyone tell in starting and ending with different symbol, does ab accept in such expression?
@yehumang8361
@yehumang8361 4 жыл бұрын
nc explanation sir
@shaffi1104
@shaffi1104 4 жыл бұрын
Sir, kya aap telegram ya unacademy pr ho?
@HarshitSharma-cj8ri
@HarshitSharma-cj8ri Жыл бұрын
in ques 2 can i write a^* b^+ a^* ?
@mustafai1863
@mustafai1863 3 жыл бұрын
your explaination method is so good
@vikassen73
@vikassen73 4 жыл бұрын
Sir isi lockdown me syllabus complete karwa dijiye
@jaskaransandhu1889
@jaskaransandhu1889 Ай бұрын
👍
@ek_bangali_engineer
@ek_bangali_engineer 4 жыл бұрын
(a+b)*b(a+b)* can also be written as a*b(+)a* . Please some one help me at 7:16
@shahinparween5560
@shahinparween5560 4 жыл бұрын
No
@ek_bangali_engineer
@ek_bangali_engineer 4 жыл бұрын
@@shahinparween5560 give me an example
@muhammadzulqarnain2025
@muhammadzulqarnain2025 3 жыл бұрын
a) Give the regular expression RE over Σ={a,b} for the language of all words having b as a second letter.
@amanta6675
@amanta6675 2 жыл бұрын
I think it could be: (a+b)b(a+b)*
@muhammadzulqarnain2025
@muhammadzulqarnain2025 2 жыл бұрын
@@amanta6675 Thanks🥰
@diptiprangya3008
@diptiprangya3008 Жыл бұрын
a to the power zero is 1 which is a value it can't be null
@johnvick8861
@johnvick8861 3 жыл бұрын
U made it so ezzz
@asthajain5282
@asthajain5282 9 ай бұрын
thank you for providing guidance for this monster subject ,you helped me a lot and make all the subjects easier
@Mystical_Moments
@Mystical_Moments Жыл бұрын
7:00
@adityatathod5440
@adityatathod5440 2 жыл бұрын
L = {x | x ε {a, b}* and x is a string with odd number of ‘a’s and any number of ‘b’s} whats the regular expression for this ??
@gameplayy7329
@gameplayy7329 4 жыл бұрын
Is aba or aab or bba or bab is a part of (a+b)*. kindly, tell !
@sidmadkaikar1216
@sidmadkaikar1216 2 жыл бұрын
Legend
@hussainabbas9060
@hussainabbas9060 Жыл бұрын
in the regular expression containing 'a' , can the RE be "(B*) A (A+B)* "
@ProgrammingwithGautam
@ProgrammingwithGautam 11 ай бұрын
Can a*b+a* be an answer for atleast b one case
@ArnabJhaYT
@ArnabJhaYT 3 жыл бұрын
@dilwaralam8461
@dilwaralam8461 3 жыл бұрын
SIR 2nd question can we write b power +
@subhroacharjee1562
@subhroacharjee1562 3 жыл бұрын
in the second question can the RE be (a* + b+)* ? if not why?
@ArnabJhaYT
@ArnabJhaYT 3 жыл бұрын
no, because the outside star will make epsilon acceptable in your string. Because we won't choose either a* or b+, and we know epsilon is an empty string but the question says at least one b. Therefore, it will be wrong.
@ArnabJhaYT
@ArnabJhaYT 3 жыл бұрын
And if I keep on taking a*, I will get a string full of a, with no b.
@rahulbiswas5346
@rahulbiswas5346 4 жыл бұрын
bhaiya koi question paper hein sample? im planning to give gate next year
@asutoshdubey1388
@asutoshdubey1388 4 жыл бұрын
Web technology course bhi parallel start karo
@fatemavadnagarwala1634
@fatemavadnagarwala1634 7 ай бұрын
Containing 2b the answer should be (a+b)*+b+(a+b)*+b+(a+b)*
@CoderInTheNorth
@CoderInTheNorth Жыл бұрын
for 7th example... there should be [a + a(a+b)*a] coz single 'a' also starts and ends with 'a'.
@JIGARSINGTHAKOR-yy6qp
@JIGARSINGTHAKOR-yy6qp 10 ай бұрын
for second can we write a*b+a*?
@Apnasonapunjab
@Apnasonapunjab 2 жыл бұрын
Not end with "ba" is ka regular expressions kya ho ga
@ashugarg3196
@ashugarg3196 4 жыл бұрын
starting and ending with a mai only 'a' bhi toh hoga
Lec-28: Regular Expressions for Finite Languages Example 1 | TOC
8:29
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Lec-46: CFL and CFG Introduction and Syllabus discussion
4:03
Gate Smashers
Рет қаралды 332 М.
Designing Regular Expressions
6:55
Neso Academy
Рет қаралды 758 М.
Lec-31: Pumping lemma for regular languages in TOC with examples
12:00
Gate Smashers
Рет қаралды 1 МЛН
Lec-47: What is Context free grammar in TOC | Formal Definition
7:57
Gate Smashers
Рет қаралды 1,1 МЛН
Lec-24: Mealy to Moore Conversion with Example in Hindi
12:11
Gate Smashers
Рет қаралды 805 М.
Lec-26: Minimization of DFA in Hindi with example | TOC
17:36
Gate Smashers
Рет қаралды 1,3 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН