Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Assignment: Algorithm Complexity Issues
In this weeks summary, the dispatch department has contacted you with a new problem. Once they receive a new order, they have to look for each product's availability in the existing warehouses. The preference is to ship from the minimum amount of warehouses and to always ship from the warehouse that contains the maximum amount of units.
For example, review the following order (number 10333) that was received by the dispatch department this morning:
Product ID
Amount
0001
10
0005
12
0003
3
0002
4
Be sure to also review the following diagram that shows the warehouse and the list of available products:
Warehouse 1
Warehouse 2
Warehouse 3
Product 001
100
Product 002
0
7
6
Product 003
1
Product 004
Product 005
The ideal shipment would be as follows:
Units
Warehouse
2
Complete the following:
• What approach would you follow to create an algorithm to solve this particular problem? Brute force or greedy? Explain the logic that you follow for your choice.
• Present the algorithm either using pseudocode or a flowchart.
Write a method that finds the average age of the students stored in the data structure and some Java code that could be used in a test program to display the value returned by the method on the console or command prompt.
Problem: Navigation over a terrain can be an important concept. Usually you want to avoid high areas (peaks) and low areas (valleys) -
Create an applet document that prompts the user for an ID number and an age. Construct an Exception class and throw an Exception of that class if the ID is not in the range of valid ID numbers.
Explain the advantage of using Arrays as the primary index. Now, state which DS you would use for the primary index and why?
Create a complete binary Tree in which user can add any number of node/elements (Numeric). After Creating a complete binary tree.
In which view can you see header and footer areas of worksheet?
That is, given a quadratic residue y, the box outputs an x with x2 = y (equation is modulo n). Show how the box can be used to factor n.
Draw the process tree and expected output, Repeat the exercise using 3 instead of 2 in the for statement
Propose an efficient data structure that may hold the tour operator's data using a normalization process. Describe each step of the process that will enable you to have a 2nd Normal Form data structure.
Suppose in Problem that additional constraints arise from the fact that certain tasks cannot be performed at the same station.
Write an algorithm, using pseudo code, "Word Search": Given a string of letters, identify all substrings that create one of five given words.
quality building supply qbs has proposed a project to develop a business system. the project team has gathered the
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!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd