DIZNR INTERNATIONAL

TOC Hindi – Introduction of Formal Language and It’s Type With real example for better understand

TOC Hindi – Introduction of Formal Language and It’s Type With real example for better understand

https://www.gyanodhan.com/video/7B3.%20GATE%20CSEIT/Theory%20of%20Computation/608.%20TOC%20Hindi%20-%20Introduction%20of%20Formal%20Language%20and%20It%27s%20Type%20%20%20With%20real%20example%20for%20%20better%20understand.mp4

Here is a TOC (Theory of Computation) explanation in Hindi covering the Introduction to Formal Language and its types, with real-life examples for better understanding:


Formal Language का परिचय (Introduction of Formal Language in Hindi)

क्या होता है Formal Language?

Formal Language वह भाषा होती है जो कुछ विशेष नियमों (rules/grammar) पर आधारित होती है और जिसका प्रयोग मशीनें या प्रोग्रामिंग सिस्टम समझते हैं।


Basic Components of Formal Language:

  1. Alphabet (Σ): एक finite symbol set (जैसे Σ = {a, b})
  2. String: एक finite sequence of symbols (जैसे “abba”)
  3. Language (L): ऐसी सभी strings का set जो किसी नियम को follow करती हैं।

Formal Language के प्रकार (Types of Formal Language)

Formal Languages को Chomsky Hierarchy के अनुसार 4 भागों में बाँटा गया है:


1. Type 3: Regular Language (Regular Grammar)

Example:

Language L = {aⁿ | n ≥ 0}, i.e., “”, “a”, “aa”, “aaa”, …

Real-Life Example:

Email validation में regex जैसे pattern "^[a-zA-Z0-9]+@[a-z]+\.[a-z]{2,3}$" का उपयोग।


2. Type 2: Context-Free Language (CFL)

Example:

L = {aⁿbⁿ | n ≥ 1}, i.e., “ab”, “aabb”, “aaabbb”, …

Real-Life Example:

Programming languages का Syntax Parsing (जैसे: if-else, loop structures)


3. Type 1: Context-Sensitive Language (CSL)

Example:

L = {aⁿbⁿcⁿ | n ≥ 1}, i.e., “abc”, “aabbcc”, “aaabbbccc”, …

Real-Life Example:

कुछ programming languages के semantic rules


4. Type 0: Recursively Enumerable Language (REL)

Example:

किसी भी problem की Turing Machine solution अगर exist करता है, तो वो Type-0 में आता है।

Real-Life Example:

Natural language processing (NLP) और AI systems में complex sentence evaluation


Example के साथ समझें:

मान लीजिए हमारे पास Alphabet है Σ = {a, b}


Recommended Hindi Lecture Videos:

Formal Language Introduction in Hindi | TOC | Neso Academy
Chomsky Hierarchy Explained in Hindi


अगर आप चाहें तो:

क्या आप चाहेंगे कि मैं इसका printable version तैयार करूँ?

TOC Hindi – Introduction of Formal Language and It’s Type With real example for better understand

Theory of Automata, Formal Languages and Computation

TOC notes by Ajay Sir

toc-klp-mishra.pdf