Question Paper Code : 97044

Similar documents

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

Department of Information Technology

SRI VENKATESWARA COLLEGE OF ENGINEERING. COURSE DELIVERY PLAN - THEORY Page 1 of 6

OBJECT ORIENTED DATA STRUCTURE & ALGORITHMS

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

DEPARTMENT OF COMPUTER APPLICATIONS B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER LESSON PLAN SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

Data Structures and Algorithm Analysis in C++

SARDAR RAJA COLLEGE OF ENGINEERING

LESSON PLAN B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER

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

Chapter 1 Introduction

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

DATA STRUCTURES THROUGH C++

VALLIAMMAI ENGINEERING COLLEGE

2. (a) Explain the concept of virtual functions in C++ with suitable examples. (b) Explain the concept of operator overloading in C++.

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

CS2013 Course Syllabus Spring 2018 Lecture: Mon/Wed 2:00 P.M. 2:50 P.M. SH C259 Lab: Mon/Wed 2:50 P.M. 4:00 P.M. SH C259

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

SAURASHTRA UNIVERSITY

Introduction p. 1 Pseudocode p. 2 Algorithm Header p. 2 Purpose, Conditions, and Return p. 3 Statement Numbers p. 4 Variables p. 4 Algorithm Analysis

CGS 2405 Advanced Programming with C++ Course Justification

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: CS6402- Design & Analysis of Algorithm Year/Sem : II/IV UNIT-I INTRODUCTION

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

Course Review for Finals. Cpt S 223 Fall 2008

DYNAMIC MEMORY ALLOCATION AND DEALLOCATION

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

Thomas H. Cormen Charles E. Leiserson Ronald L. Rivest. Introduction to Algorithms

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

Reg. No. : Question Paper Code : 27157

Code No: R Set No. 1

M.C.A DEGREE EXAMINATION,NOVEMBER/DECEMBER 2010 Second Semester MC 9222-OBJECT ORIENTED PROGRAMMING (Regulation 2009)

Cpt S 122 Data Structures. Course Review FINAL. Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid. Fall 2018

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

CS 445: Data Structures Final Examination: Study Guide

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

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

VALLIAMMAI ENGINEERING COLLEGE

July 2012 Masters in Computer Application (MCA) - Semester 2 MCA 2010 Operating System 4 Credits

CS521 \ Notes for the Final Exam

Get Unique study materials from

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

Model Answer. Section A Q.1 - (20 1=10) B.Tech. (Fifth Semester) Examination Analysis and Design of Algorithm (IT3105N) (Information Technology)

Welcome to Teach Yourself Acknowledgments Fundamental C++ Programming p. 2 An Introduction to C++ p. 4 A Brief History of C++ p.

Total No. of Questions : 18] [Total No. of Pages : 02. M.Sc. DEGREE EXAMINATION, DEC First Year COMPUTER SCIENCE.

Algorithm Analysis Graph algorithm. Chung-Ang University, Jaesung Lee

9. Which situation is true regarding a cascading cut that produces c trees for a Fibonacci heap?

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

Analysis of Algorithms

Introduction to Algorithms Third Edition

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid

Preface to the Second Edition Preface to the First Edition Brief Contents Introduction to C++ p. 1 A Review of Structures p.

CS-6402 DESIGN AND ANALYSIS OF ALGORITHMS

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

Object Oriented Programming with c++ Question Bank

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI. Department of Computer Science and Engineering CS6301 PROGRAMMING DATA STRUCTURES II

CS302 Data Structures using C++

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

DESIGN AND ANALYSIS OF ALGORITHMS

CS4800: Algorithms & Data Jonathan Ullman

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

Homework Assignment #3 Graph

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

Algorithm Design (8) Graph Algorithms 1/2

CS 112 Final May 8, 2008 (Lightly edited for 2012 Practice) Name: BU ID: Instructions

Time: 3 HOURS Maximum Marks: 100

SELF-BALANCING SEARCH TREES. Chapter 11

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

Virtual University of Pakistan

DATA STRUCTURES AND PROBLEM SOLVING USING JAVA

Data Structures in C++ Using the Standard Template Library

R13 SET - 1. ''' '' ''' ' blog: anilkumarprathipati.wordpress.com. Code No: RT32054

Reg. No. : Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, JANUARY First Semester GE 6151 COMPUTER PROGRAMMING

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

WITH C+ + William Ford University of the Pacific. William Topp University of the Pacific. Prentice Hall, Englewood Cliffs, New Jersey 07632

Shortest path problems

END-TERM EXAMINATION

The ADT priority queue Orders its items by a priority value The first item removed is the one having the highest priority value

(the bubble footer is automatically inserted into this space)

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

Department of Computer Applications. MCA 312: Design and Analysis of Algorithms. [Part I : Medium Answer Type Questions] UNIT I

Prelim 2 Solution. CS 2110, November 19, 2015, 5:30 PM Total. Sorting Invariants Max Score Grader

AP Computer Science 4325

CS 112 Final May 8, 2008 (Lightly edited for 2011 Practice) Name: BU ID: Instructions GOOD LUCK!

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- OCTOBER, 2012 DATA STRUCTURE

Minimum Spanning Trees

UNIT Name the different ways of representing a graph? a.adjacencymatrix b. Adjacency list

Outline. Graphs. Divide and Conquer.

4.1.2 Merge Sort Sorting Lower Bound Counting Sort Sorting in Practice Solving Problems by Sorting...

Data_Structures - Hackveda

Final Examination CSE 100 UCSD (Practice)

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY OBJECT ORIENTED PROGRAMMING QUESTION BANK UNIT I 2 MARKS

Chapter 9 Graph Algorithms

SECOND SEMESTER JAVA PROGRAMMING

University of Waterloo Department of Electrical and Computer Engineering ECE 250 Data Structures and Algorithms. Final Examination

11/22/2016. Chapter 9 Graph Algorithms. Introduction. Definitions. Definitions. Definitions. Definitions

( ) n 3. n 2 ( ) D. Ο

COURSE: DATA STRUCTURES USING C & C++ CODE: 05BMCAR17161 CREDITS: 05

Transcription:

Reg. No. : Question Paper Code : 97044 B.E./B.Tech. DEGREE EXAMINATION NOVEMBER/DECEMBER 2014 Third Semester Computer Science and Engineering CS 6301 PROGRAMMING AND DATA STRUCTURES-II (Regulation 2013) Time: Three hours Maximum: 100 marks Answer ALL questions PART A (10 2 = 20 marks) 1 Define data abstraction. 2. Write a member function to find the greatest of two numbers using this pointer. 3. Mention any four operators of C++ that cannot be overloaded. 4. What are pure virtual functions? Give example. 5. Give an example on function template. 6. What is the significance of Iterators? 7. Define Fibonacci heaps. 8. What is meant by amortized analysis? 9. Give the ways in which a graph can be represented with an example 10. Define minimum spanning tree. PART B (5 16 = 80 marks) 11 (a) i. List the different types of constructors. Write a program to illustrate the use of different types of constructors. (10) Brief on the features of C++ programming language. (6) (b) i. Explain the ways in which member functions of a class can be defined and called using a suitable example.. (10) Explain with an example the use of static members. (6)

12 (a) i. Write a program to perform string copy operation using dynamic constructor. (6) Consider the following arithmetic expressions : C = 2 + B and K = S T, where B, C, K, S and T are the objects of a class called 1DArray. Write a program to perform these operations by overloading the + and operators appropriately. (10) (b) i. Write a program to perform dynamic initialization of objects. (6) Write a program to illustrate the process of multi-level multiple inheritance concept of C++ language. (10) 13 (a) i. Write a program to illustrate the concept of re-throwing an exception. (8) Write a program to read a string to store it in a file, and read the same string from the file to display it on the output device. (8) (b) i. What is a STL? Brief on its key components and their types. (8) Write a function template to find the minimum value contained in an array. (8) 14 (a) i. What is as Red-Black tree? Mention the properties that a Red-Black tree holds.. (6) Show the results of inserting 43, 11, 69, 72 and 30 into an initially empty AVL tree. Show the results of deleting the nodes 11 and 72 one after the other of the constructed tree. (10) (b) i. What is a B-tree? Mention the properties that a B-tree holds. (6) Construct a binary search tree by inserting 30, 10, 4, 19, 62, 35, 28, 73 into an initially empty tree. Show the results of splaying the nodes 4 and 62 one after the other of the constructed tree. (10) 15 (a) i. Write an algorithm for breadth first search on a graph and give the nodes of the graph G" given in fig.15(a) based on the algorithm. (6) i. Using Dijkstra s algorithm, find the shortest path from the source to all other nodes of the graph 'G given in fig.15(a). (10)

Fig. 15(a) (b) i. Illustrate the working of Warshall s algorithm. (6) Consider a directed acyclic graph D given in fig.15(b). Sort the nodes of D by applying topological sort on D. (10) Fig. 15 (b)

Reg. No. Question Paper Code : 57236 B.E./B.Tech. DEGREE EXAMINATION MAY/JUNE 2016 Third Semester Computer Science and Engineering CS 6301 PROGRAMMING AND DATA STRUCTURES II Time : Three hours (Common to Information Technology) (Regulation 2013) Maximum : 100 marks Answer ALL questions PART A (10 2 = 20 marks) 1 When do you declare a member of a class static? 2. List out the advantages of using storage classes. 3. How does a C string differs from a C++ type string? 4. Distinguish the term overloading and overriding. 5. Distinguish the term template class and class template. 6. List out the types of containers. 7. List out the various operations that can be performed on B-trees. 8. What is amortized analysis? 9. What are the different ways to represent the graph? 10. List out the applications of depth-first search. PART B (5 16 = 80 marks) 11 (a) i. Describe the different mechanisms for accessing data members and member functions in a class with a suitable example. (10) Explain the role of this pointer. (6) OR (b) What is a constructor? Explain the different types of constructors with suitable examples. (16)

12 (a) i. Write a C++ program to overload the decrement operator with prefix and postfix forms. (8) Explain any two types of inheritance supported in C++ with suitable examples. (8) OR (b) With suitable C++ program explain how the polymorphism is achieved at compile time and run time. (16) 13 (a) i. Write a class template to represent a queue of any possible data type. (8) Illustrate about how exceptions are handled using multiple catch handlers. (8) OR (b) i. Explain the components of STL. (8) Write a C++ program that reads a text file and creates another file that is identical except that every sequence of consecutive blank spaces is replaced by a single space. (8) 14 (a) i. Define AVL tree and starting with an empty AVL search tree, insert the following elements in the given order: 2, 1, 4, 5, 9, 3, 6, 7 (8) Explain AVL rotations with a suitable example. (8) OR (b) Implement the Fibonacci heaps and compare their performance with binary heaps when used in Dijkstra s algorithm. (16) 15 (a) i. Illustrate the Dijkstra s algorithm for finding the shortest path with the following graph. (12)

Illustrate the comparison of Floyd s algorithm with Dijkstra s algorithm (4) OR (b) Find the minimum spanning tree for the given graph using both Prim s and Kruskal s algorithm and write the algorithms. (16)

Reg. No. Question Paper Code : 80287 B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2016. Third Semester Computer Science and Engineering CS 6301 PROGRAMMING AND DATA STRUCTURES II (Common to Information Technology) Time : Three hours (Regulation 2013) Answer ALL questions PART A (10 2 = 20 marks) Maximum : 100 marks 1 List the various storage classes available in C++. 2. Mention the role of this pointer. 3. Give the list of operators that cannot be overloaded. 4. Differentiate compile and run time polymorphism. 5. What is an abstract class? 6. What is a function adaptor? 7. State the uses of virtual functions. 8. Write a note on amortized analysis. 9. Define minimum spanning tree for a graph. 10. List the drawbacks of Floyd-Warshall algorithm. PART B (5 13 = 65 marks) 11. (a) (i) Explain features of object oriented programming in detail. (7) (ii) Discuss the types of constructors with examples (6) (b) (i) What do you mean by static member function? Explain in detail with an example (7) (ii) Give a detailed note on const member function. (6)

12. (a) Describe in detail dynamic memory allocation in C++ with examples. (13) (b) Explain the types of inheritance in detail. (13) 13. (a) (i) Write short notes on C++ exception handling. (7) (ii) Write a C++ program to write a set of characters to a file (6) (b) Explain in detail about different STL containers (13) 14. (a) Explain the possible AVL rotations with algorithm and example. (13) (b) Explain insertion and deletion operations on Fibonacci heaps. Construct Fibonacci heaps for the following set of elements 10, 11, 5, 35, 8, 4, 2, 3, 77, 1, 45. (13) 15. (a) Present the pseudocodes of the different graph traversal methods and demonstrate with an example. (13) (b) Explain how transitive closure of a graph can be found using Warshalls algorithm. (13) PART C (1 15 = 15 marks) 16. (a) Using Dijkstra s algorithm to find the shortest path from the source node A. (15) (b) Write a C++ generic function with multiple parameters that performs recursive binary search on a linear array. (15)