Consider Guwahati (G) and Delhi (D) whose temperatures can be classified as high (๐ป), medium (๐‘€) and low (๐ฟ)

Consider Guwahati (G) and Delhi (D) whose temperatures can be classified as high (๐ป), medium (๐‘€) and low (๐ฟ)

Q. Consider Guwahati (G) and Delhi (D) whose temperatures can be classified as high (๐ป), medium (๐‘€) and low (๐ฟ). Let ๐‘ƒ(๐ป๐บ) denote the probability that Guwahati has high temperature. Similarly, ๐‘ƒ(๐‘€๐บ) and ๐‘ƒ(๐ฟ๐บ) denotes the probability of Guwahati having medium and low temperatures respectively. Similarly, we use ๐‘ƒ(๐ป๐ท), ๐‘ƒ(๐‘€๐ท) and ๐‘ƒ(๐ฟ๐ท) for Delhi. The

Consider Guwahati (G) and Delhi (D) whose temperatures can be classified as high (๐ป), medium (๐‘€) and low (๐ฟ) Read More ยป

Let G be a graph with 100! vertices, with each vertex labelled by a distinct permutation of the numbers 1,2, โ€ฆ , 100

Let G be a graph with 100! vertices, with each vertex labelled by a distinct permutation of the numbers 1,2, โ€ฆ , 100

Q. Let G be a graph with 100! vertices, with each vertex labelled by a distinct permutation of the numbers 1,2, โ€ฆ , 100. There is an edge between vertices ๐‘ข and ๐‘ฃ if and only if the label of ๐‘ข can be obtained by swapping two adjacent numbers in the label of ๐‘ฃ. Let

Let G be a graph with 100! vertices, with each vertex labelled by a distinct permutation of the numbers 1,2, โ€ฆ , 100 Read More ยป

Consider the following four relational schemas. For each schema, all non-trivial functional dependencies are listed

Consider the following four relational schemas. For each schema, all non-trivial functional dependencies are listed

Q. Consider the following four relational schemas. For each schema, all non-trivial functional dependencies are listed. The underlined attributes are the respective primary keys. Schema I: Registration (rollno, courses) Field โ€˜coursesโ€™ is a set-valued attribute containing the set of courses a student has registered for. Non-trivial functional dependency: rollno ยฎ courses Schema II: Registration (rollno,

Consider the following four relational schemas. For each schema, all non-trivial functional dependencies are listed Read More ยป

Consider the relations r(A, B) and s(B, C), where s.B is a primary key and r.B is a foreign key referencing s.B

Consider the relations r(A, B) and s(B, C), where s.B is a primary key and r.B is a foreign key referencing s.B

Q. Consider the relations r(A, B) and s(B, C), where s.B is a primary key and r.B is a foreign key referencing s.B. Consider the query Q:ย ย  ๐‘Ÿ โ‹ˆ (๐œŽ๐ต<5(๐‘ )) Let LOJ denote the natural left outer-join operation. Assume that r and s contain no null values. Which one of the following queries is NOT

Consider the relations r(A, B) and s(B, C), where s.B is a primary key and r.B is a foreign key referencing s.B Read More ยป

Consider the following solution to the producer-consumer synchronization problem. The shared buffer size is ๐‘

Consider the following solution to the producer-consumer synchronization problem

Q. Consider the following solution to the producer-consumer synchronization problem. The shared buffer size is ๐‘. Three semaphores empty, full and mutex are defined with respective initial values of 0, ๐‘ and 1. Semaphore empty denotes the number of available slots in the buffer, for the consumer to read from. Semaphore full denotes the number

Consider the following solution to the producer-consumer synchronization problem Read More ยป

In a system, there are three types of resources: E, F and G. Four processes P0, P1, P2 and P3 execute concurrently

In a system, there are three types of resources: E, F and G. Four processes P0, P1, P2 and P3 execute concurrently

Q. In a system, there are three types of resources: E, F and G. Four processes P0, P1, P2 and P3 execute concurrently. At the outset, the processes have declared their maximum resource requirements using a matrix named Max as given below. For example, Max[P2,F] is the maximum number of instances of F that P2

In a system, there are three types of resources: E, F and G. Four processes P0, P1, P2 and P3 execute concurrently Read More ยป

Consider the following parse tree for the expression a#b$c$d#e#f, involving two binary operators $ and #

Consider the following parse tree for the expression a#b$c$d#e#f, involving two binary operators $ and #

Q. Consider the following parse tree for the expression a#b$c$d#e#f, involving two binary operators $ and #. Which one of the following is correct for the given parse tree? A. $ has higher precedence and is left associative; # is right associative B. # has higher precedence and is left associative; $ is right associative

Consider the following parse tree for the expression a#b$c$d#e#f, involving two binary operators $ and # Read More ยป

A lexical analyzer uses the following patterns to recognize three tokens T1, T2, and T3 over the alphabet {a,b,c}.

A lexical analyzer uses the following patterns to recognize three tokens T1, T2, and T3 over the alphabet {a,b,c}.

Q. A lexical analyzer uses the following patterns to recognize three tokens T1, T2, and T3 over the alphabet {a,b,c}. ๐‘‡1:   ๐‘Ž? (๐‘|๐‘)โˆ—๐‘Ž ๐‘‡2:   ๐‘? (๐‘Ž|๐‘)โˆ—๐‘ ๐‘‡3:ย  ย ๐‘? (๐‘|๐‘Ž)โˆ—๐‘ Note that โ€˜x?โ€™ means 0 or 1 occurrence of the symbol x. Note also that the analyzer outputs the token that matches the longest possible prefix.

A lexical analyzer uses the following patterns to recognize three tokens T1, T2, and T3 over the alphabet {a,b,c}. Read More ยป

Consider the following problems. ๐ฟ(๐บ) denotes the language generated by a grammar ๐บ

Consider the following problems. ๐ฟ(๐บ) denotes the language generated by a grammar ๐บ

Q. Consider the following problems. ๐ฟ(๐บ) denotes the language generated by a grammar ๐บ. ๐ฟ(๐‘€) denotes the language accepted by a machine ๐‘€. I. For an unrestricted grammar ๐บ and a string ๐‘ค, whether ๐‘ค โˆˆ ๐ฟ(๐บ) II. Given a Turing machine M, whether L(M) is regular III. Given two grammars ๐บ1 and ๐บ2, whether

Consider the following problems. ๐ฟ(๐บ) denotes the language generated by a grammar ๐บ Read More ยป

Scroll to Top