Question

In: Computer Science

For the following, copy the questions into a text file and write your answers for each...

For the following, copy the questions into a text file and write your answers for each question.

I. Place the following algorithm time complexities in order from fastest (least number of comparisons) to the slowest: nlogn, n, n2, 2n, logn, 2n
II. In your own words, explain the two characteristics that a recursive solution must have.
III. Why are divide-and-conquer algorithms often very efficient in terms of time complexity?
IV. Write in your own words 3 different examples of cases where people around you are giving up their privacy to use some service in exchange for a benefit. State for each example what data is being collected and what benefits the user receives in exchange.

Solutions

Expert Solution

I. Place the following algorithm time complexities in order from fastest (least number of comparisons) to the slowest: nlogn, n, n2, 2n, logn, 2n

logn,n, nlogn, 2n, n2

In your own words, explain the two characteristics that a recursive solution must have.

1. It must call itself at least 1 time to satisfy the recursive approach

2. It value should be changed leads to it base value means if the factorial program in recursive solution if you enter any number it will repeatedly call the fuction until input value become 1 that is recursive call run until the base value is achieved

Why are divide-and-conquer algorithms often very efficient in terms of time complexity?

DIvide and conquer is very efficient in tems of time complexity because you divide the problem into subparts and solve it separatey which is knows as conquer after getting the solution your merge the all solution into one optimal solution that is known as combine which reduce the no of operation to a much extent . ex of this is quicksort and binary search

Write in your own words 3 different examples of cases where people around you are giving up their privacy to use some service in exchange for a benefit. State for each example what data is being collected and what benefits the user receives in exchange.

1. Cookies Many websites showing a prompt that they are using the cookies please accept the cookies and people accept these cookies withour considering that they are giving up their privacy to use some service offered by the sites cookies are nothing a file that contains or preserve your session for further use means if you login to any site if they offer you the cookies means the next you open the site you will login directly using cookies without entering the credentials

2. Web activity control The user generally allows the sites to collect, manage and see their web activity in this condition user almost loose it most of the privacy like whaterver he is browsing or searching on the internet the data is directly send to that sites in exchage these site offers your desire content in the form of ads or your improving your general feed means if you are search to buy a laptop it will be monitor by these sites they will start show the content related to laptop in the form ads

3. Contact sync you generally any application you download in your phone most of the application wants to access your calls logs and contacts and many people allow these things normally by this these application developers may sync your contact for their personal benifit and in exchange they provide you the better user experience like direct sharing etc

Please hit the like button if you find this helpful for you THANK YOU AND HAPPY LEARNING:)


Related Solutions

Write all your answers for this problem in a text file named aa.txt – for each...
Write all your answers for this problem in a text file named aa.txt – for each problem write the problem number and your answer. 1.1 What type of object can be contained in a list (write the letter for the best answer)? a. String b. Integer c. List d. String and Integer only e. String, Integer, and List can all be contained in a list 1.2 Which statement about the debugger is not correct? a. It is a powerful tool...
Write a C++ program to create a text file. Your file should contain the following text:...
Write a C++ program to create a text file. Your file should contain the following text: Batch files are text files created by programmer. The file is written in notepad. Creating a text file and writing to it by using fstream: to write to a file, you need to open thew file as write mode. To do so, include a header filr to your program. Create an object of type fsrteam. Open the file as write mode. Reading from a...
Plz write in your own text and don't copy answers that was answered before since my...
Plz write in your own text and don't copy answers that was answered before since my teacher has (Plagiarism checker) thank you at least 3-4 paragraphs 1. What is a prepaid expense? Why does a company have to make this adjustment? What other adjusting entries do a company need to make for a period before preparing financial statements? 2. Why it important to reconcile the bank statement? What are some of the items involved in the reconciliation process? What do...
Plz write in your own text and don't copy answers that was answered before since my...
Plz write in your own text and don't copy answers that was answered before since my teacher has (Plagiarism checker) thank you In 800 APA word discuss one STD and its effect on life no Plagiarism
Plz write in your own text and don't copy answers that was answered before since my...
Plz write in your own text and don't copy answers that was answered before since my teacher has (Plagiarism checker) thank you at least 3-4 paragraphs 1. QuickBooks Desktop records revenue when an invoice is generated even though cash has not been received. Is this an acceptable practice? Why or why not? 2. How does a business recognize when to create an invoice and when to create a sales receipt? What are the significant differences between sales receipts and invoices?...
Plz write in your own text and don't copy answers that was answered before since my...
Plz write in your own text and don't copy answers that was answered before since my teacher has (Plagiarism checker) thank you at least 3-4 paragraphs 1. In your own words, describe the benefits of computerized accounting to an organization. What features in QuickBooks will aid an organization in its accounting and decision-making process? What differentiates manual and computerized accounting systems? at least 3-4 paragraphs
Plz write in your own text and don't copy answers that was answered before since my...
Plz write in your own text and don't copy answers that was answered before since my teacher has (Plagiarism checker) thank you at least 3-4 paragraphs 1.How does QuickBooks simplify accounting for a retail business? How does inventory tracking in QuickBooks differ from manual accounting? 2.QuickBooks Desktop uses a list to organize sales items. Why is the use of the item list important for a business? Why might a company want to customize its business forms? at least 3-4 paragraphs...
Plz write in your own text and don't copy answers that was answered before since my...
Plz write in your own text and don't copy answers that was answered before since my teacher has (Plagiarism checker) thank you at least 3-4 paragraphs Oct 8/20 beginning "Moderna vows " discussing this leading biotech firm's decision to let any other company use its proprietary (and patented )technology to treat Covid-19 throughout the pandemic and to license its technology afterwards to other firms. pl analyze this decision from the perspective of the various ethical theories discussed in this chapter...
Plz write in your own text and don't copy answers that was answered before since my...
Plz write in your own text and don't copy answers that was answered before since my teacher has (Plagiarism checker) thank you at least 3-4 paragraphs 1. In your own words, describe the benefits of computerized accounting to an organization. What features in QuickBooks will aid an organization in its accounting and decision-making process? What differentiates manual and computerized accounting systems? 2.How does a business recognize when to create an invoice and when to create a sales receipt? What are...
Plz write in your own text and don't copy answers that was answered before since my...
Plz write in your own text and don't copy answers that was answered before since my teacher has (Plagiarism checker) thank you at least 3-4 paragraphs 1. Bills can be paid when they are received or when they are due. Which features in QuickBooks are used to record receipts and payments? How are cash purchases recorded? Why is the QuickZoom feature important? 2.Describe the matching principles in accounting. How is prepaid expense accounted for? Give an example. What is the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT