Deck 18: Searching and Sorting Algorithms

Full screen (f)
exit full mode
Question
Define a key comparison.
Use Space or
up arrow
down arrow
to flip the card.
Question
The sequential search algorithm requires that the list be sorted.
Question
Binary search requires a sorted list.
Question
If L is a sorted list of size 1024, at most ____ comparisons are needed to determine whether x is in L using binary search.
Question
For a comparison tree, how many leaf nodes are there for a list containing five items? In other words, how many permutations are there?
Question
Both the quick sort and the merge sort algorithms sort a list by partitioning it.
Question
The merge sort algorithm partitions the list by ____.
Question
What does these terms refer to:

- \gg asymptotic:
Question
What does these terms refer to:

- \gg Big-O:
Question
What does these terms refer to:

- \gg binary search:
Question
What does these terms refer to:

- \gg binary tree:
Question
What does these terms refer to:

- \gg branch:
Question
What does these terms refer to:

- \gg bubble sort:
Question
What does these terms refer to:

- \gg comparison-based search algorithm:
Question
What does these terms refer to:

- \gg comparison tree:
Question
What does these terms refer to:

- \gg heap sort:
Question
What does these terms refer to:

- \gg insertion sort:
Question
What does these terms refer to:

- \gg key:
Question
What does these terms refer to:

- \gg leaf:
Question
What does these terms refer to:

- \gg merge sort:
Question
What does these terms refer to:

- \gg node:
Question
What does these terms refer to:

- \gg path:
Question
What does these terms refer to:

- \gg pivot:
Question
What does these terms refer to:

- \gg quick sort:
Question
What does these terms refer to:

- \gg root:
Question
What does these terms refer to:

- \gg selection sort:
Question
What does these terms refer to:

- \gg sequential search:
Question
What does these terms refer to:

- \gg target:
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/28
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg target:
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 28 flashcards in this deck.