subject

Suppose we are sorting a list of 10 numbers using some of the in-place sorting algorithms discussed in the lectures. After 4 iterations of the algorithm's main loop, the list looks like this: 1 2 3 4 5 0 6 7 8 9 Which statement is correct? Assume selection sort picks smallest items first a. The algorithm might be selection sort, but could not be insertion sort b. The algorithm might be insertion sort, but could not be selection sort c. The algorithm might be either selection sort or insertion sort d. The algorithm is neither selection sort nor insertion sort

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:50
What is a rush associated with alcohol?
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Match the function to its purpose. fast worth 50pts.
Answers: 1
You know the right answer?
Suppose we are sorting a list of 10 numbers using some of the in-place sorting algorithms discussed...
Questions
question
Social Studies, 26.07.2019 18:00
Questions on the website: 13722361