# Recent activity by joshi_nitish

1
Let the function $f(x)$ be defined as $f(x)=\mid x-1 \mid + \mid x-2 \:\mid$. Then which of the following statements is true? $f(x)$ is differentiable at $x=1$ $f(x)$ is differentiable at $x=2$ $f(x)$ is differentiable at $x=1$ but not at $x=2$ none of the above
2
How is g(x) is many one ?
Given a language $L$, define $L^i$ as follows:$L^0 = \{ \varepsilon \}$$L^i = L^{i-1} \bullet L \text{ for all } I >0$The order of a language $L$ is defined as the smallest $k$ such that $L^k = L^{k+1}$. Consider the language $L_1$ (over alphabet O) accepted by the following automaton. The order of $L_1$ is ____
$f\left ( x \right )=$\int_{-2}^{2}x^{-\frac{2}{7}}dx$Is this function f(x) is continuous, bounded and differentiable? (In exam hall is it possible to draw the graph for this function f(x), or some other procedure to follow to ans this) 0 answers 7 In this question the length of a given string is given as 12 in the solution but it should be 11 as strlen function exclude null value and give the length.Please give the correct answer to this question? 2 answers 8 Let L be the language accepted by the automaton$L = ${$(a^{n})b:n≥0$}. Find a dfa that accepts the language$L^{2} - L$. 0 answers 9 What is the output.My doubt is : What is meant by call by copy restore ? is it same as call by reference or there is some difference ? 1 answer 10 What is the number of binary trees with 4 nodes which when traversed in pre-order gives the sequence 1,2,3,4? 2 answers 11 Draw the DFA for (a*b +b*a) 1 answer 12 This matrix is singular with rank one. Find three$λ$’s and three eigenvectors.$\begin{bmatrix}1\\2 \\1 \end{bmatrix}\begin{bmatrix}2&1 &2 \end{bmatrix}$=$\begin{bmatrix}2 & 1 &2\\4 & 2 & 4\\2 & 1 &2\end{bmatrix}$1 answer 13 Give a regular expression for L =$\left \{a^{n}b^{m};n\geq 1,m \geq 1,nm \geq3 \right \}$1 answer 14 Give a regular expression for$L^{R}$L =$(a+bc)^{*}(c+\phi)$1 answer 15 Please write grammar for it and explain with example.$L=\{w \: : n_a(w) > n_b(w) \}$1 answer 16 In the following figure, side QS is congruent to side SP, RPQ=50o and PSR=600 Then among P,Q,R,S , which two angles are equal? 0 answers 17$\sum = \left \{ a,b \right \}$Is it possible to create DFA for given language with less than 10 states? L =$\left \{ w: \left | w \right | mod 3 = 0, \left |w \right | \neq 6 \right \}$1 answer 18 The eigen value of the following matrix is$\begin{bmatrix}1&1&1\\1&1&1\\1&1&1\end{bmatrix}1, 1, 11, 0, 03, 0, 00, 0, 0$1 answer 19 Given$L_1=\{a^nb^nc^n | n\geq 0\}L_2 =\{a^nb^mc^k|k=n+m \text{ and }n,m\geq 0 \}L_3 =\{a^nb^mc^k|n,m,k \geq 0 \}$Assume$L_4=L_1 (L_3)^*L_5=(L_1\cap L_2)\cup L_3 $Which of the following statement is correct? A. L4 is regular and L5 is not regular B. L4 is CFL and L5 is not CFL C. Both L4, L5 are regular D. Both L4, L5 are CFL but not regular 1 answer 20 #include<stdio.h> int main() { printf("%d\n",1==5==5); printf("%d\n",1==5!=5); printf("%d\n",1!=5!=5); printf("%d\n",1!=5==5); return 0; } What is the output? 6 answers 21 Two people,$P$and$Q$, decide to independently roll two identical dice, each with$6$faces, numbered$1$to$6$. The person with the lower number wins. In case of a tie, they roll the dice repeatedly until there is no tie. Define a trial as a ... equi-probable and that all trials are independent. The probability (rounded to$3$decimal places) that one of them wins on the third trial is ____ 0 answers 22 1.$L' = \sum^*−L$for any language$L$2.$L=\{a^ma^nb^n\mid m>0 , n>0 \}$is DCFL 3. If a language is closed under complement,difference then it is closed under intersection since$L1 - L2' = L1 \cap L2$4 answers 23 How many different binary search trees can be constructed using six distinct keys? 256 128 132 264 1 answer 24 Let$f$be a real-valued function of a real variable defined as$f(x) = x^{2}$for$x\geq0$and$f(x) = -x^{2}$for$x < 0$.Which one of the following statements is true?$f(x) \text{is discontinuous at x = 0}$...$f(x) \text{is differentiable but its first derivative is not differentiable at x = 0} $1 answer 25 Functions$F(a, b)$and$G(a, b)$are defined as follows:$F(a, b) = (a − b)^2$and$G(a, b) = \mid a − b\mid$, where$\mid x \mid$represents the absolute value of$x$. What would be the value of$G(F(1, 3), G(1, 3))$?$24636$2 answers 26 What is the type of the language$L$, where$L=\{a^n b^n \mid 0 < n < 327 \text{-th prime number} \}$0 answers 27 7 answers 28 Suppose you are given an implementation of a queue of integers. The operations that can be performed on the queue are:$isEmpty (Q)$- returns true if the queue is empty, false otherwise.$delete (Q)$- deletes the element at the front of the queue and returns its value ... at the front of the queue$Q$and inserts it at the rear keeping the other elements in the same order Empties the queue$Q$1 answer 29 Please help in creating the DFA for (na (w)-nb (w))mod 3>0 0 answers 30 Determine the number of vectors$\{x_{1}...x_{n}\}$, such that each$x_{i}$is either$0$or$1$and$\displaystyle{\sum_{i=1}^{n}x_{i}\geq k}\$