Exam 11: Searching Sorting and Complexity Analysis
Exam 1: Introduction50 Questions
Exam 2: Software Development Data Types and Expressions50 Questions
Exam 3: Loops and Selection Statements50 Questions
Exam 4: Strings and Text Files50 Questions
Exam 5: Lists and Dictionaries50 Questions
Exam 6: Design With Functions50 Questions
Exam 7: Simple Graphics and Image Processing50 Questions
Exam 8: Graphical User Interrfaces50 Questions
Exam 9: Design With Classes50 Questions
Exam 10: Multithreading Networks and Client Server Programming50 Questions
Exam 11: Searching Sorting and Complexity Analysis51 Questions
Select questions type
Which of the following is an example of a quadratic algorithm?
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
A
What does the "O" in big-O notation stand for?
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
A
What would the constant k value in an O(k^n) algorithm be for the Fibonacci sequence?
Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
B
Although recursive Fibonacci is elegant in its design, there is a less beautiful but much faster version that uses a loop to run in linear time.
(True/False)
4.9/5
(48)
What is the dominant term when evaluating the amount of work in an algorithm?
(Multiple Choice)
4.7/5
(41)
What type of analysis involves analyzing a polynomial wherein its value approaches or approximates that of its dominant term, as the size of the problem gets very large?
(Multiple Choice)
4.8/5
(33)
An order of complexity that is worse than polynomial is called quadratic.
(True/False)
4.9/5
(30)
The performance of some algorithms depends on the placement of the data that are processed.
(True/False)
4.7/5
(34)
When using the counting instructions method of measuring efficiency, what are the two classes of instructions you must distinguish between? (Choose two.)
(Multiple Choice)
4.8/5
(41)
Logarithmic complexity is better than constant but worse than linear complexity.
(True/False)
4.8/5
(40)
Which of the following is an example of a linear algorithm?
(Multiple Choice)
4.8/5
(42)
As the problem size gets larger, the performance of an algorithm with the higher order of complexity becomes worse more quickly.
(True/False)
4.8/5
(43)
When choosing an algorithm, faster run times can often be achieved at the expense of what other resource?
(Multiple Choice)
4.8/5
(37)
What two terms are used to refer to a search in which each value in a sequence is examined until a target value is found or the end of the sequence is reached?
(Multiple Choice)
4.7/5
(44)
In asymptotic analysis, the value of a polynomial asymptotically approaches or approximates the value of its largest term as n becomes very large.
(True/False)
4.9/5
(41)
Python's minimum function returns the minimum or smallest item in a list.
(True/False)
4.8/5
(39)
How does the constant of proportionality for an algorithm differ from focusing on the dominant term in big-O analysis?
(Multiple Choice)
4.9/5
(45)
In terms of order of complexity, what is the best kind of performance to have?
(Multiple Choice)
4.8/5
(42)
What statement accurately describes the strategy utilized by the quicksort algorithm?
(Multiple Choice)
4.9/5
(38)
When performing a thorough analysis of an algorithm's complexity, what two cases are of the most concern in general? (Choose two.)
(Multiple Choice)
4.7/5
(31)
Showing 1 - 20 of 51
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)