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
sdas [7]
2 years ago
12

Give a recursive version of the algorithm Insertion-Sort (refer to page 18 in the textbook) that works as follows: To sort A[1..

n], we sort A[1..n − 1] recursively and then insert A[n] in its appropriate position. Write a pseudocode for this recursive version of InsertionSort and analyze its running time by giving a recurrence relation and solving it
Computers and Technology
1 answer:
Inga [223]2 years ago
3 0

Answer:

see explaination

Explanation:

void insertion( int e,int *x, int start, int end)

{

if (e >= x[end])

x[end+1] = e;

else if (start < end)

{

x[end+1] = x[end];

insertion(e, x, start, end-1);

}

else

{

x[end+1] = x[end];

x[end] = e;

}

}

void insertion_recurssion(int *b, int start, int end)

{

if(start < end)

{

insertion_sort_recur(b, start, end-1);

insertion(b[end], b, start, end-1);

}

}

void main()

{

insertion_recurssion(x,0,5);

}

You might be interested in
Which type of backup ensures you capture a complete snapshot of everything that makes your computer run?.
Elanso [62]

Answer:

Answer is D / If not : A full image backup, or mirror backup

Explanation:

is an exact replica of everything on your computer's hard drive, from the operating system, boot information, apps, and hidden files to your preferences and settings. Imaging software not only captures individual files, but everything you need to get your system running again.

Thanks for asking this question. If my response helped, please mark as brainliest. Thank you!

5 0
2 years ago
The _____ constraint assigns a value to an attribute when a new row is added to a table
bixtya [17]

The default constraint gives a value to an attribute when a new row is added to a table.

<h3>Is default a kind of constraint?</h3>

This is known to be a type of constraint that often apply a value to a column if an INSERT statement does not really give the value for the column.

Therefore, one can say that the default constraint gives a value to an attribute when a new row is added to a table.

Learn more about default constraint from

brainly.com/question/19130806

#SPJ12

5 0
2 years ago
_____ are agencies that specialize in offering services, such as database management, and the ability to create, produce, and di
vovikov84 [41]

Answer:

DIRECT RESPONSE AGENCY

Explanation:

Direct Response Agency engage potential customers with a conversation and message that reflects their values and interest will usually reinforce their desire to do business with a company.

Direct response is a form of communicating an offer, where an organizations communicate directly to customers and supply a method for a direct response by offering services such as data base management.

Direct response agencies encourage prospective customer to take action by disseminating different types of communications that go straight to the target customers.

8 0
2 years ago
You have a website that sells widgets, and you have a category page specifically for blue widgets. After some extensive outreach
REY [17]

Answer:

It will increase your ranking on the homepage.

Explanation:

Widgets are easy to use software applications made up of one or more components.

Widgets will provide you with a quick access to information or data and there won't be any need to open the app that manages that information.

That is to say, without requiring you to open the app that manages a certain data or information you want to access, Widgets opens it for you.

For instance, The Calendar widget, provides you a quick view of your upcoming calendar events without opening the Calendar app.

Your rankings on the homepage will increase if more links are added to your blue widgets.

7 0
3 years ago
In the MARS Marketing Management Simulation, the results of your marketing mix decisions:
azamat
C- are only occasionally affected by the decisions made by other teams
explanation
idk
3 0
3 years ago
Other questions:
  • In a video, a motionless image is called
    7·2 answers
  • You can add envelopes to existing documents. <br> a. True <br> b. False
    10·1 answer
  • What was bill gates first operating system he created?
    7·1 answer
  • ______ is a slow process that takes place in nature. (2 points)
    8·1 answer
  • True or False? Using your traffic analytics report, you can see the source of traffic to your website
    13·1 answer
  • Josh needs to write a research report for his Civics class. Which file type will allow him to save his file? (5 points)
    12·1 answer
  • Hey everyone. I am so bored
    14·2 answers
  • James root lol ........................
    12·1 answer
  • How did transistors revolutionize the world of computers?
    15·1 answer
  • Which of the following rules need to be followed when using variables?<br> Choose all that apply.
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!