Data Structures Lab (DSL)
Second Year (Sem 1 Practical Program Set)
(According to 2016 New Syllabus)
Download The file from here (G Drive)
File Contains : Following University Questions :
(UPDATED)
1
In Second year Computer Engineering class of M students, set A of students play cricket and
set B of students play badminton. Write C/C++ program to find and displayi.
Set of students who play either cricket or badminton or both
ii. Set of students who play both cricket and badminton
iii. Set of students who play only cricket
iv. Set of students who play only badminton
v. Number of students who play neither cricket nor badminton
(Note- While realizing the set duplicate entries are to avoided)
2
Write C/C++ program for storing matrix. Write functions for
a) Check whether given matrix is upper triangular or not
b) Compute summation of diagonal elements
c) Compute transpose of matrix
d) Add, subtract and multiply two matrices
DOWNLOAD THIS PROGRAM
a) Check whether given matrix is upper triangular or not
b) Compute summation of diagonal elements
c) Compute transpose of matrix
d) Add, subtract and multiply two matrices
DOWNLOAD THIS PROGRAM
3
An m x n matrix is said to have a saddle point if some entry a[i][j] is the smallest value in
row i and the largest value in j. Write C/ C++ function that determines the location of a
saddle point if one exists
DOWNLOAD THIS PROGRAM
DOWNLOAD THIS PROGRAM
4
Write C++ program to store set of negative and positive numbers using linked list. Write
functions to
a) Insert numbers
b) Delete nodes with negative numbers
c) Create two more linked lists using this list, one containing all positive numbers and
other containing negative numbers
d) For two lists that are sorted; Merge these two lists into third resultant list that is sorted
DOWNLOAD THIS PROGRAM
DOWNLOAD THIS PROGRAM
5
Write C++ program for string operations- copy, concatenate, check substring, equal, reverse
and length
DOWNLOAD THIS PROGRAM
DOWNLOAD THIS PROGRAM
6
Department of Computer Engineering has student's club named 'Pinnacle Club'. Students of
Second, third and final year of department can be granted membership on request. Similarly
one may cancel the membership of club. First node is reserved for president of club and last
node is reserved for secretary of club. Write C++ program to maintain club member‘s
information using singly linked list. Store student PRN and Name. Write functions to
a) Add and delete the members as well as president or even secretary.
b) Compute total number of members of club
c) Display members
d) Display list in reverse order using recursion
7
Second year Computer Engineering class, set A of students like Vanilla Ice-cream and set B
of students like butterscotch ice-cream. Write C/C++ program to store two sets using linked
list. compute and displayi.
Set of students who like either vanilla or butterscotch or both
ii. Set of students who like both vanilla and butterscotch
iii. Set of students who like only vanilla not butterscotch
iv. Set of students who like only butterscotch not vanilla
v. Number of students who like neither vanilla nor butterscotch
DOWNLOAD THIS PROGRAM
DOWNLOAD THIS PROGRAM
8
In any language program mostly syntax error occurs due to unbalancing delimiter such as (),{},[]. Write C++ program using stack to check whether given expression is well parenthesized or not
DOWNLOAD THIS PROGRAM
9
Write C++ program to
store roll numbers of student in array who attended training program
in random order. Write function for-
a) Searching whether
particular student attended training program or not using linear search
and sentinel search.
b) Searching whether particular student attended
training program or
not using
binary search and Fibonacci search.
DOWNLOAD THIS PROGRAM(Only Fibonacci Search)
10
Pizza parlor accepting maximum M orders. Orders are served in first come first served basis. Order once placed cannot be cancelled. Write C++ program to simulate the system using circular queue using array.
DOWNLOAD THIS PROGRAM
DOWNLOAD THIS PROGRAM
11
Write C++ program to store first year percentage of students in array. Sort array of floating point numbers in ascending order using quick sort and display top five scores.DOWNLOAD THIS PROGRAM
.
.
.
.....Wait for remaining Progs ;)
This comment has been removed by the author.
ReplyDeleteplease upload remaining
ReplyDeleteThanks for this. Your programs are simple and clear for output.
ReplyDelete