IT210 Week 5 DQ 1
Identify at least two data structures that are used to organize a typical file cabinet. Why do you feel it is necessary to emulate these types of data structures in a computer program? For what kind of work project would you want to use this type of program?
Two data structures that are used to organize a typical file cabinet would be the file and the record. For example, when opening up a file cabinet there would be folders which can be known as the file and within those folders would be individual items which can be similar to records. The reason I feel it is necessary to emulate these types of data structures in a computer program is most importantly the organization. For example, in a computer program there would be a file and within the file there would be records. The records are the contents within the file and the records contain information that need to be organized to construct the program so that it is easy to use. These items would be stored in arrays. The kind of work that would use this type of program could be an email program like Outlook. For example, there are different files that are broken down in different areas such as calendar, inbox, outbox, contacts, and sent items. The records would be individual contacts information such as names and email addresses. Within the email program there are different records such as the inbox that allows people send emails to show the incoming emails whereas the outbox shows the emails that are being sent out and the sent items contain the emails that were successfully sent. Last, but not least, the calendar allows for a user to make appointments with people that are a part of the contact list.
Two datastructures we consider are : Array and Linked list
- Arrays are linear datastructures consisting of a group of elements that are accessed by indexing. Each element of array often has the same datatype and stored side by side. By datatypes...