We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Assignment on Data structure
1) What is the difference between list and stack.
2) Describe the similarities and difference between stack and que 3) What is Stack? Write about properties of stack. 4) Write a program to perform insertion and deletion on stack con member detail as given below: Member_no int Member_name string Age int 5) A list contains following record of a customer: [Customer_name Phone_number, City] Write the following user defined functions perform given operations on the stack named ‘status’: (i) Push_element() - To Push an object containing name and P number of customers who live in Goa to the stack (ii) Pop_element() - To Pop the objects from the stack and disp them. Also, display “Stack Empty” when there are no elem the stack. 6) Write a function in Python: Push(SItem) where , SItem is a dictionary containing the detail stationary items– {Sname:price}. The function should push the those items in the stack who have price greater than 75. Also d count of elements pushed into the stack. For example: If the dictionary contains the following data: Ditem={"Pen":106,"Pencil":59,"Notebook":80,"Eraser":25} The stack should contain Notebook Pen The output should be: The count of elements in the stack is 2 7) Cover the following Infix notation in postfix by showing stack st A+((B*c)-(D^E))*F/G 8) Evaluate the following postfix notation by showing stack statu 9) Trur,NOT,True,AND,True,False,OR,AND 10) Evaluate the following postfix notation by showing stack status.250,45,9,/,5,+,20,*,- 11) Write a function to insert an element and delete an elemen queue.
12) Write a program to perform all operation on a stack as emp
containing detail as given below : Emp_Id int emp_name string emp_ salary int 13) Write a program as addclient(client) and delclient(client)m add a new client details(c_Id,c_name,c_company) and delete a details from a list client consider list as queue data structure.