![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 18.05.2021 14:00 ceciliaxo
| HELP PLS! C++ Sorting arrays can be performed using either Selection Sort or Insertion Sort or
Bubble Sort. Choose any two of these three sorting algorithms and write a function
that receives an array of integers and its size and then returns the minimum number
of shifts to the right that need to be performed in order that the first sorting algorithm
will have less number of swaps than the second one. Write down which is the first
and which is the second sorting algorithm
Notes:
1) Shift right means moving all elements of the array one position to the right and by
this the last element will go to the position of the first element. Example:
If the array contents: 2, 3, 4, 5, 6, 7, 8. After one shift to the right the array will
be: 8, 2, 3, 4, 5, 6, 7 and after two shifts to the right the array contents will be: 7,
8, 2, 3, 4, 5, 6.
2) Swap means exchanging the positions of two elements in an array. Example:
If the array contents: 7, 6, 4, 5, 20, 21 then swapping element at position 1 with
element at position 3 will make the array: 7,5, 4, 6, 20, 21
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 05:30
Your mother is sure that you were driving too fast because she knows a. when you arrived and the direction you came from. b. how long it took you to get home and how far you traveled. c. what time you left and how long it took you to get home. d. the direction you were driving and how far you traveled.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 08:20
The process of representing data in digital form so it can be used by a digital computer is called decimal byterepresentation. - true or false
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 12:00
This keeps happening when i try to go to from google or even submit a question
Answers: 2
![question](/tpl/images/cats/informatica.png)
You know the right answer?
| HELP PLS! C++ Sorting arrays can be performed using either Selection Sort or Insertion Sort or
Bu...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 07.11.2020 16:00
![question](/tpl/images/cats/istoriya.png)
History, 07.11.2020 16:00
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
English, 07.11.2020 16:00
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 07.11.2020 16:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/health.png)
Health, 07.11.2020 16:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 07.11.2020 16:00
![question](/tpl/images/cats/mat.png)
Mathematics, 07.11.2020 16:00
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 07.11.2020 16:00
![question](/tpl/images/cats/geografiya.png)
Geography, 07.11.2020 16:00
![question](/tpl/images/cats/mat.png)
Mathematics, 07.11.2020 16:00
![question](/tpl/images/cats/User.png)
Engineering, 07.11.2020 16:00
![question](/tpl/images/cats/mat.png)
Mathematics, 07.11.2020 16:00
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/en.png)
English, 07.11.2020 16:00
![question](/tpl/images/cats/mat.png)