subject

Givennpoints in the plane, theconvex hullis the list of points, in counter-clockwise order, that describe theconvex shape that contains all the other points. imagine a rubber band is stretched around all of the points: the set of points it touches is the convex hull. in this problem we’ll show that the convex hull problem and sorting reduce to each other in linear time.(a) fill in the following algorithm for convex hull; you do not need to prove it correct. what is its runtime? procedureconvexhull(list of pointsp[1..n])setlow: =the point with the minimumy-coordinate, breaking ties by minimumx-coordinate. create a lists[1..n-1]of the remaining points sorted by increasing angle of vector fromlow. initializehull: = [low, s[1]]forp∈s[2..n-1]doreturnhullthis algorithm reduces convex hull to sorting in linear time: given a sorting subroutine, it allows us tosolve the convex hull problem, with the other steps taking linear time.(b) now, find a linear time reduction from sorting to convex hull. in other words, given a list of realnumbers to sort, describe an algorithm that transforms the list of numbers into a list of points, feedsthem into convex hull, and interprets the output to return the sorted list. then, prove that your reductionis correct. for this problem, do not assume you can do arithmetic operations in constant time: take into accounttheir actual runtime.(c)this part has been removed because it assumes a comparison-based sort. we can’t give a lower-boundfor sorting in general without also considering the lengths (log of magnitudes) of the numbers. giventhatwe’veseenanω(nlogn),whatin formationdoespart(b)? explainbriefly.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
Write code using c . (take input from user) calculate the size of a given file in kbs. in this task you will complete the function with the following prototype: float get_file_size(char * filename); the function takes the file name (address to the start of a null terminated character array) as input. the function should then open the file and find the number of bytes it contains till eof. the number of bytes divided by 1024 will give the size in kbs. if the file cannot be opened the function should return -1.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 23.06.2019 18:20
What is wi-fi infrastructure? a metropolitan area network that uses radio signals to transmit and receive data a communications technology aimed at providing high-speed wireless data over metropolitan area networks a means by which portable devices can connect wirelessly to a local area network, using access points that send and receive data via radio waves includes the inner workings of a wi-fi service or utility, including the signal transmitters, towers, or poles and additional equipment required to send out a wi-fi signal
Answers: 2
question
Computers and Technology, 23.06.2019 20:40
Instruction active describing list features which statements accurately describe the features of word that are used to create lists? check all that apply. the tab key can be used to create a sublist. the enter key can be used to add an item to a list. the numbering feature allows for the use of letters in a list. the numbering feature can change the numbers to bullets in a list. the multilevel list feature provides options for different levels in a list.
Answers: 2
You know the right answer?
Givennpoints in the plane, theconvex hullis the list of points, in counter-clockwise order, that des...
Questions
question
Social Studies, 30.07.2019 16:30
question
Mathematics, 30.07.2019 16:30
question
Mathematics, 30.07.2019 16:40
Questions on the website: 13722362