The mode of a set of numbers is the number that occurs most frequently in the...

The mode of a set of numbers is the number that occurs most frequently in the set. For example, the set {4, 3, 6, 4, 3, 4, 1} has mode 4.

(a) (10%) Give an efficient, in-place algorithm to compute the mode of a set. Give the running time of your algorithm as a function of number of elements in the set, n. Show all work!

(b) (10%) Now suppose we know that there exists an element that occurs at least (n/2) + 1 times in the set, where n is the number of elements in the set. Give an O(n) algorithm to find the mode of this set.

In: Computer Science

9 starch agar plates have been inoculated with different bacteria in order to see if each...

9 starch agar plates have been inoculated with different bacteria in order to see if each bacterial species has amylase to hydrolyze the starch. After incubation, Gram's iodine must be added to see if the results were positive or negative. Before applying the Gram's iodine, the plates are incubated for 48 hours.

What should you expect to happen if you applied the Gram's iodine after 2 hours of incubation instead of the 48 hours and why?

In: Biology

A) Calculate the kinetic energy of a proton (1.67×10−27kg) traveling 8.30×107 m/s . B) Calculate the...

A) Calculate the kinetic energy of a proton (1.67×10−27kg) traveling 8.30×107 m/s .

B) Calculate the momentum of a proton (1.67×10−27kg) traveling 8.30×107 m/s .

C) By what percentages would your calculations have been in error if you had used classical formulas?

In: Physics

Review Exercise 3-1 on page 115 of the text. Compute the company's predetermined overhead rate and...

Review Exercise 3-1 on page 115 of the text. Compute the company's predetermined overhead rate and explain the four-step process to compute a predetermined overhead rate. How would this rate be effected if the direct labor hours increased to 25,000? How would the rate be effected if the overhead were to increase to $150,000. Give examples of some of the challenges a manager may have in completing this computation.

Harris Fabrics computes its predetermined overhead rate annually on the basis of direct labor hours. At the beginning of the year, it estimated that 20,000 direct labor-hours would be required for the period’s estimated level of production. The company also estimated $94,000 of fixed manufacturing overhead expenses for the coming period and variable manufacturing overhead of $2.00 per direct labor hour. Harris’s actual manufacturing overhead for the year was $123,900 and its actual total direct labor was 21,000 hours.

Required:

Compute the company’s predetermined overhead rate for the year.

In: Accounting

Theatre 101 CHARLEY'S AUNT 1. WOULD YOU RECOMMAND THIS PRODUCTION FOR OTHERS TO SEE? WHY OR...

Theatre 101

CHARLEY'S AUNT

1. WOULD YOU RECOMMAND THIS PRODUCTION FOR OTHERS TO SEE? WHY OR WHY NOT?

2. OVERALL REACTION TO THE SHOW?

3. EXPLAIN YOUR OVERALL REACTION ( USING CRITICAL THOUGHT). GIVE A BRIEF JUSTIFICATION AS TO WHY YOU RATED YOUR OVERALL REACTION AS YOU DID?

4. BRIFELY OUTLINE THE STORYLINE OF THE PLAY?

5. WHAT WAS THE THEME OF THE PLAY? (WHAT WAS THE PLAYWRIGHT WANT YOU TO WALK AWAY WITH UPON THE PLAY'S CONCLUSION?)

In: Psychology

Consider the titration of a 34.0mL sample of 0.180M  HBr with 0.210M KOH. Determine each of the...

Consider the titration of a 34.0mL sample of 0.180M  HBr with 0.210M KOH. Determine each of the following:

Part A

the initial pH

Part B

the volume of added base required to reach the equivalence point

Express your answer in milliliters.

In: Chemistry

Thoroughly answer the following questions in question/answer format. 1) What is the purpose and method of...

Thoroughly answer the following questions in question/answer format.

1) What is the purpose and method of Clinical Trials in the Drug Approval Process?

2) Why did the U.S. government take steps to allow for expedited review of generic drugs, and what is necessary for generic drugs to receive approval?

3) Why was the early proprietary medicine trade a threat to public health?

4) What is the main criticism of Medicare Part D?

5) What are at least ways that the U.S. government supports the pharmaceutical industry's research and development of prescription drugs.

In: Nursing

for the calculations performed with the experimental data obtained, which of the following best describes why...


for the calculations performed with the experimental data obtained, which of the following best describes why it is necessary to assume that deltaH and deltaS are temperature independent values. this assumption permits use of a linear equation to fit the data, this assumption allows us to average the data, this assumption allows entropy to be ignored when enthalpy changes are large, this assumption allows entropy to be ignored when enthalpy changes are small, this assumption allows entropy to be ignored when calculating deltaG values

In: Chemistry

READ the scenario below here first What stands out to you the most? You are looking...

READ the scenario below here first What stands out to you the most? You are looking for the THREE (3) main issues that you will base your appellate brief on: how did the lower (trial) court err and/or what did the lower (trial) court do wrong? It is these three (3) issues or errors that we are pointing out to the appellate court. We are asking the appellate court to reverse the lower (trial) court’s ruling because of these errors and send it back for re-trial. You will have to start a bit of research here to fully understand what the THREE (3) issues are. Please use Google or Lexis to begin your legal research on educating yourself on this topic. Look for cases on these topics.

Your Case:  “Morty’s Moral Matter”

The situation described below is hypothetical.

Our client, Morty Smith, is a 17-year old high school senior who attends Harry Herpson High School ("Herpson High"). Morty refers to himself as a “Practicing Pastafarian” and a devout member of the Church of the Flying Spaghetti Monster.

Herpson High is operated by Meseeks Unified School District (the "School District"), a school district that operates elementary, middle, and secondary schools in Florida.  In planning its graduation ceremony and program, Herpson High notified parents of the graduating seniors that student-led and student-initiated nondenominational prayers would be offered at the graduation.  Attendance at the graduation would be voluntary.  School officials at Herpson High would review any prayers that were submitted by students before they were offered at the ceremony. Morty submitted to the school a “prayer” that he wished to read at graduation:

“Our pasta, who art in a colander, draining be your noodles. Thy noodle come, Thy sauce be yum, on top some grated Parmesan. Give us this day our garlic bread, and forgive us our trespasses, as we forgive those who trample on our lawns.”

School officials denied Morty’s request to read his prayer with no reason given for the rejection.  No other student received such a rejection, and the school allowed all other prayers submitted by student’s to be read at graduation.

Morty Smith sued the School District on the basis that the school violated his Constitutional rights. Among other issues, he specifically claimed that the prayers allowed at graduation violated his First Amendment right to free speech and the First Amendment's prohibition against laws relating to establishment of religion.  On a Motion for Summary Judgment, the Middle District of Florida Trial Court ruled against Mr. Smith on the School District's Motion for Summary Judgment, holding that students are not afforded the same protections as adults under the Constitution as per Freedom of Speech. Furthermore, the Court ruled that the student-led and student-initiated nondenominational prayers could not violate the US Constitution.

          Morty Smith has ample funds (backed by his grandfather, Rick) and wants to appeal to the United States Court of Appeals for the Eleventh Circuit.

In: Operations Management

Exercise 4.52 Many computer chips are manufactured from silicon, which occurs in nature as SiO2. When...

Exercise 4.52

Many computer chips are manufactured from silicon, which occurs in nature as SiO2. When SiO2 is heated to melting, it reacts with solid carbon to form liquid silicon and carbon monoxide gas. In an industrial preparation of silicon, 155.2 kg of SiO2 is allowed to react with 77.6 kg of carbon to produce 66.2 kg of silicon.

Part A

Determine the limiting reactant for the reaction.

SiO2(s)
C(s)

SubmitMy AnswersGive Up

Correct

Part B

Determine the theoretical yield for the reaction.

Express your answer using four significant figures.

m =

72.40

  kgSi  

SubmitMy AnswersGive Up

Incorrect; Try Again; 3 attempts remaining

Part C

Determine the percent yield for the reaction.

%

SubmitMy AnswersGive Up

Provide FeedbackContinue

In: Chemistry

WRITE A FIBONACCI SEQUENCE AS A RECURSIVE FUNCTION IN MIPS ASSEMBLY LANGUAGE WRITE A TEST PROGRAM...

WRITE A FIBONACCI SEQUENCE AS A RECURSIVE FUNCTION IN MIPS ASSEMBLY LANGUAGE

WRITE A TEST PROGRAM (“MAIN” PROGRAM)

THAT CALLS IT AT LEAST TWICE CONFORM TO ALL CODING STANDARDS

In: Computer Science

Write a comparator that sorts students by Last and First name in ascending order

Write a comparator that sorts students by Last and First name in ascending order

In: Computer Science

1. Consider the non-equilibrium situation in the money market: People want to reduce their holdings of...

1. Consider the non-equilibrium situation in the money market: People want to reduce their holdings of monetary asset. In the process toward the equilibrium, answer how variables below will change in the market: Decrease, Increase, No change.

Price of non-monetary asset:

Interest rate:

Real money supply:

Read money demand:

In: Economics

in minimum 200 words, i need the relationship between technology and GDP.

in minimum 200 words, i need the relationship between technology and GDP.

In: Economics

How many passwords can you make with 8 characters using Uppercase, Lowercase, digits using at least...

How many passwords can you make with 8 characters using Uppercase, Lowercase, digits using at least one Uppercase, at least one Lowercase and at least one digit?

How many numbers between 1 and 1,000,000 (inclusive) are divisible by at least one of 3,4 and 5?

How many numbers between 1 and 1,000,000 (inclusive) are divisible by at least one of 12, 14, 15?

In: Computer Science