Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Data Abstraction
Quiz 10: Algorithm Efficiency and Sorting
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Multiple Choice
A quadratic algorithm has the growth-rate function ______.
Question 2
Multiple Choice
Which of the following can be used to compare two algorithms?
Question 3
Multiple Choice
Algorithm efficiency is typically a concern for ______.
Question 4
Multiple Choice
Assuming a linked list of n nodes,the code fragment: Node curr = head; While (curr != null) { System.out.println(curr.getItem() ) ; Curr.setNext(curr.getNext() ) ; } // end while Requires ______ comparisons.
Question 5
Multiple Choice
Which of the following growth-rate functions indicates a problem whose time requirement is independent of the size of the problem?
Question 6
Multiple Choice
A linear algorithm has the growth-rate function ______.
Question 7
Multiple Choice
Given the statement: Algorithm A requires time proportional to f(n) Algorithm A is said to be ______.
Question 8
Multiple Choice
Assuming a linked list of n nodes,the code fragment: Node curr = head; While (curr != null) { System.out.println(curr.getItem() ) ; Curr.setNext(curr.getNext() ) ; } // end while Requires ______ write operations.