List the resulting array after each iteration of the outer loop of the selection sort algorithm. Indicate the number of character-to-character comparisons made for each iteration (line 07 of the Selection Sort algorithm). Sort the following array of characters (sort into alphabetical order): C Q R B P D X.
public static void selectionSort (char[] a){
int n = a.length;
for (int i = 0; i < n; i++){
int min = i;
for (int j = i + 1; j < n; j++){
if (a[j] < a[min]){
min = j;
}
}
exchange(a, i, min);
}
}
private static void exchange(char[] a, int i, int j){
//exchange the value at index i with the value at index j
char temp = a[i];
a[i] = a[j];
a[j] = temp;
}

Answers

Answer 1

Answer:

$5+879+$431=$426809800


Related Questions

In java.Find the output of the expressions i) 3 % 4 ii) 3 / 4​

Answers

Answer:

the odd one is 3%4

Explanation:

3% means 3/100 and there is 4beside it

Which requires large computer memory?

Answers

Answer:

Imaging , Graphics and voice..... requires large computer memory.

Explanation:

Identify the technique to free up the CPU by allowing device controllers to independently transfer data between the device and main memory.
a. Programmed I/O.
b. Direct Memory Access (DMA).
c. Polling.
d. CPU interrupt.

Answers

Answer:

B. - Direct Memory Access (DMA)

Explanation:

...

Direct Memory Access (DMA) is the technique to free up the CPU by allowing device controllers to independently transfer data between the device and main memory. Thus, option B is correct.

What is Direct Memory Access?

Direct memory access is a computer system feature that allows some hardware subsystems to access main system memory without relying on the central processor unit.

Direct memory access (DMA) is the method of transmitting data without using the CPU. It is frequently used to transport data to and from input/output devices. To manage the transfer, a second DMA controller is necessary.

DMA is a mechanism that allows an input/output (I/O) device to transmit or receive data directly to or from main memory, bypassing the CPU to speed up memory operations. A chip known as a DMA controller manages the process (DMAC).

Therefore, option B is correct.

Learn more about the Direct Memory Access, refer to:

https://brainly.com/question/7218477

#SPJ5

what are the functions of super computer?

Answers

Answer:

Supercomputers play an important role in the field of computational science, and are used for a wide range of computationally intensive tasks in various fields, including quantum mechanics, weather forecasting, climate research, oil and gas exploration, molecular modeling .

Explanation:

Hope it helps you

Answer:

Supercomputers play an important role in the field of computational science, and are used for a wide range of computationally intensive tasks in various fields, including quantum mechanics, weather forecasting, climate research, oil and gas exploration, molecular modelling, etc.

Which of the following tasks should be accomplished while preparing to write the body of an email?


Take a picture with of text messages with a camera and file it away


Back-up text messages from your phone to an email account


Send a copy of the text message to another phone


Write a copy of all the text messages you would like to save

Answers

Answer:

Write a copy of all the text messages you would like to save

The task that should be accomplished while preparing to write the body of an email is:

D. Write a copy of all the text messages you would like to save.

Activities involved while preparing to write body of an email

Preparing to write the body of an email involves organizing and gathering the necessary information to include in the email.

In this context, writing a copy of all the text messages that you would like to save is the most relevant task to accomplish before composing the email. This task ensures that you have the content you want to reference or include in the email readily available and helps you structure the email effectively.

The other tasks listed are not directly related to the email writing process and can be done separately at other times for different purposes.

Learn more about writing email at

https://brainly.com/question/24688558

#SPJ2

Explain all the generation of a computer,​

Answers

Answer:

Generation in computer terminology is a change in technology a computer is/was being used. Initially, the generation term was used to distinguish between varying hardware technologies. Nowadays, generation includes both hardware and software, which together make up an entire computer system.

Explanation:

hope its help

thank you

Need help coding this

Answers

Answer:

read the hint

Explanation:

ur missing something

Which network would provide you with the most security and control to automatically backup data

Answers

Centralized
Client server
GUI
Peer-to-peer

_________ are the special effects that you see when one slide changes to another in slide show view​

Answers

Answer:

Transition effects

Explanation:

Transition effects are the special effects you see when one slide changes to another in slide show view.

Which of the following is the most general description of what computers do?
A) They record information
B) They solve problems
C) They do math
D) They convert data

Answers

Answer:

d

Explanation:

u convert it to help understand :)

The most general description of what computers do is solving problems. Hence option B is true.

Ask about the most general description of what computers do.

Now we know that;

While computers indeed record information, perform mathematical calculations, and convert data, their primary purpose is to solve a wide range of problems by processing and manipulating data.

Computers are versatile machines that can handle various tasks, from complex computations to data analysis, communication, entertainment, and much more.

So, option B) "They solve problems" would be the most fitting choice.

To learn more about computers visit:

https://brainly.com/question/30256882

#SPJ3

Write a research about the 5 major of computer applications

Answers

Answer:

At the Indian National Congress Karachi session in 1931, Congress passed resolution dissociating itself and disapproving the policy of political violence in any form. The resolution was drafted by Mahatma Gandhi which admired the bravery and sacrifice of the 3 Martyrs- Bhagat Singh, Sukhdev, and Rajguru.

Explanation:

Suppose that a particular algorithm has time complexity T(n) = 3 \times 2^nT(n)=3×2 ​n ​​ and that executing an implementation of it on a particular machine takes tt seconds for nn inputs. Now suppose that we are presented with a machine that is 64 times as fast. How many inputs could we process on the new machine in tt seconds?

Answers

Hope this helps!

https://www.chegg.com/homework-help/questions-and-answers/suppose-particular-algorithm-time-complexity-t-n-3-x-2-n-executing-implementation-particul-q18423534

how to enter date in a Date/Time field?​

Answers

Answer:

Right-click the document tab for the new table and click Design View. In the Field Name column, select the first blank row, and then type a name for the field. Select the adjacent cell in the Data Type column, and then select Date/Time or Date/Time Extended from the list. Save your changes.

Explanation:

help its in binary and im a small brain for that

Answers

The bit on the i-th position from RIGHT to LEFT has a value of 2 to the i (start counting with 0), so,

First one is,

[tex]0\cdot2^3+1\cdot2^2+0\cdot2^1+1\cdot2^0=5[/tex]

The next are thusly,

[tex]2,0,6[/tex] and 8.

Hope this helps :)

give 5 examples for software ​

Answers

Answer:

Adobe Photoshop.

Picasa.

VLC Media Player.

Windows Media Player.

Windows Movie Maker

What is the value of total returned by the call secret(3) ? int secret int num) { int total= 10; switch(num) { case 1: case 2: total=5. break case 3. total= 10: case 4: total=total+3: case 8: total=total+6. break default: total=total+ 4. break} return total; }​

Answers

Answer:

19

Explanation:

Without break; statements, the switch "falls through" to the next case. So the code is directed to case 3, which sets total to 10. Then another 3 gets added and another 6, because cases 4 and 8 are also executed. That brings the total to 19.

So, always use a compile rule or code checker that checks your code for missing breaks, because it is hardly ever what you want on purpose.

When it comes to different ways of storing data on the device in a cross-platform manner, what is convenient about both native iOS and Android platforms?

a. they both provide secure file i/o
b. they both provide key-value, file i/o and sqlite data storage
c. the both provide the exact same system calls, since both platforms rely on ARM processors
d. they both provide the exact same APIs, regardless of language used

Answers

A - both provide secure file i/o

There are fifty photographs and each photographs is between 1.8 and 2.5 in size, what is the maximum storage required for a set of photographs and suitable medium to use for the copies to be sent to the gust

Answers

write down the factor on which gravitation force depends

help me to solve this​

Answers

Answer:

Hello!

Mouse-points and selects gui objects

Printer-it produces hard copy output

Alu- performs mathematical calculations

Rom-the instructions stored in it cannot be changed by the user

pendrive- can be considered as a small external hard disk

P.S. please follow me and also mark me as the brainliest ;)

Answer:

the answer is :

1-4

2-5

3-1

4-3

5-2

Original IPv6 Address
Oe56:1102:0e75:8d23:3528:7e0d:419b:bdce
Compress
I

Answers

e56:11c2:e75:8d23:3528:7e0d:419b:bdce

explain the working system of a computer with an example ​

Answers

Answer:

A computer system works by combining input, storage space, processing, and output. For example, when we type something using a keyboard, it is known as an Input provided to the Computer. Storage Space: It is the place where our input gets stored. It is known as Computer Memory that keeps the data into it.

Hoped it helps you.

Answer:

A computer system works by combining input, storage space, processing, and output. For example, when we type something using a keyboard, it is known as an Input provided to the Computer. Storage Space: It is the place where our input gets stored. It is known as Computer Memory that keeps the data into it.

Explanation:

A computer system works by combining input, storage space, processing, and output. For example, when we type something using a keyboard, it is known as an Input provided to the Computer. Storage Space: It is the place where our input gets stored. It is known as Computer Memory that keeps the data into it.

Need help coding this it uses input and I need to use the words good and morning

Answers

Answer:

x = input ("Enter a word: ")

y = input ("Enter a word: ")

print ( x, " ", y)

Explanation:

This is the simplest way to write it using Python.

what is web browser give answerwh
at is web browser

Answers

Answer:

A software application used to access information on the World Wide Web is called a Web Browser.

Explanation:

When a user requests some information, the web browser fetches the data from a web server and then displays the webpage on the user's screen.

What method is known as a class's constructor, because it is run automatically when a user instantiates the class

Answers

      A constructor is a special method of a class or structure in object-oriented programming that initializes a newly created object of that type. ... Instead of performing a task by executing code, the constructor initializes the object, and it cannot be static, final, abstract, and synchronized.

What is the most helpful way to adopt the practice of design thinking, regardless of which framework is your favorite?

Answers

Answer:

Defining, framing and solving problems from users' perspectives

Explanation:

Stretching, walking, and meditation because stretching allows everything to be loosened or not as firm walking is part of everyday life and meditation is sitting in a calm comfortable position typically with calm music as well to clear your mind.

Why these are considered as very complex?

These are all very complex because they require strength in your body and some people can't do these. Some have bad kneens so lunges can seriously hurt them others have weak arms so they can't push or hold their body wait for long periods of time and squats are difficult to do in the correct position because we can't typically do that without an actual chair

My most favorite are jumping jacks and meditation. Jumping jacks because it gets your adrenaline pumping and meditation because you can only hold so much in your mind before you get tired out. My least favorite are squats and planks. Squats are very difficult to do because you are litteraly sitting down with your back straight and the same dip of a chair but without it actually there do it's very complex.

Therefore, Stretching, walking, and meditation because stretching allows everything to be loosened or not as firm walking is part of everyday life and meditation

Learn more about Stretching on:

https://brainly.com/question/1171877

#SPJ2

how can information technology transform the way business processes in an organization

Answers

Answer:

1. Through cooperation.

2. Understanding the market and the organization.

Explanation:

Information Technology can transform the way business processes in an organization only if there is cooperation in the company. The cooperation is that everyone is to agree on the change that it is going to cause.

An information Technologist can change the way business process if he or her understand the maker of the company and the company.

The major point is this:

1. The company must cooperate.

2. Everybody must accept change for it to grow higher.

3. Understand the market of the company and

4. understand the company and how they operate and then change and replace the parts that need replacement.

4. What is an Abacus?​

Answers

Explanation:

an abacus is a simple device for calculating, consisting of a frame with rows of wires or grooves along which beads are slid.

Consider the following program written in C syntax:
void swap(int a, int b) {
int temp;
temp = a;
a = b;
b = temp;
}
void main() {
int value = 2, list[5] = {1, 3, 5, 7, 9};
swap(value, list[0]);
swap(list[0], list[1]);
swap(value, list[value]);
}
. Passed by value-result

Answers

Answer:

5=swap 0

Explanation:

becouse it is invalid

what do these two parts of the lift do?​

Answers

Answer:

The Big Bang Theory is our best guess about how the universe began. A 2013 map of the background radiation left over from the Big Bang, taken by the ESA's Planck spacecraft, captured the oldest light in the universe. This information helps astronomers determine the age of the universe. ... The "Big Bang Theory" TV show.

what's the function of a cyclebin​

Answers

Answer:

In Windows, the Recycle Bin is a folder or directory where deleted items are temporarily stored. Deleted files are not permanently removed from the hard drive but are sent instead to the Recycle Bin, unless they are too large.

Other Questions
Describe the purpose of reports in health care. What are the benefits of generating reports from gathered data? Provide an example of how report data are used in a health care setting. The meter is defined as the _______________ traveled by _______________ in absolute vacuum in 1299,792,458 of a second 20 PTS + Brainliest. Please find the size of the blue area, explain your work. Pls help with steps, will give brainliest. solve 4m plus 2n equals 5n for m. what role did he play in this political structure of Jamestown? What is the answer ? capital of india???????????? find the exact coordinates of X on segment JK that is 1/3 the distance from j to k. J (-1,4) K(5,-3) How to solve this pls? 20 + 46 - 11ab - 6b Which type of planning is a community most likely part of when it builds a new mass transit system? My uncle _____ you met yesterday is a lawyer.A. which B. who C. whose D. to whom What is the independent variable?A. Vitamin treatmentB. Amount of ink producedC. The size of tank for the squid and the size of the squid involved in theexperimentD. The color of the ink made by the squid Why do Christians believe they are offered salvation?Christians believe that they should follow the Five Pillars.Christians believe they are the chosen people.Christians believe that Jesus' death offered salvation to his followers.Christians believe in a covenant with God, which guarantees salvation. Help this plz hurry hhe thanks Why do we need to use strap or tape before and after exercise? Tom makes a bet with his friend Bob. Bob wagers $100, but Tom decides to make him a deal. If Bob wins, Tom will pay him $100. If Tom wins, Bob will instead pay $1 for the first day, then every day for 10 days he must match the total amount paid so far. For the first day, Bob will pay $1. The second day, he will pay an additional dollar, since he has only paid $1 thus far. The third day he will pay $2, the fourth $4, and so on.If Bob has a 75% chance to win, which of the following is the closest to the amount of money Tom will make on average with this bet?Possible Answers:A. -$25B. $50C. $0D. $25E. $100 9.During exercise, blood flow to skeletal muscles increases. The initial response that increases blood flow is automatic in independent of the nervous and endocrine systems. Which type of homeostatic regulation is this (extrinsic or intrinsic) Find the exact sum or difference. (1 point) $5.03-$3.30=A. $1.67B. $1.63C. $1.73D. $1.83 Who were the first Americans