# CSE501 / TOC

## Syllabus

{% file src="<https://3148391480-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoWho7cxjZIbvsuDwIAzB%2Fuploads%2Fl0f23dN2C3WzpYFW4ywo%2FY3S5-CSE501-SYLLABUS-BTECH-CSE-IT.pdf?alt=media&token=60842053-e5c4-4fcd-bd53-ebfd48aa9ffe>" %}

## Resources

<details>

<summary>MI: Finite Automata and Regular Languages</summary>

* Introduction
  * Basic mathematical notation and techniques
  * Finite state systems and basic definitions
* Finite automata models
  * Deterministic finite automaton (DFA)
  * Nondeterministic finite automaton (NDFA/NFA)
  * Finite automaton with ε\varepsilonε-moves
* Regular languages and expressions
  * Regular languages
  * Regular expressions
  * Equivalence of NFA and DFA
  * Equivalence of NFA with and without ε\varepsilonε-moves
  * Equivalence of finite automata and regular expressions
* DFA minimization
  * Minimization techniques for DFA
* Pumping lemma for regular sets
  * Statement of pumping lemma
  * Problems based on pumping lemma

***

<table><thead><tr><th width="81.0859375">[⤓]</th><th>Content Preview</th></tr></thead><tbody><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=15LFf9g3uDKQt11mmbprzodpfvVPdjy4u" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/15LFf9g3uDKQt11mmbprzodpfvVPdjy4u/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-1+2</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1iLCMLsjLkeLUAIs-uRVj2sbMOB5mRZa4" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1iLCMLsjLkeLUAIs-uRVj2sbMOB5mRZa4/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-3+4</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1JEbU3EV7PXM8e7AG9Fw6gecOi6kqFsl_" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1JEbU3EV7PXM8e7AG9Fw6gecOi6kqFsl_/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-5</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1CXs2kE-Aq4oVVcck1ZYd438vPVbMjNkp" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1CXs2kE-Aq4oVVcck1ZYd438vPVbMjNkp/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-6</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1ch_CmzwMzDpEHuevFiXH67r5pzOVwlPL" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1ch_CmzwMzDpEHuevFiXH67r5pzOVwlPL/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-7</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1qSZUNHnuWwQ9rOyVBGmoQXs0Jdrw15UZ" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1qSZUNHnuWwQ9rOyVBGmoQXs0Jdrw15UZ/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-8</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1WuiYwxBbRdvKvXtjts3JEkp_ZR11QsCR" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1WuiYwxBbRdvKvXtjts3JEkp_ZR11QsCR/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-9</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1DQtYcCpL5ER9v2oyA0RHro98KMlQUaLz" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1DQtYcCpL5ER9v2oyA0RHro98KMlQUaLz/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-10</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=15b2peqV3Mny_8PElvG6xjSZ-NLrYrZ8W" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/15b2peqV3Mny_8PElvG6xjSZ-NLrYrZ8W/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-11+12</a></td></tr></tbody></table>

</details>

<details>

<summary>MII: Grammars</summary>

* Introduction to grammars
  * Basic concepts of grammars
  * Types of grammars
* Context-free grammars (CFG) and languages
  * Definitions of CFG and CFL
  * Derivations and generated languages
  * Ambiguity in grammars
  * Relationship between derivations and derivation trees
* Simplification of CFG
  * Elimination of useless symbols
  * Elimination of unit productions
  * Elimination of null productions
* Normal forms
  * Greibach Normal Form (GNF)
  * Chomsky Normal Form (CNF)
  * Problems related to CNF and GNF
* Chomsky hierarchy
  * Chomsky hierarchy of languages

***

<table><thead><tr><th width="81.0859375">[⤓]</th><th>Content Preview</th></tr></thead><tbody><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1ZSnrpBL1HbyeY90cmywA8shrPw9vHGWs" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1ZSnrpBL1HbyeY90cmywA8shrPw9vHGWs/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-1</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1t-jzt2kecFxMB4pofLZlnI9lDD_1QV98" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1t-jzt2kecFxMB4pofLZlnI9lDD_1QV98/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-2</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1G0tjTt_TEo9BLVf9tWBVhL7ilG45wddq" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1G0tjTt_TEo9BLVf9tWBVhL7ilG45wddq/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-3+4</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1ZoSi1E5pIkKbaqc5pEOa5-9aRdvIrh26" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1ZoSi1E5pIkKbaqc5pEOa5-9aRdvIrh26/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-5+6</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1-GK5pTIqvWM2GPVuD36eiosxE7Auaxss" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1-GK5pTIqvWM2GPVuD36eiosxE7Auaxss/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-7+8</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1rQaMea44Ko9Ro3jayx0sg7KBouwl8yVH" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1rQaMea44Ko9Ro3jayx0sg7KBouwl8yVH/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-9</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=199ILzUxIB8XA_9hboMOFEEHY0FEZWEj0" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/199ILzUxIB8XA_9hboMOFEEHY0FEZWEj0/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-10</a></td></tr></tbody></table>

</details>

<details>

<summary>MIII: Pushdown Automata and Linear Bounded Automata</summary>

* Pushdown automata (PDA)
  * Definitions and basic components
  * Moves and instantaneous descriptions
  * Deterministic pushdown automata (DPDA)
* PDA and CFL
  * Equivalence of PDA and context-free languages
* Pumping lemma for CFL
  * Statement of pumping lemma for CFL
  * Problems based on pumping lemma
* Linear bounded automata (LBA)
  * Definition and basic idea

***

<table><thead><tr><th width="81.0859375">[⤓]</th><th>Content Preview</th></tr></thead><tbody><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1P7_mc_1aM3_ENuW0jduSPY6i3jMNlR3O" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1P7_mc_1aM3_ENuW0jduSPY6i3jMNlR3O/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-1+2</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1pEVj5OxUZo-3HNWf7m3sDdRODysqpNDO" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1pEVj5OxUZo-3HNWf7m3sDdRODysqpNDO/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-3</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=16VvbLpd-LzChhnThQHw9uo0fu5rmwpf7" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/16VvbLpd-LzChhnThQHw9uo0fu5rmwpf7/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-4</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1hqXfGJginLu97uyY3nkttkexNJqoN7bp" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1hqXfGJginLu97uyY3nkttkexNJqoN7bp/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-5</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1ZOUWvy0MAgRbOBgZM8kyq33Bi0j5uRX1" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1ZOUWvy0MAgRbOBgZM8kyq33Bi0j5uRX1/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-6</a></td></tr></tbody></table>

</details>

<details>

<summary>MIV: Turing Machines</summary>

* Turing machine model
  * Basic model and components
  * Language acceptability of Turing machines
* Design of Turing machines
  * Construction for simple languages and functions
* Variants of Turing machines
  * Variations of TM
  * Universal Turing machine
  * Church’s machine (Church–Turing thesis context)
* Undecidability examples
  * Turing machine halting problem
  * Post correspondence problem (PCP)
  * Modified PCP

***

<table><thead><tr><th width="81.0859375">[⤓]</th><th>Content Preview</th></tr></thead><tbody><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1ToIITXn3npbMVvlZDNZNrlQFC2JtqOA1" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1ToIITXn3npbMVvlZDNZNrlQFC2JtqOA1/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-1+2</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1AT31FhIFP9AWXkPRESpN2GDz6YjlBbAS" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1AT31FhIFP9AWXkPRESpN2GDz6YjlBbAS/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-3</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1zvsqtURhZ7XN-zhNjqvcYp1Xsy4EHbJa" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1zvsqtURhZ7XN-zhNjqvcYp1Xsy4EHbJa/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-4</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1_N97EV1tqK1kSP9EqrDZrA8p3JmycKVt" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1_N97EV1tqK1kSP9EqrDZrA8p3JmycKVt/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-5</a></td></tr></tbody></table>

</details>

<details>

<summary>MV: Unsolvable Problems and Computable Functions</summary>

* Computable functions
  * Primitive recursive functions
  * Recursive and recursively enumerable languages
* Unsolvable problems
  * Examples of unsolvable problems
* Tractability and intractability
  * Tractable vs. intractable problems
  * Class P and class NP problems
  * NP-completeness
  * Satisfiability problem (SAT)

***

<table><thead><tr><th width="81.0859375">[⤓]</th><th>Content Preview</th></tr></thead><tbody><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1rRNwujckiJhgifl6ngDpiiwlXnu3s9x4" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1rRNwujckiJhgifl6ngDpiiwlXnu3s9x4/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-1</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1_L26_PXUxfCIpmwRMZtT2L1iauThiVUG" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://docs.google.com/presentation/d/1_L26_PXUxfCIpmwRMZtT2L1iauThiVUG/edit?usp=drivesdk&#x26;ouid=114560226846413789967&#x26;rtpof=true&#x26;sd=true">Session-2</a></td></tr></tbody></table>

</details>

## Notes

## Question Directory

### Previous Year Questions

#### Mid-Sem-PYQ

<table><thead><tr><th width="81.90771484375">[⤓]</th><th width="554.568115234375">Content Preview</th></tr></thead><tbody><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1rX1lleylVaAZbGst_jZVSyxiaYkNivUa" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://drive.google.com/file/d/1rX1lleylVaAZbGst_jZVSyxiaYkNivUa/view?usp=drive_link">Y3S5-CSE501-TOC-MidTerm-PYQ-OCT25</a></td></tr></tbody></table>

#### End-Sem-PYQ

<table><thead><tr><th width="81.9005126953125">[⤓]</th><th width="547.80322265625">Content Preview</th></tr></thead><tbody><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1xnfqfh26cJ03fNv6RcmR1Yvx2Q1fbI_X" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://drive.google.com/file/d/1xnfqfh26cJ03fNv6RcmR1Yvx2Q1fbI_X/view?usp=drive_link">Y3S5-CSE501-TOC-EndSem-PYQ-APR17</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1fP7dpYZdNyZmObpaNbOsRaQjIbNW1Rn8" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://drive.google.com/file/d/1fP7dpYZdNyZmObpaNbOsRaQjIbNW1Rn8/view?usp=drive_link">Y3S5-CSE501-TOC-EndSem-PYQ-APR18</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1ecCxxq5xQAhtuMuAAfKCu3Ef3-J3pQeW" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://drive.google.com/file/d/1ecCxxq5xQAhtuMuAAfKCu3Ef3-J3pQeW/view?usp=drive_link">Y3S5-CSE501-TOC-EndSem-PYQ-APR19</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1Xq2L4mhmjNNZbiIkov33YjThvXD3e_A_" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://drive.google.com/file/d/1Xq2L4mhmjNNZbiIkov33YjThvXD3e_A_/view?usp=drive_link">Y3S5-CSE501-TOC-EndSem-PYQ-JAN23</a></td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1XN_j7qPqXAWSNXdgBgZt-G_pZn1VbXja" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://drive.google.com/file/d/1XN_j7qPqXAWSNXdgBgZt-G_pZn1VbXja/view?usp=drive_link">Y3S5-CSE501-TOC-EndSem-PYQ-DEC23</a></td></tr></tbody></table>

## External Sources

{% embed url="<https://youtube.com/playlist?list=PLxCzCOWd7aiFM9Lj5G9G_76adtyb4ef7i&si=8veHQ6xOEA10UuuN>" %}

***

{% embed url="<https://discord.gg/6ywR3zbNfg>" %}

{% embed url="<https://mantavyam.notion.site/18152f7cde8880d699a5f2e65f87374e>" %}

{% embed url="<https://mantavyam.notion.site/17e52f7cde8880e0987fd06d33ef6019>" %}
