GATE 2021 (Session 1)
65 questions
MCQ 34 · MSQ 13 · NAT 181-mark 30 · 2-mark 35
Questions 61–65 of 65
In a pushdown automaton , a transition of the form,
where , represents
Consider the following pushdown automaton over the input alphabet and stack alphabet .
The number of strings of length 100 accepted by the above pushdown automaton is ___________
where , represents
Consider the following pushdown automaton over the input alphabet and stack alphabet .
The number of strings of length 100 accepted by the above pushdown automaton is ___________
Answer: 50
The PDA first pushes # and then pushes one A for each a. In q2, each b pops one A. It can reach the final state q3 only when an A is still on top of the stack.
So the strings it accepts are with the condition . For length 100, take m + n = 100 with n m n = 0, 1, , 49 50 strings.
Answer: 50
So the strings it accepts are with the condition . For length 100, take m + n = 100 with n m n = 0, 1, , 49 50 strings.
Answer: 50
Consider the following matrix.
The largest eigenvalue of the above matrix is __________.
The largest eigenvalue of the above matrix is __________.
Answer: 3
Write the matrix as , where is the matrix of all ones.
has rank 1, so it has eigenvalue 0 three times. For the vector , , so its fourth eigenvalue is 4.
Subtracting subtracts 1 from every eigenvalue, so the eigenvalues of are . (Check: the trace is 0, and .)
The largest is 3.
Answer: 3
has rank 1, so it has eigenvalue 0 three times. For the vector , , so its fourth eigenvalue is 4.
Subtracting subtracts 1 from every eigenvalue, so the eigenvalues of are . (Check: the trace is 0, and .)
The largest is 3.
Answer: 3
A five-stage pipeline has stage delays of 150, 120, 150, 160 and 140 nanoseconds. The registers that are used between the pipeline stages have a delay of 5 nanoseconds each.
The total time to execute 100 independent instructions on this pipeline, assuming there are no pipeline stalls, is _______ nanoseconds.
The total time to execute 100 independent instructions on this pipeline, assuming there are no pipeline stalls, is _______ nanoseconds.
Answer: 17160
The clock cycle is the slowest stage plus the register delay. This gives 160 + 5 = 165 ns.
The number of cycles for 100 instructions on 5 stages is 5 + 100 1 = 104.
Total time = 104 165 = 17160 ns
Answer: 17160
The number of cycles for 100 instructions on 5 stages is 5 + 100 1 = 104.
Total time = 104 165 = 17160 ns
Answer: 17160
A sender (S) transmits a signal, which can be one of the two kinds: H and L with probabilities 0.1 and 0.9 respectively, to a receiver (R)
In the graph below, the weight of edge is the probability of receiving when is transmitted, where . For example, the probability that the received signal is given the transmitted signal was , is 0.7.
If the received signal is , the probability that the transmitted signal was (rounded to 2 decimal places) is __________.
In the graph below, the weight of edge is the probability of receiving when is transmitted, where . For example, the probability that the received signal is given the transmitted signal was , is 0.7.
If the received signal is , the probability that the transmitted signal was (rounded to 2 decimal places) is __________.
Answer: 0.04
Read the graph: P(recv H | sent H) = 0.3 and P(recv H | sent L) = 0.8.
Total probability of receiving H: 0.1 0.3 + 0.9 0.8 = 0.03 + 0.72 = 0.75
Use Bayes' rule:
Answer: 0.04
Total probability of receiving H: 0.1 0.3 + 0.9 0.8 = 0.03 + 0.72 = 0.75
Use Bayes' rule:
Answer: 0.04
Consider the following instruction sequence where registers are general purpose and denotes the content at the memory location .
Assume that the content of the memory location 5000 is 10, and the content of the register is 3000. The content of each of the memory locations from 3000 to 3020 is 50. The instruction sequence starts from the memory location 1000. All the numbers are in decimal format. Assume that the memory is byte addressable.
After the execution of the program, the content of memory location 3010 is ____________
Assume that the content of the memory location 5000 is 10, and the content of the register is 3000. The content of each of the memory locations from 3000 to 3020 is 50. The instruction sequence starts from the memory location 1000. All the numbers are in decimal format. Assume that the memory is byte addressable.
After the execution of the program, the content of memory location 3010 is ____________
Answer: 50
The first instruction (4 bytes) sits at 1000 to 1003, so the second instruction, , starts at 1004. So jumps back to the second instruction, and the first instruction runs only once.
. In each pass: , , , , . The branch is taken while . goes from 10 down to 0, so there are exactly 10 passes.
In these passes is 3000, 3001, , 3009, so locations 3000 to 3009 are written. Location 3010 is never written, so it keeps its value 50.
Answer: 50
. In each pass: , , , , . The branch is taken while . goes from 10 down to 0, so there are exactly 10 passes.
In these passes is 3000, 3001, , 3009, so locations 3000 to 3009 are written. Location 3010 is never written, so it keeps its value 50.
Answer: 50