Solve 3D Visit-Once Tree Puzzle with 16x16x16 Grid

  • Thread starter Thread starter intervoxel
  • Start date Start date
  • Tags Tags
    3d Tree
Click For Summary

Discussion Overview

The discussion revolves around solving a 3D visit-once tree puzzle within a 16x16x16 grid. Participants are exploring methods to ensure that all cells are visited exactly once, addressing both theoretical and practical aspects of the problem.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant is attempting to develop a software function that visits all cells in a 3D grid but reports missing cells in their current implementation.
  • Another participant expresses a desire for simplification, asking for clarification on specific functions and requesting code formatting and comments for better understanding.
  • A participant shares a simplified demo aimed at generating an expanding tree structure but notes that their current solution leaves gaps in the grid.
  • There is a request for references to existing solutions for this type of problem, indicating that it may have been addressed previously.
  • One participant mentions the concept of a space-filling tree and questions whether a tree structure is necessary or if a polygonal path could suffice.
  • A later reply emphasizes the need for an expanding tree structure without any returns allowed.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus, as there are multiple competing views regarding the structure needed for the solution and the approach to take. The discussion remains unresolved with various suggestions and requests for clarification.

Contextual Notes

There are limitations in the current understanding of the problem, including missing assumptions about the grid traversal method and unresolved details regarding the implementation of the proposed solutions.

Who May Find This Useful

This discussion may be useful for software developers, computer scientists, and mathematicians interested in algorithm design, particularly in the context of grid traversal and tree structures.

intervoxel
Messages
192
Reaction score
1
I'm trying to build a software function that explores a 3d grid visiting the cells just once. The file below is my last attempt, which misses some cells (for 16x16x16 it visits 3436 cells instead of 4095). Can anyone give me a reference to a solution, please.
 

Attachments

Physics news on Phys.org
I don't want to spend a whole lot of time on this, so you have to make things easy for me.
So how is boolean function isAllowed() used?
What is object principal?
Could you put your listing in single space so I can see more of it at a time?
Could you add some comments so that I don't have to figure it out from scratch?
 
I appreciate your interest in my problem, Scott. I prepared a simplified running demo, avoiding my program notation. The main goal is to generate a always expanding tree, filling completelly the space, as shown schematically in the figure. The present solution leaves gaps, which I could not solve. Thank you for any help.
 

Attachments

  • tree.png
    tree.png
    64.5 KB · Views: 462
  • tree.pdf
    tree.pdf
    176.8 KB · Views: 267
Does anyone know a reference to this subject? This seems like a problem solved a long time ago. Thanks for any help.
 
Hi, Scott. Have you seen the code I posted? Any insights?
 
Hi, DrGeg, I need an always expanding tree (no returns allowed).
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
7
Views
2K
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
12K