Problem regarding the running time of shellsort

Assignment Help Basic Computer Science
Reference no: EM13968225

1. a. What is the running time of Shellsort using the two-increment sequence {1, 2}?

b. Show that for any N, there exists a three-increment sequence such that Shellsort runs in O(N5/3) time.

c. Show that for any N, there exists a six-increment sequence such that Shellsort runs in O(N3/2) time.

2. a. Prove that the running time of Shellsort is 0.(N2) using increments of the form 1, cc2, ... cfor any integer c.

b. Prove that for these increments, the average running time is 8(N3/2).

3. Prove that if a k-sorted ?le is then h-sorted, it remains k-sorted.

4. Prove that the running time of Shellsort, using the increment sequence suggested by Hibbard, is 0.(N3/2) in the worst case. (Hint: You can prove the bound by con- sidering the special case of what Shellsort does when all elements are either 0 or 1.)

Set a[i] = 1 if i is expressible as a linear combination of htht-1, ... hLt/2J+1  and 0 otherwise.

5. Determine the running time of Shellsort for

a. sorted input

b. reverse-ordered input

Reference no: EM13968225

Questions Cloud

Explain the measures you would need to take as a manager : Explain the measures you would need to take as a manager or stakeholder to ensure that overlaps are identified, removed, mitigated, or addressed.
Treated in a customer-centric organization : Discuss how the internal customer should be treated in a customer-centric organization. How does treating internal customers help incur competitive advantage. Give some examples.
Production operation consists of eight manual workstations : A flow line mass production operation consists of eight manual workstations. Work units are moved synchronously and automatically between stations, with a transfer time of 15 sec. Determine (a) cycle time for the line, (b) time to process one work un..
What characteristics does the author indicate : What characteristics does the author indicate are needed for an organization to develop an evaluation culture? Do you agree? Why or why not
Problem regarding the running time of shellsort : 1. a. What is the running time of Shellsort using the two-increment sequence {1, 2}? b. Show that for any N, there exists a three-increment sequence such that Shellsort runs in O(N5/3) time.
What is the maximum price that can be charged : What is the maximum price that can be charged for your product when you have direct competitors but your product is differentiated, that is, it provides more benefits than competitors provide?
Functional-divisional-matrix-team-based and virtual network : Compare and contrast each of the five organizational structures from your reading (functional, divisional, matrix, team-based, and virtual network). If you were to choose one structure in which to work which would you choose and why? Compare the orga..
Blurred with the implementation of health policy : How does an informed consent become "blurred" with the implementation of health policy? Please provide an example and articulate this process
Provide reflections of what you have attempted to achieve : Provide some reflections of what you have attempted to achieve by means of your essay. You could, for example, explain how your essay sheds light on the broader controversy that it addresses.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Decide to create a location tracking service

We decide to create a "location tracking" service so that we can track our friends' GPS locations with a time granularity of 5 minutes. Each person who subscribes to the service is given a domain name, [email protected] , and there is a LT (location tra..

  Write a program using c language that converts gps cordinate

I want to write a simple program using C language that converts GPS coordinates between three different notational forms

  Create a 1-d array to hold a set of exam scores

Create a 1-D Array to hold a set of exam scores. Write a program using functions to do the following task.

  Ratio of the frequency of the second processor to first one

The frequency of the processor is proportional to the voltage at which it is run. Considering only dynamic power, what will be the ratio of the frequency of the second processor to the first one?

  Define the role of streaming media to support

Research the role of streaming media to support organizational objectives. What are three possible ways that streaming media can be used to accomplish the objectives of an organization

  Write a select statement that columns from the products tab

Write a SELECT statement that returns these columns from the Products table

  Context-free languages is closed under the regular opeations

Show that the class of context-free languages is closed under the regular opeations, union, concatenation, and star.

  Create a change - counting game

create a change - counting game that gets the user to enter the number of coins required to make exactly one dollar. the program should let the user enter the number of pennies,nickels,dimes, and quarters.

  The menu structure for holiday travel vehicle

The menu structure for Holiday Travel Vehicle

  Importance in technological innovation in firm

What is technology diffusion and discuss its importance in technological innovation in a given firm?

  How to call the function to update the statistics

A function which takes as in the parameters the three counters and displays them to the screen as shown in he example below.

  Common types of operations in the word program

you will learn how to do many of the most common types of operations in the Word program - Find, and Replace words and phrases in any Word document in the intellipath Learning Nodes for Unit 1.In Unit 2, you will study how to use some of the more a..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd