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
Questions by sripo
0
votes
1
answer
41
How to understand difference between n/2 and log(n) when comes to operations on a binary tree
For a heap containing n elements,smallest element can be found in n/2 operations.I always get confused and think as logn operations.Please help me differentiating between these two times.
For a heap containing n elements,smallest element can be found in n/2 operations.I always get confused and think as logn operations.Please help me differentiating between...
681
views
asked
Nov 8, 2018
DS
data-structures
binary-tree
binary-heap
+
–
0
votes
0
answers
42
RE for given FA
The correct regular expression for the below mentioned Finite Automata Do we have to have ca* as C is dead state,does dead state be a part of regular expression? The expression I am gettting is c*a(d*+ba*) as C state is dead state hence no need to consider it.Please Correct me.
The correct regular expression for the below mentioned Finite Automata Do we have to have ca* as C is dead state,does dead state be a part of regular expression?The expre...
538
views
asked
Nov 6, 2018
Theory of Computation
theory-of-computation
finite-automata
regular-expression
regular-language
+
–
1
votes
0
answers
43
Time Complexity for an infinite loop
What is the time complexity for infinite loops Question 1 what is T(n) for this case While(1) { a=a+b; } Question 2 for this case if(1) { for i to n a=a+b } else { for i to n for j to n a=a+b } Edit 2: Compiled the code ... ); return 0; } output I get is 8 6 which means the else case is never executed hence in worst case do we have to consider the else part.
What is the time complexity for infinite loopsQuestion 1 what is T(n) for this caseWhile(1){a=a+b;} Question 2 for this caseif(1){for i to na=a+b}else{for i to nfor j to...
2.0k
views
asked
Nov 6, 2018
Algorithms
algorithms
time-complexity
asymptotic-notation
space-complexity
+
–
0
votes
1
answer
44
Are these two languages equal?
L1=ab* L2=a(aa)*b(bb)* Are the languages equal if not what relation do they satisfy?
L1=ab*L2=a(aa)*b(bb)*Are the languages equal if not what relation do they satisfy?
582
views
asked
Nov 6, 2018
Theory of Computation
theory-of-computation
regular-language
regular-grammar
+
–
1
votes
1
answer
45
What is the minimal DFA for this language (11+111)*, for Σ={0,1}.
What is the number of states for the above DFA,please draw NFA,DFA and minimised DFA for the same.Also won't the language not accept epsilon?
What is the number of states for the above DFA,please draw NFA,DFA and minimised DFA for the same.Also won't the language not accept epsilon?
3.1k
views
asked
Nov 6, 2018
Theory of Computation
theory-of-computation
minimal-state-automata
regular-expression
finite-automata
+
–
0
votes
1
answer
46
Number of sub-strings for a given sub string having repeated symbols
Lets for a a given string aabbbccdd I need to find the number of substrings possible how to go about it? Does the n(n+1)/2 formula work here also?
Lets for a a given string aabbbccddI need to find the number of substrings possible how to go about it? Does the n(n+1)/2 formula work here also?
2.7k
views
asked
Nov 5, 2018
Theory of Computation
combinatory
counting
theory-of-computation
algorithms
finite-automata
+
–
1
votes
1
answer
47
Runtime Environment Heap Allocation
Does Heap Allocation support both recursion and dynamic memory allocation? Because,a stack can be implemented using dynamic memory allocation.Please correct me. Test Series answer shows only dynamic memory allocation
Does Heap Allocation support both recursion and dynamic memory allocation? Because,a stack can be implemented using dynamic memory allocation.Please correct me.Test Serie...
2.2k
views
asked
Nov 3, 2018
Compiler Design
compiler-design
runtime-environment
activation-record
descriptive
+
–
1
votes
1
answer
48
Are right recursive grammars ambiguous?
Are right recursive grammars ambiguous?
Are right recursive grammars ambiguous?
936
views
asked
Nov 2, 2018
Compiler Design
compiler-design
parsing
+
–
0
votes
2
answers
49
Is the given grammar CLR(1) or not please explain me if there is a shift reduce conflict
S→(X S→E] S→E) X→E) X→E] E→ϵ Is this grammar CLR(1)? The answer says it is but I find a shift reduce conflict for E-> epsilon with lookup symbols ),]
S→(XS→E]S→E)X→E)X→E]E→ϵIs this grammar CLR(1)? The answer says it is but I find a shift reduce conflict for E- epsilon with lookup symbols ),]
2.4k
views
asked
Nov 1, 2018
Compiler Design
compiler-design
parsing
lr-parser
descriptive
+
–
0
votes
1
answer
50
Is there shift reduce conflict in this production?
For given production for a LR(1) grammar B->b.C ,$|c here C is non terminal C->c. ,$|c and here c is terminal. $|c are lookup symbols Will there be a shift reduce conflict if a non terminal is visited.Please explain how shift reduce conflict works
For given production for a LR(1) grammarB->b.C ,$|c here C is non terminalC->c. ,$|c and here c is terminal. $|c are lookup symbolsWill there be a shift reduce conflict...
543
views
asked
Nov 1, 2018
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
votes
0
answers
51
Available programs in TIFR for CS branch
I have done my B.E I just want to know if TIFR has a MSc or MTech program or they have direct PhD Programs.?
I have done my B.E I just want to know if TIFR has a MSc or MTech program or they have direct PhD Programs.?
979
views
asked
Oct 28, 2018
TIFR
usertifr
usermod
admissions
non-gate
cutoffs
+
–
0
votes
0
answers
52
Which mode to take preemptive or non preemptive
If the mode for scheduling is not mentioned whether to do preemptive or non preemptive which one should we take when solving Gate questions?
If the mode for scheduling is not mentioned whether to do preemptive or non preemptive which one should we take when solving Gate questions?
305
views
asked
Oct 24, 2018
Operating System
process-scheduling
operating-system
+
–
0
votes
0
answers
53
Backtracking part of Algo
Is Backtracking Branch and Bound part of Gate syllabus?
Is Backtracking Branch and Bound part of Gate syllabus?
879
views
asked
Oct 22, 2018
Algorithms
algorithms
dynamic-programming
syllabus
usergate2019
+
–
1
votes
0
answers
54
Dfa for no states
What is the difference between a dfa accepting epsilon moves and dfa accepting nothing? I have a dfa which has no states what will be the dfa this is regarding,this question https://gateoverflow.in/8362/gate2015-1-52
What is the difference between a dfa accepting epsilon moves and dfa accepting nothing?I have a dfa which has no states what will be the dfa this is regarding,this questi...
1.4k
views
asked
Oct 17, 2018
Theory of Computation
minimal-state-automata
theory-of-computation
finite-automata
number-of-states
theory-of-computation-
+
–
0
votes
1
answer
55
Syllabus for Compiler Design
Are the following keywords in the syllabus for gate 2019 in Compiler Design,cause there has been a change in the syllabus after 2016 or something Abstract Syntax Tree Assembler Code Optimization Compilation Phases Expression ... Live Variables Macros Parameter Passing Register Allocation Target Code Generation Variable Scope Viable Prefix Static Single Assignment
Are the following keywords in the syllabus for gate 2019 in Compiler Design,cause there has been a change in the syllabus after 2016 or something Abstract Syntax TreeAsse...
1.2k
views
asked
Oct 16, 2018
Compiler Design
compiler-design
syllabus
+
–
0
votes
0
answers
56
Construct DFA for given Language
For the language which ends with 01 or 11 or 10 or 11 for $\sum$={0,1}* .Is dfa possible for this language?
For the language which ends with 01 or 11 or 10 or 11 for $\sum$={0,1}* .Is dfa possible for this language?
416
views
asked
Oct 16, 2018
Theory of Computation
minimal-state-automata
theory-of-computation
finite-automata
non-determinism
+
–
0
votes
0
answers
57
To test if the given language is regular.
There are two sources on YouTube giving different answers for the same expression.I am confused. Is the given expressions wxwr | w,x $\in$(0,1)+ I think this is regular because this can be reduced to ending with 00 or 01 or 10 or 11 wwrx | w,x $\in$(0,1)+ I think this is regular because it can reduced to starting with 0 or 1
There are two sources on YouTube giving different answers for the same expression.I am confused.Is the given expressionswxwr | w,x $\in$(0,1)+ I think this is regular b...
737
views
asked
Oct 16, 2018
Theory of Computation
regular-expression
regular-language
finite-automata
theory-of-computation
gate2019-preparation
+
–
0
votes
0
answers
58
Regarding My Gate preparation and how to get into top 100 rank from this situation
I am sitting at home and preparing.Started in month of September.I have been taken test series of X popular institute.I have answered 2 part subject tests of toc and scored around 41% in the first one and 30% ... years Gate with no preparation at all.I am general.Please suggest me strategy to get the best from here.
I am sitting at home and preparing.Started in month of September.I have been taken test series of X popular institute.I have answered 2 part subject tests of toc and scor...
847
views
asked
Oct 16, 2018
GATE
gate-preparation
iisc
test-series
iit
+
–
1
votes
0
answers
59
Can a^p where p is a prime number be an NFA?
Let l={ (ap )* | p is a prime number} and $\sum$={a}.The minimum number of states in NFA which can accept this language. This is a question from a test series,I just want to know if the question is valid as I feel raised to prime number will not be regular,correct me if I am wrong.Not asking for solution to the question but if the question is valid.
Let l={ (ap )* | p is a prime number} and $\sum$={a}.The minimum number of states in NFA which can accept this language.This is a question from a test series,I just want ...
2.7k
views
asked
Oct 16, 2018
Theory of Computation
theory-of-computation
finite-automata
regular-language
regular-expression
+
–
0
votes
0
answers
60
Concatenation of DCFLs
L1={an bn | n>=0} L2={bn cn | n>=0} What is L1.L2 ? Is it an b2n cn ?
L1={an bn | n>=0}L2={bn cn | n>=0}What is L1.L2 ?Is it an b2n cn ?
606
views
asked
Oct 13, 2018
Theory of Computation
theory-of-computation
dcfl
context-free-language
identify-class-language
+
–
Page:
« prev
1
2
3
4
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register