GATE 2026 CS1 Question 52 – Theory of Computation
Consider the following context-free grammar 𝐺. 𝑆→𝑎𝑏𝑎𝐴𝐵𝐴𝑏𝑏𝑎 𝐴→𝑎𝑎𝐵𝐵𝐴𝑏 | 𝑏𝐵𝑎𝑏𝑎𝑎 𝐵→𝑎𝐵𝑏 | 𝑎𝑏 In the above grammar, 𝑆 is the start symbol,…
Read more →Consider the following context-free grammar 𝐺. 𝑆→𝑎𝑏𝑎𝐴𝐵𝐴𝑏𝑏𝑎 𝐴→𝑎𝑎𝐵𝐵𝐴𝑏 | 𝑏𝐵𝑎𝑏𝑎𝑎 𝐵→𝑎𝐵𝑏 | 𝑎𝑏 In the above grammar, 𝑆 is the start symbol,…
Read more →Consider the following two syntax-directed definitions SDD1 and SDD2 for type declarations. 𝐷 is the start symbol, and 𝑖𝑛𝑡, 𝑓𝑙𝑜𝑎𝑡 and 𝑖𝑑…
Read more →Consider a system that has a cache memory unit and a memory management unit (MMU). The address input to the cache memory…
Read more →An undirected, unweighted, simple graph 𝐺(𝑉, 𝐸) is said to be 2-colorable if there exists a function 𝑐: 𝑉→{0, 1} such that…
Read more →An ISP having an address block 202.16.0.0/15 assigns a block of 6000 IP addresses to a client, using the classless internet domain…
Read more →Let 𝐺 be an undirected graph, which is a path on 8 vertices. The number of matchings in 𝐺 is ______. (answer…
Read more →Let 𝑋 be a random variable which takes values in the set {1, 2, 3, 4, 5, 6, 7, 8}. Further, Pr(𝑋=…
Read more →Consider a hard disk with a rotational speed of 15000 rpm. The time to move the read/write head from a track to…
Read more →The EX stage of a pipelined processor performs the memory read operations for LOAD instructions, and the operations for the arithmetic and…
Read more →Consider the recursive functions represented by the following code segment: int bar(int n){ if (n == 1) return 0; else return 1…
Read more →Ask a study question in English or Hindi. I will find relevant passages from our notes.