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

  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

  Compute the irr for project

Compute the IRR for this project. How many IRRs are there? Using the IRR decision rule, should the company accept the project? What's going on here?

  Calculate the expected return for each mutual fund

If the risk-free rate is 3.9 percent and the expected market risk premium (i.e., E(RM) - RFR) is 6.1 percent, calculate the expected return for each mutual fund according to the CAPM.

  What is the total tax that melissa would have

Based on anticipated changes in interest rates, the advisor believes that the bonds will be selling for $95 in one year's time - what is the total tax that Melissa would have to pay if she invests $1,000 in the shares of Anderson Company today an..

  Questionnbspnbspwhich critically examines the benefits and

questionnbspnbspwhich critically examines the benefits and risks to a company of incorporating corporate debt into a

  What is the rate of return on the bond

Calculate the rate of return on the price-weighted index of four stocks at the end of day 1 and calculate the rate for return on a value-weighted index of four stocks for the two-day period starting on day 0 and ending on day 2.

  Portfolio weightings

what rate of return would you expect to earn from each of the portfolios?

  How much tier 1 and tiear 2 capital is required

Suppose that the assets of a bank consist of $500 million of loans to BBB-rated corporations. The PD for the corporations is estimated as 0.3%.

  International financial reporting standards

What is the major difference in approach of international financial reporting standards and U.S. GAM' accounting? What are the advantages and disadvantages of each?

  1 a portfolio manager in charge of a portfolio worth 10

1. a portfolio manager in charge of a portfolio worth 10 million is concerned that the market might decline rapidly

  You need to present to your client alice cartwright some

you need to present to your client alice cartwright some investment options for her to choose from. her choices are

  Calculate the return on equity

Calculate each of the five components listed above for 2010 and 2014, and calculate the return on equity (ROE) for 2010 and 2014, using all of the five components.

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