Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Recent activity by aayushranjan01
1
answer
1
cs set1 questions
1. best cpu scheduling algo - srtf 2. no.of jk flipflops for a counter - 3 3. min no.of temporary registers ? 4. worst case time complexities of mergesort, insertion, quick 5. which does not convert one form of address to another - dhcp 6. 2's complement of ... from DBMS - UVWX or something right ? ok 51.Max value of Min Weight Spanning Tree of 6 distinct edges 1,2,3,4,5,6
1. best cpu scheduling algo - srtf2. no.of jk flipflops for a counter - 33. min no.of temporary registers ?4. worst case time complexities of mergesort, insertion, quick5...
1.2k
views
commented
Feb 10, 2016
3
answers
2
GATE CSE 2006 | Question: 55
Consider these two functions and two statements S1 and S2 about them. int work1(int *a, int i, int j) { int x = a[i+2]; a[j] = x+1; return a[i+2] - 3; } int work2(int *a, int i, int j) { int t1 = i+2; int t2 = a[t1]; a[j] = ... CPU time) of work2 compared to work1 S1 is false and S2 is false S1 is false and S2 is true S1 is true and S2 is false S1 is true and S2 is true
Consider these two functions and two statements S1 and S2 about them. int work1(int *a, int i, int j) { int x = a[i+2]; a[j] = x+1; return a[i+2] - 3; }int work2(int *a, ...
10.5k
views
commented
Dec 13, 2015
Compiler Design
gatecse-2006
compiler-design
code-transformation
normal
code-optimization
+
–
14
answers
3
GATE CSE 2012 | Question: 39
A list of $n$ strings, each of length $n$, is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is $O (n \log n) $ $ O(n^{2} \log n) $ $ O(n^{2} + \log n) $ $ O(n^{2}) $
A list of $n$ strings, each of length $n$, is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is$O (n \log...
29.0k
views
commented
Nov 5, 2015
Algorithms
gatecse-2012
algorithms
sorting
normal
+
–
4
answers
4
GATE CSE 2008 | Question: 49
Given below are two finite state automata ( $\rightarrow$ indicates the start state and $F$ ...
Given below are two finite state automata ( $\rightarrow$ indicates the start state and $F$ indicates a final state)$$\overset{Y}{\begin{array}{|l|l|l|}\hline \text{} & ...
14.7k
views
answered
Nov 4, 2015
Theory of Computation
gatecse-2008
normal
theory-of-computation
finite-automata
+
–
2
answers
5
How to find Transitive Closure of any Relation ?
I want to know the best way through which we can find transitive closures of any relation ? Please let me know.
I want to know the best way through which we can find transitive closures of any relation ? Please let me know.
2.1k
views
commented
May 21, 2015
1
answer
6
DFA for 00+11+(01+10)(00+11)*(01+10)
Below DFA is accepting above regular language but it is accepting null also....can anyone please give correct DFA
Below DFA is accepting above regular language but it is accepting null also....can anyone please give correct DFA
8.2k
views
answered
May 21, 2015
2
answers
7
What is the time complexity ?
time complexity question Sum=0 for(i=1; i<=n;i++) { for(j=1;j<=i;j++) { if(j%i==0) { for(k=1;k<=n;k++) { sum=sum+k; } } } }
time complexity questionSum=0 for(i=1; i<=n;i++) { for(j=1;j<=i;j++) { if(j%i==0) { for(k=1;k<=n;k++) { sum=sum+k; } } } }
770
views
commented
May 15, 2015
Algorithms
algorithms
time-complexity
+
–
2
answers
8
What is the correct representation of the stmt in first-order predicate calculus ?
Given the statement : "Men who are intelligent have knowledge." What is the correct representation of the statement in first-order predicate calculus? $\forall x$ man $(x) \wedge$ intelligent $(x) \rightarrow \exists y$ ... $(x) \wedge$ knowledge $(y) \rightarrow$ have knowledge $(x, y)$ None of the above.
Given the statement : "Men who are intelligent have knowledge."What is the correct representation of the statement in first-order predicate calculus?$\forall x$ man $(x) ...
1.7k
views
commented
May 15, 2015
Mathematical Logic
mathematical-logic
first-order-logic
+
–
2
answers
9
c programming
What will be output of following program? #include<stdio.h> int main(){ int a = 320; char *ptr; ptr =( char *)&a; printf("%d ",*ptr); return 0; } (A) 2 (B) 320 (C) 64 (D) Compilation error (E) None of above
What will be output of following program?#include<stdio.h>int main(){ int a = 320; char *ptr; ptr =( char *)&a; printf("%d ",*ptr); return 0;}(A) 2(B) 320(C) 64...
2.1k
views
commented
May 5, 2015
1
answer
10
pointer arithmatic
#include <stdio.h> int main(void) { static char s[25]="TheCocaine Man"; int i=0; char ch; ch=s[++i]; printf("%c",ch); ch=s[i++]; printf("%c \n",ch); ch=i++[s]; printf("%c\n",ch); ch=++i[s]; printf("%c ",ch); return 0; } how last ch print D?is ++i[s] incremet index or value?
#include <stdio.h>int main(void) { static char s[25]="TheCocaine Man"; int i=0; char ch; ch=s[++i]; printf("%c",ch); ch=s[i++]; printf("%c \n"...
898
views
commented
May 1, 2015
4
answers
11
Minimum No of states in Finite Automata
Minimum state Finite Automata recognizing the language corresponding to following Regular Expression (0*10+1*0)(01)* a)3 b)4 c)2 d)5 Also please show Finite Automata for it.
Minimum state Finite Automata recognizing the language corresponding to following Regular Expression(0*10+1*0)(01)* a)3 b)4 c)2 d)5Also please show Finite Automata for it...
3.0k
views
commented
Apr 30, 2015
3
answers
12
NFA for the language, L= (ab, ba)* would have how many states?
8.4k
views
commented
Apr 29, 2015
Theory of Computation
theory-of-computation
finite-automata
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register