D
D
dollar2019-08-16 20:54:04
Algorithms
dollar, 2019-08-16 20:54:04

How can you choose the main numbers?

There is an array of numbers of random length. The larger the number, the more important it is. How to choose a few of the most important?
For example, an employee (or job seeker) has a set of skills that are already measured in terms of their percentage. Highlight key skills.
Taking the first N is not entirely appropriate. Here are some examples:

  • physics 50%, chemistry 49%, biology 48%, English 10% -----> the main ones will be physics, chemistry, biology.
  • physics 50%, chemistry 9%, biology 8%, English 7% -----> only physics will be the main one.
  • physics 50%, chemistry 49%, biology 49%, English 48% -----> physics and chemistry will be the main ones.
  • physics 50%, chemistry 30%, biology 1%, English 1% -----> physics and chemistry will be the main ones.
  • physics 50%, chemistry 30%, biology 30%, English 30% -----> the main thing will be only physics.

It is difficult to say what the principle is here.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2019-08-16
@dollar

Find the average and take skills that are above average = (sum of percentages indicated) / number?
Since the order also matters, with equal percentages, it is more important to consider the earlier skill.
With the number in the sample, it’s already up to you to decide manually: how many skills to take from 10 to 100% each.
It's not clear why chemistry and biology should be broken. But if you add the coefficient for the position before calculating [+3, +2, +1, +0], everything turns out:

physics 50%, chemistry 30%, biology 30%, English 30% -----> the main thing will be only physics.
(50+30+30+30)/4 = 35; above 35 only physics. OK

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question