Regular Languages & Finite Automata (Solved Problem 1)

  Рет қаралды 464,472

Neso Academy

6 жыл бұрын

TOC: Regular Languages & Finite Automata (Solved Problem 1)
Topics discussed:
A solved problem form GATE 2013.
Links to topics:
1. Regular Languages: goo.gl/dXQ7fb
2. Context Free Languages: goo.gl/xDwQ7V
3. DFA to Regular Expression Conversion: goo.gl/od9uXS
4. Identities of Regular Expression: goo.gl/8oAgV3
5. Arden’s Theorem: goo.gl/d6z6RJ
6. Minimization of DFA: goo.gl/q1F3iZ
Contribute: www.nesoacademy.org/donate
Books: www.nesoacademy.org/recommended-books
Website ► www.nesoacademy.org/
Forum ► forum.nesoacademy.org/
Facebook ► goo.gl/Nt0PmB
Twitter ► nesoacademy
Pinterest ► www.pinterest.com/nesoacademy/
Music:
Axol x Alex Skrindo - You [NCS Release]
#TOCByNeso

Пікірлер: 104
@AyushMo
@AyushMo 3 жыл бұрын
Option 4 - Accepting all strings of length at least 2 does not imply it cannot accept strings of length < 2. The statement isn't that 'It exclusively accepts all strings of length at least 2', it's more like 'amongst other things, it also accepts all strings of length at least 2' which it doesn't because '111' is a string of length at least 2 and isn't accepted. The option is false nevertheless, but the right counter example isn't '0' as mentioned.
@cdm6541
@cdm6541 7 ай бұрын
Brilliant!
@RA-gv3ys
@RA-gv3ys Жыл бұрын
Good question. Made us revise 2-3 concepts in 1. 👍🏻
@hostelboy6744
@hostelboy6744 3 жыл бұрын
Complement of CFL is may or may not CFL.👍 Complement of every RL is RL👍. Every RL is CFL👍
@akarshkumar2171
@akarshkumar2171 5 жыл бұрын
Complement of Context free is not necessarily context free. 1st option can be proved as : Every dfa can be expressed using Reg lang (RL). The complement of RL is also regular. Every RL is context free. Hence, L(A) complement is context free.
@sMKUMARSAISKLM
@sMKUMARSAISKLM 2 жыл бұрын
he also told the same.
@Shivam-eh5fc
@Shivam-eh5fc 5 жыл бұрын
Sir you are doing a great job @neso academy may God bless you, I just request you to please upload videos on more subjects of computer science like CSO,DAA, computer network And please please increase the speed of uploading the video with more and more Gate questions.
@74N
@74N 2 жыл бұрын
Have my Semester Exam Tomorrow and luckily I found this today
@jiteenmohanty2675
@jiteenmohanty2675 Жыл бұрын
same🥲
@ashfq
@ashfq 8 ай бұрын
how did it go?
@deathstroyer
@deathstroyer 6 жыл бұрын
i think you misunderstood statement 4. the length atleast 2 is a requirement of the answer. so a good proof that statement 4 is false would be the string "111" which will not be accepted but is length atleast 2.
@zoxomonocovo
@zoxomonocovo 5 жыл бұрын
@Telugu tech solutions but is not of length at least 2
@skzaffarekbal1820
@skzaffarekbal1820 5 жыл бұрын
Lol atleast means minimum 2 length string is accepted
@akarshkumar2171
@akarshkumar2171 5 жыл бұрын
U misunderstood atleast with atmost. The counter example would be string {0} which is a accepted by the dfa bt the 4th statement say length less than 2 is not accepted
@snim9515
@snim9515 2 жыл бұрын
at 9:47 step is wrong. (0+1)* should be in common with both the terms
@nachiketagrawal5154
@nachiketagrawal5154 3 жыл бұрын
Complement of Regular language is regular. However for any general CFG, it's not closed under complement
@nachiketagrawal5154
@nachiketagrawal5154 3 жыл бұрын
3:06 : Complement of every C. F. L is also context free is incorrect
@saimyousuf2108
@saimyousuf2108 4 жыл бұрын
Sir please make more videos on gate questions. This was fantastic
@zackcarl7861
@zackcarl7861 2 жыл бұрын
You Pakistani
@kartikforwork
@kartikforwork Жыл бұрын
@@zackcarl7861 how did you figure it
@yashmane8585
@yashmane8585 Жыл бұрын
if first 2 options we get as right option, then why we check 3&4?....... that will came automatically false naa.....
@leninsingh5264
@leninsingh5264 3 жыл бұрын
Bit confusing of re-arranging at 10:00. Doesn't it affect the pattern of the language?
@derouvilleguillaume5416
@derouvilleguillaume5416 6 ай бұрын
No, because there is a union (+). Let's take the final answer: 11*0 + 0 (0+1)*. In the step of the switch, he switches like this: 0 + 11*0 11*0 + 0. This remains correct because the + is a union, meaning that either the left part or the right part of the + is chosen. As he switches only the two sides of the union, the logic is unchanged here. I find that translating the regex into plain english helps. "11*0 + 0 (0+1)*" can be read as: - "11*0" is : 1, followed by 0 or more 1s, followed by 0 - 0 is: 0, self explanatory - (0+1)* is: 0 or 1, that can be found 0 or more times When reading "11*0 + 0", you need to choose one of them, to which you concatenate what is under parenthesis: (0+1)* So, the full regex can be read as: - Choose between: "1, followed by 0 or more 1s, followed by 0" OR "0" - Then, follow it with 0 or 1, that can be found 0 or more times (so nothing, or any combination of 0s and 1s)
@10_yogeshchandrapandey90
@10_yogeshchandrapandey90 4 жыл бұрын
@nesoacademy .. Sir with all due respect, I think you have explained option 4 wrongly... Statement 4 is : A accepts all strings over {0,1} of length at least 2... But you stated as: A accepts all strings over {0,1} ONLY of length at least 2... The answer of question is still same... As string- 111 is an contradiction to statement 4.. Please correct me, if I am wrong And if got this correctly, then it is only because of you... #greatcontent thank you sir...
@lovingtheunloved
@lovingtheunloved 4 жыл бұрын
111 is a string of length 3 and according to DFA diagram it is not accepting it but the string 110 is getting accepted so the statement 4 is false.
@10_yogeshchandrapandey90
@10_yogeshchandrapandey90 4 жыл бұрын
@@lovingtheunloved sorry, but I think you are not getting the point what I have said....
@randomstuff1690
@randomstuff1690 4 жыл бұрын
@@10_yogeshchandrapandey90 Read the option again
@nachiketagrawal5154
@nachiketagrawal5154 3 жыл бұрын
Yes yogesh, Point 4 doesn't imply that DFA doesn't take string of length 1. He mis understood. In this case the answer didn't change but counter Example should definitely be some string of length > 2
@proomm986
@proomm986 3 жыл бұрын
the question said that it accepts all string at least length 2, but it can accept string with length 1 like {0} so it is false.
@udbhavvikramsingh3449
@udbhavvikramsingh3449 3 жыл бұрын
Instead of that much long steps For 2nd options what i did was like ////// I convert regular expression into regular language first and then i check if the DFA is accepting that regular language or not And i found DFA was accepting Is it right approach
@vaibhavsingh4108
@vaibhavsingh4108 3 жыл бұрын
yeah this was way simpler and fast method. Thanks
@raj-nq8ke
@raj-nq8ke 2 жыл бұрын
Nope, answer may be similar in some cases but it will not always be true
@satyakumar-vc3zj
@satyakumar-vc3zj 6 жыл бұрын
in derivation of second statement i can'tunderstand on what basic you said that any thing multiplied in it there is no change please explain anyone please
@shashwatvaibhav4596
@shashwatvaibhav4596 6 жыл бұрын
satya kumar because this dfa accepts the string (11*+0)(0+1)* in the final state..after that ,since the final state has a self loop on 0,1 you can add any number of 0s or 1s ...and it won't matter as the machine will be in final state itself.. that's why 0*1* was added to the right of the expression.
@21AniketThakre
@21AniketThakre 3 жыл бұрын
@@shashwatvaibhav4596 Great explanation 🙌🏻
@akashlenka4068
@akashlenka4068 3 жыл бұрын
@@shashwatvaibhav4596 thanks dude
@bdjeosjfjdskskkdjdnfbdj
@bdjeosjfjdskskkdjdnfbdj 4 жыл бұрын
How much time are you given in GATE to solve a question like this?
@AbhishekSingh-hy4dm
@AbhishekSingh-hy4dm 4 жыл бұрын
about 2 to 3 minutes considering the exam consists of 65Qs and 3hrs to solve
@HishaMized
@HishaMized Жыл бұрын
17:00 It's false because it does not accept 11 {00, 01, 10, 11}? Right?
@arjunmalli50
@arjunmalli50 6 ай бұрын
Cant able understand sir
@chimingcheng8912
@chimingcheng8912 Жыл бұрын
why statement 2 is true? Isn't that L(A)=L((11*0+0)(0+1)*)?
@gatesorted6011
@gatesorted6011 Жыл бұрын
+1
@BrijeshSharma-vu3mk
@BrijeshSharma-vu3mk 7 ай бұрын
It's been 1 yr to ur comment...But still 0*1* doesn't matters at all unless it is with + to remaining language. Since it can be written as epsilon i.e empty
@mahaveerhirawat7323
@mahaveerhirawat7323 9 күн бұрын
it doesnt matter cuz (11*0+0)(0+1)* is the expression for final state. So it is in the final state now, so when u give it self loop like 0*1* it stays in the same state so we can add that there
@sukritimacker7562
@sukritimacker7562 5 жыл бұрын
Sir i didn't understand your answer for statement 3 For 1 equivalence you said in previous video that for certain input both the states should fall in the same set.. But here comparing A and B for input 0..A goes to C whereas B goes to B.. Where {A, B} {C} this should split
@sukamaldash3599
@sukamaldash3599 5 жыл бұрын
Both A and B goes to the state C for getting input 0. Try to look at the DFA again. You'll find your question wrong.
@sukritimacker7562
@sukritimacker7562 5 жыл бұрын
@@sukamaldash3599 okk.. Thank you.. I'll take a look
@gauravupreti8195
@gauravupreti8195 2 жыл бұрын
Itni pyar se kon padhata hai 🥺🥺❤️
@KondaveetiVenugopal
@KondaveetiVenugopal 4 ай бұрын
great work sir
@siddharth.chandani
@siddharth.chandani Жыл бұрын
Can anyone explain why at 10:32 , both are same ....? Acc to me, they are same..
@mokshgrover7405
@mokshgrover7405 5 жыл бұрын
Option 4 is incorrect ,coz it does not accept the strings of the form 11(1)*
@subhadipde4873
@subhadipde4873 4 жыл бұрын
or even easier, 0 is accepted by the DFA, which is of length 0. So, it proves
@arjunmalli50
@arjunmalli50 6 ай бұрын
@mokesh I have one doubt sir why it need accept the string 11(1)* sir because in this string 11*0 one only goes to final state sir... Can you please explain sir...
@uzaifasiddiqui3163
@uzaifasiddiqui3163 4 жыл бұрын
Statement 2 is false since just few seconds back you proved that RE for that DFA is (11*0+0)(0+1)* ...and then within next 5 seconds you say that statement 2 is correct but it has ((11*0+0)(0+1)*0*1*).................??????????
@10_yogeshchandrapandey90
@10_yogeshchandrapandey90 4 жыл бұрын
(0+1)* means that : all possible strings that can have combination of 0 and 1. And since 0*1* is another possible string containing 0 and 1, so it will also be accepted... Not only this string...but L(A)= (11*0+0)(0+1)*(0+1)0*.. L(A) = (11*1*1* +0)(0+1)*1*... And many more... Possible language are also accepted...
@shweta7362
@shweta7362 3 жыл бұрын
@@10_yogeshchandrapandey90 thanks for clarifying :-)
@adarshagrawal6855
@adarshagrawal6855 4 жыл бұрын
complement of a cfl may not be a cfl...cfl is not closed under complement...
@subhadipde4873
@subhadipde4873 4 жыл бұрын
But complement of RL is RL, so complement of L(A) is RL. So, complement of L(A) is also context free
@nSackStyles
@nSackStyles 2 жыл бұрын
How in the world is (0+1)* = (0+1)* 0* 1* ???? Makes no sense.
@derouvilleguillaume5416
@derouvilleguillaume5416 6 ай бұрын
Given that (0+1)* can be described as: a succession of "0 or 1" an infinite amount of time or epsilon (empty, so none), you could get any variation of 0s followed by 1s (and inverse), and both regular expression would satisfy it: why ? Because you could always consider 0* 1* as empty strings, same inside (0+1)* e.g. Lets take an example string: "0000100001": - It is satisfied by this regular expression "(0+1)* 0* 1*", if "00001" comes from "(0+1)*" , 0000 comes from "0*" and 1 from "1*" - It is also satisfied by "(0+1)*", as it represents any succession of 0 or 1, or none Now, lets take 10000: - It is satisfied by this regular expression "(0+1)* 0* 1*", if "1" comes from "(0+1)*" , 0000 comes from "0*" and empty string / epsilon from "1*" - It is also satisfied by "(0+1)*", as it represents any succession of 0 or 1, or none
@yohanesmesay8250
@yohanesmesay8250 4 ай бұрын
option number 4 is not correctly interpreted
@prashantupadhyay177
@prashantupadhyay177 4 жыл бұрын
Option A is correct ( 1 and 3 only)
@sMKUMARSAISKLM
@sMKUMARSAISKLM 2 жыл бұрын
no
@sayantaniguha8519
@sayantaniguha8519 2 жыл бұрын
Why on minimizing the DFA we still get 3 states ?
@birajpaul4060
@birajpaul4060 Жыл бұрын
No, it will have 2 states
@ElifArslan-l9g
@ElifArslan-l9g Жыл бұрын
thank you
@shusenacademy
@shusenacademy 4 жыл бұрын
What does L(A) mean ?
@nachiketagrawal5154
@nachiketagrawal5154 3 жыл бұрын
Language accepted by machine A
@TejBR0
@TejBR0 6 жыл бұрын
opamp video are not there in anolog electronics....please upload the video as soon as ..POSSIBLE
@rajudebnath6353
@rajudebnath6353 6 жыл бұрын
Sir plz make a video on merger table and merger graph...Also on information lossless machine..
@shivamshah6854
@shivamshah6854 6 жыл бұрын
Please sir upload more video related to gate
@akSingh_120
@akSingh_120 5 жыл бұрын
great!!!
@alessandromorelli5866
@alessandromorelli5866 5 жыл бұрын
4 is false, 3 is false, so answer is C
@ayeshatahir1556
@ayeshatahir1556 5 жыл бұрын
cs401 assignment no.1 ka solution upload kr dyn
@phanindrareddy4885
@phanindrareddy4885 6 жыл бұрын
Please tell me when u will complete the theory of computation
@ricaspinto
@ricaspinto 3 жыл бұрын
sir you are craizy
@continnum_radhe-radhe
@continnum_radhe-radhe Жыл бұрын
❤❤❤
@shanu90ful
@shanu90ful 6 жыл бұрын
Very nice sir 😃
@subhasyadav6048
@subhasyadav6048 6 жыл бұрын
sir please upload video on FPGA and GAL
@agamgill9563
@agamgill9563 6 жыл бұрын
Nyc explation....
@frontend.made.eazzzy
@frontend.made.eazzzy 5 жыл бұрын
L(G)=(11*0+0)(0+1)* it should be the language..
@rohithpalakurthi3697
@rohithpalakurthi3697 5 жыл бұрын
Same doubt
@Shivam-eh5fc
@Shivam-eh5fc 5 жыл бұрын
No,buvnesh (0+1)* is a universal set so if we multiply 0*1* then also the language covers all sets of strings
@jugheadtn5900
@jugheadtn5900 5 жыл бұрын
You save my Life
@phanindrareddy4885
@phanindrareddy4885 6 жыл бұрын
Sir please complete toc by may month
@ayeshatahir1556
@ayeshatahir1556 5 жыл бұрын
sir kindly cs401 assignment no.1 2019
@neelesh621
@neelesh621 5 жыл бұрын
howz statement 2 correct...??
@akarshkumar2171
@akarshkumar2171 5 жыл бұрын
C=(11*0+0)(0+1)* . As u see the dfa given, (0+1)* denotes the self loop of c for input 0 and 1. So even if u add 0*1*, the string will be at final state C. So 2nd statement is correct
@vinayaksharma-ys3ip
@vinayaksharma-ys3ip 3 жыл бұрын
💯👍💯💯
@annawickramasinghe2983
@annawickramasinghe2983 4 жыл бұрын
@orzAR26
@orzAR26 2 жыл бұрын
The option for this question is so DUMB!
@_facepunch_
@_facepunch_ 6 жыл бұрын
Point 4 says: " A accepts all strings of length > 1 " What you think the point 4 says : " A only accepts strings of length > 1 " This means that point 4 is correct..... So..... Either whole question is wrong or 1 of point 1 or point 2 is wrong WTF...... GATE sucks
@sunitadaga6400
@sunitadaga6400 6 жыл бұрын
Facepunch Gaming No. It is clearly written "At least". The question is correct!
@_facepunch_
@_facepunch_ 6 жыл бұрын
Sunita Daga does this FA accept any string of length 2? Yes Does this FA accept any string of length 3 ? Yes Length 4 ? Yes Length 5? Yes Does this FA accepts all string of length atleast 2? Yes.... This means that point no. 4 is True
@JohnB-cp9se
@JohnB-cp9se 6 жыл бұрын
it is correct, point 4 is false because it can accept length 1 aswell on input 0. so its not only atleast 2.
@_facepunch_
@_facepunch_ 6 жыл бұрын
John B in point 4 it is not written that this fa ONLY accept strings of length > 2....... 'ONLY' changes the meaning of the point 4
@grimreaper-ce6kr
@grimreaper-ce6kr 6 жыл бұрын
It cannot accept 11 (length 2)..it says A accepts all strings of length>=2....hence false
@zerobit778
@zerobit778 3 жыл бұрын
Does he forget add parenthesis in 10:40? Thanks~