You currently work in an algorithm development group for a

Assignment Help Portfolio Management
Reference no: EM13382823

You currently work in an algorithm development group for a large multimedia, mobile device corporation. Your group has been tasked with creating an app that will play an audio file backwards (from end to beginning rather than the standard beginning to end). Because this app is likely to be used on a mobile device, your group figures that this algorithm should use as little memory and space as possible. Your group has therefore decided to construct this reversal order algorithm such that it is an "in-place" algorithm. This simply means that the audio file will be loaded to memory and reversed using the same memory locations (because you must use memory sparingly).

Assignment

• Part 1: Before attempting this implementation, you choose to develop a simple prototype version of this algorithm in C++. Specifically, you will build an in-place, order reversal algorithm. This algorithm will take as an input an array of ints and will reverse the order of the elements in the array, in place (essentially using only the memory in the array). For example, if the array contains five elements [1,2,3,4,5], the output of the algorithm will be [5,4,3,2,1]. Comment your program.

• Part 2: Using this prototype, you will analyze the time complexity and space complexity of your algorithm in the worst case. Specifically, for time complexity, count the number of steps for each line of code, and write down the total lines executed as a mathematical expression where n is the size of the input array. For space complexity, write an expression for the number of memory locations and components that are required for algorithm in the worst case. (Assume that each int is one location.)

• Part 3: Program a method or class that will track the true runtime of your algorithm. Find the true runtime of your algorithm using arrays of varying sizes (e.g., n = 500, n = 1,500, and n= 2,500) using your new tool. Plot, on a Cartesian plane, the runtime of your algorithm as a function of the size of the input array, n.

Reference no: EM13382823

Questions Cloud

Select a pair of articles on an identical topic from your : select a pair of articles on an identical topic from your annotated bibliography. this pair can be comprised of a one
How can the ideas from ties that bind can help to compare : how can the ideas from ties that bind can help to compare business ethical decision making between usa and brazil. for
Discuss the culture and ethics in france analyze the : discuss the culture and ethics in france. analyze the differences and similarities between the united states and france
Company salamander energyuse a variety of sources of : company salamander energyuse a variety of sources of information the company website and annualperiodic reports for
You currently work in an algorithm development group for a : you currently work in an algorithm development group for a large multimedia mobile device corporation. your group has
Problem 1a horizontal steel pipe having a diameter of 5 cm : problem 1a horizontal steel pipe having a diameter of 5 cm is maintained at a temperature of 50degc in a large room
Imagine you are a marketing consultant brought in to help a : imagine you are a marketing consultant brought in to help a company who has a product that is so successful they cannot
A full revolution press has 100 rpm flywheel rotation the : a full revolution press has 100 rpm flywheel rotation. the press is equipped with tow hand trip devices mounted on the
A painter is standing on a work platform that is 27 feet : a painter is standing on a work platform that is 27 feet above ground level. for fall protection the workers safety

Reviews

Write a Review

Portfolio Management Questions & Answers

  Acme is also considering the acquisition of a firm in the

acme is also considering the acquisition of a firm in the czech republic and would like your opinion on this. it plans

  Choose ve risky assets and give reasons for your choice

choose ?ve risky assets and give reasons for your choice. download historical price information from yahoo finance use

  What is the leverage can the hedge fund take on

Had to list 5 steps for the chosen strategy ; include a formula on how to compute -  the strategy had to counter the over value and under value of the French stock.

  Suppose that the assets of a bank consist of 500 million of

suppose that the assets of a bank consist of 500 million of loans to bbb-rated corporations. the pd for the

  House of haddock has 5000 shares outstanding and the stock

house of haddock has 5000 shares outstanding and the stock price is 140. the company is expected to pay a dividend of

  Compute the increase or decrease in profits

Why is transfer pricing such a important issue both from the financial and managerial perspective and compute the increase or decrease in profits for three divisions and company as a whole.

  You are a manager in the investment industry whose role is

you are a manager in the investment industry whose role is to provide investment portfolio advice and managementto a

  Explain the importance of market efficiency

If the investment advisor's beliefs are realized, what is the total tax that Melissa would have to pay if she invests $1,000 in the shares of Anderson Company today and then sells them in one year's time?

  Security plot above or below the security market line

Explain the importance of market efficiency for the assumed objective of maximizing shareholder wealth and does the security plot above or below the security market line (SML)?

  Compute the rate of return and what is approximate yield

The stock of Trudeau Corporation went from $27 to $45 last year. The firm also paid $2 in dividends during the year. Compute the rate of return and what is the approximate yield to maturity of an 8% coupon bond with a par value of $1,000? The bond..

  What is the expected return on the market portfolio

What is the expected return on the market portfolio and what would be the expected return on a zero-beta stock?

  You need to find alice 3 stocks to invest in from different

you need to find alice 3 stocks to invest in from different segments of the market. the stocks should come from 3

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