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

Sunday, 6 June 2021

DS-(I) Assignment 7: Stack

June 06, 2021  DS LAB (I)  No comments

 

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).
 

Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 Comments:

Post a Comment

Subscribe to: Post Comments (Atom)
  • Popular
  • Tags
  • Blog Archives

Followers

ABOUT

Rahul Sonawane
Nashik, Maharashtra, India
Qualification: M.Tech (IMCA), NET, SET
View my complete profile

Popular Posts

  • Python Programming Laboratory
      Savitribai Phule Pune University,  M.Sc. (Computer Application) (Semester-III) Practical Examination Solved Slips. M.Sc. (Computer Applica...
  • OS-(I) Assignment 4: Demand Paging and Page Replacement Algorithms
    NEW. Set A. (1) Write the simulation program to implement demand paging and show the page scheduling and...
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)

 
  • Contact form

    Name

    Email *

    Message *

    Total Pageviews

  • Pages

    • CA - CCTP-5 Operating Systems
    • Operating System II (LABORATORY COURSE)
    • Operating System I (LABORATORY COURSE)
    • DS Lab I Assignments
    • DS Lab II Assignments
    • F.Y.BSc.(CS) (2019 PAT)
    • S.Y.B.Sc.(CS) (2019 PAT)
    • DS I Theory Notes
    • DS II Theory Notes
  • About

    • What is computersciencestudyhub?
    computersciencestudyhub is a Programming languages site, with tutorials and references on Programming languages such as C, C++ and Data Structure covering most aspects of Programming languages.
    • Easy Learning computersciencestudyhub focused on simplicity.
    • computersciencestudyhub uses simple code explanations with simple illustrations of how to use it.
    • computersciencestudyhub tutorials start from the basic level and move all the way up to professional references.
    • computersciencestudyhub is Free

Copyright © Computer Science | Powered by Blogger
Design by NewWpThemes | Blogger Theme by Lasantha - Premium Blogger Themes | Virtual Private Server