Computer Science, asked by ikvmfo0297, 9 months ago

Individuals sort things (in ascending or descending order) in their daily lives, using various sorting algorithms. As an intern at AGL Inc., you are required to sort salaries of AGL workers in ascending order and you are contemplating to use either Insertion Sort or Selection Sort.

(i). Using appropriate examples, compare and contrast the use of Insertion Sort and Selection Sort algorithms, indicating their relative efficiencies.

(ii). In your own words, explain the circumstances under which it is better to use Insertion sort, and the circumstances under which it is better to use Selection sort for an assignment like this.

(b). A Secondary student has approached you for assistance in doing the following two assignments:
(a) writing an essay on the use and abuse of social media; and
(b) writing a Java program to for exam registration.

You intend to use strings to search for information on the internet using Google search engine; also, you want to use strings in your Java program.

(i). Discuss reasons why you want to use strings in doing search over the internet and in your Java program; and give specific examples to illustrate your answer.

(ii). Justify why your answer in (i) above

Answers

Answered by ıtʑFᴇᴇʟɓᴇãᴛ
2

Tex

instix

detiv>/

As an intern at AGL Inc., you are required to sort salaries of AGL workers in ascending order and you are contemplating to use either Insertion Sort or Selection Sort.

(i). Using appropriate examples, compare and contrast the use of Insertion Sort and Selection Sort algorithms, indicating their relative efficiencies.

(ii). In your own words, explain the circumstances under which it is better to use Insertion sort, and the circumstances under which it is better to use Selection sort for an assignment like this.

(b). A Secondary student has approached you for assistance in doing the following two assignments:

(a) writing an essay on the use and abuse of social media; and

(b) writing a Java program to for exam registration.

You intend to use strings to search for information on the internet using Google search engine; also, you want to use strings in your Java program.

(i). Discuss reasons why you want to use strings in doing search over the internet and in your Java program; and give specific examples to illustrate your answer.

(ii). Justify why your answer in (i) above

Answered by Anonymous
0

Answer:

There are some reasons that give the Java programs in the above mentioned...

Similar questions