4.13. DFA for divisibility in binary by 4
ฝัง
- เผยแพร่เมื่อ 3 มี.ค. 2019
- Technical lectures by Shravan Kumar Manthri.
Watch Top 100 C MCQ's
• Top 100 MCQs in C ("Wa...
Watch Technical C programming
• Technical C coding : p...
Watch Data Warehousing & Data Mining
• 1. Multi-Dimensional ...
Watch Design & Analysis of Algorithms
• 1. Introduction to the...
Watch Formal Languages & Automata theory
• 1. Introduction to Aut...
Contact me @ fb : shravan.kites@gmail.com
Like us on fb: CSE GURUS
This video explains DFA problems with explanation. #ShravankumarManthri#CSEGURUS #ShravankumarManthri#CSEGURUS
since it is a DFA it shouldn't be incomplete right? otherwise it is NFA. Tha graph here however looks to be incomplete, hence not DFA imo?
for q2, it should head to q0 when it gets a 0 right that would be 4 -- 100
nice method
Loved the approach! Thank you for such a clear explanation!
Glad you enjoyed it...Watch Turing Machine problems in the following link
www.udemy.com/course/formal-languages-and-automata-theory/learn/lecture/17998421?
how to draw for not divisible by 4
Idk
3:57 sir could you please answer me how 6 remainder 2,and 7 remaider is 3?
6%4=2
Four goes 1 time and 2 left
Same for 7%4=3
Four goes 1 time and 3 left
1:51 bro..we get 2 as reminder when 1 is divided by 4?? then how these transition is possible?
it is 1 not 2
@@harikrishnans3000 😌
Thank you
You're welcome..Watch Turing Machine problems in the following link
www.udemy.com/course/formal-languages-and-automata-theory/learn/lecture/17998421?
Great, thanks
Most welcome...
Watch Turing Machine problems in the following link www.udemy.com/course/formal-languages-and-automata-theory/learn/lecture/17998421?
👍
Watch Turing Machine problems in the following link
www.udemy.com/course/formal-languages-and-automata-theory/learn/lecture/17998421?
But this DFA is also accepting empty string e, which is not divisible by 4, please explain
empty string means length is 0. so 0 is divisible by 4. right?
@@CSEGURUS Nope, here divisibility by 4 is not checked on length of string, it's on decimal value of Binary representation of strings.
Empty string doesn't have any decimal value and hence it should not be accepted by the DFA.
@@CSEGURUS d(q0, 0)=*q1 (final state)
d(q1, 1) =q2
d(q1, 0) = *q1 (final state)
d(q1, 1) = q2
d(q2, 0) = q1
d(q2, 1) =q2
This should be the correct DFA, it rejects the empty String
@@Ajeet-Yadav-IIITDwhere the q0 is going for 1