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

  1 suppose the yield on short-term government securities

1. suppose the yield on short-term government securities perceived to be risk-free is about 3. suppose also that the

  Discuss the development of exchange traded funds

Discuss the development of exchange traded funds (ETFs) in the United States. How do these ETFs differ from conventional equity mutual funds? Please discuss what is meant by the Sharpe Ratio, the Treynor Ratio, theSortino Ratios, and Jensen'..

  1 is your nbspportfolio balancednbsp justify your answer2

1. is your nbspportfolio balanced?nbsp justify your answer.2. what changes would you make if any?a high portfolio beta

  1 the stock of trudeau corporation went from 27 to 45 last

1 the stock of trudeau corporation went from 27 to 45 last year. the firm also paid 2 in dividends during the year.

  Evaluate the rate of return for the project

Determine the Rate of Return for the project and The projected life time of this design is 8 years and there is no salvage value.

  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.

  Which critically examines the benefits and risks to company

Which critically examines the benefits and risks to a company, of incorporating corporate debt into a portfolio of equity and debt.

  1 suppose you bought a five-year zero-coupon treasury bond

1. suppose you bought a five-year zero-coupon treasury bond for 800 per 1000 face valuea. what is the rate of return on

  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

  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)?

  Implied interest rates in europe and the u.s.

What is the implied interest rate for the first six months and what is the implied forward rate six months hence - what are the implied interest rates in Europe and the U.S.?

  Active management of the portfolio with an annual fee

You are a managing partner of a prestigious investment counseling firm that specializes in individual rather than institutional accounts. The firm has developed a national reputation for its ability to blend modern portfolio theory and traditional..

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