Question: NOTE : the Subject is Data Structure in java code), thank you Q6: Which of the following data structure is Linear a) Single Linked List

NOTE : the Subject is Data Structure in java code), thank you

NOTE : the Subject is Data Structure in java code), thank you

Q6: Which of the following data structure is Linear a) Single Linked List b) Double linked list c) Array d) All of them Q7: The efficiency of an algorithm is measured by a) Number of steps in an algorithm b) Time and space consumed by the algorithm c) Number of loops in the algorithm d) The kind of data structures used in the algorithm Q8: In the context of algorithms time complexity, select the best time: a) O(n) b) O(n(log(n))) c) Odlog(n)) d) C(n) 09: Consider the code fragment: integer n = 128; while (n21) { do something n=n/2; } a) The code runs in O(n) time b) The code runs in O(n) time C) The code runs in O(log(n)) time d) The code runs in O[n(logn))) time Q10: for an array of size 10 which sorting algorithm would you choose? a) Quick sort b) Merge sort c) Insertion sort d) None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!