TOC | Regular Expressions and Conversions | Examples of Regular expressions and identities of RE

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

ความคิดเห็น • 113

  • @avelo895
    @avelo895 8 ปีที่แล้ว +61

    You anticipate all my questions when you explain and I try to learn from you. You have a talent. Thank you for your excellent teaching.

    • @harperkarsyn7402
      @harperkarsyn7402 3 ปีที่แล้ว

      I guess it is pretty randomly asking but do anybody know a good website to stream new series online?

  • @joshuawest3247
    @joshuawest3247 7 ปีที่แล้ว +56

    TH-cam is such a better teaching medium than the classroom. Ravi, keep going!

  • @hemashrivastava8321
    @hemashrivastava8321 8 ปีที่แล้ว +68

    cool teacher...i left al books..just studying from ur videos

  • @tinabijlani6785
    @tinabijlani6785 7 ปีที่แล้ว +18

    crystal clear explanation!!!
    should b awarded best teacher globally !!

  • @muneebaanwar4682
    @muneebaanwar4682 8 ปีที่แล้ว +8

    I LOVE THIS TUTORIAL. YOU'VE JUST SAVED MY TOMORROW'S PAPER :')

  • @siddharthjoshi3328
    @siddharthjoshi3328 3 ปีที่แล้ว +1

    If (a+b) means a OR b, then how does (a+b)* gives a string ab, why is it not just a's OR b's, how does it become a combination ?
    Kindly solve my doubt if anyone can explain.

    • @SaumyaSharma007
      @SaumyaSharma007 3 ปีที่แล้ว +1

      Bro (a+b)* denotes all the strings possible of a and b of any length.
      Eg put 2 in place of *.
      Therefore (a+b)(a+b) when u expand it aa+ab+ba+bb
      Hope u got it.

  • @mohamedtahaboutayeb3478
    @mohamedtahaboutayeb3478 8 ปีที่แล้ว +2

    Truthfully,the method that you used (start with ends with ) has help me to find the re easily,thanks a lot

  • @MegaRED555
    @MegaRED555 6 ปีที่แล้ว +1

    Would (b +ab)* represent the string of just b's? Like for example is the string bbbb represented by (b+ab)*?

  • @Rj3rj20
    @Rj3rj20 9 ปีที่แล้ว +2

    thank you so much sir ....... all the examples are good... i help me alot :D

  • @adityamanral2966
    @adityamanral2966 6 ปีที่แล้ว +1

    (b+ab)*(e+a) does'nt except {abb}. So i guess this RE is wrong.Maybe

    • @harshmantri3614
      @harshmantri3614 5 ปีที่แล้ว +1

      It does. Take ab first followed by b from the first bracket (since it's repeating using *) and then take e from the next one to get abb.

  • @osisioguukachi9513
    @osisioguukachi9513 6 ปีที่แล้ว +1

    Suggestion for rephrasing the first question - no two consecutive a's

  • @errorless7921
    @errorless7921 10 หลายเดือนก่อน

    (ab+a)*+(ba+b)* is it correct? Please anyone

  • @sayantaniguha8519
    @sayantaniguha8519 2 ปีที่แล้ว

    The 2nd Q is
    *RE with no 2 consecutive a's or b's* , right ?

  • @bishwadeepsikder3018
    @bishwadeepsikder3018 8 ปีที่แล้ว +1

    Can a solution be (b* a b+)* . (e + a)?

  • @syedrakibulislam1122
    @syedrakibulislam1122 9 ปีที่แล้ว +1

    when this machine produce "bab" language so ther how this regular expression work??

  • @ankitmazumder7857
    @ankitmazumder7857 6 ปีที่แล้ว +1

    Sir , How is phi and epsilon different in identities of regular expression.

  • @eimaldorani
    @eimaldorani 7 ปีที่แล้ว +3

    could you explain (a+b)* intuitively!?

    • @sreerammaramwira5513
      @sreerammaramwira5513 5 ปีที่แล้ว +2

      * can be replaced with 0,1,2,3,4....,n ;
      + represents logical OR ;
      so when * = 0, it accepts epsilon ;
      * = 1, it accepts 'a' OR 'b' ;
      * = 2, it accepts 'aa' OR 'ab' OR 'ba' OR 'bb' ;
      .
      .
      until * = n;
      therefore (a+b)* is a reg expression which accepts all strings of all length containing a,b

  • @surbhijain7499
    @surbhijain7499 6 ปีที่แล้ว +1

    Could someone pls explain how is (a+b)*=a*(ba*)*? Eg. for the string abbba. Thanks

    • @errorless7921
      @errorless7921 10 หลายเดือนก่อน

      a¹(ba*)³=a(ba*)(ba*)(ba*)=a(ba⁰)(ba⁰)(ba)=abbba

  • @harshitsankhala
    @harshitsankhala 5 ปีที่แล้ว

    at 6:24 (Q : No. of two a's should not come together) Can i write this answer ? ANSWER = (( b^* a b^*))^* + b^*

  • @eimaldorani
    @eimaldorani 7 ปีที่แล้ว

    @13:29 can't we write + instead of or?
    what if we write (ab)*a+a(ba)* does it generate two a's together!?

  • @kavitachowdhary3873
    @kavitachowdhary3873 9 ปีที่แล้ว +2

    Awsome sir ur way of teaching awsome
    😘

  • @bidyutdas2521
    @bidyutdas2521 6 ปีที่แล้ว

    Sir I can't find the lecture of DFA NDFA..Mili mechine more machine...state diagram videos...pls reply me those links... thank you sir

  • @nd685
    @nd685 4 ปีที่แล้ว

    Will the answer for question 2 a's should not come together generate aba? How?

  • @sandeshgharge
    @sandeshgharge 7 ปีที่แล้ว

    (ab*)* + (b*a)* + b* ................is this right?
    CHecking my concepts.

  • @tusharghumare4413
    @tusharghumare4413 6 ปีที่แล้ว

    (a∪b)* (ab)* (b∪a)* ----> is this generate atleast one substring "ab" ?

  • @Pegasus_ynwa8142
    @Pegasus_ynwa8142 7 ปีที่แล้ว +6

    yeh yeh yeh yeh ...usher usher :D

  • @JoseIsary
    @JoseIsary 6 ปีที่แล้ว

    would somebody please explain the meaning of the following property of regular expresion: a ≤ b wich is a + b = b

  • @tanmayjain4037
    @tanmayjain4037 5 ปีที่แล้ว

    Regular expression in which aab or bba does not occur??

  • @thomassiby8198
    @thomassiby8198 2 ปีที่แล้ว

    you are a goddamn genius istg

  • @nidhi3904
    @nidhi3904 7 ปีที่แล้ว

    sir plz tell the sol. to the following ques-
    the set of all strings with atmost one pair of consecutive zero and one pair of consecutive ones.
    set of all strings not containing 101 as substring.

  • @brendanreidy4705
    @brendanreidy4705 3 ปีที่แล้ว

    Thanks so much. This really helped clear some things up for my exam

  • @Akalovexx
    @Akalovexx 8 ปีที่แล้ว

    why only use 'a' and 'b'. Would be so much more helpful if you used 'a', 'b', 'c'

  • @ajinkyapatankar7058
    @ajinkyapatankar7058 3 ปีที่แล้ว

    For no 2 'a' should come together we write the RE as,
    ((a+b)* b (a+b)*)*.
    Correct me if I am wrong.
    Thanks in advance!

    • @HacBeTellsYou
      @HacBeTellsYou 3 ปีที่แล้ว +1

      (a+b)* makes aa possible so ye

  • @sabahatmatloob2593
    @sabahatmatloob2593 8 ปีที่แล้ว

    i want to make a regular expression in which start middle and ending word is same and total length is even?

  • @dawn-of-newday
    @dawn-of-newday 6 ปีที่แล้ว

    (ab)*(a+null) + (ba)*(b+null)
    does this work for no 2a's or 2b's together

  • @anuahuja40
    @anuahuja40 8 ปีที่แล้ว

    if we use above expression (b+ab)*(Ɛ+a) would it able to generate baba, bababa..... the same for expression (b+ba)*(Ɛ+a) it would not be able to generate abab, ababab...strings my thought it would not be able.so pls clerify

    • @rishabhtyagi2379
      @rishabhtyagi2379 8 ปีที่แล้ว

      +Anita Ahuja for "baba" in (b+ab)^*(Ɛ+a) ,(b+ab)^* will generate "bab" and the concatenated part i.e (Ɛ+a) will generate "a". Same can be applied for bababa

  • @14raviteja
    @14raviteja 9 ปีที่แล้ว

    hello sir i am looking for answer of this question could you please help me with tat ,Regular Expression that describes the set of Strings over (0,1) where every 0 is always followed by a 1 .....

    • @rishabhtyagi2379
      @rishabhtyagi2379 8 ปีที่แล้ว

      +Ankit Wasankar your expression also contain single "0" ,which should not be there i think

  • @javedkhanpathan4258
    @javedkhanpathan4258 5 ปีที่แล้ว

    Que:-string does not contain two A's together
    Ans:-(b*ab*)*+b* will do sir

    • @garvitshiv5357
      @garvitshiv5357 5 ปีที่แล้ว +1

      It will only contain strings which ends with 'b'

  • @LuisLamadridT
    @LuisLamadridT 10 ปีที่แล้ว +1

    Awesome examples! Thanks!

  • @shreyaashish3157
    @shreyaashish3157 6 ปีที่แล้ว

    Sir plz upload Turing machine videos

  • @AlancRodriguez
    @AlancRodriguez 5 ปีที่แล้ว +2

    Hands down, Ravi is the best theory of computation tutor. Keep it up!

  • @Axatchaudhari96
    @Axatchaudhari96 8 ปีที่แล้ว

    what if i want to generate "aabbaa" with a*(ba*)* which is equivalent to (a+b)*?

    • @MohammedAlAli
      @MohammedAlAli 8 ปีที่แล้ว

      Are you talking about another problem or the one mentioned in the video?

  • @nishubali9317
    @nishubali9317 9 ปีที่แล้ว

    Hello sir. your lectures are really very nice and informative. I was searching for a DFA which i could not solve if you can help. The problem is to draw a DFA which accepts the strings starting with 01 or ending with 01 but not both. Please help me

    • @sugreevprasad289
      @sugreevprasad289 9 ปีที่แล้ว

      +Nishu Bali ..I think you should draw DFA for both starting with 01 and ending with 01 separately and connect both with cross product in this all those state will be final state where you found any one final state of previous two DFA but avoid taking that state which contains the final state of both the DFAs together ..
      ex..IF you have q1 is a final state of of first previous DFA and q4 is of second then final states of final DFA will be all those states where q1 come or q4 come but not both(q1q4)

    • @shashankmishra8451
      @shashankmishra8451 8 ปีที่แล้ว

      +Nishu Bali it is simple..go for 0 along one side from initial and for 1 to another side..
      make a complete connection of 01 along 0..& along 1 make self transition then end it with 01

  • @rajkumarroy5914
    @rajkumarroy5914 8 ปีที่แล้ว +1

    your are a excellent teacher.

  • @makeupvideosbyAshima
    @makeupvideosbyAshima 8 ปีที่แล้ว

    if we take common part on left side.....means (ab)*(a+E) (E+b) is this answer is also correct?

    • @rishabhtyagi2379
      @rishabhtyagi2379 8 ปีที่แล้ว

      +Ashima Mittal the common part is the postfix of second expression so we are bound to take common from right side

    • @govardhanerramchetti8837
      @govardhanerramchetti8837 5 ปีที่แล้ว

      no.it is wrong it can accept abb

  • @shwetakhara143
    @shwetakhara143 9 ปีที่แล้ว

    (b+aa)^* can this be the regular expression for strings containing even no. of a's ??

    • @007Anukul
      @007Anukul 9 ปีที่แล้ว

      +Shweta Khara no because here a's will always be consecutive, 'aba' does not satisfy your R.E.

  • @flamelsphoenix145
    @flamelsphoenix145 4 ปีที่แล้ว

    When Ravindrababu killin' it ...

  • @Karthik-oi9gn
    @Karthik-oi9gn 8 ปีที่แล้ว

    When does (b+ab)* + (b+ab)*a produce b, bb ,bbb as you mentioned.

    • @rishabhtyagi2379
      @rishabhtyagi2379 8 ปีที่แล้ว

      +Karthik Priyatham (b+ab)^* means any combination of b&ab so b,bb,bbb,bbbbb ..... is there

  • @rashiduddin2666
    @rashiduddin2666 4 ปีที่แล้ว

    (a*)*=(ʌ ,a,aa,aaa,aaaa…)
    Does the above statement is correct?

    • @xeepeshgaming4919
      @xeepeshgaming4919 4 ปีที่แล้ว +1

      Yes , (a*)* is same as a* and with a* you can generate anything

  • @vikashkumar-rl4qw
    @vikashkumar-rl4qw 7 ปีที่แล้ว

    how we will generate bab in this?

  • @darogajee3286
    @darogajee3286 7 ปีที่แล้ว

    what about no 3as should come together

  • @barath4905
    @barath4905 5 ปีที่แล้ว

    (b*a b+)* + b* will this work ?

  • @anirbansarkar6306
    @anirbansarkar6306 6 ปีที่แล้ว

    abaab will also be accepted, but it not a part of this language

    • @anirbansarkar6306
      @anirbansarkar6306 6 ปีที่แล้ว

      sorry, abaab will not be accepted by this RE. I interpreted it in a wrong way

  • @123arskas
    @123arskas 7 ปีที่แล้ว

    Isn't (a + b)* = (a*b*)* ??

  • @swastikmajhi4268
    @swastikmajhi4268 7 ปีที่แล้ว

    could (ab)*(a+e)+(ba)*(b+e) be the solution of no 2a 2b

    • @rushabhtekwani8136
      @rushabhtekwani8136 7 ปีที่แล้ว

      Gate Lectures by Ravindrababu Ravula
      for no 2 a's together, can solution be this (@03:37) :
      €+a+b*+a

  • @louerleseigneur4532
    @louerleseigneur4532 3 ปีที่แล้ว

    Thanks a lot sir

  • @kirandasr1621
    @kirandasr1621 6 ปีที่แล้ว

    is this correct for no 2 a's come together-(b*ab*)*+b*

    • @priyanaik1088
      @priyanaik1088 6 ปีที่แล้ว +1

      No coz in this we can get two a together

    • @kirandasr1621
      @kirandasr1621 6 ปีที่แล้ว

      @@priyanaik1088 thanks 😉

  • @tapanjeetroy8266
    @tapanjeetroy8266 6 ปีที่แล้ว

    thanks a lot sir..you explain so well

  • @Neo77ism
    @Neo77ism 10 ปีที่แล้ว +1

    nice sir (y)

  • @harshdeep09
    @harshdeep09 8 ปีที่แล้ว

    Babu I like your style

  • @rohitsoni936
    @rohitsoni936 8 ปีที่แล้ว

    I think (€+RR*)=R^+ and not R*. Is it so?

    • @abhishekmb3265
      @abhishekmb3265 8 ปีที่แล้ว +1

      you cannot generate € with R^+
      R^+ = 1 or more

  • @xadrez1348
    @xadrez1348 5 ปีที่แล้ว

    i have more correct ans

  • @sonoimur
    @sonoimur 7 ปีที่แล้ว

    Thanks very well that is great

  • @paritoshmehta4048
    @paritoshmehta4048 8 ปีที่แล้ว +5

    How will the solution ever create abbabbabb?

    • @Divneetsingh95
      @Divneetsingh95 8 ปีที่แล้ว

      i don't think so , but did you find a solution to it ?

    • @MohammedAlAli
      @MohammedAlAli 8 ปีที่แล้ว +2

      Actually your string (abbabbabb) isn't recognized by this RE because it contains two consecutive b's.

    • @poojarajlakshmi746
      @poojarajlakshmi746 8 ปีที่แล้ว +1

      1st problem will accept this string and the solution that he has provided will generate the given string. (b+ab) (b+ab) (b+ab) (b+ab) (b+ab) (b+ab) (epsilon +a). Take ab from 1st and b of 2nd then ab of 3rd, b of 4th, ab of 5th, b of 6th and epsilon of last one. According to one of the identities of regular expression, epsilon.language = language. I'm not sure if youre getting my point but the soltn he has provided is correct.

    • @sandeshgharge
      @sandeshgharge 7 ปีที่แล้ว +1

      (ab*)* + (b*a)* + b* ................is this right?
      CHecking my concepts.

    • @kausikhm
      @kausikhm 7 ปีที่แล้ว

      The exact answer I was looking for :)

  • @indunilmaduranga3058
    @indunilmaduranga3058 5 ปีที่แล้ว

    oyaa nan maarai ayye

  • @sonoimur
    @sonoimur 7 ปีที่แล้ว

    now all is well

  • @dimitrios67
    @dimitrios67 4 ปีที่แล้ว

    super!!!!

  • @pallavipriyam2755
    @pallavipriyam2755 7 ปีที่แล้ว

    just awesumm...

  • @KILANKENYA
    @KILANKENYA 5 ปีที่แล้ว

    for my exams

  • @salounik.2894
    @salounik.2894 7 ปีที่แล้ว

    BEST!!!!!!!!!!

  • @Leon-pn6rb
    @Leon-pn6rb 7 ปีที่แล้ว +1

    Can the answer to the last example be:
    *( (b +aba) + (a + bab) )** ?

  • @rohitsachdeva4624
    @rohitsachdeva4624 7 ปีที่แล้ว

    sir upload video on turing machine asap plss before 12 may my exams are near

  • @aman4434
    @aman4434 6 ปีที่แล้ว

    No 2 a's together - can I write (b* a b+)*?

    • @sofianeelmarhani9608
      @sofianeelmarhani9608 6 ปีที่แล้ว

      it wouldn't generate strings ending with 'a'.
      this could be the right one:
      b* (a b+)* (a + E)