Test your algorithm with various possible inputs

Assignment Help Data Structure & Algorithms
Reference no: EM132077704

NEED HELP WITH MATLAB CODE

Consider a vector, a, of length 8. Write the code for sorting a using merge-sort. Test your algorithm with various possible inputs for a to make sure the algorithm works correctly (has no bugs) for a specific vector, a

Your script needs to call a function that will input the vector, a, into your script.

The vector will be in a function called : a = myvector()

Here is an example what "myvector" will look like

function [ a ] = myvector()

% This function simply contains a vector

% that I will use to test your merge sort algorithm

a = [ 2 5 7 3 4 6 9 4 ];

end

Reference no: EM132077704

Questions Cloud

How much would the insurance pay : Sally Norton has an insurance policy that pays up to $950 per day for room and board, up to $100,000 per episode, and up to $500,000 per year.
Professional research and communication : This is an early intervention task worth 10% of the course. The purpose of the early intervention task is to make sure that you are engaging
How large a sales increase can the company achieve : Sales Increase Maggie's Muffins, Inc., generated $2,000,000 in sales during 2015, and its year-end total assets were $1,500,000. Also, at year-end 2015.
Create a pivottable for given data : Develop a scatter diagram, and compute the sample correlation coefficient to explore the relationship between the customer satisfactionand the sale price
Test your algorithm with various possible inputs : Test your algorithm with various possible inputs for a to make sure the algorithm works correctly (has no bugs) for a specific vector, a.
The mars program development environment : The program should begin by loading the contents of four signed integer operands (A, B, C, and D) from memory into registers.
Find confidence interval for mean monthly expense budget : A sample of 20 international students attending an urban U.S. university found that the average amount budgeted for expenses per month was $1612.50.
Write a function that takes a rectified waveform : Write a function that takes a rectified waveform and returns a waveform that approximates an RC filter output.
Discuss julian birkinshaw on management innovation : Discuss Julian Birkinshaw on management innovation based on the videos below. Julian Birkinshaw discusses the challenges and methods of management innovation.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

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

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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