rebtav
rebtav
14.01.2020 • 
English

You are given two sets of numbers: a = {a1,a2,··· ,an}, b = {b1,b2,··· ,bn}. for every permutation π on {1, 2, · · · , n}, define its score n score(π) = − bπ( . i=1 design an algorithm that outputs the permutation π∗ with the maximum score. proof the correctness of your algorithm.

Solved
Show answers

Ask an AI advisor a question