Design and implement a digital music streaming

Assignment Help Data Structure & Algorithms
Reference no: EM132403070

Exercise

We have been hired to design and implement a digital music streaming service called Potify, where users can listen to songs and add them as favourite to their personal library. As part of our job, we have to implement the searching and sorting of songs.

Users will only be able to sort songs using the same criteria of song title and author (as in Exercise 3d).

The team of engineers you manage has developed two sorting algorithms that have to be tested. The first one is a variant of MergeSort, whereas the other is a variant of QuickSort. Moreover, the development team also wants to compare these variants with the algorithm already implemented in the Java Arrays class, called parailelSort.

For this exercise you must implement an experimental test about each of the algorithm's computing time:

• You will have to test different array sizes: 10, 100, 1000, 10000, 1000000,10000000.

• For each array size, you must generate 30 distinct array instances of each size (check how you can generate random song collections in the provided class) and calculate the average time the algorithm takes in order to solve problems of that size.

• After executing the experiments (they can take hours), you must determine and justify which of the sorting algorithms works best (you can use charts). On the other hand, you must compare the experimental cost of MergeSort, QuickSort and Arrays.parallelSort with the theoretical temporal cost (for instance, you can plot the theoretical cost as a baseline in the chart).

• Explain how the algorithm used in the Arrays.parallelSort() method works, and justify whether the performance you get in your experiment is the expected in all scenarios. You can take a look at the ArraysParallelSortHelpers class which this method uses.

In order to complete this exercise you will have to modify a code skeleton to achieve your objective. The results of the experiment are automatically stored in the out/test/resources/benchmark resufts.tsv file on your project. The algorithms should compare in the most similar conditions so as the comparison is fair enough.

Verified Expert

The work develops java program to create an application Potify which is digital music streaming service. the developed system wants to sort songs and find the song from the personal library. in connection with the application two sorting algorithms such as Merge sort and Quick sort developed. the performance of the two compared with various array sizes. the work explains the working principle of the array class parallel Sort.

Reference no: EM132403070

Questions Cloud

Earns an annual interest rate : How much will you have in this account at the end of 5 years? Assume that all interest received at the end of the year in reinvested the next year.
Redraw the geographical boundaries of the western canadian : As well as the broader concepts of space, place, and globalization, redraw the geographical boundaries of the Western Canadian provinces.
How much money will be in the account at the end : The first deposit is made today. How much money will be in the account at the end of that time period?
What is the present value of the annuity : What is the present value of the following annuity? $1,062 every year at the end of the year for the next 8 years, discounted back to the present at 11.92
Design and implement a digital music streaming : Design and implement a digital music streaming service called Potify, where users can listen to songs and add them as favourite to their personal library
Determine the new number of shares outstanding in parts : Determine the new number of shares outstanding in parts (a) through (d).
What is the value of operations : a. What is the value of operations? b. Immediately prior to the repurchase, what is the intrinsic value of equity?
What are the data analytics principles : Discuss the ways in which understanding big data and data analytics principles either impact your current work or your career aspirations. APA style format.
Identify one stock to either buy or short sell : Identify one stock to either buy or short sell. You must print out whatever charting you finally use. You can also learn more about technical indicators.

Reviews

len2403070

11/19/2019 1:07:14 AM

After executing the experiments (they can take hours), you must determine and justify which of the sorting algorithms works best (you can use charts). On the other hand, you must compare the experimental cost of MergeSort, QuickSort and Arrays.parallelSort with the theoretical temporal cost (for instance, you can plot the theoretical cost as a baseline in the chart). • Explain how the algorithm used in the Arrays.parallelSort() method works, and justify whether the performance you get in your experiment is the expected in all scenarios. You can take a look at the

len2403070

11/19/2019 1:06:34 AM

must be in java and run in intellij Idea you must complete the next 4 step: For this exercise you must implement an experimental test about each of the algorithm’s computing time: • You will have to test different array sizes: 10, 100, 1000, 10000, 1000000, 10000000. • For each array size, you must generate 30 distinct array instances of each size (check how you can generate random song collections in the provided class) and calculate the average time the algorithm takes in order to solve problems of that size.

Write a Review

Data Structure & Algorithms Questions & Answers

  How to create simple indexed files

How to create simple indexed files and multiple indexed files in file structures in c++?

  Create a list of inventory parts and their quantities sold

Write a program that uses a hashing algorithm to create a list of inventory parts and their quantities sold in the past month. After creating the hashed list, write a simple menu-driven user interface.

  Define a function for appending sorted lists

Define a function for appending sorted lists. You get 5 points just for the type of the function, and 10 more points for the code

  Write algorithm find intersection of two singly-linked list

Write an algorithm (pseudocode) to find the intersection of two singly-linked lists. Assume that the data in each list are in nondecreasing order.

  Illustrate the application of cognitive computing

Illustrate the application of cognitive computing and machine learning concepts through building and training a chatbot that simulates the human conversation

  Design a binary search based algorithm

All the elements (except an element called the pivot at index p) of the sorted, but rotated array of integers have a property that they are less.

  Write a version of the randomized selection algorithm

It is also possible to write a version of the randomized Selection algorithm analogous to Slower Quicksort. That is, when we pick out the random pivot element.

  Write driver programs to test them as instructed

Factory workers are paid a certain amount for each unit they make and their total pay is the number of units produced times the pay per unit.

  Calculate bits number output of first round-des decryption

Calculate the bits number 1, 16, 33, and 48 at output of first round of DES decryption, suppose that ciphertext block is composed of all ones

  An undirected graph g is called bipartite

An undirected graph G is called bipartite if its vertices can be partitioned into two sets X and Y such that every edge in G has one end vertex in X and one end vertex in Y

  Question about multi dimensional arrays

Multi-dimensional arrays could cost a lot of memory. Determine how much memory does it take to create an integer array of 3 dimensions,

  Explain solution to recurrence-appealing to recursion tree

Solve the following recurrence relations by the method of your choiceT(n) = 1 for n = 4 and T(n) =pnT(pn) + n for n > 4. Argue that the solution to the recurrence T(n) = T(n=3) + T(2n=3) + cn is (n lg n) by appealing to the recursion tree.

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