Entries by Student

write my assignment 28302

Help With this (NetBeans).

Files are also attach.

Your program is to first take as input 2 values: n indicates the number of values to be sorted, and k indicates the number of values to store in each heap. You may assume that n is a multiple of k. The program should then read a set of n integer values each of which is in the range 1..n.

The program should represent the k values in each heap as an array. Create a min-heap from the first k values in the input list, a second min-heap from the next k values, etc. Note that because n is a multiple of k, the last heap also contains exactly k values. You should use the most efficient method to create each of these heaps. Join the heaps together in a linked list, so that the 1st heap points to the 2nd, etc.

Now apply a radix sort on the heaps, as follows:

⦁ Each individual data item in the heap should be considered a “digit” for the purposes of the radix sort. Therefore a heap of k values can be considered to have k digits. There are n possible values for each of these digits.

⦁ At the end of the radix sort, the first heap in the linked list will be the “lowest” heap, the second will be the next “lowest”, etc.

Now repeatedly apply the following steps until the list of heaps is empty:

⦁ Remove the smallest item from the first heap, and print it. Replace this item with the smallest item from the second heap and apply trickle-down as necessary.

⦁ Repeat this process, inserting the smallest item from the third heap into the second heap, …, the smallest item from the last heap into the next-to-last heap.

⦁ When the last heap becomes empty, remove it from the linked list of heaps.

Part A (70 marks): Submit the results of running your program on the input in the following files, available from the course home page: assn3input1.txt, assn3input2.txt

For each of the above, print the initial list of values, and then print the item removed and the remaining data structure (i.e. “list of heaps”) as each item is removed, in a manner similar to the example shown on the following page.

Part B (20 marks): For this part, you must first construct a random sequence of integer values, with all values in the range 1..10000. This same random sequence must be used to compare the performance of your program for all of the following runs:

(n = 10000, k = 10000), (n = 10000, k = 1000), (n = 10000, k = 100), (n = 10000, k = 10), (n = 10000, k = 1).

You should provide the following information for each run: execution time, total swaps required by trickle-down during initial construction of the heaps, and total swaps required as a result of a remove operation. Note: you can check the current time in milliseconds using System.currentTimeMillis().

Alternatively, you can investigate System.nanoTime(). Submit the results of this comparison, and write a short paragraph commenting on the results and what you think they mean.

For this part, the sorting output should be given electronically only, and should consist of only n, k, the initial list of items and the sorted list of items.

Text File:

12410

Second Text File:

1266

  • Attachment 1
  • Attachment 2
  • Attachment 3

 

"Not answered?"


Get the Answer

write my assignment 5261

Have to make a power point presentation with the word doc MAIN IS PPT, explaning the ppt (just explanation of ppt in word ) 

This assessment is designed to assess your technical skills in designing and communicating a project proposal effectively. Your topic related to a project proposal for a business problem, for example implement just in time to optimize supply chain, create a new procurement process, develop a new information system to improve communication, reduce volume of customer calls for call centers and so on.

 The project proposal presentation should include the typical components of a project charter: background of the project/problem, scope, SMART objectives, governance, schedule, budget and risks as well as solutions to the problem and existing alternatives.

 

"Not answered?"


Get the Answer

write my assignment 13890

Please watch the following short video and discuss the role of pull strategies (advertising) in consumer goods market. (There are other resources you can use in Additional Readings page)

Think about the product you will promote in your international business plan. What will your product stand for?

Link : https:// Readings page

How Unilever Reshapted Marketing for the Digital Age http:// (Links

to an external site.)

Links to an external site.

How Unilever is Using Incredibly Simple Strategies to Win in

Emerging Markets http:// (Links

to an external site.)

Links to an external site.

More marketing news for Unilever… http:// (Links to an

external site.)

Links to an external site.

The 3 Pillars of Unilever’s Marketing Strategy for the Connected

Age http:// (Links

to an external site.)

Links to an external site.

Unilever Strategic Marketing http:// (Links

to an external site.)

Links to an external site.

International Internet Marketing http:// (Links to an external

site.)

Links to an external site.

Running head: PULL STRATEGY 1 Pull StrategyStudent NameProfessor Name17 MAY 2017 PULL STRATEGY 2Pull strategyIntroduction In this paper I can choose the adidas product to promote in the…

 

"Not answered?"


Get the Answer

write my assignment 12539

Suppose we have two bowls full of candies.  Each bowl contains four different flavours of candy – grape (which are purple), lemon (which are yellow), cherry (which are red) and raspberry (which are also red). 

(a) We will randomly select one candy from each bowl.  The outcome of interest is the flavour of each of the two candies.  Write out the complete sample space of outcomes.

(b) Suppose instead that we randomly select one candy from each bowl, and the outcome of interest is the colour of each of the two selected candies. Write out the complete sample space of outcomes.

*Give all probabilities to four decimal places.Bowl #1 contains 2 grape candies, 7 lemon candies, 8 cherry candies and 3 raspberry candies.Bowl #2 contains 6 grape candies, 5 lemon candies, 2 cherry candies and 7 raspberry candies.(c) What is the probability that the two selected candies are the same flavour?

(d)  What is the probability that the two selected candies are different colours?  (e)  What is the probability that the first selected candy is lemon or that the second selected candy is cherry? (f)  Let X be the number of grape candies that are selected.  Find the probability distribution of X :

 

"Not answered?"


Get the Answer