![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 17.08.2020 20:01 KitKat22Rose9
Let A and B be two sets of n positive integers. You get to reorder each set however you like. After reording, let ai be the i-th element of A and bi be the i-th element of B. The goal is to maximize the function n Π (i=1) ai^bi . You will develop a greedy algorithm for this task.
Required:
a. Describe a greedy idea on how to solve this problem, and shortly argue why you think it is correct (not a formal proof).
b. Describe your greedy algorithm in pseudocode. What is its runtime?
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 23:30
You picked the corridor which led you here. if the guards find you, they're going to be really angry! what is the synonym of angry
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 16:30
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 10:00
Whats three fourths of 15(this is supposed to be in math but i clicked too fast)
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 14:30
The option enables you to modify a slide element in most presentation applications.
Answers: 2
You know the right answer?
Let A and B be two sets of n positive integers. You get to reorder each set however you like. After...
Questions
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 26.07.2019 17:10
![question](/tpl/images/cats/mat.png)
Mathematics, 26.07.2019 17:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 26.07.2019 17:10
![question](/tpl/images/cats/istoriya.png)
History, 26.07.2019 17:10
![question](/tpl/images/cats/biologiya.png)
Biology, 26.07.2019 17:10
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/istoriya.png)
History, 26.07.2019 17:10
![question](/tpl/images/cats/mat.png)
Mathematics, 26.07.2019 17:10
![question](/tpl/images/cats/en.png)
English, 26.07.2019 17:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 26.07.2019 17:10
![question](/tpl/images/cats/biologiya.png)