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 A_i_$_h
1
votes
0
answers
81
hufmann
From huffmann encoding how will we find max and min number of comparisons? what will be the max and min comparisons here
From huffmann encoding how will we find max and min number of comparisons? what will be the max and min comparisons here
209
views
asked
Nov 14, 2017
2
votes
1
answer
82
groowth rate
N log (N2) N1.5 which will grow faster
N log (N2)N1.5which will grow faster
203
views
asked
Nov 14, 2017
Algorithms
algorithms
logarithmic-function
+
–
1
votes
1
answer
83
huffman
Let a language L be defined over a character set L= (a,b,c,d,e) . The probabilities of the characters are in the order 1/2L L=1,5 respectively for each character , the average number of bits per character using huffman coding is ___________(2 decimal places)
Let a language L be defined over a character set L= (a,b,c,d,e) . The probabilities of the characters are in the order 1/2LL=1,5 respectively for each character , the ave...
378
views
asked
Nov 14, 2017
2
votes
1
answer
84
time complexity
Cosider n distinct integers , it is required to determine 3 smallest integers of this array by comparisons.The number of comparisons needed are 1.n+ O(logn) 2.n+O(1) 3.O(n) 4.O(log2n)
Cosider n distinct integers , it is required to determine 3 smallest integers of this array by comparisons.The number of comparisons needed are1.n+ O(logn)2.n+O(1)3.O(n)4...
250
views
asked
Nov 14, 2017
Algorithms
algorithms
time-complexity
sorting
+
–
1
votes
0
answers
85
shortest path
1)In an unweighted undirect connected graph , the shortest path from node S to every other node can be computed with the most efficient algo in time complexity of ____________assuming graph ha n vertices and e edges O(n2) O(n logn) O(n+e) O(n3) 2) Bellman ford shortest path finds whther any negative weighted cycle is reachable from source - true or not
1)In an unweighted undirect connected graph , the shortest path from node S to every other node can be computed with the most efficient algo in time complexity of _______...
482
views
asked
Nov 14, 2017
1
votes
1
answer
86
time complexity
Consider the following functions for large values on n f(n) = n1/root(logn) g(n)=root(logn) h(n)=n1/100 1.g(n)<f(n)<h(n) 2.g(n)<h(n)<f(n)
Consider the following functions for large values on nf(n) = n1/root(logn)g(n)=root(logn)h(n)=n1/1001.g(n)<f(n)<h(n)2.g(n)<h(n)<f(n)
286
views
asked
Nov 14, 2017
Algorithms
algorithms
time-complexity
asymptotic-notation
+
–
1
votes
1
answer
87
max index blocks
Database file consists of 10,000 records with record size 100 bytes , block size 512 bytes.If sparse B+ tree index built over given database file with serach key size 22B, both block and record pointer size 12B each.Max index blocks req if node order P is defined as pointers per node ________________
Database file consists of 10,000 records with record size 100 bytes , block size 512 bytes.If sparse B+ tree index built over given database file with serach key size 22B...
637
views
asked
Nov 13, 2017
Databases
databases
+
–
1
votes
0
answers
88
SQL query
employee(employee name,street,city) works(employee name,company name,salary) company(companyname , city) manages(employee name,manager name) select companyname from company Q where not exist((select city from company where companyname = MOTO except (select city ... inner query actually returns can someone explain and give a small example or a reference link or video link to understand
employee(employee name,street,city)works(employee name,company name,salary)company(companyname , city)manages(employee name,manager name)select companyname from company Q...
317
views
asked
Nov 13, 2017
3
votes
1
answer
89
left recursive- self
Is operator precedence parser the only parser that accepts left recursive grammar?
Is operator precedence parser the only parser that accepts left recursive grammar?
935
views
asked
Nov 13, 2017
Compiler Design
compiler-design
operator-grammar
operator-precedence
descriptive
+
–
1
votes
1
answer
90
manchester
For a fixed baud rate , manchester communication bits twice as fast as NRZ true or false with explanation please :)
For a fixed baud rate , manchester communication bits twice as fast as NRZtrue or falsewith explanation please :)
586
views
asked
Nov 13, 2017
2
votes
1
answer
91
throughput
2 processors M1 and M2 implement the same instruction set.Processor 1 uses 5 staged pipeline and uses clock cycle of 10micro sec.Processor M2 uses a 7 staged pipeline and a clock cycle of 7.5micro sec which has better max throughput
2 processors M1 and M2 implement the same instruction set.Processor 1 uses 5 staged pipeline and uses clock cycle of 10micro sec.Processor M2 uses a 7 staged pipeline and...
1.5k
views
asked
Nov 13, 2017
4
votes
1
answer
92
find output
void foo(int *); main() { int x=30 , *a=&x; foo(a++); } void foo(int *a) { printf("%d", *a); }
void foo(int *); main() { int x=30 , *a=&x; foo(a++); } void foo(int *a) { printf("%d", *a); }
671
views
asked
Nov 11, 2017
Programming in C
programming-in-c
+
–
2
votes
1
answer
93
evaluating postfix expression
when evaluating postfix expression if var a nd b are in stack and b is top of stack now divide(/) symbol comes then it will be a/b or b/a? it should always be (b/a) right? depending on bigger number solutions choose either a/b or b/a according to their wish ......is it like that?
when evaluating postfix expressionif var a nd b are in stack and b is top of stacknow divide(/) symbol comesthen it will be a/b or b/a?it should always be (b/a) right?dep...
826
views
asked
Nov 11, 2017
1
votes
1
answer
94
linked list
a b c d e f / null Assume the above is a singly linked list first is pointing to a what will be the output after this struct node *p; p = first->link->link->link; p->link->link=first->link->link; first->link->link->link=p->link; printf("%c" , first->linl->link->link-link->data);
abcdef / nullAssume the above is a singly linked listfirst is pointing to awhat will be the output after thisstruct node *p;p = first->link->link->link;p->link->link=firs...
2.8k
views
asked
Nov 11, 2017
1
votes
0
answers
95
binary tree
NUmber of ways in which the numbers 10,20,30,40,50,60,70 can be inserted in an empty binary search tree such that the resulting tree has height 6. Height of tree with single node is 0
NUmber of ways in which the numbers 10,20,30,40,50,60,70 can be inserted in an empty binary search tree such that the resulting tree has height 6. Height of tree with sin...
629
views
asked
Nov 11, 2017
1
votes
0
answers
96
bias value
in floating point representation we represent exponent as 2E-bias how is this bias value found? some places we use 8 , 16 , 64 etc
in floating point representation we represent exponent as2E-biashow is this bias value found?some places we use 8 , 16 , 64 etc
590
views
asked
Nov 11, 2017
1
votes
2
answers
97
Derivations
Let G be a CFG , l be the number of left most derivations , r be the number of right most derivations and p be the number of parse trees.Assume l , p , r are computed for a particular string . For a given CFG 'G' and given string 'w'. What is the relation between l , p and r a) l <=p<=r b)l=p=r c)l>=p<=r d)none
Let G be a CFG , l be the number of left most derivations , r be the number of right most derivations and p be the number of parse trees.Assume l , p , r are computed for...
2.0k
views
asked
Nov 10, 2017
Compiler Design
compiler-design
parsing
context-free-grammar
+
–
0
votes
1
answer
98
SR parsing
Which of the following is true at any valid state in shift reduce parsing 1.viable prefixes appear only at the bottom of the stack and not inside 2.viable prefixes appear only at the top of the stack and not inside 3.Stack contains only a set of viable prefixes 4.Stack never contains viable prefixes
Which of the following is true at any valid state in shift reduce parsing1.viable prefixes appear only at the bottom of the stack and not inside2.viable prefixes appear o...
562
views
asked
Nov 10, 2017
Compiler Design
compiler-design
viable-prefix
+
–
1
votes
0
answers
99
LL(1) grammar
1)S -> CC C->cC | d is this grammar LL(1) ? 2) in order to check if a grammar is LL(1) or not...which of these statements are correct 1.if first(S) intersection first(C) != phi 2.if follow(S) intersection follow(C) != phi 3.first(S) intersection follow(S)!= phi 4.first(C) intersection follow(C)!= phi 3)S-> 1AB | epsilon S->1Ac |0C B->0S C->1 is this LL(1)
1)S - CCC->cC | dis this grammar LL(1) ? 2) in order to check if a grammar is LL(1) or not...which of these statements are correct1.if first(S) intersection first(C) != p...
2.1k
views
asked
Nov 10, 2017
2
votes
1
answer
100
max file size
Consider a file system in which the index table in the directory holds 32 pointers(DBA's) if the file size is within 32 blocks then these 32 addresses act as direct DBA's . Otherwise if file size is more than 32 blocks then these addresses act as ... to blocks that hold addresses of data blocks. if DBS is 4KB and DBA is 32 bits then max file size in MB is ___________
Consider a file system in which the index table in the directory holds 32 pointers(DBA's) if the file size is within 32 blocks then these 32 addresses act as direct DBA's...
1.2k
views
asked
Nov 10, 2017
Page:
« prev
1
2
3
4
5
6
7
8
9
10
...
21
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register