Array unsortedArr contains an unsorted list of integers.
Array sortedArr contains a sorted list of integers.

Which of the following operations are NOT more efficient for sortedArr than unsortedArr? Assume the most efficient algorithms are used.

I. Searching for a given element
II. Finding the minimum
III. Inserting an element

a. Ill only
b. Il only
c. I only
d. I and II
e. I and III

Answers

Answer 1

Answer:

a. Ill only

Explanation:

This is because, for option III, in inserting an element, one only need the array key for the position in which to insert the element and this is irrespective of whether the array is sorted or not.

Whereas, options I and II are easier done in a sorted array than in an unsorted array.


Related Questions

A program developed for a Web store represents customer account balances using a format that approximates real numbers. While testing the program, a software developer discovers that some values appear to be mathematically imprecise. Which of the following is the most likely cause of the imprecision?
A. The account balances are represented using a fixed number of bits, resulting in overflow errors.
B. The account balances are represented using a fixed number of bits, resulting in round-off errors.
C. The account balances are represented using an unlimited number of bits, resulting in overflow errors.
D. The account balances are represented using an unlimited number of bits, resulting in round-off errors.

Answers

Answer:

B.

Explanation:

The most likely reason for this would be that the account balances are represented using a fixed number of bits, resulting in round-off errors. Since all of the numbers being used are real numbers they would have a fixed 32 bits of data. When these values are multiplied or divided they can be irrational numbers that never end, and therefore are cut off in order to fit the available data. This would cause the numbers to be rounded and can lead to the answer being imprecise.

Question # 6
Fill in the Blank
Complete the following sentence.
The World Wide Web launched to the public in

Answers

CERN released the code for the World Wide Web to the public on April 30, 1993. Subsequently, CERN made a release available under an open licence, which was a more reliable strategy for maximising its reach.

Which year was India's introduction to the World Wide Web?

The first time the world wide web was ever made accessible to the general public on the Internet was on August 6, 1991. It has changed so little in 26 years from how it was then.

In 1994, what was invented?

The IBM Simon, the first smartphone in history, goes on sale on August 16. The first PlayStation game console is made available in Japan on December 3. The first high-brightness blue LED is created, and the researchers are awarded the 2014 Nobel Prize for their discovery.

To know more about World Wide Web visit:-

https://brainly.com/question/20341337

#SPJ1

Write a program named split_me.py that accepts a string in the format Age.FirstName and returns the value FirstName is Age years old. Length of Mary is X. Example: 22.Mary >> Mary is 22 years old. Length of Mary is 4

Answers

age,name = input('Enter a string: ').split('.')

print(name+' is '+age+' years old. Length of '+name+' is '+str(len(name)))

I wrote my code in python 3.8. I hope this helps.

A data analyst is using the Color tool in Tableau to apply a color scheme to a data visualization. They want the visualization to be accessible for people with color vision deficiencies, so they use a color scheme with lots of contrast. What does it mean to have contrast

Answers

Answer:

Color contrast is the difference in light between font (or anything in the foreground) and its background.

Explanation:

In web accessibility, how well one color stands out from another color determines whether or not most people will be able to read the information.

Contrast makes things look different and stand out

A programmer writes 500 lines of computer code in 17 days. Must there have been at least 1 day when the programmer wrote 30 or more lines of code

Answers

Answer:

The answer is No

Explanation:

Given data

Total Lines of code= 500

Number of days= 17 days

Number of codes written per day= 500/17

Number of codes written per day= 29.4117

If we multiply 29.4117 by 17

=499.9989

=500 approx

Hence there was never a day when the programmer wrote 30 or more lines

what the rule of pattern 1 4 9 16 25​

Answers

(1)² = 1

(2)² = 4

(3)² = 9

(4)² = 16

(5)² = 25

What component can you use to open windows?
-A servomotor
-An LED
-A buzzer
-An ambient light sensor

Answers

Answer:

A servomotor.

Explanation:

Because you can only open the window with the force given by the servo motor.I am not sure tho

give one word • pressure exerted by a stationary liquid _______. • force in a direction perpendicular to a given surface area _______. • a pair of forces whose resultant is zero _______.​

Answers

Answer:

1. Hydrostatic pressure.

2. Pressure.

3. Equilibrium forces.

Explanation:

1. Hydrostatic pressure: pressure exerted by a stationary liquid. It is simply the pressure in a liquid such as water at a specific depth.

Mathematically, hydrostatic pressure is given by the formula;

[tex] H.P = rho * g * d [/tex]

Where:

H.P is the hydrostatic pressure of a liquid.rho represents the density of a liquid.g is the acceleration due to gravity.d is the depth (height) of a liquid.

2. Pressure: it is the force in a direction perpendicular to a given surface area. Thus, it's typically measured in Newton per meters (N/m²).

Mathematically, pressure is given by the formula;

[tex] Pressure = \frac {Force}{area} [/tex]

3. Equilibrium forces: a pair of forces whose resultant is zero. It is also referred to as balanced forces because the resultant of all the pair of forces acting on a body or system is at equilibrium (balanced).

A compound Boolean expression created with the _________ operator is true if either of its subexpressions is true.

Answers

The answer for the question is butt

Briefly explain the mapping of human thinking to artificial intelligence components?

Answers

Answer:

The technique is mind mapping and involves visual representation of ideas and information which makes it easier to remember and memorize facts even in complex subjects. Here is an example of a mind map with the essential elements of AI and the industries where Artificial Intelligence is applied.

Artificial is a term utilized to elaborate something that isn't natural or we can say unnatural (opposite to natural). Whereas, definition of "intelligence" is a bit complex as the term enclose many different and specific corporeal tasks, like learning, problem-solving, reasoning, perception, and language understanding.

Mind mapping technique involves the representation of information and ideas visually which concludes in much easier and friendly way to remember and imprints the facts even in complex subjects.

Below is the example in how the A.I applies in fields like health care, educations, financials etc.

Learn More:

https://brainly.com/question/23131365?referrer=searchResults

Which of the following are properties of dictionaries? (check all that apply) nestable accessed by key iterable ordered

Answers

Answer:

Both are mutable.

Both are dynamic. They can grow and shrink as needed.

Both can be nested. A list can contain another list. A dictionary can contain another dictionary. A dictionary can also contain a list, and vice versa

Explanation:

hope it's help

In computers, language dictionaries are the unordered collections of the data set. Dictionaries can be nestable. Thus, option a is correct.

What is nestable?

Nestable is the ability to get nested that is the fitting of many objects together at a place. The items like the files, documents, folders, etc. can be placed and stacked within each other.

The different or the same type of computing items can be embedded and arranged in a hierarchical form. The other words do not fit with the computing dictionaries.

Therefore, option a. nestable is the correct option.

Learn more about dictionaries here:

https://brainly.com/question/15288419

#SPJ2

HEEELLPPPPP, ILL GIVE THE BRAIN THING

Which entry by the user will cause the program to halt with an error statement? # Get a guess from the user and update the number of guesses. guess = input("Guess an integer from 1 to 10:") guess = int(guess)
7
-1
5.6
36​

Answers

Can you explain more please??!

Synapse is not working and is crashing every time you attach it. What should you do?

1. Contact a staff
2. Wait for it to be fixed
3. delete it
4. Spam dm everyone

Answers

Contact a staff memeber

what are three limitations of computer?​

Answers

Answer:

Explanation:

Three limittaions of computer are:

It requires reqular power supply to operate .

It needs instructions to perform a task.

It cannot memorize and recall.

Write a program second.cpp that takes in a sequence of integers, and prints the second largest number and the second smallest number. Note that in the case of repeated numbers, we really mean the second largest and smallest out of the distinct numbers (as seen in the examples below). You may only use the headers: and .

Answers

Answer:

The program is as follows:

#include <iostream>

#include <vector>

using namespace std;

int main(){

   int n;

   cout<<"Elements: ";

   cin>>n;

   vector <int>vectnum;

   int numInp;

   for (int i = 1; i <= n; i++){        cin>>numInp;        vectnum.push_back(numInp);    }

   int big, secbig;

   big = vectnum.at(0);      secbig = vectnum.at(1);

   if(vectnum.at(0)<vectnum.at(1)){     big = vectnum.at(1);  secbig = vectnum.at(0);   }

   for (int i = 2; i< n ; i ++) {

     if (vectnum.at(i) > big) {

        secbig = big;;

        big = vectnum.at(i);

     }

     else if (vectnum.at(i) > secbig && vectnum.at(i) != big) {

        secbig = vectnum.at(i);

     }

  }

  cout<<"Second Largest: "<<secbig<<endl;

  int small, secsmall;

  small = vectnum.at(1);       secsmall = vectnum.at(0);

  if(vectnum.at(0)<vectnum.at(1)){ small = vectnum.at(0);  secsmall = vectnum.at(1);   }

  for(int i=0; i<n; i++) {

     if(small>vectnum.at(i)) {  

        secsmall = small;

        small = vectnum.at(i);      }

     else if(vectnum.at(i) < secsmall){

        secsmall = vectnum.at(i);      }   }

  cout<<"Second Smallest: "<<secsmall;

  return 0;

}

Explanation:

See attachment for explanation

Rewrite the following function so that it returns the same result, but does

not increment the variable ptr. Your new program must not use anysquare brackets, but must use an integer variable to visit each double in the array. You may eliminate any unneeded variable.

double computeAverage(const double* scores, int nScores)

{
const double* ptr = scores;
double tot = 0;
while (ptr != scores + nScores)

{
tot += *ptr; } ptr++;

}
return tot/nScores;

Answers

Answer:

одиннадцать обречены и

Explanation:

переписать это как один из следующих

Which year was the Apple 2 released?
A) 1979
B). 1973
C). 1980
D). 1977​

Answers

Answer:

1977

Explanation:

Apple 2 was released in April 19th 1977

it was released April 1977

applications of kinematics in computer engineering​

Answers

Answer:

There is a wide application of kinematics; it is also used in astrophysics. In mechanical engineering, robotics, and biomechanics, it is used to describe the motion of the system of the joint parts.

What tells the hardware what to do and how to do it?
Central Processing Unit (CPU)

Software

Hardware

Hard Drive (HDD)

Answers

Answer:

Software

Explanation:

The software tells the hardware what to do and how to do it.

the software tells it what to do and how to do becuase hard ware is just a name and a hard drive contains the soft ware wch tells the hard wear what to do and how to do it

Does anyone know how to fix this? Everytime i make a new page it only types in the middle of the page. I want to type at the top

Answers

Answer:maybe start a new page or try hitting delete

Explanation:

Your answer
Antivirus is a ........ software.​

Answers

Answer: True

Explanation:

Software refers to the programs and other instructions which enable us to be able to execute tasks on a computer. Everything you see when you turn on the computer is software from the operating system to the browsers that you use.

An antivirus is no different. It is basically a software on the computer that is able to monitor the activities of other software to ensure that the computer does not get infected by malicious software.

name the cell range selected in the given worksheet?
plzzz helppppp​

Answers

Answer:

B2:E6,,,,,,,,,,,,,,,,

The following are three possible logon scenarios. Explain why option (c) below is preferable in terms of system security. a. Welcome to XYZ computing Enter username: jones Invalid username Enter username: b. Welcome to XYZ computing Enter username: smith Enter password: password Invalid access Enter username: c. Enter username: smith Enter password: password Invalid access Enter username: smith Enter password: FpQr56 Welcome to XYZ computing

Answers

Answer:

because the password being used is of high quality

Explanation:

Option C is the most preferable in terms of system security because the password being used is of high quality. Meaning that it contains lower case and capital case letters as well as numbers. It is also a random mix of all three and is not a common word or name. The length of the password is normal but could be longer for better safety. These things make it very difficult and time-consuming for a software program to guess the password, and nearly impossible for an individual to guess.

When running on its 11.4 V battery, a laptop computer uses 8.3 W. The computer can run on battery power for 7.5 h before the battery is depleted. Part A What is the current delivered by the battery to the computer

Answers

Answer:

The correct answer is "0.73 A".

Explanation:

Given that:

Power,

P = 8.3 W

Voltage,

ΔV = 11.4 V

The current will be:

⇒  [tex]I = \frac{P}{\Delta V}[/tex]

On substituting the values, we get

⇒     [tex]=\frac{8.3}{11.4}[/tex]

⇒     [tex]=0.73 \ A[/tex]

Claire needs to make an SRS document. Help her identify the given section and subsection.

The ___ subsection mentions the list of factors that may influence the requirements specified in the SRS. This subsection is part of the section named ___

Blank 1:
A. Scope
B. Purpose
C. Assumptions

Blank 2:
A. Introduction
B. General Description
C. Specific Requirements

Answers

Answer:

C and B in that order

Explanation:

what is mobile computing​

Answers

Explanation:

Mobile computing is human–computer interaction in which a computer is expected to be transported during normal usage, which allows for the transmission of data, voice, and video. Mobile computing involves mobile communication, mobile hardware, and mobile software. ... Hardware includes mobile devices or device components.

Question: what is mobile computing

Answer:

Mobile computing is human–computer interaction in which a computer is expected to be transported during normal usage, which allows for the transmission of data, voice, and video. Mobile computing involves mobile communication, mobile hardware, and mobile software. Communication issues include ad hoc networks and infrastructure networks as well as communication properties, protocols, data formats, and concrete technologies. Hardware includes mobile devices or device components. Mobile software deals with the characteristics and requirements of mobile applications.

Explanation:

Hope it helps

#CarryOnLearning

Please help it’s timed

Answers

Answer:

2nd, third, and the 5th one

Explanation:

Write a program that allows the user to enter the last names of five candidates in a local election and the number of votes received by each candidate. The program should then output each candidate's name, the number of votes received, and the percentage of the total votes received by the candidate. Your program should also output the winner of the election.
i have this
#include
#include
#include
using namespace std;
int findMax(int votes[]);
void main()
{
int votes[20];
string name[10];
int total=0;
float percent[10];
int m, i, loc;
cout<<"Enter the names of candidates in local election and number of votes:"< for(int i=0;i<5;i++)
{
cin>>name[i];
cin>>votes[i];
}
for(i=0;i<5;i++)
{
total=total+votes[i];
}
for(i=0;i<5;i++)
{
percent[i]=((votes[i]/total)*100);
}
cout<<"Candidate"<<'\t'<<"VotesReceived"<<'\t'<<"% of Total Votes"< cout< for(i=0;i<5;i++)
{
cout< }
cout<<"Total:"< m=findMax(votes);
cout<<"Winner of the election is"< system("pause");
}
int findMax(int votes[])
{
int i,max,loc;
max=votes[0];
for(i=1;i<5;i++)
{
if(votes[i]>max)
{
max=votes[i];
loc=i;
}
}
return loc;
}
But, it is saying that loc is not initialized, and it is also not calculating % of total votes or the winner of the election and I don't what to do to fix it.

Answers

Answer:

The following fix were made to the program

Change void main() to int main(), then set a return value at the end of the main function;  e.g. return 0Remove system("pause");  It's not neededFor each of the array, change their lengths to 5 i.e. int votes[5];  string name[5];   and float percent[5];Lastly, calculate the percentage using: percent[i]=((votes[i]*100.0/total))

Explanation:

(1) void main implies that the main function will not return any value. So, you change it to int main() and then set the return value

(2) There is no need to pause the program, so system.("pause") is not necessary.

(3) The question says there are 5 candidates. So, we set the arrays to accommodate inputs for 5 values

(4) percent array is declared as float; 100.0 will ensure that it calculates the percentage as a float value.

See attachment for updated code

three basic components to cloud computing are client, internet

Answers

Answer:

the basic components of cloud comuting in a simple topology

Which of the following passes an int argument into a method named print? Chose one option and explain why.

o print();
o print()+5;
o print("5");
o print(5);

Answers

Answer:

print(5)

Explanation:

Passing an int argument into the method named print ;

print() ; Here, the print method has no argument as it is empty

print()+5; Here also, the print method has no argument and adding +5 is an invalid syntax.

print("5") ; Here, print takes in an argument, however, the argument is a string due to the fact that 5 is enclosed by quotation marks.

print(5) ; Here, the integer is 5 is passed to the print method.

Other Questions
explain what is a mountain range someone answer this please What is the value of u ? What can be viewed in the Tasks folder? Check all that apply can anyone help me? Im stuck Somebody help me plzzz.... Margaret cuts her hand while making dinner. The cut is deep, but she is ableto get the bleeding under control. Which type of emergency care providershould Margaret use?A. Emergency respondersOB. Nurse hotlineO C. Hospital emergency departmentO D. Urgent care facility Will reward the best answer brainliest.Use elimination method to solve -3x + 3y = 4-x + y = 3 PLEASE CAN SOMEONE HELP ME#1 questionWhat is the difference between gender identity, sexual orientation, biological sex, and gender expression?#2 question A persons self-concept can develop positively if the person understands and accepts their gender identity and sexual orientation and is accepted by family and community. How can a persons self-concept be harmed? What kind of support do people need to help them understand and accept their gender identity and sexual orientation? In 1841, Horace Greeley, proponent of ____________, made the following public statement: Do not lounge in the cities! There is room and health in the country, away from the crowds of idlers and imbeciles. He encourage people to __________ before they were fitted for no life but that of the factory. Group of answer choices Westward Expansion; Go West the Arts; be creative small business; work for themselves Transcendentalism; think what is the longest line segment that can be drawn in a right rectanglular prism that is 14 cm long 13 cm wide and 10 cm tall what is the value of side EC ? Which of the following MOST LIKELY causes the rate of a chemical reaction to increase?Decreasing the reaction temperatureGrinding up a solid reactantAdding an inhibitorUsing a larger container Racism is defined as which of the following? Select one: a. To prejudge without grounds or sufficient knowledge. b. An exaggerated, illogical fear of a particular class of individuals. c. A belief that race is primary determinant of human traits and capacities and that racial differences produce an inherent superiority of a particular race. d. Where individuals take on the white norms and values and believe these values are superior. The news of her failure was not _____ unexpected, considering how ill she had been. Please help me. You dont have to answer all tue questions, just the ones you are pretty sure about :)1. Mixed media is either 2D or 3D but not both.True or False2. All of the following are important steps in beginning a career in the Digital Arts EXCEPTA. Getting an advanced degree, like a PhDB. Attending a college or certificate programC. Learning as much as you can about art and art historyD. Building your skills in the area of Digital Arts that is your specialty3. In the digital art careers, formal education is more important than skillsTrue or False?4. The requirements for a portfolio could include all of the following EXCEPTA. The kind of artB. The size of the artC. The color of the artD. The medium of the art5. Adding a complementary color will change the ______ of the original colorA. TextureB. PrimaryC. QuantityD. Intensity6. Artists use color to communicate....A. ReasonB. EmotionC. CriticismD. Confusion7. Why is it important to pay attention to portfolio requirements?A. It's not artists are creativeB. There should be no appropriate or art in a portfolioC. There is one set of standard requirements for all portfoliosD. Each school, job, or program likely has slightly different requirements8. Those who go into the Digital Arts should expect to...A. Be very good without much trainingB. Do the exact same thing year after yearC. Building skills as technology evolvesD. Spend a lot of time getting an advanced degree9. Secondary colors cannot be made by mixing other colorsTrue or False?10. Which of the following terms describes this image? ( I will put the image up at the end )A. 4DB. MultimediaC. Mixed mediaD. Monochromatic11. Mixed media art would become multimedia art if which of the following was added ?A. WaxB. Paint C. Animation D. Photography 12. Creating an undersea World in shades of blue, green, and tan is an example of using...A. A color wheelB. A color schemeC. A complementary schemeD. A monochromatic scheme13. The two or four-year College can help start a career in the digital arts.True or False?14. Artists use monochromatic tones to create a mood.True or False? CAN ANYONE PLSSS HELP WITH THESE QUESTIONS please help asap!! :) Which renewable resources are found on the smaller islands of Oceania? (Choose all correctanswers.)Wind energySolar energyGeothermal gasWater for hydroelectric power Use the drop-down menus to answer each question. What is the purpose of the multimedia presentation on diversity in Chicago? A. to inform the audience about how the chicago police departments embraces chicagos diversityB. to persuade the audience to join Chicagos diverse police forceC. to entertain the audience with many different images of all different people in chicagoHow do videos of different people in Chicago support the purpose?A. They show the chicago police force in action helping all kinds of peopleB. They show examples of all different types of people that make up chicagoC. They show what makes the people of chicago happy and excited