You love to keep a collection of memories in the form of photographs. You have decided to take advantage of your program

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

You love to keep a collection of memories in the form of photographs. You have decided to take advantage of your program

Post by answerhappygod »

You love to keep a
collection of memories in the form of photographs. You have decided
to take advantage of your programming skills in order to keep your
memories organized. You want to develop an application to keep
track of your photos. You have decided to assign categories to
photos as i) friends, ii) family and iii) trips. You also don’t
want these categories to be fixed; you want to start gym soon and
you will be adding some more categories like sports and fitness
etc. Some of your photos can belong to more than one category like
a trip with friends will go to both Friends and trips.
You have decided to
use a s​ingle linked list, Double Linked
list ​ for each category in order to keep track of your
photos. Each photo in your software should have only one node. A
photo node should be accessible (i.e., pointed) by the linked lists
of all categories assigned to that photo (check above attached
picture). Moreover, each photo has a default category named as
“uncategorized” (not shown in the above picture).
A photo node is a data
structure containing at least the following data members:
Operations
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply