Assignment GDB Solution: CS301 Data Structures

loading...

CS301 Assignment 2 Solution Fall 2017

Question:                                                                                                                                          Marks 20 Write a C++ program to balance three (3) stacks so the sum of numbers in each stack should be same. Your program should fulfill following requirements. 1)      Create three (3) stacks, initially each stack will have three same numbers. Number of each stack should be different from other stack numbers. You can […]

CS301 Assignment 2 Solution Spring 2017

Create a Complete Binary Tree using Array which can add node/elements (Numeric) according to user’s input. After Creating a complete binary tree, you need to print all nodes of complete binary tree, calculate height of tree, levels of tree, range of levels, maximum possible leaf nodes, interior nodes in complete Binary Tree and find the […]

CS301 Assignment 1 solution Spring 2017

Problem Statement:                                                                                                                                Write a C++ program which implements a Simple Single Link List to keep the record of Students. The program should contain an Add operation to add new node/record of student in Linked List. Each record/node of the list contains Student ID and Name. The new node/record can be added at the beginning or […]

CS301 Data Structures Assignment 2 Solution Fall 2014

Problem Statement: Suppose in a Hospital, there are two physicians to deal with patients. Patients of all ages come for their check up. Physician ‘A’ is designated as physician of old patients while physician ‘B’ has to check other patients. Many patients come to the hospital at the same time. There are two queues of […]

CS301 Data Structures Assignment 1 Solution Fall 2014

Problem Statement: Suppose a company Oraflex organizes interviews for a vacant post. Assume that the interviews of the successful candidates after short listing has been started and interview marks are being assigned. You being software developer of the company are assigned a task to prepare candidates’ list that will store candidates’ information such as their […]

CS301 Data Structures GDB Solution Spring 2014

GDB Scenario: Consider V Mart shopping mall where lot of customers comes to shop different products and pay their bills on daily basis.  Quantities of products are changing regularly, incremented as they are stocked, searched and decremented (deleted) as they are sold. It is observed that insertion, deletion and search is in balanced form, as all modifications to the data need to be completed […]

CS301 Data Structures Assignment 4 Solution Spring 2014

Mr. Hamid and Mr. Nisar are working as Detective in an investigation unit of a sensitive institution. They are assigned a very important and complex case to solve. Being an IT professional, you are assigned to help them in anyway. Mr. Hamid has to go outstation in search of a clue. He has found some […]

CS301 Data Structures Assignment 1 Solution Spring 2014

Question: I am sending you a C++ program related to linked list along with your assignment file. In the given C++ program, I did not write some functions. Name of these functions are given below. 1)      main() 2)      List addNodes(int number) 3)      void split(int c, List list, List largeList, List smallList) 4)      void differenceList(List listA, List listB) Your assignment is to write […]