Recent questions in Programming and DS

0 votes
1 answer
5262
0 votes
2 answers
5264
0 votes
1 answer
5265
1 votes
2 answers
5266
why in open address hash table with load factor α=n/m<1, the expected number of probes in an unsuccessful search is at most 1/(1-α) assuming uniform hashing ?
0 votes
1 answer
5267
why in a hash table in which collisions are resolved by a chaining , a successful search takes average- case time ⊖(1+load factor) ,under the assumption of simple unifo...
0 votes
2 answers
5268
what is the output of pro..??#ifndef include<stdio.h>void main(){#endifprintf("%d",900*90/90);}
2 votes
2 answers
5269
In a separate chaining hash table with load factor =0.8, what is the average length of a list ?a) 0.8 b) 1.0 c) 1.25d) there is not enough informatione) there is enough i...
2 votes
2 answers
5270
How are elements deleted in linear probing ?(a) Deletion is not allowed(b) they are changed to zero(c) they are marked deleted(d) unchecked deallocation(e) None of the ab...
0 votes
1 answer
5271
void f (queue Q) { int i ; if (!isEmpty(Q)) { i = delete(Q); f(Q); push(s, i); } }
1 votes
2 answers
5272
On running this code I am getting illegal initialization ..please explain...Also in following link ans is given as d)....(Q-9)http://gpl4you.com/viewquestype.php?type=3&c...
0 votes
1 answer
5273
0 votes
1 answer
5274
3 votes
2 answers
5277
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...
0 votes
2 answers
5278
suppose expression is like : ((a+b)+((c+d))), so how to find duplicate parenthesis in the given expression ?
0 votes
1 answer
5279
Given the following table of data what are the minimum expected no.of comparisons required for an Optimali01234Pi 3/163/161/161/16Qi2/163/161/161/161/16BST that can be co...