A
A
asifilatova2018-04-27 14:28:37
C++ / C#
asifilatova, 2018-04-27 14:28:37

How to solve the NP-complete problem of sorting items by votes?

Help solve the problem using an approximate algorithm.
Task: there is a set of n items, and there are m votes, for example 1 3 1, which means that item 1 is better than item 3, you need to find such an order of items that would take into account at most half the votes from the maximum possible.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question