+ 1

Which is best Array, Singly or Duobly linkelist?

Scenario: build an application for a shopping mall to maintain the inventory of different products. Products are divided into different categories. The number of categories are fixed but products in each category can increase/decrease depend on introducing new products. When new product will arrive it will be added to its category, if product will already in any category then only its quantity will update. From array, singly , doubly linked list, searching must efficient & take minimum possible memory

30th Jan 2018, 9:24 AM
Mujahid Abbas
4 Respostas
0
please answer anyone
30th Jan 2018, 9:39 AM
Mujahid Abbas
0
I given assignment by my University and only chose from these options
30th Jan 2018, 9:40 AM
Mujahid Abbas
0
thanks for reply Martin but From array, singly linked list and doubly linked list, which data structure you will prefer to use to build required application. Searching of product should be efficient and application should take minimum possible memory. Select data one or more structure(s) of your choice with solid reason to justify your selection.
30th Jan 2018, 9:41 AM
Mujahid Abbas
0
overall array may be best? less memory & efficient search? or Singly Linked???
30th Jan 2018, 10:05 AM
Mujahid Abbas