Data analysts and programmers frequently use Arrays and ArrayLists in their work. Typically, ABS insurance brokerage company has been using singly-linked lists to keep track of customers that its salesmen have won for the company.
(i). Critically compare and contrast Arrays and ArrayLists in the context of data structures that organizations use to store data in their data marts and databases.
(ii). Describe the kinds of data that the following types of organizations may store using Arrays and those that they can store using ArrayLists:
(α) a telecommunication’s firm
(b) a manufacturing firm
(iii). In your own words, describe how ABS insurance brokerage company can use singly-linked lists to keep track of customers that its salesmen have won for the company; and draw a suitable diagram (with hypothetical data) to illustrate your answer.
Answers
data instb.
</arr. but. >
pet.
Data analysts and programmers frequently use Arrays and ArrayLists in their work. Typically, ABS insurance brokerage company has been using singly-linked lists to keep track of customers that its salesmen have won for the company.
(i). Critically compare and contrast Arrays and ArrayLists in the context of data structures that organizations use to store data in their data marts and databases.
(ii). Describe the kinds of data that the following types of organizations may store using Arrays and those that they can store using ArrayLists:
(α) a telecommunication’s firm
(b) a manufacturing firm
(iii). In your own words, describe how ABS insurance brokerage company can use singly-linked lists to keep track of customers that its salesmen have won for the company; and draw a suitable diagram (with hypothetical data) to illustrate your answer.
Answer:
Question should be like this- see the picture 1
Answer & Explanation:
i) Arrays and Arrays List are different to each other in some ways:
An array is a block of many single data type object whereas Array list is a long list of small data points called node.
Array has indexes associated with each elements whereas in Lists, we have to go through each element to reach certain data point (eg. in Singly Linked lists).
An organisation which needs to store a single data type data set and doesn't need to add and remove data points more often can use Arrays to store data. While an organisation which does a lot of addition and removal of data points into the data set and very frequently, then the organisation can use Array Lists.
ii) An organisation can have many different type of data that they nee to store and work on very often.
a) A telecommunication firm can have many information to handle. Some are listed below in most appropriate data structure that can be used:
Array: List of all product Ids, Details of certain examination/research conducted which aren't changed very often, etc.
Lists: Details of Customers, Daily Plans offered to customers, etc.
b) A manufacturing firm can also have a set of data/information to handle. Those information can be:
Array: A sequence of production line for manufacturing of a particular product which doesn't changes every now and then.
Lists: Everyday sales, Profit of any product in Sales department, Bill details according to Bill Ids, etc.
iii) Singly Linked Lists are capable of storing different data types in a single node. Operation like addition of data, removal of a data, sorting of data according to certain key in data, Searching a data point( detail of a customer) is easy and can be implemented in Singly Linked Lists.
Organisation like one listed in question can store details like Customer Id, Name of Customer, Address of Customer, Contact Number, Email address, Id of Salesman who brought the customer, Type of Insurance Applied for, Amount of the Plan, Duration of Plan, Key points offered through the plan, etc.
An example of a node in data set can be:
see the second picture.