Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This project requires you to compute running times of algorithms to provide evidence for their theoretical asymptotic running times. You will compute running times of

image text in transcribed
image text in transcribed
image text in transcribed
This project requires you to compute running times of algorithms to provide evidence for their theoretical asymptotic running times. You will compute running times of 1. bubble sort ((12)), 2. std::sort ((n log n)), 3. finding the minimum (or maximum) of an "unsorted" list ((1)), 4. searching an "unsorted" list ((n)), and 5. searching a sorted list via bisection ((log)). Your timing should be done using the library, and your data should be generated using the library. You must provide evidence that your running times support the theoretical asymptotic running times in a written report as described below. (1) The program must print data for each algorithm on inputs of at least seven differ- ent sizes. (You choose sizes as large as you can for your computer.) For each n, list T(n) and T(n)/f(n) for an appropriate f(n) which makes T(n)/f(n) approximately a constant between 0.0 and 10.0. For example, Bubble sort T(n) 57ms 230ms n 10000 20000 30000 40000 50000 60000 70000 610ms T(n)/f(n) 3.07787 3.08293 3.08134 3.08321 3.08257 3.08277 3.08252 917ms 1435ms 2050ms 2801ms std::sort (2) Your report should include data from the console output of your program, and (1) the computer you used to run the test (such as, "the Moodle site", or "my laptop"), and (ii) your choice of f(n) for each algorithm (such as, "I used f(n) = 0.1234512 for bubble sort."). You don't have to write a fancy report-a half page with the afore- mentioned information will suffice

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions