Previous year question papers
Only real papers are listed. Every question was transcribed from the scanned paper and checked against it; unclear text is flagged on the question page instead of being guessed.
Re-typeset third-party copy, not an original KTU scan. Excluded from frequency analysis.
Question paper PDF (opens in a new tab)Want every PCCST303 paper as a PDF? All papers combined (opens in a new tab) · Papers with worked solutions (opens in a new tab) · All PCCST303 notes & papers on Azhimathi Mayam (opens in a new tab)
Topic frequency
Based on 2 university papers analysed (Nov 2025 regular, May 2026 supplementary). With so few papers this shows what has been asked, not what will be asked — no prediction is guaranteed.
All questions
72 of 72 questions
- Nov 2025Q1Part A3 marksModule 1verified solutionasked in 2 papers
Compute the time complexity of the following code fragment. for(i=0;i<n;i++) for(j=n;j>0;j=j/2) printf("DATA STRUCTURE");
- Nov 2025Q2Part A3 marksModule 1verified solutioninteractive
Write algorithm for push and pop operations of a stack using array.
- Nov 2025Q3Part A3 marksModule 2asked in 2 papers
What is self-referential structure? Give an example.
- Nov 2025Q4Part A3 marksModule 2
Write algorithm to find the largest element in a singly linked list.
- Nov 2025Q5Part A3 marksModule 3
Compare Min-heap and Max-heap with example.
- Nov 2025Q6Part A3 marksModule 3
Construct an expression tree for (A+B*C)-D-E*F-(G-H/I).
- Nov 2025Q7Part A3 marksModule 4verified solutioninteractiveasked in 2 papers
Perform radix sort to sort the numbers 34, 21, 3, 121, 342, 65 and 44
- Nov 2025Q8Part A3 marksModule 4verified solutioninteractive
Write algorithm to sort an array using insertion sort.
- Nov 2025Q9aPart B6 marksModule 1asked in 2 papers
Describe different notations to be used to express time complexity of an algorithm.
- Nov 2025Q9bPart B3 marksModule 1verified solutioninteractiveasked in 2 papers
Write algorithm for various insertion operations of a double ended queue using array.
- Nov 2025Q10aPart B6 marksModule 1verified solutioninteractiveasked in 2 papers
Convert the infix expression (A+B*C/D)-(E-F/G) to postfix form using a stack. Evaluate the resultant postfix expression by replacing A,B,C,D,E,F and G with 3,2,4,2,5,8 and 4.
- Nov 2025Q10bPart B3 marksModule 1
Write algorithm to find transpose of given sparse matrix.
- Nov 2025Q11aPart B5 marksModule 2
Write algorithm for add two polynomials(single variable) using linked list.
- Nov 2025Q11bPart B4 marksModule 2asked in 2 papers
Write algorithm for insert node at the beginning and end of a circular singly linked list.
- Nov 2025Q12aPart B6 marksModule 2asked in 2 papers
Consider the requests from processes in given order 300K, 25K, 125K, and 50K. Let there be two blocks of memory available of size 150K followed by a block size 350K. Which of the memory allocation schemes can satisfy the above requests? Justify your answer.
- Nov 2025Q12bPart B3 marksModule 2
Write algorithm to display elements in a doubly linked list in reverse order.
- Nov 2025Q13aPart B6 marksModule 3
Create a binary search tree using the following values 35, 12, 47, 36, 52, 30, 25 and 49. Delete from this tree the nodes 30 and 47 (delete 47 using inorder successor).
- Nov 2025Q13bPart B3 marksModule 3asked in 2 papers
Write algorithm for different tree traversals.
- Nov 2025Q14aPart B6 marksModule 3asked in 2 papers
Write algorithm for graph traversal using BFS. Perform BFS on the given graph from source vertex 0. If multiple choices may be available for the next node choose in ascending order.
- Nov 2025Q14bPart B3 marksModule 3
Explain the following terms with examples: i) Full binary tree ii) Complete binary tree
- Nov 2025Q15aPart B6 marksModule 4verified solutioninteractive
Write algorithm to sort an array using quick sort. Apply quick-sort to sort the numbers 45,33,56,22,76,78,40 and 30.
- Nov 2025Q15bPart B3 marksModule 4verified solutioninteractiveasked in 2 papers
Explain any three hashing functions with examples.
- Nov 2025Q16aPart B6 marksModule 4verified solutioninteractiveasked in 2 papers
Given the values 72,13,6,5,10,36,43 and 17 and a hash table of size 11. Show the resultant table after inserting values in the given order by using hash function h(k)=k%11 with each of the following collision strategies. i) Linear Probing ii) Quadratic Probing iii) Separate Chaining
- Nov 2025Q16bPart B3 marksModule 4verified solutioninteractive
Write algorithm to search an element in a sorted array using binary search.
- May 2026 (S)Q1Part A3 marksModule 1verified solutionasked in 2 papers
Compute the time complexity of the following code fragment. for(i=1; i<=n; i++) for(j=1; j<=n; j=j*2) printf("KTU");
- May 2026 (S)Q2Part A3 marksModule 1verified solutioninteractive
Write algorithm to insert and delete operations of a queue using array.
- May 2026 (S)Q3Part A3 marksModule 2asked in 2 papers
What is self-referential structure? Give an example.
- May 2026 (S)Q4Part A3 marksModule 2
Write algorithm to count the number of elements in a singly linked list.
- May 2026 (S)Q5Part A3 marksModule 3
Construct a binary tree from the given array.
- May 2026 (S)Q6Part A3 marksModule 3
List and explain any two graph representation methods with example.
- May 2026 (S)Q7Part A3 marksModule 4verified solutioninteractive
Write algorithm to sort an array using selection sort.
- May 2026 (S)Q8Part A3 marksModule 4verified solutioninteractiveasked in 2 papers
Explain any three hashing functions with examples.
- May 2026 (S)Q9aPart B5 marksModule 1asked in 2 papers
Define asymptotic notations and illustrate them graphically.
- May 2026 (S)Q9bPart B4 marksModule 1verified solutioninteractiveasked in 2 papers
Write algorithm for various deletion operations of double ended queue using array.
- May 2026 (S)Q10aPart B6 marksModule 1verified solutioninteractiveasked in 2 papers
Write algorithm for convert the given infix expression to postfix expression. Using a stack convert infix expression A+(B-C\D*E)+F/G to postfix expression.
- May 2026 (S)Q10bPart B3 marksModule 4verified solutioninteractive
Find the Best, Worst and average case time complexity of Insertion sort.
- May 2026 (S)Q11aPart B5 marksModule 1verified solutioninteractive
Write algorithm for insertion and deletion operation of circular queue.
- May 2026 (S)Q11bPart B4 marksModule 2asked in 2 papers
Write algorithm for insert node at the beginning and end of a doubly linked list.
- May 2026 (S)Q12aPart B6 marksModule 2asked in 2 papers
Consider six partition 200K, 400K, 600K, 500K, 300K and 250K and four processes blocks of size 357K, 210K, 468K and 491K. Which of the memory allocation schemes can satisfy the above requests? Justify your answer.
- May 2026 (S)Q12bPart B3 marksModule 2
Write algorithm for appending one singly linked list with another.
- May 2026 (S)Q13aPart B5 marksModule 3asked in 2 papers
Write algorithm for different tree traversals. Find Inorder, Preorder and Postorder traversal of given binary tree.
- May 2026 (S)Q13bPart B4 marksModule 3
Find the shortest path from source vertex A to all remaining vertices.
- May 2026 (S)Q14aPart B6 marksModule 3asked in 2 papers
Write algorithm for graph traversal using DFS. Perform DFS on the given graph from source vertex E.
- May 2026 (S)Q14bPart B3 marksModule 3
Write algorithm to search an element in given binary search tree.
- May 2026 (S)Q15aPart B6 marksModule 4verified solutioninteractive
Write algorithm to sort an array using merge sort. Apply merge sort to sort the numbers 45, 36, 12, 65, 24, 11, 44, 54, 17 and 33.
- May 2026 (S)Q15bPart B3 marksModule 4verified solutioninteractiveasked in 2 papers
Perform radix sort to sort the numbers 341, 22, 33, 122, 42, 5 and 4.
- May 2026 (S)Q16aPart B6 marksModule 4verified solutioninteractiveasked in 2 papers
Given the values 45,36,19,58 and 10 and a hash table of size 13. Show the resultant table after inserting values in the given order by using hash function h(k)=k%13 with each of the following collision strategies. i) Linear Probing ii) Quadratic Probing iii) Double hashing with secondary hash function h'(k)=7-k%7
- May 2026 (S)Q16bPart B3 marksModule 3verified solutioninteractive
Create a Max-heap from 20, 12, 30, 25, 18, 8 and 24 using heapify. Then delete root element from the tree.
- Model QPQ1Part A3 marksModule 1asked in 2 papers
What is the time complexity of this algorithm? j = 1 for (i = 1; i < n; i++) while (j < i) j = j * 2
- Model QPQ2Part A3 marksModule 1
What is row-major and column-major memory layouts? How do they apply to 2D array storage?
- Model QPQ3Part A3 marksModule 2
Compare the insertion at head and tail in singly linked list and doubly linked list
- Model QPQ4Part A3 marksModule 2
Write an algorithm to count the number of occurrences of a word in a linked list (each node contains only one word)
- Model QPQ5Part A3 marksModule 2
Compare array and linked list in terms of memory usage and insertion/deletion complexity
- Model QPQ6Part A3 marksModule 3
Draw the binary tree whose sequential representation is given below
- Model QPQ7Part A3 marksModule 4interactive
Let the size of a hash table is 8. The index of the hash table varies from 0 to 7. Assume the keys 73, 54, 15, 48, 89, 66, 37, 18 are mapped using modulo operator. Show how the keys are distributed using hashing
- Model QPQ8Part A3 marksModule 4verified solutioninteractive
Apply the Quick Sort algorithm (using the last element as the pivot) to sort the following list of numbers: [8,4,7,3,10]
- Model QPQ9aPart B5 marksModule 1
Illustrate how an algorithm's time and space complexity can be explained using tables and graphs.
- Model QPQ9bPart B4 marksModule 1verified solutioninteractive
Write an algorithm to implement a circular queue using array.
- Model QPQ10aPart B5 marksModule 1verified solutioninteractive
Write an algorithm for push and pop stack operation using arrays.
- Model QPQ10bPart B4 marksModule 1
Compare priority queues and deques in terms of structure, use cases, and operations.
- Model QPQ11aPart B5 marksModule 1verified solutioninteractive
Evaluate the given expression using stack 4*5/3-(4%2)+(1*5)-2
- Model QPQ11bPart B4 marksModule 1verified solutioninteractiveasked in 2 papers
Write algorithms to insert and delete elements from a double ended queue.
- Model QPQ12aPart B5 marksModule 2
Write a program using linked lists to solve (2x³ + 5x² − 4x + 5) + (4x³ + 2x² + 3x − 6)
- Model QPQ12bPart B4 marksModule 2asked in 2 papers
Given a singly linked list, write an algorithm to insert a node at the beginning and end of a singly linked list.
- Model QPQ13aPart B4 marksModule 3asked in 2 papers
The Breadth-First Search algorithm has been implemented with the help of a queue. What is a possible order of visiting the nodes of the following graph is
- Model QPQ13bPart B5 marksModule 3
Construct an expression tree for (a+b*c/d) + ((e*f+g)*h)
- Model QPQ14aPart B5 marksModule 3
Consider the directed graph shown in the figure below. There are multiple shortest paths between vertices S and T. Which one will be reported by Dijkstra's shortest path algorithm? Assume that, in any iteration, the shortest path to a vertex v is updated only when a strictly shorter path to v is discovered.
- Model QPQ14bPart B4 marksModule 3
Construct the binary search tree with: 52, 35, 11, 7, 10, 90, 21, 16. What is the height of the created tree?
- Model QPQ15aPart B4 marksModule 4verified solutioninteractive
You are given a hash table with 5 buckets (i.e., indices 0 to 4). Use open hashing (separate chaining) to insert the following set of keys: {12,42,22,52,32}. Use the division method in hashing.
- Model QPQ15bPart B5 marksModule 4
Create a text file that contains the names and marks of students in a class. Then, read the data from the file, apply the Quick Sort algorithm to sort the students based on their marks in decreasing order, and store the sorted data back into a file.
- Model QPQ16aPart B6 marksModule 3
You are given k sorted linked lists. Your task is to merge them into one sorted list. Use a min-heap (priority queue) to optimize the merging process. Always insert the smallest available element into the result list by extracting it from the heap and then pushing the next element from the same source list, if it exists.
- Model QPQ16bPart B3 marksModule 4
Implement a spell checker that uses a hash table to store a dictionary of valid words, enabling fast lookup to detect and flag misspelled words in a given input text.