Recent questions in Programming and DS

0 votes
3 answers
3571
0 votes
1 answer
3572
Consider an array A of size 31 consisting of 0's followed by number of 1's. In order to find the smallest index i such that A[i]=1 minimum number of comparisons required ...
0 votes
0 answers
3573
0 votes
1 answer
3578
If h is any hashing function and is used to hash n keys into a table of size m, here n<=m, the expected number of collisions involving a particular key x isa) Less than 1...
0 votes
3 answers
3579
If a node in a BST has two children, then its in-order predecessor hasa) No left childb) No right childc) 2 childrend) no child
0 votes
2 answers
3584
I. A heap is always nearly complete tree.II. Worst case complexity of heapify operation is O( log n)III. Worst case complexity of build heap operation is O( n log n)a. I ...
0 votes
1 answer
3586
What is the asymptotic relationship between the function lgn and logn(base = 8)?options:1.lgn = Big-oh(logn(base = 8))2.lgn = Omega(logn(base = 8))3.lgn = Theta(logn(base...
1 votes
1 answer
3588
Determine the output-#include <stdio.h int main(void) { char *p="gateoverflow"; *(p+5)='z'; printf("%s",p); return 0; }
0 votes
1 answer
3590
Given the input sequence {11, 33, 43, 99, 34, 79, 19} and hash table of size 10 with the hash function h(k) = k mod 10. If hash table uses quadratic probing, the number o...