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

  What is intermodulation distortion

What is intermodulation distortion? What sorts of signals are susceptible to this form of distortion?In addition, identify two situations in which error-free transmission is crucial to business processes. Instructions:•Your research essay should be ..

  What role do users have in the development phase

What advantages does commercial off-the-shelf software provide over custom software? What role do users have in the development phase and integration phase for information systems

  Advantages of joining two tables

What is inner join and what is outer join? Give some potential real world applications of joins.

  Declares several circle objects

Declares several Circle objects

  Human resources business processes

Currently several of their support departments are using manual processes and they wish to automate their accounting and human resources business processes.

  Determining z-transform and fourier transform

Consider the finite length sequencx(n)=D(n) + 0.5D (n-5). Determine z-transform and fourier transform of x(n). Determine N-point DFT of x(n) for N=50,10 and 5.

  Analyze the major threats to mobile devices

Analyze the major threats to mobile devices, and suggest at least two (2) methods to mitigate the concerns and make the devices more secure from an organizational standpoint. Justify your response.

  Create a calculator that collects information from the user

Create a calculator that collects information from the user with prompts, calculates some sort of useful result from that information, and prints the result to the console. You will also be responsible for creating a flowchart that reflects the logic..

  Compare and contrast the process of conceptual design

Compare and contrast the process of (i) conceptual design, (ii) preliminary design, and (iii) detailed design in general and in the development of an automobile.

  How to combine functions and if statements

Use the skater you created for the Unit 4 assignment. Add 2 cones to the ice that the skater will skate around in a figure 8. See Exercise 6-2 Exercise 7 and 8 as an example. You will first check the skater's position and use that information in maki..

  Similarities and differences between a trojan

You are to answer each questions as 1 full page per question with references. No plagiarism. It will be scanned for plagiarism. Also you are to comment on each answer in a separate sub heading.

  Choose one of special walks: euler circuit

Choose one of special walks: Euler circuit, Hamiltonian cycles, or shortest path tree. Provide an example of how the walk can be used to identify an issue on a network or to solve a routing problem.

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