954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Transform a matrix to a tree

Hello people

I have a 2 dimension array that contains only 0 and 1 values. I want to represent all the 0 elements in a tree: how can I do that ?

Thank you for any help

begueradj
Junior Poster in Training
70 posts since Mar 2007
Reputation Points: 9
Solved Threads: 0
 

Could you be more specific?

mikrosfoititis
Junior Poster in Training
74 posts since Nov 2011
Reputation Points: 18
Solved Threads: 11
 
Could you be more specific?


I have a random matrix that contains only 0 and 1 values, like this one:

111111111111
100010100101
100101011101
100000000101
100001010101
111000001011
111111111111

I want to know what is the algorithm to use in order to represent all the 0 elements that have connexion between them starting from a predefined start cell and ending by a predefined end cell in the form of a tree

begueradj
Junior Poster in Training
70 posts since Mar 2007
Reputation Points: 9
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: