logo

Justification of other data structures and design issues.

2 Pages453 Words568 Views
   

Added on  2019-09-23

Justification of other data structures and design issues.

   Added on 2019-09-23

ShareRelated Documents
1.Justification of other data structures and design issuesAns: 2 Dimensional array data structure is also a good option to use it, It’s better for performance as it has random access. Array has contiguous memory allocation and thus we can access it randomly. So Ii has fast access and can beneficial when size of matrix is so large.2.Description of stack implementation and justification for choiceAns: Linked list based stack is an option for calculating the determinant for matrix of different order. As linked list is data structure which uses memory chunks which are not contiguous so it an memory saver data structure and give as better performance in terms of memory.3.Discuss stacks - Was it a good choice for this lab? Ans: Performance wise it’s not best but considering the memory it is an good option.4.Discussion of algorithm efficiency – time complexityAns: Time complexity of this algo is size of list * complexity for recursive call to calculate the minor matrix. Recursive call for calculating minor would be linear. So complexity should be O(n*n) i.e. O(n^2)5.Discussion of algorithm efficiency - space complexityAns: Space complexity is size of node * number of node.6.Potential use of recursionAns: Solution is recursive as its being calculated by calling minor matrices. Minor matrix is size smaller than parent matrix. This would be done until we get 1X1 matrix.
Justification of other data structures and design issues._1

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Data Structures and Operations
|19
|1986
|100

Iterative Version for Reversing a Singly Linked List
|5
|504
|399

Programming, Algorithms and Data Structure: Weekly Tasks and Exercises
|2
|501
|348

How to Create a Test File in C++ PDF
|8
|1260
|40

Network Optimisation using Graph Theory | Desklib
|16
|1379
|79

Linked Lists From Scratch: Implementing Singly Linked Nodes in Java
|6
|3352
|188