Define primitive and non-primitive data types with example.
[3 marks]Differentiate linear and non-linear data structures.
[4 marks]Write algorithms for PUSH and POP stack operations.
[7 marks]Enlist applications of stack and queue.
[3 marks]Evaluate the following postfix expression using stack. Show each step. 5 3 + 6 2 / * 3 5 * +
[4 marks]Write a Cfunctions for insertion and deletion operation in simple queue.
[7 marks]Write an algorithm to delete an element from circular queue. Show the steps of insertion and deletion operation in sample circular queue.
[7 marks]Describe the advantages of linked list over array.
[3 marks]Write an algorithm to insert a node at last position in doubly linked list.
[4 marks]Write an algorithm to print the singly linked list in reverse order using stack.
[7 marks]Describe following terms with respect to binary tree: (1) depth of tree (2) balanced tree (3) complete tree
[3 marks]Construct the binary tree for the following tree traversals. Inorder: B F G H P R S T W Y Z Preorder: P F B H G S R Y T W Z
[4 marks]Write an algorithm to insert a node into binary search tree.
[7 marks]Prove that a binary tree with 20 nodes have 21 null branches.
[3 marks]Write a recursive algorithm for preorder traversal of binary tree.
[4 marks]Describe Prim’s minimum spanning tree algorithm with example.
[7 marks]Show the resultant BST after applying following operations in sequence on given tree. Delete 8 b) Insert 9 c) Delete
[7 marks]Enlist and describe different ways for representing graph data structure with example.
[4 marks]Show the steps of BFS and DFS traversal for following graph starting from vertex 2. Consider adjacency list is sorted in ascending order.1
[7 marks]Write an algorithm for linear searching.
[3 marks]Describe indexing structure for index file.
[4 marks]Write an algorithm for merge sort. Show the steps of its working with sample data.
[7 marks]Define hash function. Describe any two hash methods with example.
[3 marks]Write an algorithm for binary searching.
[4 marks]Apply bubble sort on following data and show all steps. 123, 34, 65, 105, 27, 79, 12, 10, 125, 156
[7 marks]