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 8: Applications of Stack
Set A.
a)Write a program that reverses a string of characters. The function should use a stack library (cststack.h) of stack of characters using a static implementation of the stack.
b)Write a program to convert an infix expression of the form (a*(b+c)*((d-a)/b)) into its equivalent postfix notation. Consider usual precedence’s of operators. Use stack library of stack of characters using static implementation.
Set B.
a)A postfix expression of the form ab+cd-*ab/ is to be evaluated after accepting the values of a, b, c and d. The value should be accepted only once and the same value is to be used for repeated occurrence of same symbol in the expression. Formulate the problem and write a C program to solve the problem by using stack.
b)Write a program that checks whether a string of characters is palindrome or not. The function should use a stack library (cststack.h) of stack of characters using a static implementation of the stack.
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
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