I have a large table of N elements with M (M> = 3) different properties for an element. From this table I must delete all elements for which the same table contains an element that has the same or better values ββfor all properties.
I have an algorithm (python) that solves it, but it is sensitive to conclusions and has a worse example of approx. O ((nΒ² + n) / 2) when items are not deleted in the process. This is too slow for my project (where datasets of 100,000 elements with 8 properties per element are not uncommon), so I need something close to O (m * n log n) in the worst case, but I don't know, maybe whether this problem is resolved quickly.
An example of a problem case and its solution:
[higher value = better] Singing dancing acting A 10 20 10 B 10 20 30 C 30 20 10 D 30 10 30 E 10 30 20 F 30 10 20 G 20 30 10
Reject all candidates for whom there is a candidate who performs equal or better in all disciplines.
Solution:- A is rejected because B, C, E, G perform equal or better in all disciplines.- F deviates because D performs equal or better in all disciplines.
Is there an algorithm that effectively solves this problem and what is it?
, node , node. , , , , , node, , . ( , , , node). , - , . . , N ^ 2 N ^ (2-f), f .
, . quicksort-like median , , n log n. (KD-)
, , , N .
, http://flame.cs.dal.ca/~acosgaya/Research/skyline/on%20finding%20the%20maxima%20of%20a%20set%20of%20a%20vectors.pdf .
, A <= B, A , B, A >= B, A , B. , ! (A <= B || A >= B), A B "". , , , . A s.t. B , A < .
, .. . . , A! ~ B () B! ~ C. , A C ? ! , A {1,2,3}, B {2,1,5} C {2,3,4}. , "", ; , , , O (N ^ 2), .
Source: https://habr.com/ru/post/1727621/More articles:Visual Studio VB Virtualization Settings - editorjavascript XSL Π² Google Chrome - javascriptGiven a column name, how can I find which tables in the database contain this column? - sqlgoogle gears discontinued, html 5 in draft - html5.NET MVC: how to implement a different page appearance for each user? - cssJavaScript's Date.getHours () looks broken for me - javascriptHow to display the site name on the sharepoint home page - sharepointCodeigniter: transferring form data from a view to a controller - codeigniter.NET Serialize XmlNode Problem - c #how to change default shell for solar grid mechanism - sungridengineAll Articles