Consider a hash table of size seven with starting index zero and a hash function $(6x + 3) \mod 4$. Assuming the hash table is initially empty. Which of the following is the content of the table when the sequence 1, 3, 8, 10, 5 is inserted into the table using closed hashing? Here “_______” denotes an empty location in the table.
In the given automata, transitions are present in both directions among the states. Therefore, reversing the automata does not change the accepted language.
In the standard Ethernet with transmission rate of 10 Mbps, assume that the length of the medium is 2500 m and size of a frame is 512 bytes. The propagation speed of a signal in a cable is normally $2 \times 10^8$ m/s. The transmission delay and propagation delay are
At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and x V operations were completed on this semaphore. If the final value of semaphore is 5, x will be
A processor chip is used for application in which 30% of execution time is spent on floating point addition. For the new model of the processor, the design team has come up with redesign the floating point adder to make it twice as fast. What will be possible maximum speed up by this redesign?
A three dimensional array in C++ is declared as int A [a] [b] [c]. Consider that array elements are stored in row major order and indexing begin from 0. Here the address of an item at the location A [r] [s] [t] computed in terms of word length w of an integer is
A TCP server application is programmed to listen on port P on host S. A TCP client is connected to the TCP server over the network. Consider that while TCP connection is active the server is crashed and rebooted. Assume that the client does not use TCP keepalive timer. Which of the following behaviour/s is/are possible?
Statement I: The TCP application server on S can listen on P after reboot.
Statement II: If client sends a packet after the server reboot, it will receive the RST segment.
In the light of the above statements, choose the correct answer from the options given below.
After reboot, the TCP server can again start listening on port P.
The old TCP connection state is lost after reboot. So, if the client sends a packet for the old connection, the server does not recognize it and sends an RST segment.
Consider a popular sports news site. At a given moment, 20,000 concurrent users submit a request, a transaction T, once every 2 minutes on average. Each transaction requires the webapp to download a new article that on average has 3k bytes in length. What is the throughput?
A B-tree used as an index for a large database table has four levels including the root node. If a new key is inserted in this index, then maximum number of nodes that could be newly created in the process is
Suppose a circular queue of capacity $(n - 1)$ elements is implemented with an array of $n$ elements. Assume that the insertion and deletion operations are carried out using REAR and FRONT as array index variable respectively. Initially, REAR = FRONT = 0. The conditions to detect queue empty and queue full are
tatement I is correct because $f(n)=O(g(n))$ directly implies $g(n)=\Omega(f(n))$.
Statement II is not always correct, because taking logarithm on both sides of Big-O relation is not valid in all cases unless extra conditions are satisfied.
Consider the rectangle with vertices $(0,0)$, $(0,2)$, $(3,0)$, $(3,2)$. There is scaling of 2 towards x-axis and 3 towards y-axis. The new coordinates of the rectangle are
There are M points on one straight line AB and n points on another straight line AC none of them being A. How many triangles can be formed with these points as vertices?
Consider two hosts P and Q that are connected through a router R. The maximum transfer unit (MTU) value of the link between P and R is 1500 bytes and between R and Q is 820 bytes. A TCP segment of size 1400 bytes is transferred from P to Q through R with IP identification value of 0x1234. Assume that IP header size is 20 bytes. Further the packet is allowed to be fragmented, that is Don't fragment (DF) flag in the IP Header is not set by P. Which of the following statement/s is/are true?
A. Two fragments are created at R and IP datagram size carrying the second fragment is 620 bytes
B. If the second fragment is lost, then R resends the fragment with IP identification value of 0x1234
C. If the second fragment lost, then P requires to resend the entire TCP segment.
D. TCP destination port can be determined by analyzing the second fragment only.
Choose the correct answer from the options given below:
Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R.
Assertion A: The AVL trees are more balanced as compared to Red Black trees, but they may cause more rotations during insertion and deletion.
Reason R: A Red Black tree with n nodes has height that is greater than $2\log_2(n+1)$ and the AVL tree with n nodes has height less than $\log_\phi(\sqrt{5}(n+2))-2$ where $\phi$ is golden ratio.
In the light of the above statements, choose the correct answer from the options given below.
256 Mb DRAM is organized as a 32M × 8 memory externally and as a 16K × 16K square array internally. Each row must be refreshed at least once every 50 millisecond to forestall loss of data; refreshing one row takes 100 nanoseconds. What fraction of the total memory bandwidth is lost to refresh cycles?
In a multi user operating system, 20 requests are made to use a particular resource per hour, on an average. The probability that no request is made in 45 minutes is
Consider universe positive integer $X = {1 \le n \le 8}$, proposition P = "n is an even integers", Q = "$(3 \le n \le 7) \land (n \ne 6)$". Then truth set of $P \leftrightarrow Q$ is
An observational technique that can be used to understand operational process and help to derive requirement for software to support operational process is known as
Consider the following program fragment that deals with a table T with 17 rows and 1024 columns, computing an average for each column and printing it to screen, where i is row index and j is column index:
for j = [0.....1023] {
temp = 0;
for i = [0.....16]:
temp = temp + T[i][j];
print(temp/17.0);
}
T[i][j] and temp are 32 bit floating point values and memory is word addressable. The temporary variable temp is kept in a processor register so access to temp does not involve a memory reference. The main memory is paged and holds 16 pages of size 1024 words, the page replacement policy is least recently used. If T is stored in the virtual address space in row major format.
Consider the following program fragment that deals with a table T with 17 rows and 1024 columns, computing an average for each column and printing it to screen, where i is row index and j is column index:
for j = [0.....1023] {
temp = 0;
for i = [0.....16]:
temp = temp + T[i][j];
print(temp/17.0);
}
T[i][j] and temp are 32 bit floating point values and memory is word addressable. The temporary variable temp is kept in a processor register so access to temp does not involve a memory reference. The main memory is paged and holds 16 pages of size 1024 words, the page replacement policy is least recently used.
Consider that T is stored in column major format, how many page faults will be encountered?
Consider the following program fragment that deals with a table T with 17 rows and 1024 columns, computing an average for each column and printing it to screen, where i is row index and j is column index:
for j = [0.....1023] {
temp = 0;
for i = [0....16]:
temp = temp + T[i][j];
print(temp/17.0);
}
T[i][j] and temp are 32 bit floating point values and memory is word addressable. The temporary variable temp is kept in a processor register so access to temp does not involve a memory reference. The main memory is paged and holds 16 pages of size 1024 words, the page replacement policy is "least recently used", if T is stored in the virtual address space in row major format.
Consider the following program fragment that deals with a table T with 17 rows and 1024 columns, computing an average for each column and printing it to screen, where i is row index and j is column index:
for j = [0.....1023] {
temp = 0;
for i = [0.....16]:
temp = temp + T[i][j];
print(temp/17.0);
}
T[i][j] and temp are 32 bit floating point values and memory is word addressable. The temporary variable temp is kept in a processor register so access to temp does not involve a memory reference. The main memory is paged and holds 16 pages of size 1024 words, the page replacement policy is "least recently used", if T is stored in the virtual address space in row major format.
What is fault ratio of row major to column major arrangements?
Dendral is an expert system. It was a groundbreaking AI project developed in the
1960s and 1970s aimed at automatically deducing the structure of organic molecules
based on their mass spectrometry data. So, assertion A is correct.
The second statement, however, is incorrect. The rationality of an agent in AI is very
much related to its reaction to its environment. Rational agents should be able to
make decisions based on their perceptions of the environment in order to achieve the
best possible outcome or, in the case of uncertainty, the best expected outcome.
Therefore, reason R is false
○ This represents the symmetric difference between sets A and B. It includes all those elements which are in A and B but not in their intersection. Mathematically, it can be represented as (A - B) ∪ (B - A). So, A matches with III.
• A - (B ∪ C):
○ This represents all elements in A not in (B or C). Another way to represent it would be (A - B) ∩ (A - C) because it is the intersection of elements that are only in A and not in B or C. So, B matches with II.
• A - (B ∩ C):
○ This represents all elements in A that are not common to both B and C, or equivalently, the elements just in A and not in the intersection of B and C. So, C matches with I.
• A ∩ (B - C):
○ This represents the intersection of A and the elements in B not in C. It is equivalent to (A ∩ B) - (A ∩ C) because you're taking all elements in both A and B, then removing any elements that are also in C. So, D matches with IV.
Therefore, the correct option is A - III, B - II, C - I, D - IV. So, the correct option is 1).
In a genetic algorithm, solution representation refers to how the potential solutions, or individuals in the population, are encoded. The given options can be categorized as follows:
• Binary valued: Represents solutions using binary encoding, where each gene is typically represented as either 0 or 1.
• Real valued: Represents solutions using real numbers, allowing for a more continuous representation.
• Permutation: Represents solutions as permutations of elements, where the order of elements matters.
• Combinations: This is not a standard representation in genetic algorithms. While permutations represent ordered arrangements, combinations represent unordered selections of elements. Genetic algorithms typically use representations that capture the structure and relationships among elements, and combinations may not be suitable for many optimization problems.
The FFT can be executed in parallel, which reduces the time complexity from O(n log n) to O(log n) under ideal conditions, as the operations required to calculate the FFT can be effectively divided among multiple processors. Thus, it corresponds to III. Θ(lg n).
B – Iterative Fast Fourier Transform (FFT):
The FFT, even when implemented iteratively, has a time complexity of O(n log n) because we divide the problem into smaller chunks recursively, and for each level of division, we do a constant amount of work. Hence it matches with IV. Θ(n lg n).
C – Evaluation of polynomial at n points by Horner method:
If evaluated using the Horner method, a polynomial can be evaluated in O(n) operations. However, if we are evaluating the polynomial at n points, and the polynomial itself has degree n, the total complexity becomes O(n²). Therefore, it corresponds to I. Θ(n²).
D – Product of two polynomials that are represented in point value form:
If the polynomials are represented in point-value form, their product can be computed pretty efficiently in O(n) time complexity. This is due to the fact that to compute the product polynomial at a point, you simply multiply the evaluations of the input polynomials at that point.
Therefore, the correct option is: Option 3: $e^{-\frac{5}{29}}$
The reliability of a system in the context of reliability engineering is often modeled using the exponential distribution. The exponential reliability function is given by:
$R(t) = e^{-\lambda t}$
where:
• $R(t)$ is the reliability at time $t$,
• $\lambda$ is the failure rate (reciprocal of the mean time between failures).
• In this case, you are given the time between failures for the software:
○ Time between failures = $[6, 4, 8, 5, 6]$
• To find the failure rate $\lambda$, you can use the formula:
○ $\lambda = \frac{1}{\text{Mean time between failures}}$
• Mean time between failures (MTBF) is calculated as the average of the time between failures:
Let R = {x : x ∈ N, x is multiple of 3 and x ≤ 100} and S = {x : x ∈ N, x is multiple of 5 and x < 100}. What is the number of elements in (R ∩ S) × (S ∩ R)?
Solution:
$R=\{x:x\in N,\ x\text{ is multiple of }3,\ x\le 100\}$
$S=\{x:x\in N,\ x\text{ is multiple of }5,\ x<100\}$
$R\cap S$ contains numbers which are multiples of both $3$ and $5$.
So, $R\cap S$ contains multiples of $15$.
Multiples of $15$ less than $100$ are:
$15,30,45,60,75,90$
So,
$|R\cap S|=6$
Also,
$S\cap R=R\cap S$
Therefore,
$|(R\cap S)\times(S\cap R)|=6\times6=36$
So, the correct answer is $36$.
Consider a disk system with cylinders. The request to access the cylinders occurs in the following sequence:
4, 34, 10, 7, 19, 73, 2, 15, 6, 20
Assuming that the head is currently at cylinder 50, what is the time taken to satisfy all requests if it takes 1 ms to move from one cylinder to adjacent one and shortest seek time first policy is used?
A. C-Fuzzy means clustering is a supervised method of learning
B. PCA is used for dimension reduction
C. Apriori is not a supervised technique
D. When a machine learning model becomes so specially tuned to its exact input data that it fails to generalize to other similar data it is called underfitting
Choose the correct answer from the options given below:
Consider the following table of arrival time and burst time for three processes P0, P1, P2:
Process arrival time Burst time
Process
arrival time
Burst time
P0
0 ms
7
P1
1 ms
3
P2
2ms
7
The pre-emptive shortest job first scheduling algorithm is used. Scheduling is carried out only at arrival or completion of a process. What is the average waiting time for the three processes?