18cs32 - Data Structure and Its Application
18cs32 - Data Structure and Its Application
COURSE PLAN
Table of Contents
A. COURSE INFORMATION..............................................................................................................3
1. Course Overview.................................................................................................................................................... 3
2. Course Content....................................................................................................................................................... 3
3. Course Material....................................................................................................................................................... 4
4. Course Prerequisites........................................................................................................................................... 5
5. Content for Placement, Profession, HE and GATE.......................................................................5
B. OBE PARAMETERS...........................................................................................................................5
1. Course Outcomes.................................................................................................................................................. 5
2. Course Applications............................................................................................................................................ 6
3. Mapping And Justification.............................................................................................................................. 6
4. Articulation Matrix................................................................................................................................................. 7
5. Curricular Gap and Content...........................................................................................................................8
6. Content Beyond Syllabus...............................................................................................................................8
C. COURSE ASSESSMENT...............................................................................................................8
1. Course Coverage................................................................................................................................................... 8
2. Continuous Internal Assessment (CIA)..................................................................................................9
D1. TEACHING PLAN - 1......................................................................................................................9
Module - 1........................................................................................................................................................................ 9
Module – 2.................................................................................................................................................................... 10
E1. CIA EXAM – 1.....................................................................................................................................12
a. Model Question Paper - 1..............................................................................................................................12
b. Assignment -1........................................................................................................................................................ 12
D2. TEACHING PLAN – 2..................................................................................................................13
Module – 3..................................................................................................................................................................... 13
Module – 4..................................................................................................................................................................... 14
E2. CIA EXAM – 2....................................................................................................................................15
a. Model Question Paper - 2.............................................................................................................................15
b. Assignment – 2..................................................................................................................................................... 16
D3. TEACHING PLAN – 3..................................................................................................................17
Module – 5..................................................................................................................................................................... 17
E3. CIA EXAM – 3....................................................................................................................................18
a. Model Question Paper - 3.............................................................................................................................18
b. Assignment – 3..................................................................................................................................................... 18
F. EXAM PREPARATION...................................................................................................................19
1. University Model Question Paper............................................................................................................19
2. SEE Important Questions...............................................................................................................................21
Note : Remove “Table of Content” before including in CP Book
Each Course Plan shall be printed and made into a book with cover page
Blooms Level in all sections match with A.2, only if you plan to teach / learn at higher levels
A. COURSE INFORMATION
1. Course Overview
Degree: BE Program: CS
Year / Semester : 2/4 Academic Year: 2019-20
Course Title: Data Structure And Application Course Code: 18CS32
Credit / L-T-P: 4/L SEE Duration: 180 Minutes
Total Contact Hours: 50 SEE Marks: 60 Marks
CIA Marks: 30 Assignment 5/ 5
Course Plan Author: Akshatha Kamath Sign Dt:
Checked By: Sign Dt:
CO Targets CIA Target : ……. % SEE Target: ……. %
Note: Define CIA and SEE % targets based on previous performance.
2. Course Content
Content / Syllabus of the course as prescribed by University or designed by institute. Identify 2
concepts per module as in G.
Mod Content Teachi Identified Module Blooms
ule ng Concepts Learning
Hours Levels
1 Introduction: Data Structures, Classifications (Primitive & Non 10 DS conventions, L3
Primitive), Data structure Operations, Review of Arrays, Data
Structures, Self-Referential Structures, and Unions. Pointers Manipulation
and Dynamic Memory Allocation Functions.
Representation of Linear Arrays in Memory, Dynamically
allocated arrays, Array Operations: Traversing, inserting,
deleting, searching, and sorting. Multidimensional Arrays,
Polynomials and Sparse Matrices.
Strings: Basic Terminology, Storing, Operations and Pattern
Matching algorithms. Programming
2 Stacks: Definition, Stack Operations, Array Representation of 10 Sequential L3
Stacks, Stacks using Dynamic Arrays, Stack Applications: storage
Polish notation, Infix to postfix conversion,evaluation of representation ,s
postfix expression, olving
Queues: Definition, Array Representation, Queue Operations, mathematical
Circular Queues, Circular queues using Dynamic arrays, problem
Dequeues, Priority Queues, A Mazing Problem. Multiple
Stacks and Queues. Programming Examples. Recursion -
Factorial, GCD, Fibonacci Sequence, Tower of
Hanoi,Ackerman's
function.
Recursion - Factorial, GCD, Fibonacci Sequence, Tower of
Hanoi, Ackerman's function.
3 Linked Lists:Definition, Representation of linked lists in 10 Linked storage L3
Memory, Memory allocation; Garbage Collection. Linked list representation
operations: Traversing, Searching, Insertion, and Deletion.
Doubly Linked lists, Circular linked lists, and header linked
lists. Linked Stacks and Queues. Applications of Linked lists –
Polynomials, Sparse matrix representation. Programming
Examples
4 Trees: Terminology, Binary Trees, Properties of Binary trees, 10 Binary Tree L3
Array and linked Representation of Binary Trees, 4 Binary Properties,Data
Tree Traversals – Inorder, postorder, preorder; Additional Hierarchy
Binary tree operations. Threaded binary trees, Binary Search
Trees – Definition,Insertion, Deletion, Traversal, Searching,
Application of Trees- Evaluation of Expression,
17cs43/ 18CS32 Copyright ©2017. cAAS. All rights
reserved.
Page # 3 / 22
BE-3-CS-SKIT-Ph5b1-F02-V2.2
COURSE PLAN - CAY 2018-19
Programming Examples
5 Graphs: Definitions, Terminologies, Matrix and Adjacency List 10 Traversal L3
Representation Of Graphs, Elementary Graph operations, Methods,proble
Traversal methods: Breadth First Search and Depth First m solving ,tables
Search. Sorting and Searching: Insertion Sort, Radix sort, and file
Address Calculation Sort. organizations
Hashing: Hash Table organizations, Hashing Functions, Static
and Dynamic Hashing.
Files and Their Organization: Data Hierarchy, File Attributes,
Text Files and Binary Files, Basic File Operations, File
Organizations and Indexing
- Total 50 - -
3. Course Material
Books & other material as recommended by university (A, B) and additional resources used by course
teacher (C).
1. Understanding: Concept simulation / video ; one per concept ; to understand the concepts ; 15 – 30
minutes
2. Design: Simulation and design tools used – software tools used ; Free / open source
3. Research: Recent developments on the concepts – publications in journals; conferences etc.
Modul Details Chapters Availability
es in book
A Text books (Title, Authors, Edition, Publisher, Year.) - -
1, 2, 3, Ellis Horowitz and Sartaj Sahni, Fundamentals of Data Structures in C, 2 1,2,3,4,5, In Lib / In Dept
4, 5 Edition, Universities Press, 2014. 6
1, 2, 3, Seymour Lipschutz, Data Structures Schaum's Outline s, Revised 1 st 1,2,3,4,5,
4, 5 Ed, McGraw Hill, 2014. 6,7,8,9
4. Course Prerequisites
Refer to GL01. If prerequisites are not taught earlier, GAP in curriculum needs to be addressed. Include
in Remarks and implement in B.5.
Students must have learnt the following Courses / Topics with described Content . . .
Mod Course Course Name Topic / Description Sem Remarks Blooms
ules Code Level
1 17pcd13/ C Programing 1. Knowledge on Data Structures 1/2 Understa
23 nd L2
2
-
-
B. OBE PARAMETERS
1. Course Outcomes
Expected learning outcomes of the course, which will be mapped to POs. Identify a max of 2 Concepts
per Module. Write 1 CO per Concept.
Mod Course Course Outcome Teach. Concept Instr Assessme Blooms’
ules Code.# At the end of the course, student Hours Method nt Level
should be able to . . . Method
1 17cs33.1 Learn data structure classification 3 DS Lecture Q & A L2
for array,union,structure along with convention Apply
the memory allocation functions s,
1 17cs33.2 Apply array and string operations 7 Data Lecture Assignme L3
by manipulating methods Manipulati nt Apply
on
2 17cs33.3 Compare the stack and queues 7 Sequential Lecture Assignme L2
concept using static and dynamic storage nt and Understand
allocations representa Slip Test
tion
2 17cs33.4 Apply by solving mathematical 3 solving Lecture Assignme L3
aspects using recursion methods mathemati / PPT nt Apply
cal
problem
3 17cs33.5 Differentiate the stacks and queues 10 Linked Lecture test L3
implementations with combined storage Apply
arrangements using linked list representa
17cs43/ 18CS32 Copyright ©2017. cAAS. All rights
reserved.
Page # 5 / 22
BE-3-CS-SKIT-Ph5b1-F02-V2.2
COURSE PLAN - CAY 2018-19
tion
3 17cs33.6 Apply binary tree on arrays and 4 Binary Lecture Assignme L3
linked list for binary tree traversal Tree and nt Apply
Properties, Tutorial
4 17cs33.7 Apply the data hierarchy for 6 Data Lecture Assignme L3
mathematical expression Hierarchy nt and Apply
Test
4 17cs33.8 Simplify the graph using Depth first 4 Traversal Lecture Assignme L3
search and Breadth first search Methods, nt Apply
Traversal methods
5 17cs33.9 Write the function for given set of 3 Problem Lecture Assignme L3
values using sorting problem solving nt Apply
solving technique
5 17cs33.10 Examine the data to be organized 3 tables and Lecture Assignme L3
in table and file formate using file nt/test Apply
hashing and file operations organizatio
ns
- - Total 50 - - - -
2. Course Applications
Write 1 or 2 applications per CO.
Students should be able to employ / apply the course learnings to . . .
Mod Application Area CO Level
ules Compiled from Module Applications.
1 Acquires the knowledge of various types of data structures CO1 L2
1 Able to Perform arrays and string operations CO2 L3
2 Able to differentiate stacks and queue data structure CO3 L2
2 Able to perform recursion operation on different problems CO4 L3
(factorial,GCD,Fibonacci,Tower of Hanoi)
3 Able to perform the sequential and linked storage representation of data CO5 L3
3 Able to analyze the performance of stack,queue,lists,trees CO6 L3
4 Able to organize the data in hierarchical level using binary tree traversal and binary CO7 L3
search tree
5 Able to perform the traversal methods CO8 L3
5 Able to analyze the searching and sorting techniques CO9 L3
5 Able to implement and design the data structure in a high level langauage in CO10 L3
organized manner
CO4 PO1 The knowledge of arrays, linked lists, stacks and queues can be L3
applied to solve complex engineering problems.
PO3 L3
CO5 PO1 The knowledge of arrays, linked lists, stacks and queues can be L3
applied to design solutions to complex engineering problems in
multidisciplinary areas.
PO3
PO4 They belong to the core concepts of CS. L3
CO6 PO1 The knowledge of non linear data structures like trees and can be L3
applied to solve complex engineering problems.
PO3 This knowledge can be used to design efficient solutions to L3
complex problems.
PO4 This knowledge helps in representation, analysis and interpretation L3
of data to provide valid conclusions.
CO7 PO1 L3
PO3 L3
PO4 L3
CO8 PO1 The knowledge of non linear data structures like graphs can be L3
applied to solve complex engineering problems.
PO3 This knowledge can be used to design efficient solutions to L3
complex problems.
PO4 This knowledge helps in representation, analysis and interpretation L3
of data to provide valid conclusions.
CO9 PO1 This basic knowledge of sorting and searching can be used in L3
solutions to complex engineering problems.
PO3 This concept is fundamental in conducting investigations and L3
interpretations of data.
PO4 The concept of sorting and searching are fundamental to the CS L3
discipline and can be used research and other innovative ideas.
CO10 PO1 The knowledge of various hashing techniques can be applied in L3
designing solutions to complex engineering problems.
4. Articulation Matrix
CO – PO Mapping with mapping level for each CO-PO pair, with course average attainment.
C. COURSE ASSESSMENT
1. Course Coverage
Assessment of learning outcomes for Internal and end semester evaluation. Distinct assignment for
each student. 1 Assignment per chapter per student. 1 seminar per test per student.
Seminar - 1 - - -
Seminar - 2 - - -
Seminar - 3 - - -
b Course Schedule - -
Class No Module Content Covered CO Level
1 Introduction: Data Structures, Classifications (Primitive & Non Primitive), C01 L2
2 Data structure Operations, Review of Arrays, Structures,
3 Self-Referential Structures, and Unions. Pointers and Dynamic Memory
Allocation Functions.
17cs43/ 18CS32 Copyright ©2017. cAAS. All rights
reserved.
Page # 9 / 22
BE-3-CS-SKIT-Ph5b1-F02-V2.2
COURSE PLAN - CAY 2018-19
d Review Questions - -
1 What do you mean by Data Structure? Give the classification of Data CO1 L1
Structures.
2 What do you mean by Data Structure? Explain with an example. CO1 L3
3 What are the various types of data structures? Brief with an example. CO2 L2
4 Differentiate between linear and non – linear data structures. Explain how CO2 L3
a structure can be represented in C.
5 Define Arrays. Explain different types of arrays. How a one dimensional CO2 L2
array can be initialized? Explain with example
6 What are the various operations performed on arrays? Explain with CO2 L5
algorithms? Write a C program to demonstrate basic array operations
7 What is a sparse matrix? Brief it with an example. Write a C program to CO2 L2
check whether input matrix is a sparse or not
8 What are polynomials? Brief it with an example. Write a C program to add CO2 L3
two polynomials
9
10
e Experiences - -
1 CO1 L2
2
3
4 CO3 L3
5
Module – 2
Title: Stack And Queues ,Recursion Appr 10 Hrs
Time:
a Course Outcomes - Blooms
- The student should be able to: - Level
1 Compare the stack and queues concept using static and dynamic CO3 L3
allocations
2 Analyze by solving mathematical aspects using recursion methods CO4 L3
b Course Schedule - -
Class No Module Content Covered CO Level
11 Stacks: Definition, Stack Operations, CO3 L3
17cs43/ 18CS32 Copyright ©2017. cAAS. All rights
reserved.
Page # 10 / 22
BE-3-CS-SKIT-Ph5b1-F02-V2.2
COURSE PLAN - CAY 2018-19
d Review Questions - -
11 Define stack and List and implement basic operations in stack using C CO3 L1
(push, pop, isempty, isfull).Implement reversing a string using stack (array
implementation) in C.
12 Write a C program to implement multiple stacks using single array CO4 L3
13 Write short notes on Applications of stack CO3 L2
14 Write an algorithm to evaluate postfix expression. Trace the same CO4 L3
algorithm with stack contents for the following expression A B C + * C B A -
+ * with A=1, B=2, C=3.
15 Convert each of the following expression to its postfix and prefix forms CO4 L2
a) ( A + B ) * C – D $ E * F
b) A - B / C * D $ E
c) ( A + B ) * ( C + D – E ) * F
d) ( ( ( A + ( B - C ) * D ) ^ E ) + F )e) ( a + b ) * d + e / ( f + a * d ) + c
f) ( ( a / ( b - c + d ) ) * ( e - a ) * c )
g) a / b – c + d * e – a * c
17 What is recursion? Give two conditions to be followed for successive CO3 L5
working of recursive program. Write a 'c' recursive program to solve tower
of Hanoi problem.
18 Write a recursive function for computing nth Fibonacci term of a CO3 L2
Fibonacci sequence. Hence give the trace of stack contents for n=4.
19 Determine what the following recursive C function computes CO3 L3
int func(int n)
{
if(n==0)
return 0;
return (n+func(n-1));
}Write an iterative function to accomplish the same.
20 What is a linear queue? What are the applications of linear queue?
Implement/Write a C program to simulate the 1) insert 2) delete 3)display
operations.
e Experiences - -
1 CO1 L2
2
3
4 CO3 L3
5
b. Assignment -1
Note: A distinct assignment to be assigned to each student.
Model Assignment Questions
Crs Code: CS501PC Sem: I Marks: 5 / 10 Time: 90 – 120 minutes
Course: Design and Analysis of Algorithms
17cs43/ 18CS32 Copyright ©2017. cAAS. All rights
reserved.
Page # 12 / 22
BE-3-CS-SKIT-Ph5b1-F02-V2.2
COURSE PLAN - CAY 2018-19
Note: Each student to answer 2-3 assignments. Each assignment carries equal mark.
SNo USN Assignment Description Marks CO Level
1 Give the significance of using type definitions with structures 5 CO1 L2
2 Define Unions with an example. Compare structures and 5 CO2 L3
unions with an example. What are the advantages of using
unions?
3 What do you mean by self referential structures? Explain with CO2 L3
an example. Differentiate self referential structures from
ordinary structures
4 Write a algorithm and function to convert a valid infix 5 CO1 L3
expression to postfix expression. Demonstrate the
same function with example.(using stack)
a) ( a * b ) + c / d
b) ( ( ( a / b ) – c ) + ( d * e ) ) - (a * c)
c) a * ( b + c ) * d
d) A $ B * C – D + E / F / ( G + H )
e) A – B / ( C * D $ E )
5 Write a C program to implement a two primitive operations on
stack using dynamic memory allocation.
6 What is system stack? How the control is transferred to or
from the function with the help of activation records.
7 Convert the infix expression to postfix expression and evaluate
the same. a / b – c + d * e – a * c for a=6 b=3 c=1 d=2 e=4.How
multiple stacks implemented using one dimensional array?
Explain with suitable example.
8 Write recursion function to find the maximum of n numbers.
Write recursion function to reverse the positive integer
number.
9 Write a recursive function to implement a binary search.Write
a recursive function to sum a list of numbers.
10 For a given circular queue shown in Fig below write the
values of front and rear in the table after each specified
operation is performed. Queue full/empty conditions must be
considered. 0-7 indicates the array indices.
b Course Schedule - -
Class No Module Content Covered CO Level
31 Linked Lists:Definition, Representation of linked lists in Memory, CO5 L3
32 Memory allocation; Garbage Collection.
33 Linked list operations: Traversing, Searching, Insertion, and Deletion.
34 Doubly Linked lists,
35 Circular linked lists,
36 header linked lists.
37 Linked Stacks and Queues.
38 Applications of Linked lists – Polynomials,
39 Sparse matrix representation.
40 Programming Examples
d Review Questions - -
12 Assume a list exists. Read two numbers M and N from the list and swap CO5 L3
them.Write a function to reverse a singly linked list.
13 Write a function to print an ordered list.(The list should sort and as and CO5 L3
when the elements are entered) . Write a function to concatenate two
lists.
14 Write a function to display nodes of a DLL in reverse order. Write a CO5 L3
function to delete all nodes in SLL and DLL.
15 Give differences between SLL and DLL.Explain in detail the merits and CO5 L3
demerits of linked lists
16 Distinguish arrays and linked lists Explain advantages of circular lists with CO5 L3
respect to other lists.
17 What is the use of header node in a list. Explain with examples. CO5 L3
18
19
e Experiences - -
1 CO1 L2
2
3
4 CO3 L3
5
Module – 4
Title: Tree Appr 10 Hrs
Time:
a Course Outcomes - Blooms
- The student should be able to: - Level
1 Apply binary tree on arrays and linked list for binary tree traversal CO6 L3
2 Analyze the data hierarchy for mathematical expression CO7 L3
b Course Schedule - -
Class No Module Content Covered CO Level
31 Trees: Terminology, Binary Trees, CO6 L3
32 Properties of Binary trees,
33 Array and linked Representation of Binary Trees,
34 Binary Tree Traversals – Inorder, postorder, preorder; CO7 L3
17cs43/ 18CS32 Copyright ©2017. cAAS. All rights
reserved.
Page # 14 / 22
BE-3-CS-SKIT-Ph5b1-F02-V2.2
COURSE PLAN - CAY 2018-19
d Review Questions - -
12 Define the following: CO6 L1
i) Binary tree ii) Complete BT iii) Almost Complete BT iv)Binary Search Tree
v)Depth of a tree vi)Sibling
13 In brief describe any five applications of tree. What are the different ways CO6 L3
of representing a tree? Explain with example
14 What are the different ways of representing a Binary tree? Explain with CO6 L2
example
15 Write a function to sort the elements in a BST. Explain the different CO6 L3
methods in which a binary tree can be represented? Give the advantages
and disadvantages of each?
16 Write C functions for the following tree traversals: CO7 L2
i) Inorder ii)Preorder iii)Postorder
17 Construct a binary tree from the given preorder and inorder sequence: CO7 L5
Preorder: A B D G C E H I F Inorder: D G B A H E I C F
18
19
e Experiences - -
1
2
3
4
5
deleted.
c Demonstrate queue and stack using singly linked list CO6 L3
d L1
2 a Explain how a chain can be used to implement a queue. Write the 20 CO7 L2
functions to insert and delete elements from such queue.
b Write functions for the following L3
a. To find length of the list
b. To display odd and even numbers in the list
c. To add odd & even numbers in the list
d. To search a given node in the list
c Create SLL of integers and write C functions to perform the following L3
a. Create a node list with data 10,20 and 30
b. Insert a node with value 15 in between 10 and 20
c. Delete the node whose data is 20
d. Display the resulting SLL
d L2
b. Assignment – 2
Note: A distinct assignment to be assigned to each student.
Model Assignment Questions
Crs Code: CS501PC Sem: I Marks: 5 / 10 Time: 90 – 120 minutes
Course: Design and Analysis of Algorithms
Note: Each student to answer 2-3 assignments. Each assignment carries equal mark.
SNo USN Assignment Description Marks CO Level
1 7. Write operations for SSL, DLL CSLL & CDLL 5 CO8 L2
a. Insertfront() b. InsertEnd() c. Insert_Bef_Key d.
Insert_aft_Key()e. Del_front() f. Del_End() g. Del_Key()
2 Write operations for CSLL & CDLL 5 CO9 L3
a. Insertfront() b. InsertEnd() e. Del_front() f. Del_End()
3 19. For the given sparse matrix and its transpose give the CO10 L3
triplet representation using 1D array. A will be its given matrix
and B will be its transpose.
15 0 0 22 0 -15
0 11 3 0 0 0
0 0 0 -6 0 0
A= 0 0 0 0 0 0
91 0 0 0 0 0
0 0 28 0 0 0
4 Consider two polynomials A(x) = 2x1000 + 1 and B(x) = x4 + 10x3 5 CO9 L3
+ 3x2 +1, show diagrammatically how these two polynomials
can be stored in a single 1-D array. Also give its C
representation.
5 What is polynomial? What is the degree of polynomial? Write
a function to add two polynomial.
6 Explain different types of linked list with diagram.
7 With node structure show how would you store the
polynomials in linked list? Write C functions for adding two
polynomials represented as circular lists.
8 Write a short note on linked representation of sparse matrix
and DLL
9 What is Threaded Binary Tree? Explain its advantage over
Binary Tree. Explain threaded binary tree construction with a
suitable example.
10 16.Write C functions to perform the following operations on
BST
(i)Count the number of nodes
(ii) Find the largest and smallest element.
(iii)Count and display the leaf nodes
(iv)Count and display the non leaf nodes
11
12
b Course Schedule - -
Class No Module Content Covered CO Level
41 Graphs: Definitions, Terminologies, Matrix and Adjacency List CO8 L3
Representation Of Graphs,
42 Elementary Graph operations,
43 Traversal methods: Breadth First Search and Depth First Search.
44 Sorting and Searching: Insertion Sort, Radix sort, CO9 L3
45 Address Calculation Sort.
46 Hashing: Hash Table organizations, Hashing Functions, Co10
47 Static and Dynamic Hashing.
48 Files and Their Organization: Data Hierarchy,
49 File Attributes, Text Files and Binary Files, Basic File Operations,
50 File Organizations and Indexing
d Review Questions - -
12 What is level order traversal of a tree? Write a C function for the level CO8 L1
17cs43/ 18CS32 Copyright ©2017. cAAS. All rights
reserved.
Page # 17 / 22
BE-3-CS-SKIT-Ph5b1-F02-V2.2
COURSE PLAN - CAY 2018-19
e Experiences - -
1 CO9 L3
2 CO10 L3
3 CO9 L3
4 CO10 L3
5
b. Assignment – 3
Note: A distinct assignment to be assigned to each student.
Model Assignment Questions
Crs Code: CS501PC Sem: I Marks: 5 / 10 Time: 90 – 120 minutes
Course: Design and Analysis of Algorithms
Note: Each student to answer 2-3 assignments. Each assignment carries equal mark.
SNo USN Assignment Description Marks CO Level
1 What is indexing? Explain Ordered indices, Dense & Sparse 5 CO9 L2
indices, Cylinder Surface indexing, Multi-level indices,
Inverted indices, B-Trees indices & Hashed indices
2 What are biconnected components? How can traversal 5 CO9 L3
algorithm be used to find biconnectedcomponents of a
graph?
3 What is Spanning tree of a graph? Explain with an example CO10 L3
how a spanning tree is constructed using DFS traversal.
4 What are the different file attributes? Explain. 5 CO10 L3
5 Explain the different type of indices used in indexed file CO9 L3
organization.
6 Explain the data hierarchy in a file organization. CO10 L3
7 What is hashing? Explain the need for hashing. How does it CO9 L3
improve access time of data?
8 What are the key components of hashing? Explain with an CO10 L3
example.
9 What are the requirements that a good hashing function CO9 L3
should satisfy? Explain.
10 Explain the following terminologies with respect to a graph? CO10 L3
Degree of a node
Weighted graph
Adjacency matrix
Connected graph
Complete graph
11 Construct an inorder threaded binary tree for the following CO9 L3
binary tree.
12 Define graph. Write the difference between graph and trees. CO10 L3
Show the adjacency matrix and adjacency list representation
for the given graph.
13
14
15
16
17
18
F. EXAM PREPARATION
1. University Model Question Paper
Course: Data Structure and Applications Month / Year May /2018
Crs Code: CS501PC Sem: I Marks: 100 Time: 180 minutes
- Note Answer all FIVE full questions. All questions carry equal marks. Marks CO Level
1 a What do you mean by Data Structure? What are the various operations 16 / CO1
performed on data structures? Explain 20
b Explain declaring pointer to structure with an example
c Define String. Explain how a string can be declared and initialized with an CO2
example
d List different string manipulation functions. Explain them along with
syntax
3 a Write all four functions to implement circular DLL using header. 16 / CO5
20
b Describe DLL with advantages and disadvantages. Write C function to
delete a node from DLL, ptr is a pointer which points to the node to be
deleted. Assume that there are nodes on either side of the node to be
deleted.
c Demonstrate queue and stack using singly linked list CO6
d
- a Explain how a chain can be used to implement a queue. Write the 16 / CO5
functions to insert and delete elements from such queue. 20
b Write functions for the following
a. To find length of the list
b. To display odd and even numbers in the list
c. To add odd & even numbers in the list
17cs43/ 18CS32 Copyright ©2017. cAAS. All rights
reserved.
Page # 20 / 22
BE-3-CS-SKIT-Ph5b1-F02-V2.2
COURSE PLAN - CAY 2018-19
5 a What are pros and cons of linear probing, quadratic probing and double 16 / CO9
hashing. 20
b What are the methods used for traversing the graph. Explain each with an CO10
example.
c What is graph traversal. What are the graph traversal algorithms. Explain
with example.
d
DA,HRA). Write the following functions to process the employee data: (I)
Function to read an employee record. (ii) Function to print an employee
record.
2 1 Define Recursion. What are the various types of recursion? Give two 16 / 2014/
conditions to be followed for successive working of recursive program. 20 15/16
Give recursive implementation of binary’s search with proper comments.
2 Write an algorithm to convert a valid infix expression to a postfix 2014/
expression. Also evaluate the following suffix expression for the values: 15/16
A=1 B=2 C=3.AB+C-BA+C$- and convert
i) a*(b+c)*d ii) (a+b)*d+e/(f+a*d)+c iii) ((a/(b-c+d))*(e-a)*c) iv) a/b-c+d*e-a*c
iv) (a*b) +c/d v) ((a/b)c)+(d*e)) (a*c) to postfix.
3 What is the advantage of circular queue over ordinary queue? Mention 2009
any 2 applications of queues. Write an algorithm CQINSERT for static
implementation of circular queue.
4 Define stack. Implement push & pop functions for stack using arrays. 2014/
15
5 2004
3 1 List out any two applications of linked list and any two advantages of 16 / 2014/
doubly linked list over singly linked list. 20 15/16
2 Write short note on circular lists. Write a function to insert a node at front 2015
and rear end in a circular linked list. Write down sequence of steps to be
followed.
3 Write the following functions for singly linked list: i) Reverse the list 2014/
ii)Concatenate two lists. 15/16
4 Write the node structure for linked representation of polynomial. Explain 2013/
the algorithm to add two polynomial represented using linked lists. 15/16
5 What is a linked list? Explain the different types of linked list with diagram. 2014/
Write C program to implement the insert and delete operation on a 15/16
queue using linked list.
5 1 Explain the following with an example: i) forest & its traversals. Explain the 16 / 2015
different method of traversing a tree with following tree 20
ii) graph iii) winner tree .iv) Selelction trees (june/jul 2015).
2 Describe the binary search tree with an example. Write a iterative & 2014
recursive function to search for a key value in a binary search tree. Define
ADT of binary search tree. Write BST for the elements
{ 22,28,20,25,22,15,18,10,14} {14, 5, 6, 2, 18, 20, 16, 18, -1, 21}
3 Explain selection trees, with suitable example. 2014
4 What is a forest. With suitable example illustrate how you transform a 2014/
forest into a 15
binary tree.
5 Construct a binary tree having the following sequences. 2015