Answer the following statements true (T) or false (F)
1. When values in an array need to be swapped, the array and the size of the array have to be sent to the swap module.
2. In a selection sort algorithm, the variable minValue holds the smallest value found in the scanned area of the array.
3. The data in an array can be sorted in either ascending or descending order.
4. One problem with the bubble sort is that it is limited to arranging data only in ascending order.
1. FALSE
2. TRUE
3. TRUE
4. FALSE
You might also like to view...
I have an algorithm that runs in O(N2), where Nis the size of the problem. For N = 100, the time for the algorithm to run is 1 minute. How long does the algorithm take for N=1000?
A. Same time B. 10 minutes C. 100 minutes D. 1000 minutes
Up to ________ devices can share a single USB port
A) 94 B) 127 C) 68 D) 166
De?ne the above query as an SQL view and then use this view to answer the following query: For each student who has taken a course from every professor in the MUS Department, show the number of courses taken, provided that this number is more than 10.
What will be an ideal response?
A digital signature helps verify the author of a Web page
Indicate whether the statement is true or false