Computer Science
Study Material For BSc(CS) students.
Home
B.Sc.(CS)
»
F.Y.B.Sc(CS)
»
Problem Solving using Computer and ‘C’ Programming
S.Y.B.Sc(CS)
»
Data Structures and Algorithms I
»
Notes
Lab Assignments
Data Structures and Algorithms II
»
Notes
Lab Assignments
T.Y.B.Sc(CS)
»
Operating System I
»
Notes
Lab Assignments
Operating System II
»
Notes
Lab Assignments
M.Sc.(CA)
»
F.Y.M.Sc(CA)
»
Operating System
»
Notes
S.Y.M.ScCA)
»
Python Programming
»
Notes
Lab Assignments
Downloads
»
Syllabus
MCQs
Practice Tests
»
OS
DS-(I) Assignment 7: Stack
Set A.
a) Implement a stack library (ststack.h) of integers using a static implementation of the stack and implementing the above six operations. Write a driver program that includes stack library and calls different stack operations.
b) Implement a stack library (dystack.h) of integers using a dynamic (linked list) implementation of the stack and implementing the above five operations. Write a driver program that includes stack library and calls different stack operations.
Set B.
a) Write a program to check whether the contents of two stacks are identical. Use stack library to perform basic stack operations. Neither stack should be changed.
b) Write a program that copies the contents of one stack into another. Use stack library to perform basic stack operations. The order of two stacks must be identical.(Hint: Use a temporary stack to preserve the order).
0 Comments:
Post a Comment
Home
Subscribe to:
Posts (Atom)
Popular
Tags
Blog Archives
Followers
ABOUT
Rahul Sonawane
Nashik, Maharashtra, India
Qualification: M.Tech (IMCA), NET, SET
View my complete profile
Popular Posts
DS LAB (II) Assignment 1 Binary Search Tree and Traversals
Binary Search Tree and Traversals It is a binary tree with the property that the value in a node is greater than any value in a node's...
FCFS Disk Scheduling algorithm
//I) Consider a disk queue with requests for I/O to blocks on cylinders 98, 183, 41, 122, 14, 124, 65, 67. The head is initially at cylinder...
Powered by
Blogger
.
Wikipedia
Search results
Blog Archive
March
(1)
January
(1)
January
(5)
June
(13)
April
(3)
March
(2)
February
(1)
November
(1)
October
(3)
0 Comments:
Post a Comment