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
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
(37)
In questions find the "best" big-O notation to describe the complexity of the algorithm. Choose your
answers from the following:
1,
-The best-case analysis of a linear search of a list of size n (counting the number of comparisons).
(Short Answer)
4.9/5
(40)
Arrange the following functions in a list so each is big- of the next one in the list: log , log log log
(Short Answer)
4.9/5
(33)
Find all pairs of functions in this list that are of the same order: ,
(Short Answer)
4.7/5
(44)
You have supplies of boards that are one foot, five feet, seven feet, and twelve feet long. You need to lay pieces
end-to-end to make a molding 15 feet long and wish to do this using the fewest number of pieces possible.
Explain why the greedy algorithm of taking boards of the longest length at each stage (so long as the total
length of the boards selected does not exceed 15 feet) does not give the fewest number of boards possible.
(Short Answer)
4.9/5
(42)
In questions find the best big-O function for the function. Choose your answer from among the following:
1,
-
(Short Answer)
4.9/5
(38)
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 subsets of size three of the set {1, 2, 3, . . . , n}.
(Short Answer)
4.8/5
(47)
Express a brute-force algorithm that finds the second largest element in a list a1, a2, . . . , an (n ≥ 2) of distinct integers by finding the largest element, placing it at the beginning of the sequence, then finding the largest element of the remaining sequence.
(Essay)
5.0/5
(29)
Showing 41 - 52 of 52
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)