The master theorem
Asked in GPSC Assistant Director (IT), Class-1 2025
Answer under review: our editors are checking this question. Try the other GPSC Prelims previous year questions questions meanwhile.
More GPSC Prelims previous year questions questions
- The recurrence relation capturing the optimal execution time of the Towers of Hanoi problem with n discs is
- Match the following: (P) Prim's algorithm for minimum spanning tree (i) Backtracking (Q) Floyd-Warshall algorithm for all pairs shortest paths (ii) Greedy method (R) Mergesort (iii) Dynamic programming (S) Hamiltonian circuit (iv) Divide and conquer
- If n is a power of 2, then the minimum number of multiplications needed to compute an is
- Which of the following algorithms solves the all pair shortest path problem?
- Consider the string abbccddeee. Each letter in the string must be assigned a binary code satisfying the following properties: For any two letters, the code assigned to one letter must not be a prefix of the code assigned to the other letter. For any two letters of the same frequency, the letter which occurs earlier in the dictionary order is assigned a code whose length is at most the length of the code assigned to the other letter. Among the set of all binary code assignments which satisfy the above two properties, what is the minimum length of the encoded string?
- Let R(a,b,c) and S(d,e,f) be two relations in which d is the foreign key of S that refers to the primary key of R. Consider the following four operations R and S. I. Insert into R II. Insert into S III. Delete from R IV. Delete from S Which of the above can cause violation of the referential integrity constraint?
- A locked database file can be
- An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account A attempted simultaneous transfers of Rs. 10,000 each from account A to account B. Both transactions read the same value Rs. 11,000 as the initial balance in A and were allowed to go through. B was credited Rs. 10,000 twice. A was debited only once and ended up with a balance of Rs. 1,000. Which of the following properties is/are certain to have been violated by the system?