0

Hello!

I am trying to implement search algorithms in a 2D grid.
The problem I am facing is that let's say that I make a 2D grid in c++ through some array and also block some cells. Now how will I convert this grid into a binary tree to run search algorithm on it?
Any formula is applicable?

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by L7Sqr
0

Why convert to binary tree? Is it even possible to convert from NxM grid to binary tree and keep the semantics of your 'grid'?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.