Unit1 - Introduction To Data Structure
Unit1 - Introduction To Data Structure
A. Bubble sort
B. Insertion sort
C. Merge sort
D. Selection sort
A. Bubble sort
B. Insertion sort
C. Merge sort
D. Selection sort
3. …….. sorting algorithm is frequently used when n is small where n is total number of elements.
A. Heap
B. Insertion
C. Bubble
D. Quick
Answer: B. Insertion.
A. Bubble sort
B. Insertion sort
C. Merge sort
D. Selection sort
5.…………order is the best possible for array sorting algorithm which sorts n item.
A. O(n logn)
B. O(n2)
C. O(n+logn)
D. O(logn)
Answer: C. O(n+logn)
A. O(n)
B. O(logn)
C. O(n2)
D. O(n logn)
i) Internal sorting are applied when the entire collection if data to be sorted is small enough that the
sorting can take place within main memory.
ii) The time required to read or write is considered to be significant in evaluating the performance of
internal sorting.
A. i-True, ii-True
B. i-True, ii-False
C. i-False, ii-True
D. i-False, ii-False
B. requirement of sorted array is expensive when a lot of insertion and deletions are needed
D. binary search algorithm is not efficient when the data elements more than 1500
A. Front
B. Rear
C. Top
D. Link
Answer:C.Top
A. Arrays
B. Linked list
C. Queues
D. Tree
Answer: D. Tree.
11. Merge sort uses
B. Backtracking
C. Greedy apparoch
D. Heuristic apparoch