Returns a count of the steps through the sort

Assignment Help C/C++ Programming
Reference no: EM13159652

Please write a c++ implimentation that returns a count of the steps through the sort. (do not worry about updating count, I will rewrite that segemnt. I need help with writing the shell sort.

  • Shell sort ( diminishing increment sort ) with increments: hs = 2s - 1 , 1 <= s, where s equals floor(lg n)
  • should look something like this ShellSort(array, file_size)
  • if you are calling more then one function the count needs to be implemnted in such a way that it continues counting up
  • please use the simplest c++ code, no fancy, and please comment the steps breifly

Reference no: EM13159652

Questions Cloud

Recursive function in scheme : Write a recursive function in Scheme, called "get-element" which takes two parameters, an index and a list. The function returns the element at the given index position in the list or #f if element is not contained. Indices start at 1 and go to th..
Hypothesis about the phenomena : What phenomenon in space would you explore further? Give us a description of the phenomena, formulate a hypothesis about the phenomena and how you would go about studying it.
Is aorta an artery : Some snakes move into a particular area.Over time , one group ofthese snakes becomes active only at night;another group is activeonly during the day.
Is this firm in a short-run or long-run equilibrium : What amount of profit is the firm earning? Is this firm in a short-run or long-run equilibrium? Explain
Returns a count of the steps through the sort : Please write a c++ implimentation that returns a count of the steps through the sort. (do not worry about updating count, I will rewrite that segemnt. I need help with writing the shell sort.
Components of the wedding dress industry : Identify and discuss the visible and invisible components of the wedding dress industry.
What is the empirical formula and the molecular formula : a compound contains 87.7% carbon and 14.3% hydrogen.its relative molecular mass is 70.what is the empirical formula and the molecular formula.and is it an alkane or alkene
Calculate the percentage change in the money supply : Calculate the percentage change in the money supply if the cash reserve ratio were instead reduced to 6%. Explain your results and illustrate your answers in both cases with the appropriate diagrams.
Calculate the number of atp molecules : Calculate the number of ATP molecules that can be harvested during complete oxidation of an 18 carbon fatty acid.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Draws a single level for a "rogue­like" computer game

You will write a program that draws a single level for a "Rogue­like" computer game. The program will parse a line of input text from an input file (room.txt), use the parsed text to determine the shape of the room and its contents and then draw the ..

  Allows the user to enter the coefficients for a system

Create a graphical (not text-based) Visual C++ program that allows the user to enter the coefficients for a system of four equations with four unknowns. Include a button that when clicked, will solve the system of equations and display the results in..

  Iterative programming problem solving approaches

Write a recursive function void reverse ( ) that reverse a sentence

  Sort an array of elements using the quick sort algorithm

Sort an array of 10,000 elements using the quick sort algorithm as follows: sort the array using pivot as the middle element of the array

  Calculates the student * averages and quiz averages based

Calculates the student * averages and quiz averages based upon input from the user. Modify this program to read in the following grade text file, * with a maximum number of students set to 35 and having five quiz scores for each student. The output s..

  Multiple heaps

Create an application that has two heaps. Place a linked list into each heap. Select one hundred random numbers. Place each of the random numbers into each heap - CSI 345 - Spring 2014 S2

  Write a program that will be used to gather statistical data

Write a program that will be used to gather statistical data about the number of movies

  Write a count occurrences() function that accepts a string

Write a CountOccurrences() function that accepts a string to be searched and a sub-string to be found. The function should return the # of times the sub-string is found. Write a tester file that declares a secret sentence as a constant.

  Give students practice in writing and calling their function

To give students practice in writing and calling their own functions. To give students practice in implementing and planning complex programs.

  Create the appropriate constructor, getters and setters

Create the appropriate constructor, getters and setters for the class. Create an instance of Student for each of the students listed above from array. Construct the instance with lastname, firstname, and job.

  Write short c program to develops two processes

Write down a short C program which develops two processes. Each process must repeatedly write its own unique message to test file, one character at time. Do you see garbled messages in the file? Explain why or why not?

  Write program to calculate net pay for factory worker

Write and run a program in C++ that calculates the net pay for a factory worker. The program prompts the user for skill level and hours worked, as well as appropriate insurance and retirement options for the employee's skill.

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