Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C please 2.1 Design a brute force algorithm to solve the convex-hull problem and analyze its efficiency. 2.2 Design a recursive divide-and-conquer algorithm of

In C please

2.1 Design a brute force algorithm to solve the convex-hull problem and analyze its efficiency.

2.2 Design a recursive divide-and-conquer algorithm of (n log n) to solve the convex-hull problem, set up a recurrence to analyze the number of executions of the basic operation of the best case, and determine the efficiency class. Use the Master Theorem to verify the efficiency class in your analysis result.

2.3 Implement the two algorithms and test them using data 2.txt, which includes 30,000 points (pairs of x-y coordinates). Your programs are required to display the number of points on the convex hull and their x-y coordinates (sorted by their x coordinates). Your programs are also required to display execution time. Compare the differences in execution time and theoretical analysis.

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

Database Programming Languages 12th International Symposium Dbpl 2009 Lyon France August 2009 Proceedings Lncs 5708

Authors: Philippa Gardner ,Floris Geerts

2009th Edition

3642037925, 978-3642037924

More Books

Students also viewed these Databases questions

Question

2. To what extent do we need to be told how language works?

Answered: 1 week ago