Data Structures Lab


Data Structures Lab 
2020 - 2021
πŸ’»πŸ’»




Get Data Structures Notes for all Units here :
πŸ‘‡πŸ‘‡πŸ‘‡









All Programs with Solutions :








6.Write C++ program to realize Set using Generalized Liked List (GLL)  e.g. A ={ a, b, {c, d,e, {}, {f,g}, h, I, {j,k}, l, m}. Store and print as set notation. 






11. Write program to implement a priority queue in C++ using an inorder list to store the items in the queue. Create a class that includes the data items (which should be template) and the priority (which should be int). The inorder list should contain these objects, with operator <= overloaded so that the items with highest priority appear at the beginning of the list (which will make it relatively easy to retrieve the highest item.)




No comments:

Post a Comment