Exam 3: Algorithms
Exam 1: The Foundations: Logic and Proofs200 Questions
Exam 2: Basic Structures: Sets, Functions, Sequences, Sums, Matrices214 Questions
Exam 3: Algorithms52 Questions
Exam 4: Number Theory and Cryptography154 Questions
Exam 5: Induction and Recursion53 Questions
Exam 6: Counting156 Questions
Exam 7: Discrete Probability53 Questions
Exam 8: Advanced Counting Techniques128 Questions
Exam 9: Relations74 Questions
Exam 10: Graphs127 Questions
Exam 11: Trees97 Questions
Exam 12: Boolean Algebra77 Questions
Exam 13: Modeling Computation71 Questions
Select questions type
In questions find the "best" big-O notation to describe the complexity of the algorithm. Choose your
answers from the following:
1,
-The number of print statements in the following: while
print "hello";
(Short Answer)
4.8/5
(43)
In questions find the best big-O function for the function. Choose your answer from among the following:
1,
-
(Short Answer)
4.8/5
(37)
assume that the number of multiplications of entries used to multiply a p × q and a q × r matrix is
pqr.
-What is the most efficient way to multiply the matrices
(Short Answer)
4.9/5
(40)
Show how the binary search algorithm searches for 27 in the following list: 5 6 8 12 15 21 25 31.
(Short Answer)
4.9/5
(27)
In questions find the "best" big-O notation to describe the complexity of the algorithm. Choose your
answers from the following:
1,
-A binary search of n elements.
(Short Answer)
4.7/5
(34)
In questions find the "best" big-O notation to describe the complexity of the algorithm. Choose your
answers from the following:
1,
-An algorithm that finds the average of n numbers by adding them and dividing by n.
(Short Answer)
4.8/5
(36)
In questions find the "best" big-O notation to describe the complexity of the algorithm. Choose your
answers from the following:
1,
-The worst-case analysis of a linear search of a list of size n (counting the number of comparisons).
(Short Answer)
4.9/5
(44)
Suppose you have two different algorithms for solving a problem. To solve a problem of size the first algorithm uses exactly operations and the second algorithm uses exactly log operations. As grows, which algorithm uses fewer operations?
(Short Answer)
4.8/5
(36)
Arrange the following functions in a list so each is big- of the next one in the list:
(Short Answer)
4.9/5
(35)
Describe an algorithm that takes a list of n integers a1, a2, . . . , an and finds the number of integers each greater
than five in the list.
(Short Answer)
4.7/5
(31)
In questions find the "best" big-O notation to describe the complexity of the algorithm. Choose your
answers from the following:
1,
-An algorithm that prints all bit strings of length n.
(Short Answer)
4.9/5
(31)
In questions find the best big-O function for the function. Choose your answer from among the following:
1,
-
(Short Answer)
4.7/5
(37)
In questions find the best big-O function for the function. Choose your answer from among the following:
1,
-
(Short Answer)
4.8/5
(33)
In questions find the best big-O function for the function. Choose your answer from among the following:
1,
-
(Short Answer)
4.8/5
(43)
Showing 21 - 40 of 52
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)