ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

A Double Conversion: Regular Grammar to NFA to Regex!

gnfa method

nfa to regex

dfa to regex

gnfa conversion

regular expression

easy theory

nfa conversion

nfa to regex conversion

nfa rip states

finite automata to regular expression

dfa to regular expression conversion

nfa to regex example

nfa to regular expression

dfa to regex example

nfa to regular expression conversion

dfa to regex algorithm

dfa to regex examples

nfa to regex converter

dfa rip states

dfa to regular expression

Автор: Easy Theory

Загружено: 2020-05-04

Просмотров: 7774

Описание: Here we look at a (rare) double conversion, which is converting from a regular grammar to an NFA (nondeterministic finite automaton) to a regular expression (regex). This comes from a 2017 exam question of mine. I walk through the steps in both of the conversions of how to perform them.

For the regular grammar to NFA conversion, make a state for each of the variables of the NFA, as well as a single final state. Then, for each rule that produces a variable, go to that variable with the produced character (or on epsilon if none produced). If a rules makes epsilon or a character, go to the new final state on that character.

For the NFA to regex conversion, I walk through this process in this video:    • NFA to Regular Expression Conversion, and ...  

Patreon:   / easytheory  
Twitch:   / easytheory  
Mixer: https://mixer.com/easytheory
Discord:   / discord  
Facebook:   / easytheory  
Twitter:   / easytheory  
Teespring: https://teespring.com/pumping-lemma-f...

If you like this content, please consider subscribing to my channel:    / @easytheory  

▶ADDITIONAL QUESTIONS◀
1. What is the maximum length of a regex that comes from the NFA to regex process? What about for this specific NFA?
2. Will the regex that comes out of the conversion look the same if we ripped out different states? When is it the case that they are identically the same?

▶SEND ME THEORY QUESTIONS◀
[email protected]

▶ABOUT ME◀
I am a professor of Computer Science, and am passionate about CS theory. I have taught over 12 courses at Arizona State University, as well as Colgate University, including several sections of undergraduate theory.

▶ABOUT THIS CHANNEL◀
The theory of computation is perhaps the fundamental theory of computer science. It sets out to define, mathematically, what exactly computation is, what is feasible to solve using a computer, and also what is not possible to solve using a computer. The main objective is to define a computer mathematically, without the reliance on real-world computers, hardware or software, or the plethora of programming languages we have in use today. The notion of a Turing machine serves this purpose and defines what we believe is the crux of all computable functions.

This channel is also about weaker forms of computation, concentrating on two classes: regular languages and context-free languages. These two models help understand what we can do with restricted means of computation, and offer a rich theory using which you can hone your mathematical skills in reasoning with simple machines and the languages they define.

However, they are not simply there as a weak form of computation--the most attractive aspect of them is that problems formulated on them are tractable, i.e. we can build efficient algorithms to reason with objects such as finite automata, context-free grammars and pushdown automata. For example, we can model a piece of hardware (a circuit) as a finite-state system and solve whether the circuit satisfies a property (like whether it performs addition of 16-bit registers correctly). We can model the syntax of a programming language using a grammar, and build algorithms that check if a string parses according to this grammar.

On the other hand, most problems that ask properties about Turing machines
are undecidable. This Youtube channel will help you see and prove that several tasks involving Turing machines are unsolvable---i.e., no computer, no software, can solve it. For example, you will see that there is no software that can check whether a
C program will halt on a particular input. To prove something is possible is, of course, challenging. But to show something is impossible is rare in computer
science, and very humbling.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
A Double Conversion: Regular Grammar to NFA to Regex!

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Что такое контекстно-свободная грамматика?

Что такое контекстно-свободная грамматика?

Преобразование NFA в регулярное выражение и пример

Преобразование NFA в регулярное выражение и пример

What is a Regular Grammar? NFA to Regular Grammar conversion also!

What is a Regular Grammar? NFA to Regular Grammar conversion also!

Fourteen DFA Examples? No Problem!

Fourteen DFA Examples? No Problem!

Преобразование регулярных выражений в NFA несложно! (Sipser 1.28a)

Преобразование регулярных выражений в NFA несложно! (Sipser 1.28a)

Context-Free Grammars (CFGs) - Easy Theory

Context-Free Grammars (CFGs) - Easy Theory

Conversion of Regular Expression to Finite Automata - Examples (Part 1)

Conversion of Regular Expression to Finite Automata - Examples (Part 1)

What is the Pumping Lemma

What is the Pumping Lemma

NFA to Regex Conversion Example #1,

NFA to Regex Conversion Example #1, "Simple" (GNFA Method)

There Is Something Faster Than Light

There Is Something Faster Than Light

Chomsky Normal Form & CFG to CNF Conversion

Chomsky Normal Form & CFG to CNF Conversion

🔴 Magnus Carlsen | Titled Tuesday | December 23, 2025

🔴 Magnus Carlsen | Titled Tuesday | December 23, 2025

Тренер НХЛ рисовал схему. РУССКИЙ зачеркнул и сказал ЭТО...

Тренер НХЛ рисовал схему. РУССКИЙ зачеркнул и сказал ЭТО...

What are Grammars (in Theory of Computation)?

What are Grammars (in Theory of Computation)?

Преобразование NFA в DFA (пример построения Powerset/Subset)

Преобразование NFA в DFA (пример построения Powerset/Subset)

What is an Nondeterministic Finite Automaton (NFA)?

What is an Nondeterministic Finite Automaton (NFA)?

Vertex Cover problem is NP-Complete

Vertex Cover problem is NP-Complete

Are We Using the Wrong Kind Of Electricity?

Are We Using the Wrong Kind Of Electricity?

Преобразование NFA в DFA

Преобразование NFA в DFA

What are Deterministic Finite Automata (DFAs)?  A Conceptual Overview [Theory of Computing]

What are Deterministic Finite Automata (DFAs)? A Conceptual Overview [Theory of Computing]

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]