Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
4 views
2 pages
dsa nov131
Signal and Systems
Uploaded by
bhushanseelan786
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save dsa nov131 For Later
Download
Save
Save dsa nov131 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
4 views
2 pages
dsa nov131
Signal and Systems
Uploaded by
bhushanseelan786
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save dsa nov131 For Later
Carousel Previous
Carousel Next
Download
Save
Save dsa nov131 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
Search
Fullscreen
B.E/ B.TECH DEGREE END SEMESTER EXAMINATIONS, NOV/DEC 2013 THIRD SEMESTER ~ (REGULATIONS 2012) INFORMATION TECHNOLOGY 118303 Programming and Data Structures I Time: Three hours Maximum: 100 marks Answer ALL Questions. Part ~ A (10*2 = 20) Differentiate between a call by value and call by reference. When do we declare a member of a class as statie? How do we initialize it? What is a copy constructor? Is it possible to overload the 1wo methods ‘void fune() const” and ‘void fune()? Justify your answer What is an abstract class? Define namespace. What is the use of ‘using’ declaration? How Fibonacei heaps differ from binomial heaps? What is meant by Amortized Analysis? Show that the stack operation MULTIPOP costs O(1) amortized time. 9. What is meant by a cycle and loop? 10. What is the principle behind Bellman-Ford algorithm to detect negative weight cycles? Peary Part B -(16*5 =80) 11 i) Define a class Travel in C++ with private members Travel_Code, Place_of_type No_of travellers and No_of_buses, A constructor to assign initial values for the members. A function NewTravel( ) which allows user to enter values. A function ShowTravel( ) to display the content from alll the data members on screen. (10) 11 ii) When do we need to use default arguments in a function? Where does the default parameter can be placed by the user? Write a snippet code to explain. (6) 12.) i) Write a program to implement a Ratio class with members num, den. Overload arithmetic operator “+”, relational operator “= =”, stream operators that operate on the objects of Ratio and a conversion operator to convert a Ratio abject to a double value.. (0) 12a) ii) Discuss the need of a friend function with an example. © (OR) 12b) i) Define a class Shape with constructor, destructor and pure virtual functions GetArea() , GetPerim() and Draw(). Derive classes Circle and Rectangle from Shape. Derive another class Square from Rectangle. implement this hierarchy with constructors, destructors and essential functions, Write a main. (10) 12b ii) Explain how dynamic binding is achieved in the above hierarchy. © 313 a) i) Define template class Stack and implement generic methods to push and pop the elements from the stack. (10) 13 a) i) Write the code that creates an exception object to throw a divide by zero exception. (6) (OR) 13 b) i) Write a C+ program that writes into an existing file without destroying the existing contents and read from the file to display the file contents. (10) 13 b) fi) Discuss about the different components in STL. ©) 14 a) i) Perform the splaying operation on a binary search tree obtained by inserting the keys 1, 2, 3, 4, 5, 6, 7, 8 in this order into an initially empty tree. Write the code to do the same (splay and insert) (10) 14) ii) On an initially empty binomial heap, carry out the following sequence of ‘operations: insert(27), insert(17), insert(19), insert(20), insert(24), insert(12), insert(11), insert(10), insert(14), insert(18), deletemin. ‘After each operation, draw the resulting’structure of the binomial heap. (6) (OR) 14 b) i)Construct an AVE tree with values 3, 1, 4, 5, 9, 2, 6, 8, 7, 0 into an initially empty tree. Write the code for inserting into an AVL tree. (10) 14 b) il) Construct a B-tree with order m=3 for the key values 2, 3, 7, 9, 5,6, 4, 8 1 Delete the values 4 and 6. Show the tree in performing all operations. (6) aN Si Ow 15 a) ii) Describe how directed graphs can be traversed. 6) (OR) 15 b) i) What is a Minimum Spanning Tree? Name any two Minimum Spanning Tree (MST) algorithms. For a graph G given below, find its minimum spanning tree by explaining any one algorithm, (16)
You might also like
3 Mark Questions(DSA)
PDF
No ratings yet
3 Mark Questions(DSA)
27 pages
Qus Bank 1
PDF
No ratings yet
Qus Bank 1
29 pages
DSD Modal Exam Expected Question
PDF
No ratings yet
DSD Modal Exam Expected Question
14 pages
Java Coding Interview Questions + Answers (With Code Examples) _ Zero to Mastery
PDF
No ratings yet
Java Coding Interview Questions + Answers (With Code Examples) _ Zero to Mastery
71 pages
Question
PDF
No ratings yet
Question
7 pages
Bcs301 Pue_session 2023-24
PDF
No ratings yet
Bcs301 Pue_session 2023-24
5 pages
DS Experiment Questions
PDF
No ratings yet
DS Experiment Questions
3 pages
Topic Wise Questions
PDF
No ratings yet
Topic Wise Questions
6 pages
MCQ DS
PDF
No ratings yet
MCQ DS
11 pages
1 Introduction To C++ Programming+ADT
PDF
100% (1)
1 Introduction To C++ Programming+ADT
21 pages
Computer Programming: Model Question Paper
PDF
No ratings yet
Computer Programming: Model Question Paper
1 page
dsa 2-14
PDF
No ratings yet
dsa 2-14
3 pages
DS Question Papers (2009 To 2023)
PDF
No ratings yet
DS Question Papers (2009 To 2023)
63 pages
Data Structure Previous Question Paper
PDF
100% (1)
Data Structure Previous Question Paper
2 pages
LAB Manual
PDF
No ratings yet
LAB Manual
40 pages
Exam Booklet
PDF
No ratings yet
Exam Booklet
5 pages
19-series (1)
PDF
No ratings yet
19-series (1)
8 pages
Model Expected Questions
PDF
No ratings yet
Model Expected Questions
5 pages
2019
PDF
No ratings yet
2019
10 pages
data structures Final fall 2018 - SOLUTION
PDF
No ratings yet
data structures Final fall 2018 - SOLUTION
8 pages
Object Oriented Programming Oops Lab Man
PDF
No ratings yet
Object Oriented Programming Oops Lab Man
39 pages
3rd Semester, B.tech, Data StructuresData Structures and Algorithms ,CS 21001CS 2001, Autumn End Semester Examination 2023
PDF
No ratings yet
3rd Semester, B.tech, Data StructuresData Structures and Algorithms ,CS 21001CS 2001, Autumn End Semester Examination 2023
6 pages
DSA Model
PDF
No ratings yet
DSA Model
4 pages
Data Structure Model Papers (Two) 2425 (1)
PDF
No ratings yet
Data Structure Model Papers (Two) 2425 (1)
6 pages
Anna University: Chennai - 600 025
PDF
No ratings yet
Anna University: Chennai - 600 025
7 pages
ECS40 Final Study Guide
PDF
No ratings yet
ECS40 Final Study Guide
2 pages
Maximum Marks: 100
PDF
No ratings yet
Maximum Marks: 100
4 pages
Question Paper Code: 57236: Cseannauniv - Blogspot.in
PDF
No ratings yet
Question Paper Code: 57236: Cseannauniv - Blogspot.in
3 pages
DS Final Exam 2018 Fall
PDF
No ratings yet
DS Final Exam 2018 Fall
8 pages
SY BCA Data Structure Ques.Bank.
PDF
No ratings yet
SY BCA Data Structure Ques.Bank.
5 pages
DS2022
PDF
100% (1)
DS2022
5 pages
Final Exam
PDF
100% (1)
Final Exam
14 pages
Data structure pyqs
PDF
No ratings yet
Data structure pyqs
14 pages
Assignment 2 (TCS302)
PDF
No ratings yet
Assignment 2 (TCS302)
5 pages
Data Structures Question Bank
PDF
No ratings yet
Data Structures Question Bank
1 page
Data Structure 4th semECE,ETC, AERO,AME, AUTO, MECH, MANUTECH, MINERAL, MME,METTA,M413
PDF
No ratings yet
Data Structure 4th semECE,ETC, AERO,AME, AUTO, MECH, MANUTECH, MINERAL, MME,METTA,M413
4 pages
Question Bank
PDF
No ratings yet
Question Bank
5 pages
HANDTAILORED
PDF
No ratings yet
HANDTAILORED
9 pages
DS QUESTION BANK_250424_142659
PDF
No ratings yet
DS QUESTION BANK_250424_142659
6 pages
Common To CSE, IT
PDF
No ratings yet
Common To CSE, IT
1 page
Mid-Term Exam - Sample Solution
PDF
No ratings yet
Mid-Term Exam - Sample Solution
6 pages
CS8391-Data Structures-Anna University Question Papers
PDF
83% (6)
CS8391-Data Structures-Anna University Question Papers
8 pages
18cs32 3rd Semester Cs_dec.2019-Jan.2020
PDF
No ratings yet
18cs32 3rd Semester Cs_dec.2019-Jan.2020
3 pages
BCA DS Assignment
PDF
No ratings yet
BCA DS Assignment
4 pages
School Model Question Paper
PDF
No ratings yet
School Model Question Paper
4 pages
Question-Regular-Cs205 Data Structures (CS, It), December 2017
PDF
No ratings yet
Question-Regular-Cs205 Data Structures (CS, It), December 2017
2 pages
EC2202 DSOOP Anna Question Papers
PDF
No ratings yet
EC2202 DSOOP Anna Question Papers
11 pages
CACSC02
PDF
No ratings yet
CACSC02
4 pages
DATA STRUCTURES_Lateral Entry
PDF
No ratings yet
DATA STRUCTURES_Lateral Entry
4 pages
Download
PDF
No ratings yet
Download
2 pages
Computer Science 2018
PDF
No ratings yet
Computer Science 2018
6 pages
Exam Data Structure2
PDF
No ratings yet
Exam Data Structure2
2 pages
A6 R4
PDF
No ratings yet
A6 R4
5 pages
Btech Cs 3 Sem Data Structure Kcs 301 2023
PDF
No ratings yet
Btech Cs 3 Sem Data Structure Kcs 301 2023
2 pages
CS2201 Data Structure Tutorial
PDF
No ratings yet
CS2201 Data Structure Tutorial
6 pages
Faculty Timetable
PDF
No ratings yet
Faculty Timetable
1 page
C++ Lab Manual
PDF
No ratings yet
C++ Lab Manual
38 pages
MENSURATION
PDF
No ratings yet
MENSURATION
22 pages
12 Set A Computer Science Mid Term 2019
PDF
No ratings yet
12 Set A Computer Science Mid Term 2019
6 pages
Ds Tut Sheet
PDF
No ratings yet
Ds Tut Sheet
5 pages
The_Significance_of_using_Data_Extraction_Methods_for_an_Effective_Big_Data_Mining_Process
PDF
No ratings yet
The_Significance_of_using_Data_Extraction_Methods_for_an_Effective_Big_Data_Mining_Process
4 pages
dsa nov dec13
PDF
No ratings yet
dsa nov dec13
3 pages
Accenture - Zone 1 and 2
PDF
No ratings yet
Accenture - Zone 1 and 2
117 pages
Itas Unit2
PDF
No ratings yet
Itas Unit2
15 pages
tqm 2m
PDF
No ratings yet
tqm 2m
11 pages
Data Structure Practice Questions
PDF
No ratings yet
Data Structure Practice Questions
2 pages