subject

Suppose you are given two coordinates in n-dimensional space, p = (p1, p2, pn), and q = (q1, q2, qn). the golden distance d between p, and q is defined as d(p, q) = pn i=1(pi −qi) 4 . let pσ be formed by permuting the elements of p, and let qπ be formed by permuting the elements of q. for example, if p = (1, 2, 3) and q = (1, 3, 5), then one possible way to form the permutations could be pσ = (2, 1, 3) and qπ = (5, 3, 1). the golden distance, d(pσ , qπ ), of these two points would be (2 − 5)4 + (1 − 3)4 + (3 − 1)4 = 113. (a) design a greedy algorithm that chooses the permutations for pσ and qπ that maximizes their golden distance, d(pσ , qπ ). analyze the time complexity of your algorithm. (b) prove the correctness of your algorithm. (hint: you may use the following fact without proof (d − a) 4 + (c − b) 4 ≥ (b − a) 4 + (d − c) 4 for any numbers a, b, c, d such that a ≤ c

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:50
Using the artofstat website, run a permutation test to see if there is a difference in the mean amount of time spent on emails per day between in state and out of state students. (make sure to generate 10,000 permutations.) in state students: 2 3 3 6 2 1 1 5 3 2.5 out of state students: 1 2 2 1 2 1 4 3 9 1 10 1 3 what is the p-value?
Answers: 3
question
Computers and Technology, 22.06.2019 11:00
Which action is good business etiquette? a. switching your cell phone off before you enter a meeting b. keeping your cell phone on low volume before you enter a meeting c. setting a pleasant ring tone on your cell phone before you enter a meeting d. setting a standard ringtone on your cell phone before you enter a meeting
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
question
Computers and Technology, 24.06.2019 08:50
Write a program that will compute the volume of ice cream served in a cone. as you can see in the diagram below, the ice cream is served as a hemisphere of frozen deliciousness on top of a cone, which is also packed with frozen deliciousness. thus, the total volume of ice cream sold is the volume of the hemisphere plus the volume of the cone. the example shows an ice cream cone in which the hemisphere and cone have a radius of 10 inches and the cone has a height of 15 inches. your program must instead prompt for these two values, which are taken from the keyboard as integers: • the hemisphere/cone radius in inches, and
Answers: 3
You know the right answer?
Suppose you are given two coordinates in n-dimensional space, p = (p1, p2, pn), and q = (q1, q2, q...
Questions
question
World Languages, 20.12.2019 21:31
question
Mathematics, 20.12.2019 21:31
Questions on the website: 13722361