Deck 8: Recursion

ملء الشاشة (f)
exit full mode
سؤال
__________ is the process of arranging a list of items into a defined order based on some criteria.

A) searching
B) categorizing
C) classifying
D) sorting
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
What type does "compareTo" return?

A) int
B) String
C) boolean
D) char
سؤال
Which of these have the smallest time complexity?

A) Insertion sort
B) Quick Sort
C) Bubble Sort
D) Selection Sort
سؤال
_______ orders a list of values by repetitively comparing neighboring elements and swapping their positions if necessary.

A) Insertion sort
B) Quick Sort
C) Bubble Sort
D) Selection Sort
سؤال
The _____ sort algorithm sorts a list by recursively dividing the list in half until each sub-list has one element and then merging these sub-lists into the sorted order.

A) Merge
B) Quick
C) Linear
D) Lazy
سؤال
This type of sequential sort algorithm sorts a list by repeatedly placing the next smallest element into its final sorted position.

A) insertion sort
B) bubble sort
C) selection sort
D) merge sort
سؤال
The best comparison sort in terms of order is:

A) O(1)
B) O(n)
C) O(log(n))
D) O(nlog(n))
سؤال
Which sort method starts by repeatedly splitting the list in half?

A) Bubble sort
B) Insertion sort
C) Merge sort
D) selection sort
سؤال
What is the time complexity of a Quick sort?

A) 2logn
B) logn
C) nlogn
D) n^2
سؤال
Merge Sort has time complexity O(___).

A) O(n^2)
B) b)O(n)
C) c)O(nlog(n))
D) d)O(n^2)
سؤال
After one pass on the numbers ( 5 3 9 5 ), what would be the result if you were to use Bubble Sort?

A) 5 3 5 9
B) 5 5 3 9
C) 3 5 5 9
D) 9 5 5 3
سؤال
______ is the process of finding a designated target within a group of items or determining that it doesn't exist.
سؤال
An efficient search ______ the number of comparisons made.
سؤال
If a class implements Comparable, it must have a ______ method.
سؤال
A ______ search eliminates half of the search pool with each step and thus is O(____) as long as the search pool is ____.
سؤال
Searching is the process of finding a designated target within a group of items or determining that it ______.
سؤال
A method is made static by using the ______ modifier in the method declaration.
سؤال
A ______ search capitalizes on the fact that the search pool is sorted.
سؤال
A binary search eliminates ______ of the viable candidates with each comparison.
سؤال
A binary search has ______ complexity, making it very efficient for a large search pool.
سؤال
______ is the process of arranging a list of items into a defined order based on some criteria.
سؤال
The ______ sort algorithm sorts a list of values by repetitively putting a particular value into its final, sorted, position.
سؤال
The ______ sort algorithm sorts a list of values by repetitively inserting a particular value into a subset of the list that has already been sorted.
سؤال
The ______ sort algorithm sorts a list by repeatedly comparing neighboring elements and swapping them if necessary.
سؤال
The ______ sort algorithm sorts a list by partitioning the list and then recursively sorting the two partitions.
سؤال
The ______ sort algorithm sorts a list by recursively dividing the list in half until each sublist has one element and then merging these sub-lists into the sorted order.
سؤال
A ______ sort is inherently based on queue processing.
سؤال
Bubble, Selection and Insertion sort all have time complexity of O(____)..
سؤال
When would a linear search be preferable over a binary search?
سؤال
Show the steps of an Insertion Sort for the numbers ( 5 3 9 5 ).
سؤال
Show the steps of a Selection Sort for the numbers ( 5 3 9 5 ).
سؤال
An efficient search maximizes the number of comparisons made.
سؤال
A binary search capitalizes on the fact that the list is not sorted.
سؤال
A binary search can only be performed if the search pool is sorted
سؤال
Linear search has logarithmic complexity, making it very efficient for a large search pool.
سؤال
Bubble, Selection and Insertion sort all have time complexity of O(n)..
سؤال
Searching is the process of finding a designated target within a group of items or determining that it doesn't exist.
سؤال
An efficient search minimizes the number of comparisons made.
سؤال
A method is made static by using the static modifier in the method declaration.
سؤال
A binary search capitalizes on the fact that the search pool is sorted.
سؤال
A binary search eliminates half of the viable candidates with each comparison.
سؤال
A binary search has logarithmic complexity, making it very efficient for a large search pool.
سؤال
Sorting is the process of arranging a list of items into a defined order based on some criteria.
سؤال
The insertion sort algorithm sorts a list by repeatedly comparing neighboring elements and swapping them if necessary.
سؤال
The bubble sort algorithm sorts a list of values by repetitively inserting a particular value into a subset of the list that has already been sorted.
سؤال
The quick sort algorithm sorts a list by partitioning the list and then recursively sorting the two partitions.
سؤال
The merge sort algorithm sorts a list by recursively dividing the list in half until each sublist has one element and then merging these sub-lists into the sorted order.
سؤال
A radix sort is Order(n2).
سؤال
When would a linear search be preferable to a logarithmic search?
سؤال
Which searching method requires that the list be sorted?
سؤال
When would a sequential sort be preferable to a recursive sort?
سؤال
The insertion sort algorithm sorts using what technique?
سؤال
The bubble sort algorithm sorts using what technique?
سؤال
The selection sort algorithm sorts using what technique?
سؤال
The quick sort algorithm sorts using what technique?
سؤال
The merge sort algorithm sorts using what technique?
سؤال
How many queues would it take to use a radix sort to sort names stored as all lowercase?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/57
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 8: Recursion
1
__________ is the process of arranging a list of items into a defined order based on some criteria.

A) searching
B) categorizing
C) classifying
D) sorting
sorting
2
What type does "compareTo" return?

A) int
B) String
C) boolean
D) char
int
3
Which of these have the smallest time complexity?

A) Insertion sort
B) Quick Sort
C) Bubble Sort
D) Selection Sort
Quick Sort
4
_______ orders a list of values by repetitively comparing neighboring elements and swapping their positions if necessary.

A) Insertion sort
B) Quick Sort
C) Bubble Sort
D) Selection Sort
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
5
The _____ sort algorithm sorts a list by recursively dividing the list in half until each sub-list has one element and then merging these sub-lists into the sorted order.

A) Merge
B) Quick
C) Linear
D) Lazy
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
6
This type of sequential sort algorithm sorts a list by repeatedly placing the next smallest element into its final sorted position.

A) insertion sort
B) bubble sort
C) selection sort
D) merge sort
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
7
The best comparison sort in terms of order is:

A) O(1)
B) O(n)
C) O(log(n))
D) O(nlog(n))
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
8
Which sort method starts by repeatedly splitting the list in half?

A) Bubble sort
B) Insertion sort
C) Merge sort
D) selection sort
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
9
What is the time complexity of a Quick sort?

A) 2logn
B) logn
C) nlogn
D) n^2
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
10
Merge Sort has time complexity O(___).

A) O(n^2)
B) b)O(n)
C) c)O(nlog(n))
D) d)O(n^2)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
11
After one pass on the numbers ( 5 3 9 5 ), what would be the result if you were to use Bubble Sort?

A) 5 3 5 9
B) 5 5 3 9
C) 3 5 5 9
D) 9 5 5 3
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
12
______ is the process of finding a designated target within a group of items or determining that it doesn't exist.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
13
An efficient search ______ the number of comparisons made.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
14
If a class implements Comparable, it must have a ______ method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
15
A ______ search eliminates half of the search pool with each step and thus is O(____) as long as the search pool is ____.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
16
Searching is the process of finding a designated target within a group of items or determining that it ______.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
17
A method is made static by using the ______ modifier in the method declaration.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
18
A ______ search capitalizes on the fact that the search pool is sorted.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
19
A binary search eliminates ______ of the viable candidates with each comparison.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
20
A binary search has ______ complexity, making it very efficient for a large search pool.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
21
______ is the process of arranging a list of items into a defined order based on some criteria.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
22
The ______ sort algorithm sorts a list of values by repetitively putting a particular value into its final, sorted, position.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
23
The ______ sort algorithm sorts a list of values by repetitively inserting a particular value into a subset of the list that has already been sorted.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
24
The ______ sort algorithm sorts a list by repeatedly comparing neighboring elements and swapping them if necessary.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
25
The ______ sort algorithm sorts a list by partitioning the list and then recursively sorting the two partitions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
26
The ______ sort algorithm sorts a list by recursively dividing the list in half until each sublist has one element and then merging these sub-lists into the sorted order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
27
A ______ sort is inherently based on queue processing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
28
Bubble, Selection and Insertion sort all have time complexity of O(____)..
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
29
When would a linear search be preferable over a binary search?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
30
Show the steps of an Insertion Sort for the numbers ( 5 3 9 5 ).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
31
Show the steps of a Selection Sort for the numbers ( 5 3 9 5 ).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
32
An efficient search maximizes the number of comparisons made.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
33
A binary search capitalizes on the fact that the list is not sorted.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
34
A binary search can only be performed if the search pool is sorted
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
35
Linear search has logarithmic complexity, making it very efficient for a large search pool.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
36
Bubble, Selection and Insertion sort all have time complexity of O(n)..
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
37
Searching is the process of finding a designated target within a group of items or determining that it doesn't exist.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
38
An efficient search minimizes the number of comparisons made.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
39
A method is made static by using the static modifier in the method declaration.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
40
A binary search capitalizes on the fact that the search pool is sorted.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
41
A binary search eliminates half of the viable candidates with each comparison.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
42
A binary search has logarithmic complexity, making it very efficient for a large search pool.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
43
Sorting is the process of arranging a list of items into a defined order based on some criteria.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
44
The insertion sort algorithm sorts a list by repeatedly comparing neighboring elements and swapping them if necessary.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
45
The bubble sort algorithm sorts a list of values by repetitively inserting a particular value into a subset of the list that has already been sorted.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
46
The quick sort algorithm sorts a list by partitioning the list and then recursively sorting the two partitions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
47
The merge sort algorithm sorts a list by recursively dividing the list in half until each sublist has one element and then merging these sub-lists into the sorted order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
48
A radix sort is Order(n2).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
49
When would a linear search be preferable to a logarithmic search?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
50
Which searching method requires that the list be sorted?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
51
When would a sequential sort be preferable to a recursive sort?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
52
The insertion sort algorithm sorts using what technique?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
53
The bubble sort algorithm sorts using what technique?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
54
The selection sort algorithm sorts using what technique?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
55
The quick sort algorithm sorts using what technique?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
56
The merge sort algorithm sorts using what technique?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
57
How many queues would it take to use a radix sort to sort names stored as all lowercase?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 57 في هذه المجموعة.