Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8521417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:49:07+00:00 2026-06-11T06:49:07+00:00

Let me just explain some definition before going to the problem: Say point A

  • 0

Let me just explain some definition before going to the problem:

Say point A is a coordinates(that could have double value), say (1.2,3.5,4.3,2.6),
same to point B.

A point A dominates point B,
iff
1. all coordinates in point A <= all coordinates in point B, and
2. one coordinate of point A < corresponding coordinates of point B

For example:
Given

A=(2,3,4,5)
B=(2,3,4,6)

A dominates B since condition 1 holds, and for condition 2, the forth component of A < forth component of B.

Given another example,

A=(2,3,4,5)
B=(2,3,4,5)

Neither A dominates B, and vice versa, since condition 2 does not hold in both cases.

Now given a list of coordinate of n dimension, I wish to find the set of coordinates that are not dominated by others,
these coordinates are termed as skyline set.

Say I have coordinates in 5 dimensions

(2,1,2,1,2)
(1,2,1,2,1)
(3,3,3,3,3)
(4,4,4,4,4)

The skyline set is

(2,1,2,1,2)
(1,2,1,2,1)

Now I wish to write a function:

List<double[]> SkylineSet(List<double[]> Coordinates, int dimension)

Given example input:

 List<double[]> newList=new List<double[]>();
 newList.Add(new double[] {2, 1, 2, 1, 2});
 newList.Add(new double[] { 1, 2, 1, 2, 1 });
 newList.Add(new double[] { 3, 3, 3, 3, 3 });
 newList.Add(new double[] { 4, 4, 4, 4, 4 });

SkylineSet(newList,5) will output

(2,1,2,1,2)
(1,2,1,2,1)

This could be achieved by pairwise comparison of each coordinates, but the
number of coordinates can be very large, any one has idea how to solve this efficiently?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:49:09+00:00Added an answer on June 11, 2026 at 6:49 am

    Put the points in a K-D tree (or some such data structure). Now, You can efficiently find points dominated by a given point. Remove those that got dominated, repeat for all remaining points.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, let me just say that I have searched for information on this topic;
Let's just say that I need to render a certain amount of HTML over
I've been having this bothering recurring theme; let's just say, I have a class
Let's say I have a file named output1 How to match just digits form
Here's a problem that is kinda hard to explain. So here's an example. Let's
I have a problem with my project, let me explain a moment here and
I have been doing some reading and a little bit confused, let me explain.
I stumbled onto this problem today, let me explain the issue: I have this
I am trying to build a Quadtree data structure(or let's just say a tree)
I have two matrices of different sizes. Let's just define matrix {a} as a(1:10)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.