APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY THIRD SEMESTER B.TECH DEGREE EXAMINATION, JULY 2017 CS205: DATA STRUCTURES (CS, IT)

Similar documents
R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

R13. II B. Tech I Semester Supplementary Examinations, May/June DATA STRUCTURES (Com. to ECE, CSE, EIE, IT, ECC)

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

CPSC 331 Term Test #2 March 26, 2007

DYNAMIC MEMORY ALLOCATION AND DEALLOCATION

ASSIGNMENTS. Progra m Outcom e. Chapter Q. No. Outcom e (CO) I 1 If f(n) = Θ(g(n)) and g(n)= Θ(h(n)), then proof that h(n) = Θ(f(n))

1. Attempt any three of the following: 15

Table of Contents. Chapter 1: Introduction to Data Structures... 1

Course Name: B.Tech. 3 th Sem. No of hours allotted to complete the syllabi: 44 Hours No of hours allotted per week: 3 Hours. Planned.

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

Total No. of Questions :09] [Total No. of Pages : 02. II/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC First Semester CSE/IT DATA STRUCTURES USING C

MLR Institute of Technology

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

INSTITUTE OF AERONAUTICAL ENGINEERING

End-Term Examination Second Semester [MCA] MAY-JUNE 2006

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE0301. Subject Name: Data Structure. B.Tech. Year - II

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- MARCH, 2012 DATA STRUCTURE (Common to CT and IF) [Time: 3 hours

21# 33# 90# 91# 34# # 39# # # 31# 98# 0# 1# 2# 3# 4# 5# 6# 7# 8# 9# 10# #

VALLIAMMAI ENGINEERING COLLEGE

Visit ::: Original Website For Placement Papers. ::: Data Structure

GUJARAT TECHNOLOGICAL UNIVERSITY COMPUTER ENGINEERING (07) / INFORMATION TECHNOLOGY (16) / INFORMATION & COMMUNICATION TECHNOLOGY (32) DATA STRUCTURES

Data Structures Question Bank Multiple Choice

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 154) Pass Marks: 24

CSE 373 Spring Midterm. Friday April 21st

Sample Question Paper

Data Structure and Algorithm, Spring 2013 Midterm Examination 120 points Time: 2:20pm-5:20pm (180 minutes), Tuesday, April 16, 2013

Department of Computer Science and Technology

Module Contact: Dr Geoff McKeown, CMP Copyright of the University of East Anglia Version 1

CSE 332 Spring 2013: Midterm Exam (closed book, closed notes, no calculators)

Code No: R Set No. 1

First Semester - Question Bank Department of Computer Science Advanced Data Structures and Algorithms...

Course Review. Cpt S 223 Fall 2009

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

COSC 2007 Data Structures II Final Exam. Part 1: multiple choice (1 mark each, total 30 marks, circle the correct answer)

QUESTION BANK. Prepared by,mrs.d.maladhy AP/IT,RGCET. Page 1

Course Review for Finals. Cpt S 223 Fall 2008

CS301 - Data Structures Glossary By

17CS33:Data Structures Using C QUESTION BANK

Tribhuvan University Institute of Science and Technology Computer Science and Information Technology (CSC. 154) Section A Attempt any Two questions:

a) State the need of data structure. Write the operations performed using data structures.

Algorithms and programs, basic idea of pseudo-code.algorithm efficiency and analysis, time and space analysis of algorithms order notations.

CSE 332 Autumn 2013: Midterm Exam (closed book, closed notes, no calculators)

DATA STRUCTURE : A MCQ QUESTION SET Code : RBMCQ0305

BRONX COMMUNITY COLLEGE of the City University of New York DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE. Sample Final Exam

CS171 Final Practice Exam

CLO Assessment CLO1 Q1(10) CLO2 Q2 (10) CLO3 Q4 (10) CLO4 Q3a (4)

Revision Statement while return growth rate asymptotic notation complexity Compare algorithms Linear search Binary search Preconditions: sorted,

Course Review. Cpt S 223 Fall 2010

PROGRAMMING IN C++ (Regulation 2008) Answer ALL questions PART A (10 2 = 20 Marks) PART B (5 16 = 80 Marks) function? (8)

ECE250: Algorithms and Data Structures Midterm Review

Course goals. exposure to another language. knowledge of specific data structures. impact of DS design & implementation on program performance

Second Semester - Question Bank Department of Computer Science Advanced Data Structures and Algorithms...

E.G.S. PILLAY ENGINEERING COLLEGE (An Autonomous Institution, Affiliated to Anna University, Chennai) Nagore Post, Nagapattinam , Tamilnadu.

CS171 Final Practice Exam

( ) ( ) C. " 1 n. ( ) $ f n. ( ) B. " log( n! ) ( ) and that you already know ( ) ( ) " % g( n) ( ) " #&

logn D. Θ C. Θ n 2 ( ) ( ) f n B. nlogn Ο n2 n 2 D. Ο & % ( C. Θ # ( D. Θ n ( ) Ω f ( n)

FINALTERM EXAMINATION Fall 2009 CS301- Data Structures Question No: 1 ( Marks: 1 ) - Please choose one The data of the problem is of 2GB and the hard

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

Cpt S 223 Fall Cpt S 223. School of EECS, WSU

DATA STRUCTURE. 1- What data structure can be used to check if a syntax has balanced paranthesis? A - queue B - tree C - list D - stack

1. [1 pt] What is the solution to the recurrence T(n) = 2T(n-1) + 1, T(1) = 1

Discuss the following operations on One-Dimensional array with algorithms.

University of Illinois at Urbana-Champaign Department of Computer Science. Final Examination

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

CSE Data Structures and Introduction to Algorithms... In Java! Instructor: Fei Wang. Mid-Term Exam. CSE2100 DS & Algorithms 1

DS ata Structures Aptitude

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

CS8391-DATA STRUCTURES

Question Bank Subject: Advanced Data Structures Class: SE Computer

1) What is the primary purpose of template functions? 2) Suppose bag is a template class, what is the syntax for declaring a bag b of integers?

Summer Final Exam Review Session August 5, 2009

Prelim 2, CS2110. SOLUTION

PESIT Bangalore South Campus Department of MCA Course Information for

CS301 All Current Final Term Paper Subjective 2013 Solved with refernces

2. (a) Explain when the Quick sort is preferred to merge sort and vice-versa.

CS 251, LE 2 Fall MIDTERM 2 Tuesday, November 1, 2016 Version 00 - KEY

CS 445: Data Structures Final Examination: Study Guide

UNIVERSITY OF WATERLOO DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING E&CE 250 ALGORITHMS AND DATA STRUCTURES

CS8391-DATA STRUCTURES QUESTION BANK UNIT I

n 2 ( ) ( ) Ο f ( n) ( ) Ω B. n logn Ο

CSCE 2014 Final Exam Spring Version A

namibia UniVERSITY OF SCIEnCE AnD TECHnOLOGY

CSL 201 Data Structures Mid-Semester Exam minutes

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

D. Θ nlogn ( ) D. Ο. ). Which of the following is not necessarily true? . Which of the following cannot be shown as an improvement? D.

& ( D. " mnp ' ( ) n 3. n 2. ( ) C. " n

CS251-SE1. Midterm 2. Tuesday 11/1 8:00pm 9:00pm. There are 16 multiple-choice questions and 6 essay questions.

CS302 Data Structures using C++

Binary Search Trees Treesort

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

Friday Four Square! 4:15PM, Outside Gates

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN. Sec. Name Office Office hour Mail id

CS 8391 DATA STRUCTURES

AP Computer Science 4325

Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 1

END-TERM EXAMINATION

Computer Science 302 Spring 2007 Practice Final Examination: Part I

We don t have much time, so we don t teach them [students]; we acquaint them with things that they can learn. Charles E. Leiserson

Reg. No. : Question Paper Code : 27157

Transcription:

D B3D042 Pages: 2 Reg. No. Name: APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY THIRD SEMESTER B.TECH DEGREE EXAMINATION, JULY 2017 Max. Marks: 100 CS205: DATA STRUCTURES (CS, IT) PART A Answer all questions. Duration: 3 Hours 1. Derive the Big O notation for f(n) = n 2 +2n+5. ( 3) 2. Write a recursive function(c / pseudocode) for linear search. ( 3) 3. What are the applications of a linked list? ( 3) 4. Compare a linked list and an array implementation of a general list. ( 3) PART B Answer any two questions. 5. a. Write a function(c / pseudocode) to delete a node in a singly linked list. ( 4.5) b. Derive the Big O notation using the step count for the function. (4.5) 6. Write a recursive algorithm to insert an element into a linked list in which elements are stored in ascending order. ( 9) 7. a. What do you mean by abstract and concrete data structures? (4.5) b. Compare vectors and arrays in detail. (4.5) PART C Answer all questions. 8. What is a double ended queue? ( 3) 9. Explain any two applications of a Stack. ( 3) 10. What is a Binary Tree? ( 3) 11. What is the purpose of studying graphs as a data structure? ( 3) PART D Answer any two questions. 12. a. Write a function(c / pseudocode) to delete a sub-string in a given string. (4.5) b. Give the DFS algorithm for graph traversal. (4.5) 13. a. Write a function(c / pseudocode) to insert an element into a BST. (4.5) Page 1 of 2

D B3D042 Pages: 2 b. How are strings represented in a C program? (4.5) 14. a. Explain the array implementation of a binary tree? Why it is not a good representation for Binary Trees in general? (4.5) b. Write a function(c / pseudocode) to delete a node from a Binary Search Tree. (4.5) PART E Answer any four questions. 15. a. Write a program to perform Quick Sort on a set of 'n' values given as input. ( 5) b. Explain Best Fit strategy with an example. 16. a. Write a function(c / pseudocode) to insert an element into a Heap. b. Derive the worst case and average case complexity of Quick Sort. 17. a. Explain mid-square method in hashing with an example. b. Derive the complexity of Heap sort. 18. a. What is hashing and what is its importance. b. Write a program to perform insertion sort on a set of 'n' values given as input. 19. a. Write a function(c / pseudocode) to perform merge sort. b. Compare selection sort and bubble sort. 20. a. Write a function(c / pseudocode) to perform binary search. b. What is garbage collection? **** Page 2 of 2

D D7144 Reg No.: Total Pages: 2 Name: APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY THIRD SEMESTER B.TECH DEGREE EXAMINATION, DECEMBER 2017 Course Code: CS205 Course Name: DATA STRUCTURES (CS, IT) Max. Marks: 100 Duration: 3 Hours PART A Answer all questions, each carries 3 marks. Marks 1 Differentiate between abstract and concrete data structure. (3) 2 N 2 + N = O (N 3 ) Justify your answer. (3) 3 What is frequency count? Explain with an example. (3) 4 How can we represent a linked list in memory using arrays? (3) PART B Answer any two full questions, each carries 9 marks. 5 Describe Big O notation used to represent asymptotic running time of algorithms. Give the asymptotic analysis of any one iterative algorithm. 6 a) Consider a singly linked list having n nodes. The data items d1, d2,., dn are stored in the n nodes. Let X be a pointer to the jth node (1 j n) in which dj is stored. A new data item d stored in a node with address Y is to be inserted in the list. Give an algorithm to insert d into the list after dj to obtain a list having items d1, d2,, dj, d, dj +1,..dn in that order without using the header. (9) b) Explain about the use and representation of header node in linked list (4) 7 a) What are the application of vectors. (3) b) Write an algorithm for deleting a node from a specified position in a circular (6) queue PART C Answer all questions, each carries 3 marks. 8 How will you check the validity of an arithmetic expression using stack (3) 9 Let take initial memory as - (3) 0 150 200 300 410 500K Do the following things with first fit approach and show the memory status: 1. Allocate process C of size 90K 2. Allocate process D of size 70K 10 Write a program in C to concatenate two strings using string function. (3) 11 If a full binary tree is of height 5, give the positions of left child and right child (3) of the second node in level 2. PART D Answer any two full questions, each carries 9 marks. 12 Convert the following expression into its corresponding post fix form using the prescribed algorithm: (300+23)*(43-21)/(84+7). Do the evaluation of resultant postfix expression. (9) Page 1 of 2

D D7144 13 a) Here is a small binary tree: (4.5) 14 / \ 2 11 / \ / \ 1 3 10 30 / / 7 40 What is the output obtained after preorder, inorder and postorder traversal of the following tree. b) Write the non-recursive algorithm for post order traversal of tree. (4.5) 14 a) Write a function( C/ pseudo code ) to insert an element into BST. (4) b) Write a program in C to check a particular sub string is present in a given string or not? If found print its location. PART E Answer any four full questions, each carries 10 marks. 15 a) Draw the directed graph that corresponds to this adjacency matrix: 0 1 2 3 0 true false true false 1 true false falsefalse 2 false falsefalse true 3 true false true false b) Give the algorithm for BFS graph traversal. 16 a) Show all the passes using insertion sort for the following list 54,26,93,17,77,31,44,55,20 b) Write a function (C/ pseudo code) of heap sort using min heap. 17 Write a program to do the partition of a list using quick sort and then use insertion sort for sorting sub lists. Explain it with example. (10) 18 a) Write a program of binary search which tells how many comparisons it did to (7) search an element given as user input. b) Do the performance comparisons of Linear search and Binary search. (3) 19 Consider a hash table of size 7 and hash function h(k)= k mod 7. Draw the table that results after inserting in the given order, the following values. 19,26,13,48.17 for each of the three scenarios. a) When collisions are handled by separate chaining. (3) b) When collisions are handled by linear probing. (3) c) When collisions are handled by double hashing using second hash function h =5- (4) (5 mod k). 20 a) Get the hash index in table of size 7 for the following list. 56,43,27,32,3. (3) b) Do the rehashing when the inserted elements are more than 4. (3) c) Briefly explain any 2 hasting functions. (4) **** Page 2 of 2