Deck 11: Analyzing Algorithm Efficiency

Full screen (f)
exit full mode
Question
Express the following statement using Θ-notation: Express the following statement using Θ-notation:  <div style=padding-top: 35px>
Use Space or
up arrow
down arrow
to flip the card.
Question
Use O-notation to express the following statement: Use O-notation to express the following statement:  <div style=padding-top: 35px>
Question
Let h be the function whose graph is shown below. Carefully sketch the graph of 2h. Let h be the function whose graph is shown below. Carefully sketch the graph of 2h.  <div style=padding-top: 35px>
Question
Express the following statement using O-notation: Express the following statement using O-notation:  <div style=padding-top: 35px>
Question
Draw a careful graph of the function f defined by the formula Draw a careful graph of the function f defined by the formula   for all integers n.<div style=padding-top: 35px>
for all integers n.
Question
 <div style=padding-top: 35px>
Question
Consider the statement: Consider the statement:   Express this statement using O-notation.<div style=padding-top: 35px>
Express this statement using O-notation.
Question
Describe the operation of the sequential search algorithm.
Question
Consider the statement: Consider the statement:   Express this statement using  <div style=padding-top: 35px>
Express this statement using Consider the statement:   Express this statement using  <div style=padding-top: 35px>
Question
Explain why the following statement is true. (You may use the theorem on polynomial orders.) Explain why the following statement is true. (You may use the theorem on polynomial orders.)  <div style=padding-top: 35px>
Question
 <div style=padding-top: 35px>
Question
Sketch the graph of Sketch the graph of  <div style=padding-top: 35px>
Question
(a) Find the total number of additions and multiplications that must be performed when the
following algorithm is executed. Show your work carefully. (a) Find the total number of additions and multiplications that must be performed when the following algorithm is executed. Show your work carefully.   (b)  <div style=padding-top: 35px>
(b) (a) Find the total number of additions and multiplications that must be performed when the following algorithm is executed. Show your work carefully.   (b)  <div style=padding-top: 35px>
Question
Describe the operation of the insertion sort algorithm.
Question
 <div style=padding-top: 35px>
Question
Express the following statement using Ω-notation.: Express the following statement using Ω-notation.:  <div style=padding-top: 35px>
Question
Consider the statement: Consider the statement:   Express this statement using  <div style=padding-top: 35px>
Express this statement using Consider the statement:   Express this statement using  <div style=padding-top: 35px>
Question
 <div style=padding-top: 35px>
Question
If x is a real number and If x is a real number and   Why?<div style=padding-top: 35px>
Why?
Question
 <div style=padding-top: 35px>
Question
Describe the operation of the binary search algorithm.
Question
Describe the operation of the merge sort algorithm.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/22
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 11: Analyzing Algorithm Efficiency
1
Express the following statement using Θ-notation: Express the following statement using Θ-notation:
2
Use O-notation to express the following statement: Use O-notation to express the following statement:
3
Let h be the function whose graph is shown below. Carefully sketch the graph of 2h. Let h be the function whose graph is shown below. Carefully sketch the graph of 2h.
4
Express the following statement using O-notation: Express the following statement using O-notation:
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
5
Draw a careful graph of the function f defined by the formula Draw a careful graph of the function f defined by the formula   for all integers n.
for all integers n.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
6
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
7
Consider the statement: Consider the statement:   Express this statement using O-notation.
Express this statement using O-notation.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
8
Describe the operation of the sequential search algorithm.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
9
Consider the statement: Consider the statement:   Express this statement using
Express this statement using Consider the statement:   Express this statement using
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
10
Explain why the following statement is true. (You may use the theorem on polynomial orders.) Explain why the following statement is true. (You may use the theorem on polynomial orders.)
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
11
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
12
Sketch the graph of Sketch the graph of
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
13
(a) Find the total number of additions and multiplications that must be performed when the
following algorithm is executed. Show your work carefully. (a) Find the total number of additions and multiplications that must be performed when the following algorithm is executed. Show your work carefully.   (b)
(b) (a) Find the total number of additions and multiplications that must be performed when the following algorithm is executed. Show your work carefully.   (b)
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
14
Describe the operation of the insertion sort algorithm.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
15
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
16
Express the following statement using Ω-notation.: Express the following statement using Ω-notation.:
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
17
Consider the statement: Consider the statement:   Express this statement using
Express this statement using Consider the statement:   Express this statement using
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
18
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
19
If x is a real number and If x is a real number and   Why?
Why?
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
20
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
21
Describe the operation of the binary search algorithm.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
22
Describe the operation of the merge sort algorithm.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 22 flashcards in this deck.