Search questions
150 questions
- GATE CSE 2026 Set 1, Q7, MCQ, AlgorithmsConsider the following recurrence relations: For all n>1, [formula]…
- GATE CSE 2026 Set 1, Q13, MSQ, AlgorithmsLet n be an odd number greater than 100. Consider a binary minheap with n elements stored in an array P whose index starts from 1. Which of the following…
- GATE CSE 2026 Set 1, Q14, MSQ, AlgorithmsConsider a hash table P[0,1, …, 10] that is initially empty. The hash table is maintained using open addressing with linear probing. The hash function used is…
- GATE CSE 2026 Set 1, Q23, NAT, AlgorithmsThe height of a binary tree is the number of edges in the longest path from the root to a leaf in the tree. The maximum possible height of a full binary tree…
- GATE CSE 2026 Set 1, Q30, MCQ, AlgorithmsLet P be the set of all integers from 1 to 15. Consider any order of insertion of the elements of P into a binary search tree that creates a complete binary…
- GATE CSE 2026 Set 1, Q31, MCQ, AlgorithmsLet G(V, E) be an undirected, edge-weighted graph with integer weights. The weight of a path is the sum of the weights of the edges in that path. The length of…
- GATE CSE 2026 Set 1, Q39, MSQ, AlgorithmsLet G(V, E) be a simple, undirected, edge-weighted graph with unique edge weights. Which of the following statements about the minimum spanning trees (MST) of G…
- GATE CSE 2026 Set 1, Q40, MSQ, AlgorithmsConsider the following pseudocode for depth-first search (DFS) algorithm which takes a directed graph G(V, E) as input, where d[v] and f[v] are the discovery…
- GATE CSE 2026 Set 1, Q51, NAT, AlgorithmsConsider the recursive functions represented by the following code segment: [code]…
- GATE CSE 2026 Set 1, Q52, NAT, AlgorithmsThe following sequence corresponds to the preorder traversal of a binary search tree T : [formula] The position of the element 60 in the postorder traversal of…
- GATE CSE 2026 Set 2, Q14, MCQ, AlgorithmsConsider the following functions, where n is a positive integer. [formula] Which one of the following options lists the functions in increasing order of…
- GATE CSE 2026 Set 2, Q15, MSQ, AlgorithmsWhich of the following can be recurrence relation(s) corresponding to an algorithm with time complexity Θ(n)?
- GATE CSE 2026 Set 2, Q20, NAT, AlgorithmsThe keys 5,28,19,15,26,33,12,17,10 are inserted into a hash table using the hash function h(k)=k mod 9. The collisions are resolved by chaining. After all the…
- GATE CSE 2026 Set 2, Q22, NAT, AlgorithmsConsider an array A=[10,7,8,19,41,35,25,31]. Suppose the merge sort algorithm is executed on array A to sort it in increasing order. The merge sort algorithm…
- GATE CSE 2026 Set 2, Q27, MCQ, AlgorithmsLet G be a weighted directed acyclic graph with m edges and n vertices. Given G and a source vertex s in G, which one of the following options gives the worst…
- GATE CSE 2026 Set 2, Q28, MCQ, AlgorithmsConsider an array A of integers of size n. The indices of A run from 1 to n. An algorithm is to be designed to check whether A satisfies the condition given…
- GATE CSE 2026 Set 2, Q29, MCQ, AlgorithmsConsider a table T, where the elements T[i][j], 0 ≤ i, j ≤ n, represent the cost of the optimal solutions of different subproblems of a problem that is being…
- GATE CSE 2026 Set 2, Q39, MSQ, AlgorithmsConsider a binary search tree (BST) with n leaf nodes (n>0). Given any node V, the key present in the node is denoted as Val(V). All the keys present in the…
- GATE CSE 2025 Set 1, Q8, MCQ, AlgorithmsLet G be any undirected graph with positive edge weights, and T be a minimum spanning tree of G. For any two vertices, u and v, let d_1(u, v) and d_2(u, v) be…
- GATE CSE 2025 Set 1, Q10, MCQ, AlgorithmsConsider the following recurrence relation: [formula] Which ONE of the following options is CORRECT?