GATE 2025 (Session 2) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2025 (Session 2)

65 questions

MCQ 32 · MSQ 18 · NAT 151-mark 30 · 2-mark 35

Questions 41–45 of 65

Q41Array2 marksMCQ−0.67 if wrong
An array AA of length nn with distinct elements is said to be bitonic if there is an index 1≤i≤n1 \leq i \leq n such that A[1..i]A[1..i] is sorted in the non-decreasing order and A[i+1..n]A[i+1..n] is sorted in the non-increasing order.
Which ONE of the following represents the best possible asymptotic bound for the worst-case number of comparisons by an algorithm that searches for an element in a bitonic array AA?

Q42Discrete Mathematics2 marksMSQ
Let F\mathcal{F} be the set of all functions from {1,…,n}\{1, \dots, n\} to {0,1}\{0,1\}. Define the binary relation ⪯\preceq on F\mathcal{F} as follows:
∀f,g∈F, f⪯gif and only if∀x∈{1,…,n},f(x)≤g(x), where 0≤1.\forall f, g \in \mathcal{F}, \, f \preceq g \quad \text{if and only if} \quad \forall x \in \{1, \dots, n\}, f(x) \leq g(x), \text{ where } 0 \leq 1.
Which of the following statement(s) is/are TRUE?

One or more options are correct.

Q43Boolean Algebra2 marksMSQ
Given the following Karnaugh Map for a Boolean function F(w,x,y,z)F(w, x, y, z):
yz wx 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1
Which one or more of the following Boolean expression(s) represent(s) FF?

One or more options are correct.

Q44Numerical Solution of Algebraic Equations2 marksMSQ
Consider a system of linear equations PX=QP X = Q where P∈R3×3P \in \mathbb{R}^{3 \times 3} and Q∈R3×1Q \in \mathbb{R}^{3 \times 1}. Suppose PP has an LULU decomposition, P=LUP = LU, where

L=[100l2110l31l321]andU=[u11u12u130u22u2300u33]L = \begin{bmatrix} 1 & 0 & 0 \\ l_{21} & 1 & 0 \\ l_{31} & l_{32} & 1 \end{bmatrix} \quad \text{and} \quad U = \begin{bmatrix} u_{11} & u_{12} & u_{13} \\ 0 & u_{22} & u_{23} \\ 0 & 0 & u_{33} \end{bmatrix}

Which of the following statement(s) is/are TRUE?

One or more options are correct.

Q45Stack2 marksMSQ
Consider a stack data structure into which we can PUSH and POP records. Assume that each record pushed in the stack has a positive integer key and that all keys are distinct.
We wish to augment the stack data structure with an O(1)O(1) time MIN operation that returns a pointer to the record with the smallest key present in the stack

1) without deleting the corresponding record, and
2) without increasing the complexities of the standard stack operations.

Which one or more of the following approach(es) can achieve it?

One or more options are correct.