Searching: GATE CS previous year questions
Searching is part of Algorithms in the GATE CS syllabus. This page lists 14 past-paper questions on it from official GATE CS papers.
Searching
- The pseudocode of a function fun() is given below: fun(int A[0,…,n-1]) for i=0 to n-2…
- You have an array of n elements. Suppose you implement quicksort by always choosing the…
- Consider a hash table P[0, 1, …, 10] that is initially empty. The hash table is…
- Consider the C function given below. Assume that the array listA contains n (> 0)…
- An array of 25 distinct elements is to be sorted using quicksort. Assume that the pivot…
- Consider an array A = [10, 7, 8, 19, 41, 35, 25, 31]. Suppose the merge sort algorithm…
- Let A be an array of 31 numbers consisting of a sequence of 0's followed by a sequence…
- Let P be a quicksort program to sort numbers in ascending order using the first element…
- Given a hash table T with 25 slots that stores 2000 elements, the load factor α for T is…
- Which one of the following is the recurrence equation for the worst case time complexity…
- Which one of the following hash functions on integers will distribute keys most…
- An array A of length n with distinct elements is said to be bitonic if there is an index…
- What is the worst-case number of arithmetic operations performed by recursive binary…
- Which one of the following is the tightest upper bound that represents the number of…
More Algorithms chapters
- Sorting
- Hashing
- Asymptotic Complexity
- Greedy Algorithms
- Dynamic Programming
- Divide and Conquer
- Graph Traversals
- Minimum Spanning Trees
- Shortest Paths
Frequently asked questions
How many GATE CS questions are there on Searching?
PrepWiser has 14 past-paper questions on Searching from official GATE CS papers.
Are these real GATE CS questions?
Yes. Each one is from an official GATE CS paper and names its year and set. The answers come from the official answer keys.
Where are the step-by-step solutions?
Every question shows its answer, free. Step-by-step solutions, where available, are part of GATE CS Pro.