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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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