No video

CHOMSKY NORMAL FORM (CNF) & CONVERSION OF CFG TO CNF IN AUTOMATA THEORY || CFG TO CNF || TOC

  Рет қаралды 101,616

Sundeep Saradhi Kanthety

Sundeep Saradhi Kanthety

Күн бұрын

CHOMSKY NORMAL FORM (CNF)
For any non-empty context-free language L, there is a grammar G, such that
L(G) = L and each rule in G is of the form
1. A → a where a ∈ Σ, or
2. A → BC where neither B nor C is the start symbol, or
3. S → where S is the start symbol
STEPS TO BE FOLLOWED IN CONVERSION OF CFG TO CNF
Step 1: Eliminate start symbol from the RHS. If the start symbol S is at the right-hand side of any production, create a new production as.
S1 → S
Step 2: In the grammar, remove the null, unit and useless productions. (Simplification of CFG)
Step 3: Eliminate terminals from the RHS of the production if they exist with other non-terminals or terminals. For example, production A → aB can be decomposed as:
A → XB
X → a
Step 4: Eliminate RHS with more than two non-terminals. For example, A → BCD can be decomposed as:
A → YD
Y → BC
---------------------------------------------------------------------------------------------------------------
AUTOMATA THEORY || THEORY OF COMPUTATION
• INTRODUCTION TO AUTOMA...
COMPILER DESIGN
• INTRODUCTION TO COMPIL...
DATABASE MANAGEMENT SYSTEM
• DATABASE MANAGEMENT SY...
DATA STRUCTURES
• INTRODUCTION TO DATA S...
JAVA PROGRAMMING
• CORE JAVA TUTORIAL FOR...
R PROGRAMMING
studio.youtube...
HTML TUTORIALS WITH IMPLEMENTATION || LEARN HTML IN 4 HOURS
• HTML TUTORIALS WITH IM...
LEARN CSS IN 3 HOURS || CASCADING STYLE SHEETS FOR BEGINNERS
• LEARN CSS IN 3 HOURS |...
JAVA SCRIPT FOR BEGINNERS IN 7 HOURS || LEARN JAVA SCRIPT IN 7 HOURS || JAVA SCRIPT
• JAVA SCRIPT FOR BEGINN...
XML (eXtensible Markup Language)
• XML (eXtensible Markup...
OPERATING SYSTEM
• OPERATING SYSTEM
ETHICAL HACKING
• Video
VI EDITOR BASICS IN LINUX / UNIX || LEARN VI EDITOR COMMANDS || LINUX || UNIX
• VI EDITOR BASICS IN LI...
HOW TO DOWNLOAD & INSTALL MySQL IN WINDOWS 10
• HOW TO DOWNLOAD & INST...
PYTHON PROGRAMS
• PYTHON PROGRAMS
C PROGRAMMING
• 01 - VARIABLES & CONST...
CORE JAVA TUTORIAL FOR BEGINNERS || LEARN CORE JAVA IN 15 HOURS || JAVA TUTORIALS FOR BEGINNERS
• CORE JAVA TUTORIAL FOR...
PYTHON TUTORIALS FOR BEGINNERS (తెలుగు లో)
• Python in One Shot(తెల...
PYTHON OOPS - MODULES - EXCEPTION HANDLING (తెలుగు లో)
• PYTHON - OOPS CONCEPTS...
PYTHON NUMPY TUTORIAL IN TELUGU (తెలుగు లో) || COMPLETE NUMPY TUTORIALS IN TELUGU
• PYTHON NUMPY TUTORIAL ...
PYTHON PANDAS TUTORIAL IN TELUGU (తెలుగు లో) || COMPLETE PANDAS TUTORIALS IN TELUGU || DATA SCIENCE
• PYTHON PANDAS TUTORIAL...
MATPLOTLIB LIBRARY - PYTHON PROGRAMMING (ENGLISH)
• MATPLOTLIB LIBRARY - P...
PYTHON DATABASE CONNECTIVITY - MYSQL & MS-EXCEL
• PYTHON DATABASE CONNEC...
DATA STRUCTURES USING PYTHON (ENGLISH)
• DATA STRUCTURES USING ...
----------------------------------------------------------------------------------------------
Instagram : / sundeepsaradhikanthety

Пікірлер: 34
@anuranjnirmal
@anuranjnirmal Жыл бұрын
Best explanation in youtube, understood very easily, thank you sir
@piyalikarmakar5979
@piyalikarmakar5979 2 жыл бұрын
One of the best explanation... Thanks sir🙏
@simonneupane7680
@simonneupane7680 Ай бұрын
Thank you very much sir :))
@abhiramthota7243
@abhiramthota7243 2 жыл бұрын
Your videos are so good bro.... I want to talk you could you help me....
@JD-eb5qu
@JD-eb5qu 11 ай бұрын
best explanation sir lot of thanks to you sir😍🤩🤩🤩🤩
@SwetaKumari-ps2rf
@SwetaKumari-ps2rf 2 жыл бұрын
Make me to understand it easily.thnks of u sir
@hariharasudhan.v5136
@hariharasudhan.v5136 2 ай бұрын
In 17:28 it should be A-->B|S|epsilon right? because B is changed the 2nd time only
@msking4495
@msking4495 Жыл бұрын
Best Explain in Hardwork
@rajeswarirajeswari954
@rajeswarirajeswari954 Жыл бұрын
Excellent explanation tq sir
@muslimwazaef1334
@muslimwazaef1334 2 жыл бұрын
"Eliminate unit production" In step 3 you have done mistake.
@omkaromkar5215
@omkaromkar5215 Жыл бұрын
How
@masterashcoc
@masterashcoc Жыл бұрын
Crazy explanation, thank you so much sir:)
@kolantiramya7739
@kolantiramya7739 2 жыл бұрын
Thank you sir🙏
@shizuka9597
@shizuka9597 9 ай бұрын
You missed S in eliminating unit production.
@kirankumar-tq5ce
@kirankumar-tq5ce Жыл бұрын
Best explanation sir
@parthvaghela3306
@parthvaghela3306 Жыл бұрын
best Explanation ever
@-SatyajitSahoo-
@-SatyajitSahoo- Жыл бұрын
Really helped ❤️ Thank you sir 🙏🏻......
@me.mouni096
@me.mouni096 4 ай бұрын
Thank you sir. ❤
@sekhar.143
@sekhar.143 4 ай бұрын
Thank you ❤sir
@steeve9
@steeve9 2 жыл бұрын
👌👌 explanation
@EMG_000
@EMG_000 9 ай бұрын
THANK YOU SIR.
@yogeshrai3321
@yogeshrai3321 Жыл бұрын
Bhaiii dimaak kaa bharosaa ho gaya is conversion me🥲🥲
@divyaagarwal3091
@divyaagarwal3091 2 жыл бұрын
Thankyou so much sir
@pratikbhat2325
@pratikbhat2325 Жыл бұрын
thank u siir
@sahithchary4392
@sahithchary4392 Жыл бұрын
Super
@user-zs8ni7yt6g
@user-zs8ni7yt6g Жыл бұрын
s u did a mistake in 3rd step
@muslimwazaef1334
@muslimwazaef1334 2 жыл бұрын
Try to correct your mistake
@itthegamer1134
@itthegamer1134 Жыл бұрын
Sir explain perfectly sir not understand
@arzanishath8085
@arzanishath8085 2 жыл бұрын
S-->aS/AB/epsilon A-->epsilon B--->epsilon D--->b can anyone plz say the answer for this
@laavanyasri4730
@laavanyasri4730 Жыл бұрын
Step1 - removal of useless symbols The D production is removed since it do not take place in any step of derivation of a string . S-->aS | AB | ep A-->ep B-->ep Step 2 - ep productions elimination We've A-->ep....substitute in rule S-->AB...since A is ep...we get S-->B. The obtained productions are (since A-->ep is removed) S--> aS | AB | B | ep B-->ep Now, we've B-->ep substituting the B in S rules S-->AB -->A ep -->A Obtained productions are (B-->ep is eliminated) S--> aS | AB | B | A | ep Now we've S-->ep substituting it in S-->aS we get S-->a and S-->ep is eliminated Obtained productions are S--> aS | AB | B | A | a | ep Step 3 ..elimination of unit productions We've got S-->B & S-->A unit productions. the values of A and B should be replaced with the rules ...since we don't have any rules or productions left with A and B.....the above mentioned 2 rules S-->A and S-->B can be simply eliminated... The final productions obtained are S--> aS | AB | a .
@bece3oo3ourvishrdesai12
@bece3oo3ourvishrdesai12 Жыл бұрын
​@@laavanyasri4730can you help me
@me.mouni096
@me.mouni096 4 ай бұрын
​@@laavanyasri4730 As sir said in first step we have to right S1-->S because S is present on both RHS and LHS
@radhikakhanna7587
@radhikakhanna7587 Ай бұрын
What if we remove useless production after unit production S-> aS|AB|a Here then AB would also be a useless production
@kennadysil7806
@kennadysil7806 2 жыл бұрын
Thank you🙏 sir
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 12 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 24 МЛН
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 7 МЛН
Context Free Grammar to Pushdown Automaton Conversion (CFG to PDA)
24:21
How to Write a Paper in a Weekend (By Prof. Pete Carr)
11:39
Surviving and Thriving in Higher Education
Рет қаралды 2,2 МЛН
converting CFG to CNF example | TOC | Lec-71 | Bhanu Priya
13:13
Education 4u
Рет қаралды 612 М.
Context-Free Grammar to Pushdown Automaton Conversion (CFG to PDA)
9:15
China | Can you solve this ? | A Nice Trigonometry Math Olympiad Problem
11:57
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 12 МЛН