B.Tech. (ECE) (2012 to 2017) (Sem.-5)
DATA STRUCTURES
--- Content provided by FirstRanker.com ---
Subject Code : BTCS-304
M.Code : 70544
Time : 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
- SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks each.
- SECTION-B contains FIVE questions carrying FIVE marks each and students have to attempt any FOUR questions.
- SECTION-C contains THREE questions carrying TEN marks each and students have to attempt any TWO questions.
--- Content provided by FirstRanker.com ---
SECTION-A
Answer briefly :
- Define ADT.
- How do you push and pop elements in a linked stack?
- Prove that the number of odd degree vertices in a connected graph should be even.
- Define NP hard and NP complete.
- Define Binary Search Tree.
- List out and define the performance measures of an algorithm.
- What is Recursion? Explain with an example.
- List out the various techniques of hashing.
- What is the worst case complexity of Quick sort?
- State the algorithmic technique used in merge sort.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION-B
--- Content provided by FirstRanker.com ---
- Give a function that uses a stack in order to reverse the elements of a circular queue which is stored in an array.
- Write an algorithm/program to count the number of nodes in a given singly linked list.
- Give the best case and worst case analysis of the binary search.
- Write insertion algorithm for AVL tree. Write suitable rotation algorithms.
- Explain external sorting. Give relevant example.
--- Content provided by FirstRanker.com ---
SECTION-C
- Assume we have a priority queue split into several queues. To access these queues we have vectors of pointers to the front and rear of each queue and one to indicate the length of each. Thus to access the front of the queue representing priority 2, one merely starts at PRIORITY_F[2]. This representation allows each queue to be of different length. Given this representation, devise algorithms to insert and delete from a priority queue.
- Write an algorithm/program to delete a node from a binary search tree.
- Write an algorithm/program to implement radix sort.
NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any page of Answer Sheet will lead to UMC against the Student.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: PTU B.Tech Question Papers 2020 December (All Branches)
--- Content provided by FirstRanker.com ---