Conduct space complexity analysis of the algorithm

Assignment Help Data Structure & Algorithms
Reference no: EM13337278

Question 1:

You are required to create a detailed analysis for each of the following array-based sorting algorithms:

(a)  bubble sort in ascending order;
(b) quick_sort in ascending order, with partition choosing pivot in the middle of the sub-array;
(c)  shell_sort in ascending order, with initial increment = n/2, then increment /=2;
(d) heap_sort in ascending order;

To analyse each of the abovementioned algorithms, please

1) provide a description of the algorithm in pseudocode;

2) conduct time complexity analysis of the algorithm (and also mention best case and worst case analysis if applicable);

3) conduct space complexity analysis of the algorithm;

4) Hand test your algorithm using your allocated 10-element long list of alphabetic characters as an illustrative example (see the Data Set below, and treat them as an array),

o count the number of comparisons;
o re-arrange your data set so as to achieve the best-case sorting of the algorithm;
o re-arrange your data set so as to achieve the worst-case sorting of the algorithm.

Question 2:

You are required to provide a detailed analysis of the following sorting algorithm applied to sorting linked list-based data structures.  
- merge_sort in ascending order Similar to the case of Question 1, analyse the algorithms by

1) providing a description of the algorithm in pseudocode;
2) conducting time complexity analysis of the algorithm (and also mention best and worst case analysis if applicable);
3) conducting space complexity analysis of the algorithm;
4) hand testing your algorithm using your allocated 10-element long list of alphabetic characters as an illustrative example (see the Data

Set below, and treat them as sequential elements of an linked list),
o count the number of comparisons;
o re-arrange your data set so as to achieve the best-case sorting of the algorithm;
o re-arrange your data set so as to achieve the worst-case sorting of the algorithm.

Reference no: EM13337278

Questions Cloud

Determine how close can two protons get is one is at rest : What is the wavelength of the moving proton and how does it compare with the minimum seperation radii of between two protons
Calculate the inductance of the inductor in millihenrys : Consider a series RLC circuit where R = 345 ? and C = 2.25 ?F. However, the inductance L of the inductor is unknown. What is the inductance of the inductor in millihenrys
What is the normal force fn on the car from the track : A roller-coaster car has a mass of 1170 kg when fully loaded with passengers. As the car passes over the top of a circular hill of radius 20 m, its speed is not changing.
What is the force in micronewtons that acts on the surface : Sunlight, with an intensity of 681 W/m2, strikes a flat collecting surface perpendicularly and is totally absorbed. What is the force in micronewtons that acts on the surface
Conduct space complexity analysis of the algorithm : conduct time complexity analysis of the algorithm (and also mention best case and worst case analysis if applicable).
Calculate the ratio of the drag force on a jet flying : Calculate the ratio of the drag force on a jet flying at 1140 km/h at an altitude of 10 km to the drag force on a prop-driven transport flying at half that speed and altitude.
What is the income elasticity of these groups of goods : Researchers have found that during the last recession, when income fell by 6 percent, many fast-food restaurants saw their sales increase by 8 percent while the sales of soda fell by 12 percent in grocery stores.
Find the ratio of the effective cross-sectional area a : The terminal speed of a sky diver is 124 km/h in the spread-eagle position and 338 km/h in the nosedive position. Assuming that the diver's drag coefficient C does not change from one position to the other
What is the weight of the sand and box in that situation : An initially stationary box of sand is to be pulled across a floor by means of a cable in which the tension should not exceed 949 N. The coefficient of static friction between the box and the floor is 0.34.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Create all the possible combinations of array a

The subset-sum problem is defined as follows: given a set B of n positive integers and an integer K, can you find a subset of B whose elements' summation is equal to K? Design an algorithm to solve this problem. Address its correctness and running..

  Creating an interactive java program

Create an interactive Java program that illustrates the use of constructors, methods, loops and arrays.

  Modify algorithm to always select president of company

How would you modify your algorithm to always select the president of the company (regardless of his fun rating or the consequences on the overall amount of fun we can achieve)?

  Test the database management system functionality

In a report that less than half of all companies validate the in their databases and test database management system's functionality. Explain your answer.

  Explaining elementary operations used in algorithm

How many elementary operations are used in algorithm given below? The elementary operations are comparison operations (such as > and

  Write schedule produced by earliest deadline first algorithm

Given below are two sets of real-time, periodic tasks. For (a), will the schedule produced by Earliest Deadline First algorithm meet all the deadlines?

  Propose an efficient data structure

Propose an efficient data structure that may hold the tour operator's data using a normalization process. Describe each step of the process that will enable you to have a 2nd Normal Form data structure.

  Why is understanding algorithm efficiency so critical

Why is understanding Algorithm Efficiency so critical?

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Finding equation has no solutions mod m

Let the equation ax = b mod m, where x is unknown and a, b and m are given. Illustrate that this equation has either no solutions mod m, or d solutions mod m.

  Discuss infix to postfix conversion

This part will use both a stack and queue in order to convert expressions from infix to postfix notation.

  Algorithm to compute-report grade-point average for class

Compute and report grade-point average for class. Determine the sum of the grades; count number of students; compute average. Determine its algorithm?

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