473,386 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Algorithm to identify point connection

1
The dataset contains geodesic points, even spaced, which show elevations for each point. The goal identify the number of islands in the dataset. Say for a dataset which represents a map of the united kingdom there would be 2 (major islands) + a number of smaller island as the result.

What is a good way to algorithmically acheive this?
Oct 14 '16 #1
1 3002
Oralloy
988 Expert 512MB
mercus,

You will have to use an adaptive algorithm that finds disjoint sets. The algorithm is recursive...

Algorithmically, I would try the following:
Expand|Select|Wrap|Line Numbers
  1. Create three sets - non-sampled points, water, and islands. 
  2. non-sampled points and water are sets of raw data.
  3. islands is a set of sets, each entry will be an island. 
  4.  
  5. Find-Water
  6. For each point in non-sampled, if elevation is zero, move to water set. 
  7.  
  8. Find-Island: 
  9. Select a point from non-sampled points, this will be part of a unique island.  
  10. Remove this point from non-sampled points 
  11. Add this point to temporary-set of island-points 
  12. For each adjacent location, do Extend-Island(point, island-points)
  13.  
  14. Extend-Island(point, island-points): 
  15. If point is in non-sampled points Then
  16.   Remove point from non-sampled points
  17.   Add point to island-points
  18.   For Each adjacent location, do Extend-Island(point, island-points)
  19. Endif
  20.  
Cheers,
Oralloy
Oct 15 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Stephanie | last post by:
I have a problem that I am trying to solve. We have a huge product with a whole lot of ASP and VB code. VB code is all ActiveX dlls which are used by ASP app. When I attempt to add features or fix...
4
by: kevin.hall | last post by:
I've got a problem where I have to identify differences in network. The network may have different types of nodes and may only have a string of ring-like topology: Code: A--B--C--D--E or
5
by: Fred Zuckerman | last post by:
Hello All, After reading in this group about the preference for connecting to a SQL Server using a connection string instead of a DSN file, I have done just that. BUT, I cannot update my data....
10
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
4
by: Josh Carlisle | last post by:
I've been tasked with developing a document/file versioning system of sorts. Similar to a very scaled down source control system. We're integrating it very closely with an existing application so...
4
by: csgraham74 | last post by:
Hi guys, Im attempting to connect my asp.net solution to an ms access backend database. Everything is working fine locally but when i upload i get the error "exception has been thrown by the...
3
by: frothpoker | last post by:
Guys, I'm sure this has been asked a million times but I can't seem to formulate a google search that returns what i'm looking for. I've go a dev and live environment. Currently the DB...
1
by: Ghada Al-Mashaqbeh via DotNetMonster.com | last post by:
Hi all, I want to implement Lee Maze routing algorithm in C#, I have many problems especially in gaining usefull resources about the algorithm work, please if can any body help me to find...
2
by: Shum | last post by:
Hi! I need help ragarding the k-mean clustering algo. Any one have a source code in c#.. or a dll file that could be used in the project.... I cannot seem to identify the objects that could be...
3
Airslash
by: Airslash | last post by:
Hello, I've written my own TCPClient and TCPServer class components to handle traffic over the network between applications. When I test the components locally they work. In the local network...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.