1/19
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
not in merge-sort
merge all the smaller arrays together
pass into variable to a method, method recieves
a copy of the variable
call recurMethod
g
ogr
rogra
program
What will be printed as a result of the call wackyPrinter("cpu")?
!!!!cpu!!!!
hamster
| only
unordered list of fifteen students
linear
What algorithm is shown?
Linear Search
What is returned as a result of the call goRound(56348)?
60000
What is returned by the method call recur(9)?
45
For which of the following values of word, will the call hasRepeat result in an error?
|||
Which of the following should be used to replace // Missing line in hasRepeatHelper so that hasRepeat
will work as intended?
if (pos < 1)
{
return false;
}
Which of the following are real advantages of using the merge-sort algorithm?
|| only
What is printed as a result of executing the statement System.out.println(recur(13))?
ttft
Which of the following best describes the value returned by the call mystery(x)?
The largest power of 2 which divides x evenly
What algorithm is this an implementation of?
Binary Search
What is printed as a result of the call doWhat(2)?
14 10 6 2
methods below are intended to implement the merge sort algorithm when used in conjunction.
merge(mergeSort(lowerHalf), mergeSort(upperHalf))
What value is returned as a result of the call recur(12)?
4
What is printed as a result of the call mystery("method")?
m
et
h
od
What will be the value of low when the line marked / insert new number / in the binaryInsert method is executed?
2