Java multiple choice! Multiple Choice (32) When you write a program for an algor
ID: 3714104 • Letter: J
Question
Java multiple choice!
Multiple Choice (32) When you write a program for an algorithm and it is taking much longer than expected you should 1. a. b. c. d. try to design a better algorithm buy a faster computer rewrite the algorithm in a different language ignore the problem 2. A program's execution time depends in part on a. b. c. d. the speed of the computer it is running on the memory capacity the language the algorithm is written in all of the above 3. An algorithm has a. b. c. d. time requirements space requirements both a & b none of the above 4. The memory required to run an algorithm is called a. space complexity b. memory complexity c. time complexity d. storage complexity 5. A measure of an algorithm's execution needs is called a. b. c. d. time complexity speed complexity space complexity run time complexity 6. A "best solution is a function of a. b. c. d. execution time space consumption programming effort all of the above 7. You should express the complexity of an algorithm in terms of it a. problem size b. space requirements c. execution time d. overall complexity 8. Problem size is defined as a. b. c. d. the number of items an algorithms processes the amount of memory an algorithms uses the amount of execution time an algorithm takes none of the above Measuring the growth of an algorithm's time requirement grows as the problem size increases is called the 9. growth rate function time complexity space complexity overall measurement function a. b. c. d.Explanation / Answer
Answering first 4 as per chegg policy:
1. Program solwness is generally because of poor design and a better algorithm design is generaly helpful
so answer is a.
2.
Program speed depend on algoruthm, processor speed, memory capacity (how many cache miss, IO read happens), and langauge (python is slower than java)
so all of the aobe is answer (d)
3.
A algorithm has both time and space requirement so answer os c
4.
Memory required is called space complexity (a)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.