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, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a.add symmetry b.create a unified publication c.provide consistency d.save money
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. obfuscate: to make something so confusing that it is difficult to understand.
Answers: 2
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
Mathematics, 06.05.2020 08:22
question
Mathematics, 06.05.2020 08:22
question
Mathematics, 06.05.2020 08:22
question
Social Studies, 06.05.2020 08:22
question
Mathematics, 06.05.2020 08:22
question
Mathematics, 06.05.2020 08:22
Questions on the website: 13722361