Conversion of Regex to DFA Directly with Brzozowski Derivatives
Easy Theory
Here we show, with an example, that one can create a DFA directly from a regular expression using Brzozowski Derivatives. Therefore, no NFA is ever needed to do the conversion. We first set the start state to be the original regex, and its transitions correspond to taking partial derivatives of that regex with each of the input characters. If a new regex is formed that hasn't been seen before, then that transition goes to a new state. This is repeated until no new states are formed, and the final states are ones that can make the empty string (epsilon).
The original video is here: https://www.youtube.com/watch?v=s9EPoy9r-ok
#easytheory #gate #theory
Contribute: Donation (appears on streams): https://streamlabs.com/easytheory1/tip Paypal: https://paypal.me/easytheory Patreon: https://www.patreon.com/easytheory Discord: https://discord.gg/SD4U3hs
Youtube Live Streaming (Sundays) - subscribe for when these occur.
Social Media: Facebook Page: https://www.facebook.com/easytheory/ Facebook group: https://www.facebook.com/groups/easytheory/ Twitter: https://twitter.com/EasyTheory
Merch: Language Hierarchy Apparel: https://teespring.com/language-hierarchy?pid=2&cid=2122 Pumping Lemma Apparel: https://teespring.com/pumping-lemma-for-regular-lang
If you like this content, please consider subscribing to my channel: https://www.youtube.com/channel/UC3VY6RTXegnoSD_q446oBdg?sub_confirmation=1
Gold Supporters: Micah Wood Silver Supporters: Timmy Gy
▶SEND ME THEORY QUESTIONS◀ ryan.e.dougherty@icloud.com
▶ABOUT ME◀ I am a professor of Computer Science, and am passionate about CS theory. I have taught many courses at several different universities, including several sections of undergraduate and graduate theory-level classes. ... https://www.youtube.com/watch?v=rcjR3--M7iM
44039020 Bytes