Aspire Faculty ID #18671 · Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II) · Just now
UGC NET Computer Science Dec 2022 Shift II (Paper II)

Match the following based on the language accepted by using brute force method of parsing.
 List-I

 List-II

a. $S \to aSa \mid aa$
I. $((2^n$ *3)-4); n > 1
b. $S \to aaSaa \mid aa$
II. $2^n$; n>=1
 
c. $S \to aaaSaaa \mid aa$
III. ((4*$2^n$)-6);n>=1

d. $S \to aaaaSaaaa \mid aa$

IV. $2^n$ - 2; n>= 2

Choose the correct answer from the options given below:

Solution

For $S \to aSa \mid aa$:

It generates strings:

$aa, aaaa, aaaaaa, \ldots$

So, length pattern is:

$2n$

Therefore,

a → II

For $S \to aaSaa \mid aa$:

It generates strings by adding two $a$'s on both sides.

So, it matches the given form IV.

Therefore,

b → IV

For $S \to aaaSaaa \mid aa$:

It generates lengths:

$2,8,14,20,\ldots$

This is:

$6n-4$

or

$((2n*3)-4)$

Therefore,

c → I

For $S \to aaaaSaaaa \mid aa$:

It generates lengths:

$2,10,18,26,\ldots$

This is:

$8n-6$

or

$((4*2n)-6)$

Therefore,

d → III

Correct matching:

a-II, b-IV, c-I, d-III

Previous 10 Questions — UGC NET Computer Science Dec 2022 Shift II (Paper II)

Nearest first
1
Match the List-I and List-II List-I List-IIa. Dijkstra's AlgorithmI. Calculates path matrixb. Prim's Algorith…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
2
Match the List-I and List-II List-I List-IIa. Product ComplexityI. System Requirements Designb. Structured Sy…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
3
Match the List-I and List-II List-I List-IIa. IPCI. Resource Allocationb. Demand PagingII. Computational spee…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
4
Match the List-I and List-II List-I List-IIa. Apache KafkaI. Platform for constructing data flows for extract…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
5
Match the List-I and List-II List-I List-II a. If the implementation of generated or derived classes dif…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
6
Match List-I and List-II List-IList-II  a. Direct AddressingI. MVI A, FFH  b. Indirect address…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
7
Match the List-I and List-II List-IList-II  a. Planar GraphI. Probabilistic Model  b. Bipartit…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
8
Which Boolean operation on two variables can be represented by a single perception layer? I. X1 AND X2 II. X1 OR X2 III…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
9
Consider the following Learning algorithms.I. Logistic regression. II. Back propagation. III. Linear regression. IV. Fo…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
10
Which AI System mimics the evolutionary process to generate increasingly better solutions to a problem? I. Self organiz…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)

Next 10 Questions — UGC NET Computer Science Dec 2022 Shift II (Paper II)

Ascending by ID
1
Match List I with List II  List-I List-IIa. CDMAI. It provides mobile internet connection with faster data tr…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
2
Match List I with List II  List-I List-IIa. Text planningI. Natural language understandingb. Sentence plannin…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
3
Consider the statements: I. There does not exist a polynomial time algorithm to solve integer linear programming proble…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
4
The correct sequence in the fetch-execute cycle is ______.I. Decode II. Fetch III. Execute Choose the correct answer f…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
5
In what sequence the initialization, testing and execution of body is done while using do-while loop?I. Commenting II. …
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
6
I. Find recursively all its density-connected points and assign them to the same cluster as the core point. II. Find al…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
7
Select the correct order of events after power is initialized on a system. I. Bootstrap loader is loaded from the disk …
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
8
Given below are two statements: one is labeled as Assertion A and the other is labeled as Reason R.Assertion A: Cohesio…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
9
Given the graph below one of the following edges cannot be added in that order to find a minimum spanning tree algorith…
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
10
What is the safest order while simplifying Context Free Grammar?
Topic: UGC NET Computer Science Dec 2022 Shift II (Paper II)
Ask Your Question or Put Your Review.

loading...