Тёмный

Non Deterministic PDA NDPDA || Lesson 74 || Finite Automata || Learning Monkey || 

Learning Monkey
Подписаться 58 тыс.
Просмотров 40 тыс.
50% 1

Non Deterministic PDA NDPDA
In this class, We discuss Non Deterministic PDA NDPDA.
The reader should have prior knowledge of deterministic push-down automata. Click Here.
Non Deterministic Push-Down Automata: A push-down automata is non-deterministic if one transition can take more than one move.
We can achieve NDPDA in two ways.
a) if two are more edges labelled with the same input and stack symbol from a state.
The below diagram shows the first case.
b) When a state has two edges with the same stack symbol and one input symbol is epsilon.
The below diagram shows the second case.
Now we design a few examples using non-deterministic push-down automata.
Example 1: Take the language L1 = {ww^R where w is (a,b)*} string length greater than zero.
The strings in the language L1 = {abba, abbbba, . . .}
The logic is a bit complex to understand. The reader should focus here.
The reader should have an understanding of NFA. Click Here.
Take the input string abbbba.
The first symbol is a. We push onto the stack.
The second input symbol is b. Now we need to check in two ways.
From the middle of the input string, we need to check the reverse of the string.
The confusion here is how to identify the middle of the string?
So we assume every input symbol from the second position as the middle of the string and proceed with pop operation logic.
The second logic is to assume the input symbol is not the middle of the string and go with push logic.
From the idea of nondeterminism. one PDA will move forward and check the pop operation logic.
The other PDA will stay in the same state and apply push operation logic.
During the end of the input string, one of the PDAs will succeed.
We apply NDPDA the way mentioned above.
The below diagram shows the complete NDPDA for the language L1.
Link for playlists:
/ @learningmonkey
Link for our website: learningmonkey.in
Follow us on Facebook @ / learningmonkey
Follow us on Instagram @ / learningmonkey1
Follow us on Twitter @ / _learningmonkey
Mail us @ learningmonkey01@gmail.com

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@jananiramesh5471
@jananiramesh5471 Год назад
Anna I have seen lots and lots of videos but within 30 minutes I have understood this concept pushdown automata very well✨👍 nice explanation Anna ...thank you very much 🙂🙂
@LearningMonkey
@LearningMonkey Год назад
Thank you Have a great learning
@divyrajverma8286
@divyrajverma8286 9 месяцев назад
हर हर महादेव जय माँ भवानी जय श्रीराम जय माँ सीता जय हनुमानजी 🙏🙏🙏🙏🙏🙏❤❤❤❤❤❤❤🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩
@dragonfhy
@dragonfhy 8 месяцев назад
Thank you sir, i love you
@good-tn9sr
@good-tn9sr Год назад
thank you monkey daddy 🫡🐵
@heheheheh2808
@heheheheh2808 9 месяцев назад
Sir I have a doubt can we makeNPDA for accepting the language L = {an bn | n>=1} Or only dpda
@LearningMonkey
@LearningMonkey 9 месяцев назад
We can do using npda Dpda is subset of npda.
@nightfury4514
@nightfury4514 10 месяцев назад
ur amazing sir ❤❤
@LearningMonkey
@LearningMonkey 10 месяцев назад
Thank you Have a great learning in CSE
@dipankarpurecha5564
@dipankarpurecha5564 Год назад
We can also be in the same state but just have two different operations for the same input and stack symbols, right ?
@LearningMonkey
@LearningMonkey Год назад
Yes correct
@SantoshKumar-iy7mr
@SantoshKumar-iy7mr Год назад
Good explanation sir
@AdamRubiks
@AdamRubiks Год назад
nice
@startercoder
@startercoder Год назад
thanks sir ! it was very nice
@tanvisinghal6153
@tanvisinghal6153 3 месяца назад
I feel you.r an indian
@shafqatullah3678
@shafqatullah3678 3 месяца назад
No he is Nepali
@tanvisinghal6153
@tanvisinghal6153 2 месяца назад
@@shafqatullah3678 ok
@official-ex2sr
@official-ex2sr Год назад
Bro can we make DPDA for ww^r ?
@LearningMonkey
@LearningMonkey Год назад
No we can not make DPDA
@learningclass6046
@learningclass6046 2 года назад
good explanation
@varnitgamex
@varnitgamex 9 месяцев назад
A❌ YEH ✅
@48_subhambanerjee22
@48_subhambanerjee22 Год назад
nicee
@tuertingameplays8375
@tuertingameplays8375 Год назад
no se entiende broda
@good-tn9sr
@good-tn9sr Год назад
monkey spray 🙉 ☠️🔥🚬
@Laura-ji5xn
@Laura-ji5xn Год назад
Como que no se entiende, lo explico vientos
@rambabupalla959
@rambabupalla959 2 года назад
We'll bro
@adityanarang3435
@adityanarang3435 4 месяца назад
ye b ni hota ab hota h
@Kwatch
@Kwatch 10 месяцев назад
very bad accent
Далее
@ItsMamix учу делать сигму😎
00:12
Просмотров 679 тыс.
GREATEST CHESS MOVE EVER PLAYED!!!!!
24:01
Просмотров 234 тыс.
I coded one project EVERY WEEK for a YEAR
13:13
Просмотров 649 тыс.
Theory of Computation: NPDA Example (w w^r)
22:16
Просмотров 133 тыс.
Coding Adventure: Ant and Slime Simulations
17:54
Просмотров 1,9 млн