# Part v : algorithm analysis

Consider searching algorithms on the following array of data:
[22 21 9 4 16 2 10 14 20 31 26 19 17 28 8 13]

Suppose you want to implement a searching algorithm to see if the data set contains the number 19. Demonstrate how the search would go if you used:
– A sequential search
– A binary search

State the runtime for each of the searches, in this example, and for general data sets of size n.Address the issue of the order of the data in binary searching.

Suppose an algorithm that processes a data set of size 8 has a runtime of 72. The same algorithm has a runtime of 110 when applied to a data set of size 10; and when applied to a data set of size 20, it has a runtime of 420. Using big-O notation, state the runtime for this algorithm for the general case of a data set of size n.

Suppose you develop an algorithm that processes the first element of an array (length of n), then processes the first 2 elements, then the first 3 elements, and so on, until the last iteration of a loop, when it processes all elements. Thus, if n = 4, the runtime would be 1 + 2 + 3 + 4 = 10.

Create a table that depicts the runtime for arrays of length 1 to 10. Would you expect the general runtime to be O(n), O(n2), O(n3), or some other function of n? Explain.

Calculate the price
Pages (550 words)
\$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Australia Assessments
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
IT, Web
The new writer was amazing and followed the instructions perfectly! Thank you so much for tackling all requirements on short notice and a HUGE thank you to the support team for remaining in contact with me until a resolution was received.
Customer 452455, January 13th, 2023
Human Resources Management (HRM)
Great Job, I like it
Customer 463599, November 7th, 2022
Aviation
Great job!
Customer 454145, April 12th, 2020
English 101
Customer 460547, April 25th, 2022
The paper met the expectation. Thanks!
Customer 463143, September 7th, 2022
Other
great job, thanks
Customer 462485, March 18th, 2022
Film & Theater studies
Good work.
Customer 462687, July 4th, 2022
This was by far one of the best that I have received!
Customer 453375, April 22nd, 2022
Accounting & Finance
good work
Customer 452441, April 12th, 2022
Good job!
Customer 463337, March 16th, 2023
SEO
A job well done.
Customer 463679, May 13th, 2023
Always check word count when proofreading.
Customer 452441, April 6th, 2022
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend