You love to keep a collection of memories in the form of photographs. You have decided to take advantage of your program
Posted: Fri Apr 29, 2022 7:12 am
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 single 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
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 single 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