Step 1: Key observation about time bounds.
The number \(2021\) is a fixed constant. For any Turing machine \(M\), we can simulate its computation for at most \(2021\) steps on any given input and observe whether it halts within that bound.
Step 2: Decidability of \(L_2\).
To decide whether \(M\) takes more than \(2021\) steps on some input, we can enumerate all possible inputs of length up to \(2021\) symbols and simulate \(M\) on each of them for at most \(2021\) steps.
If for at least one input the machine does not halt within \(2021\) steps, then \(\langle M \rangle \in L_2\). Otherwise, it is not. Since this process is finite, \(L_2\) is decidable.
Step 3: Decidability of \(L_1\).
To decide whether \(M\) takes more than \(2021\) steps on all inputs, we again simulate \(M\) on all inputs of length up to \(2021\) for \(2021\) steps.
If \(M\) halts within \(2021\) steps on even one input, then \(\langle M \rangle \notin L_1\). Otherwise, it belongs to \(L_1\). This is also a finite procedure.
Step 4: Conclusion.
Since both properties can be checked using finite simulations bounded by a constant number of steps, both \(L_1\) and \(L_2\) are decidable.
Final Answer: (A)
In a 4-bit ripple counter, if the period of the waveform at the last flip-flop is 64 microseconds, then the frequency of the ripple counter in kHz is ______________. {(Answer in integer)}
Consider the following C code segment:
int x = 126, y = 105;
do {
if (x > y)
x = x - y;
else
y = y - x;
} while (x != y);
printf("%d", x);
The output of the given C code segment is ____________. (Answer in integer)
The following two signed 2’s complement numbers (multiplicand \( M \) and multiplier \( Q \)) are being multiplied using Booth’s algorithm:
| Multiplicand (\( M \)) | Multiplier (\( Q \)) |
|---|---|
| 1100 1101 1110 1101 | 1010 0100 1010 1010 |
The total number of addition and subtraction operations to be performed is __________. (Answer in integer)
The maximum value of \(x\) such that the edge between the nodes B and C is included in every minimum spanning tree of the given graph is __________ (answer in integer).
Consider the following C program
The value printed by the given C program is __________ (Answer in integer).