1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Finger [1]
3 years ago
9

Fast forward to the moment after the two outermost recursive calls complete, but before the final Merge step. Thinking of the tw

o 5-element output arrays of the recursive calls as a glued-together 10-element array, which number is in the 7th position?
Mathematics
1 answer:
adoni [48]3 years ago
4 0

Answer:

The answer is 2.

Step-by-step explanation:

1- Suppose we have following array of ten integers: 5 3 8 9 1 7 0 2 6 4.

2- Before the last merge, the left half and the right half must be sorted. So it should be

1 3 5 8 9 0 2 4 6 7

Therefore the solution is 2.

You might be interested in
Three times the 1st number plus the 2nd number plus twice the 3rd is 5. If three times the 2nd number is subtracted from the sum
Svetllana [295]

Answer:

c = 3,

b = 2

a = -1

Step-by-step explanation:

I want to start by saying let me know if there is anything you don't get.  I'd be happy to explain.

The best way to solve this, as with most math problems, is to write things out, or draw a picture if possible.  So let's call the first number a, second number band third c.  

Now let's write out what is described.

3a + b + 2c = 5

a + 3c - 3b = 2

2a + 3b - c = 1

So, since you are given three variables and three equations it indicates you should be able to find a pretty nice answer.  It's possible  things may not work out still, so keep that in mind.  Anyway, this is the method I liek to use with most systems of equations.

Taking the first equation, 3a + b + 2c = 5, we want to solve for one of the variables.  Since b doesn't have a coefficient let's do that.  So we want to subtract 3a and 2c from both sides to get b by itself.

3a + b + 2c = 5

b + 2c = 5 - 3a

b = 5 - 3a - 2c

Now we move on to the second equation.  a + 3c - 3b = 2, First we want to plug what we got or b in the last part in for b here.  so we got b = 5 - 3a - 2c so now a + 3c - 3b = 2 becomes a + 3c - 3(5 - 3a - 2c) = 2.  Let's simplify this real quick.

a + 3c - 3(5 - 3a - 2c) = 2

a + 3c - 15 + 9a + 6c = 2

-15 + 10a + 9c = 2

Now from here we want to get one of the variables by itself again.  This time let's do a.

-15 + 10a + 9c = 2

10a = 17 - 9c Now divide both sides by 10

a = 1.7 - .9c

We can also get our b = equation in terms of c as well, so I'll do that.

b = 5 - 3a - 2c

b = 5 - 3(1.7 - .9c) - 2c

b = 5 - 5.1 + 2.7c - 2c

b = -.1 + .7c

Now we tackle the third equation.  We want to plug in the b= term and a= term and then get c to just equal a number.  It might be confusing to explain so hopefully seeing the process will help.

2a + 3b - c = 1 Now use b = -.1 + .7c and a = 1.7 - .9c

2(1.7 - .9c) + 3(-.1 + .7c) - c = 1

3.4 - 1.8c - .3 + 2.1c - c = 1

3.1 - .7c = 1

-.7c = -2.1

c = 3

Now we work backwards and plug c into the b= term and the a= term.

b = -.1 + .7c now plug in c = 3

b = -.1 + .7(3)

b = -.1 + 2.1

b = 2

a = 1.7 - .9c Again plug in 3 for c

a = 1.7 - .9(3)

a = 1.7 - 2.7

a = -1

So c = 3, b = 2 and a = -1 should be the answer.  make sure to plug each of these into the starting three equations to check.  let me know if you didn't understand any of this, it was a looooooong explanation.  There is also a matrix method you could use, if you are familiar with matrices, and I'd be happy to explain that as well.  

5 0
3 years ago
Read 2 more answers
Solve the compound inequality 5 5 x + 2 < 11. ​
kvv77 [185]

Answer:

x < 9/55

Step-by-step explanation:

55x+2 is less than 11

we subtract 2 from both sides, then we divide both sides by 55.

x is less than 9/55

8 0
2 years ago
Martin wants to buy a new car. The price of the car is $28,249. If Martin gets a bank loan with a simple interest rate of 3.49%
erma4kov [3.2K]

Answer:

The final cost is 28249*(1+3.49/100)^5=33534.74

5 0
3 years ago
Jamie is trying to work out the surface area of the cuboid below. Spot any mistakes and write the correct answer.
umka21 [38]

Step-by-step explanation:

The dimensions of the cuboid are 5 cm, 7 cm and 9 cm.

The formula for the surface area of the cuboid is as follows :

A=2(lb+bh+hl)

We have,

b = 9 cm, l = 7 cm and h = 5 cm

So,

A=2(9\times 7+9\times 5+7\times 5)\\\\A=2\times 143\\\\A=286\ cm^2

Jamie forgets to multiply 143 by 2 as the formula for surface area contains 2 as well.

7 0
3 years ago
A marker costs $0.99. A pad of paper costs $1.25 more than the marker, which is a more reasonable estimate for the total cost of
andrew11 [14]

Answer:

$3

Step-by-step explanation:

Because you have to also think about tax of the item. Plus add them both up and it costs $2.24 without tax. Which means it's already above $2.

8 0
3 years ago
Other questions:
  • If the area of a trapezoid is 57cm2 and one of the bases is 11cm what is the length of the other base?
    6·1 answer
  • The measure of angle W is 100°, and the measure of angle Z is 68°
    12·1 answer
  • Mutiply 7 and 3 equals
    6·2 answers
  • Two children of a sandwich.How much will each child get
    15·1 answer
  • The cruising speed of the bullet train will be no less than 150 miles per hour.
    11·1 answer
  • {(47,37 (12,17) (63,60)}
    13·2 answers
  • If Brittany walks 4 miles in 50 minutes, then Brittany will walk how far in 90 minutes if she walks at the same speed the whole
    13·2 answers
  • Can u pretty please help me it’s late I’m really struggling
    14·1 answer
  • Which of the following is the product (5y − 3)2?
    12·1 answer
  • Find the least common denominator (LCD) of
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!