Question

Design a reasonably efficient algorithm for solving each of the following problems and determine its efficiency...

Design a reasonably efficient algorithm for solving each of the following problems and determine its efficiency class

a You are given n telephone bills and m checks sent to pay the bills (n ≥ m). Assuming that telephone numbers are written on the checks, find out who failed to pay. (For simplicity, you may also assume that only one check is written for a particular bill and that it covers the bill in full.)

b. You have a file of n student records indicating each student’s number, name, home address, and date of birth. Find out the number of students from each of the 50 U.S. states.
c. For a given positive integer n, find the pair of integers whose sum is n and whose product is as large as possible

Can you plzz compete b and c the parts

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: In case of any queries, just comment in box I would be very happy to assist all your queries

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
Design a reasonably efficient algorithm for solving each of the following problems and determine its efficiency...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Your task is to design algorithms to solve the following problems. For full credit, your algorithm...

    Your task is to design algorithms to solve the following problems. For full credit, your algorithm must run in logarithmic time. Given a number n greaterthanorequalto 1 and a (user-specified) error tolerance e, you want to approximate the squareroot of n to within error tolerance e. Specifically, you want to return an x = Squareroot n that satisfies |x^2 - n| greaterthanorequalto e. For example, to compute the squareroot of n = 2 with e = 0.01, an acceptable answer...

  • please show work Use the following to answer questions 1-4 Determine whether the firm reports each...

    please show work Use the following to answer questions 1-4 Determine whether the firm reports each of the following items as part of cash, cash equivalents, or neither in the balance sheet. Item Cash, Cash equivalent, or neither Inventory for sale to customers 2. Investment with a maturity of 80 days at purchase 3 Three month US Treasury Bill 4. Bank deposits Use the following to answer questions 5-8 Bank Reconciliation: Identify whether the item should be added or subtracted...

  • [Recursive Cost] [ALGORITHM] Improving Efficiency PLEASE explain in DETAIL the following question in detail. The algorithm...

    [Recursive Cost] [ALGORITHM] Improving Efficiency PLEASE explain in DETAIL the following question in detail. The algorithm is also given below. Thank You! 1.a) Define recursively the worst case cost Kn of the Knapsack function for n items. Remember that you need to provide both the base case and the recurrence relation. Also do not forget to include the cost of the function Worth in your cost. Justify your answer (i.e. explain what each component of the formula represents). [5points] 1.b)  Use...

  • Use the following to answer questions 1-4 Determine whether the firm reports each of the following...

    Use the following to answer questions 1-4 Determine whether the firm reports each of the following items as part of cash, cash equivalents, or neither in the balance sheet Item Cash, Cash equivalent, or neither 1 Inventory for sale to customers Investment with a maturity of 80 days at purchase Three month US Treasury Bill Bank deposits Use the following to answer questions 5-8 Bank Reconciliation: Identify whether the item should be added or subtracted from the bank balance or...

  • Hints for identifying compounds in multiple-choice problems (problems 1:5); 1. Closely compare the given compounds. Determine...

    Hints for identifying compounds in multiple-choice problems (problems 1:5); 1. Closely compare the given compounds. Determine which piece of information (molecular weight from MS, number of peaks in the NMR, presence of a special functional group in the IR, etc) would be the easiest for distinguishing between the given compounds. You might not need to use all types of given spectra to find your correct compound! 2. Based on your answer from step 1, consult the appropriate spectrum first. For...

  • Bold is chapter 2 info Book name: Systems Analysis and Design in a Changing World 7e...

    Bold is chapter 2 info Book name: Systems Analysis and Design in a Changing World 7e As an employee of a large international courier and shipping service, Bill Wiley met with many companies that shipped and received packages almost every day. He was frequently asked if his company could deliver local packages on the same day. Over several months, he observed that there appeared to be a substantial need for courier services in the city in which he lived. He...

  • answer questions 1-4 Determine whether the fire balance sheet. ether the firm reports each of the...

    answer questions 1-4 Determine whether the fire balance sheet. ether the firm reports each of the following items as part of cash, cash equivalents, or neither in the Item Cash, Cash equivalent, or neither 1 Inventory for sale to customers 2.1 Investment with vestment with a maturity of 80 days at purchase 3 Three month US Treasury Bill 4. Bank deposits Use the following to answer questions 5-8 bank Reconciliation: Identify whether the item should be added or subtracted from...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

  • For this project, each part will be in its oun matlab script. You will be uploading a total 3 m f...

    For this project, each part will be in its oun matlab script. You will be uploading a total 3 m files. Be sure to make your variable names descriptive, and add comments regularly to describe what your code is doing and hou your code aligns with the assignment 1 Iterative Methods: Conjugate Gradient In most software applications, row reduction is rarely used to solve a linear system Ar-b instead, an iterative algorithm like the one presented below is used. 1.1...

  • c++ help please. Savings accounts: Suppose that the bank offers two types of savings accounts: one...

    c++ help please. Savings accounts: Suppose that the bank offers two types of savings accounts: one that has no minimum balance and a lower interest rate and another that requires a minimum balance but has a higher interest rate (the benefit here being larger growth in this type of account). Checking accounts: Suppose that the bank offers three types of checking accounts: one with a monthly service charge, limited check writing, no minimum balance, and no interest; another with no...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT