Show the result of running shellsort on the input

Assignment Help Data Structure & Algorithms
Reference no: EM131442614

Algorithm Development Assignment

Shellsort

1. Show the result of running Shellsort on the input 9,8,7,6,5,4,3,2,1 using increments 1,3,7.

Type and save your work in a document and upload to the assignment drop-box. You do not need to include a cover sheet, but you do need to put your name, date, assignment number and instructor's name at the top of the page.

Note: The results should be in a table similar to this:

Submit a screenshot of the executed program and the code of the program.

Original

9

8

7

6

5

4

3

2

1

after 7-sort










after 7-sort










after 7-sort










 

Reference no: EM131442614

Questions Cloud

Describe your plan of study : Describe your plan of study
Statistics for decision making : 1. What is the formula for the Expected Value E(X) for ANY Probability Distribution. 2. What is the formula for the Expected Value E(X) of a Binomial Distribution?
What is enterpreneurship : When we think of entrepreneurship, we often think of small, start-up firms. Describe how a large corporation in an established industry can be "entrepreneurial" and discuss how Peng's entrepreneurial strategies apply in this situation.
What is your understanding of spiritual formation : How are you following the spiritual disciplines of: Bible intake, prayer, fasting, silence and solitude, study and learning, worship, evangelism, serving, stewardship, simplicity, journaling from Whitney's text? Share the benefits and struggles of..
Show the result of running shellsort on the input : Show the result of running Shellsort on the input 9,8,7,6,5,4,3,2,1 using increments 1,3,7. You do not need to include a cover sheet, but you do need to put your name, date, assignment number and instructor's name at the top of the page.
What is the breakeven point : What assumptions did you have to make in answering Questions 1 and 2?
What are the fundamental reasons for dells success : Major Problem (State here the major problem as you see it. Emphasize the present major problem. You may wish to phrase your statement in the form of a question. In a few cases, there may be more than one major problem. A good problem statement wil..
Discuss the modeling of the version of the gap : Perform a sensitivity analysis to the availability of the resource at the machines. Discuss the modeling of the version of the GAP, in which additional capacity on the resource can be acquired
Estimating the population mean : Use the given degree of confidence and sample data to find the margin of error in estimating the population mean. Replacement times for washing machines 90% confidence; n =41 the sample mean (x-bar) =10.9 years s=2.3 years

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Sort the array 15 80 35 25 60 30 into descending order

The above algorithm has a fundamental flaw. As written, how does it change theArray?

  Karatsuba''s divide-and-conquer algorithm

In class we discussed Karatsuba's divide-and-conquer algorithm for integer multiplication, which multiplies n-bit numbers by recursively multiplying n bit numbers. We take two numbers X and Y and split them each into their most significant half a..

  Write algorithm for graph minimum number of semesters

You are given a DAG called G which is the prerequisite graph for a set of courses required for a degree. Each vertex corresponds to course. Provide a high-level description of algorithm which labels each vertex in G with minimum number of semesters..

  Create algorithm prompt for and receive employee number

Create algorithm which will prompt for and receive the employee number from operator at terminal. Your program is to search array of valid employee numbers to check that employee number is XXXXX,

  Sql statements

Suppose that the tables T1 and T2 have a 1:1 relationship. Suppose that T2 has the foreign key. Demonstrate the SQL statements necessary to move the foreign key to T1.

  Universalist rationality theory

Universalist rationality theory supposes that actors within an institution are rational. They function with their own material interests in mind, maximizing efficiency and resources.

  Implementation of graph

Give the two input nodes after the graph has been built from the command prompt.

  Describe an efficient erew algorithm to form a list

Consider an n-element list in an n-processor EREW parallel random-access machine, where some elements of the list are marked as being blue. Describe an efficient parallel algorithm to form a new list consisting of all the blue elements.

  Importance of database documentation

Assume your database is performing poorly, and you just started this new job within the past month. You ask to see the documentation for system and are told it does not exist.

  Write a code fragment to find the hottest and coldest days

Declare an array of double of size 365 to store daily temperatures for one year. Using this data structure, write a code fragment to find the hottest and coldest days of the year. The average temperature of each month.

  Question about disk writing speed

Think about a disk holding documents with an average file length of 5 KB. Each document is allocated contiguously on adjacent sectors.

  Write advantage of linked list implementation of stack

The tree's item type is int. Function must return number of leaves in tree. Determine the advantage of linked list implementation of stack versus array implementation?

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