Java data sturcture searching and sorting

 

Guidelines
Please follow the guidelines below:
Submit the homework and lab solutions in the drop box. For a programming question,
submit a .java file (for source code) and a .txt file for program output. If the problem
involves other questions, submit a separate .txt file to answer the question.    
P1 (20 points)
Implement a binary search of an array iteratively using the methodpublic 

static <T extends Comparable<? super T>> booleaninArrayIterativeSorted(T[]
anArray, T anEntry)
P2 (30 points)
Consider an array data of n numerical values in sorted order and a list of numerical target
values (target values are not necessarily sorted). Your goal is to compute the smallest range of
array indices that contains all of the target values. If a target value is smaller than data[0], the
range should start with -1. If a target value is larger than data[n – 1], the range should end with
n.
For example, given the array [ 5 8 10 13 15 20 22 26] and the target values (8, 2, 9, 17), the
range is -1 to 5.
1.   Devise an efficient algorithm that solves this problem and implement it in
public static <T extends Comparable<? super T>>
Interval findInterval(T[] sortedData, List<T> targetValues)

where Interval is a class that provides two public methods getLower() and getUpper() to return
the lower and upper values of an Interval object. Implement the Interval class.

2.   If you have n data values in the array and m target values in the list, what is the Big Oh
performance of your algorithm?  
P3 (20 points)
Write the java code for the method
pubic static <T extends Comparable<? super T>> boolean  isSorted(T[ ] a)
which returns true if the array a is in sorted in ascending order. The code must run in O(n) time.
P4 (30 points)
Consider a revised selection sort algorithm so that on each pass it finds both the largest and
smallest values in the unsorted portion of the array. The sort then moves each of these values
into its correct location by swapping array entries.
1.   Implement the modified selection sort using the method
public static <T extends Comparable<? super T>> void modifiedSelectionSort(T[] a, int n)
2.   How many comparisons are necessary to sort n values?

i want an essay in 350 words to the below topic in apa format 5

D4

Read the case study “The Estimating Problem” on page 734 and then answer the questions on page 735.

TEXTBOOK

Author: Harold R. Kerzner

Title: Project Management: A Systems Approach to Planning, Scheduling, and Controlling, 11th Edition, ISBN: 9781118022276

Publisher: John Wiley & Sons

 

Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code “Newclient” for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.

The post i want an essay in 350 words to the below topic in apa format 5 appeared first on Custom Nursing Help.

Essay about a book

Hey there it’s me again I got an assignment done from you earlier this week, the assignment was really good but it was submitted late so this time I want to to start ahead of time. I have an essay due on April 7 by 8 am and I want to get it done by you but you will have to read a book for that the book is called The Handmaid’s Tale the essay should be 3 full pages typed (not including the works cited) and can you please make sure that the MLA works cited is just perfect. He told us that he will know if someone just went online and read summaries for this assignment  I will provide all the information that he sent to us. I TRUST YOU WITH THIS, MY GRADE IS A C right now. Just make sure you read all of it carefully. I want a perfect score so my grade will go up I will forever be thankful… And I don’t know how to provide you the book.

Reply to student discussion #4

Two Options for Your Required Replies to Classmates 75-150 WORD RANGE

Option 1 is that you find a consultant selection made by a classmate to address a specific issue, as identified by the issue number and description, with which you disagree. You must state why you believe there is a better consultant to address a particular issue that differs from your classmate’s response. You must state the major idea associated with your choice and why that idea applies to the issue more appropriately. Your reply must be supported with course materials, in-text citations, and references.

Option 2 occurs if you agree with all of a particular classmate’s consultant selections. In that case, you must address one of the six (6) listed issues that your classmates did not answer. You will explain which consultant you think could best address that issue, the school of thought that individual represents, and explain how the major contribution or idea of that individual applies to the specific issue you selected. Your reply must be supported with course materials, in-text citations, and references.

Note: You may use either Option 1 or Option 2 for each different classmate to whom you respond.

ONLY USE THESE LINKS FOR SOURCES

Putting It Together: History of Management

BELOW IS WHAT OUR DISCUSSION WAS ABOUT:

Case Discussion SMITHFIELD’S CUSTOM FURNITURE:

 It is 1901. Alicia Smithfield, daughter of the founder of Smithfield Custom Furniture, just inherited the company. She is the only surviving heir to the furniture empire her father built. Headquartered in upstate New York, the company has grown significantly over the past 60 years. Began in a shed built next to his log cabin, Jonas Smithfield’s quality furniture developed a huge following among New York City’s wealthiest residents. After being educated in the best business schools in Europe and America, Alicia has run the business side-by-side with her father for the past 15 years. During a time when there were many issues confronting the business, a tree being felled took an unexpected route and brought Jonas’ life to a surprising end. The company had just moved to a facility large enough to house its workers: 10 carpenters; 5 furniture designers; 5 wood finishers (varnish and dye experts); 10 machine operators to assist with the various equipment needed to cut the wood into various designs, polish and sand the wood; 5 mechanics to keep the vehicles (5 trucks) and boats (7) that transported wood from upstate New York and Canada to the work area in good repair; 15 lumberjacks who cut wood in nearby areas and moved it downriver by boat or over the rugged highway by truck; and 5 office personnel who assisted with filing, invoicing, drafting and responding to correspondence, handling customer inquiries, and performing other necessary office functions. More than half of these employees were hired in the past 5 years.

THIS WAS REQUIRED FOR OUR POST: You are to answer for Alicia Smithfield any four (4) of the above mentioned six (6) issues. Specifically, she has asked you to recommend a consultant to solve any four of the six issues confronting her. You have been requested to explain to Alicia why you selected the four consultants you choose to solve each of the four issues you selected. Each consultant will solve one of the four issues you identified that particular consultant to address. You should explain the major contribution/idea of the consultant selected and how that contribution/idea applies to the specific issue you have recommended that person solve. You should identify the school of thought that each consultant represents. Note: You may not use any of the individuals in the readings to solve more than one of the four (4) issues. In the event a person you select is deceased, do not let that inconvenience stand in your way. You may still use that individual to solve a specific issue. For research associated with this discussion, you must use course materials only. You must provide APA formatted in-text citations and references for each of the four (4) issues you select.