Member Avatar for begueradj

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

Recommended Answers

All 2 Replies

Could you be more specific?

Member Avatar for begueradj

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.