Deck 18: Searching and Sorting Algorithms
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/28
Play
Full screen (f)
Deck 18: Searching and Sorting Algorithms
1
Define a key comparison.
A key comparison is a comparison between the key of the search item and the key of an item in the list.
2
The sequential search algorithm requires that the list be sorted.
False
3
Binary search requires a sorted list.
True
4
If L is a sorted list of size 1024, at most ____ comparisons are needed to determine whether x is in L using binary search.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
5
For a comparison tree, how many leaf nodes are there for a list containing five items? In other words, how many permutations are there?
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
6
Both the quick sort and the merge sort algorithms sort a list by partitioning it.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
7
The merge sort algorithm partitions the list by ____.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
8
What does these terms refer to:
- asymptotic:
- asymptotic:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
9
What does these terms refer to:
- Big-O:
- Big-O:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
10
What does these terms refer to:
- binary search:
- binary search:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
11
What does these terms refer to:
- binary tree:
- binary tree:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
12
What does these terms refer to:
- branch:
- branch:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
13
What does these terms refer to:
- bubble sort:
- bubble sort:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
14
What does these terms refer to:
- comparison-based search algorithm:
- comparison-based search algorithm:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
15
What does these terms refer to:
- comparison tree:
- comparison tree:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
16
What does these terms refer to:
- heap sort:
- heap sort:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
17
What does these terms refer to:
- insertion sort:
- insertion sort:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
18
What does these terms refer to:
- key:
- key:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
19
What does these terms refer to:
- leaf:
- leaf:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
20
What does these terms refer to:
- merge sort:
- merge sort:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
21
What does these terms refer to:
- node:
- node:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
22
What does these terms refer to:
- path:
- path:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
23
What does these terms refer to:
- pivot:
- pivot:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
24
What does these terms refer to:
- quick sort:
- quick sort:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
25
What does these terms refer to:
- root:
- root:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
26
What does these terms refer to:
- selection sort:
- selection sort:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
27
What does these terms refer to:
- sequential search:
- sequential search:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
28
What does these terms refer to:
- target:
- target:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck