• edited by
238 views
0 0 votes

ISI2025-MCS-PCB (Non-CS) | Question-9

  1. Let $L$ be a language over an alphabet $\{a, b\}$ such that the empty string does not belong to $L$ and the first and the last letters of every string in $L$ are the same. Draw a DFA to accept the language $L$. Argue whether your DFA is the minimal one accepting $L$.
  2. Prove that the language $L=\left\{a^{m} b^{n} \mid m \neq n\right\}$ is not regular. You may use the fact that the language $\left\{a^{n} b^{n} \mid n \geq 0\right\}$ is not regular.

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
0 0 answers
231
231 views
Shubham Sharma 2 asked Jun 12, 2025
231 views
Let $L$ be a language over an alphabet $\{a, b\}$ such that the empty string does not belong to $L$ and the first and the last letters of every string in $L$ are the same...
1 1 vote
0 0 answers
468
468 views
Shubham Sharma 2 asked Jun 12, 2025
468 views
Consider the following function job(), which takes two positive integers $x$ and $y$, and returns another integer.int job(int x, int y) {if (x y) return x;else if (x y) ...
0 0 votes
1 1 answer
268
268 views
Shubham Sharma 2 asked Jun 12, 2025
268 views
Let $b_{n} b_{n-1} \cdots b_{1}$ be the decimal representation of an $n$ digit number $m$. Let $b_{n} b_{n-1} \cdots b_{2}$ be the integer $a$ obtained from $m$ by stripp...
0 0 votes
0 0 answers
315
315 views
Shubham Sharma 2 asked Jun 12, 2025
315 views
Suppose $X=\left(x_{1}, x_{2}, \ldots, x_{n}\right)$ is an array of numbers (not necessarily integers) sorted in the ascending order, and $Y=\left(y_{1}, y_{2}, \ldots, y...