maze Questions
9
Solved
I am trying to implement a randomly generated maze using Prim's algorithm.
I want my maze to look like this:
however the mazes that I am generating from my program look like this:
I'm current...
Variation asked 20/4, 2015 at 5:13
2
Solved
I searched and even visited a maze-algorithm-collecting website, but nothing satisfies the following statements I require.
To make it clear, I need an infinite maze generating algorithm that follow...
2
I want to solve a maze in R. I created a function inspired by corresponding Python code: Solving mazes using Python: Simple recursivity and A* search.
I have a maze (i.e. a matrix), where: 0 = empt...
4
Solved
I know we can use DFS for maze exploration. But I think we can also use BFS for maze exploration. I'm little bit confused here because most of the books and articles that I've read had used DFS for...
Caughey asked 25/11, 2013 at 11:55
6
Solved
Consider a MxN bitmap where the cells are 0 or 1. '1' means filled and '0' means empty.
Find the number of 'holes' in the bitmap, where a hole is a contiguous region of empty cells.
For example, ...
Upbuild asked 26/10, 2010 at 16:56
2
I am trying to find (using Python) all possible solutions to a maze. I have a DFS script that returns one solution. I am trying to adapt it but I'm really having a hard time wrapping my head around...
Arbuckle asked 29/12, 2020 at 17:3
1
Solved
I am trying to develop an algorithm that converts simple mono line images ie Maze, to a text 2d array.
For example, the image below, it would be converted to the following text array.
[|----------...
Pearse asked 30/7, 2020 at 18:50
2
Solved
I have to find shortest path from the center of the maze to the outermost circle. I have to solve this problem using opencv and python
10
Solved
What is the best way to represent and solve a maze given an image?
Given an JPEG image (as seen above), what's the best way to read it in, parse it into some data structure and solve the maze? M...
Rosalie asked 21/10, 2012 at 6:3
3
Solved
I am working or understanding how to create a simple java 2d maze that should look like this:
int [][] maze =
{ {1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,0,1,0,1,0,1,0,0,0,0,0,1},
{1,0,1,0,0,0,1,0,1,1,1,...
Charente asked 16/2, 2014 at 20:3
9
Solved
Say you want a simple maze on an N by M grid, with one path through, and a good number of dead ends, but that looks "right" (i.e. like someone made it by hand without too many little tiny dea...
4
Solved
I am trying to convert a maze data structure into a graph. The maze is like a grid and some walls between cells.
maze[8][8][4] is how the maze is represented.
If maze[i][j][0] = 1 it means you can...
1
Solved
I recently made a project to solve a given maze using different pathfinding algorithms. I did this by importing a black and white maze image, and making each junction a node. I tried solving this u...
Lilian asked 14/4, 2020 at 23:30
3
Solved
I want some way (In Python 3) to read pixels of a maze image and the expected output should be a binary list [[1, 1, 0], [1, 1, 1], [1, 0, 0]] (1 for white and 0 for black for example) (should look...
Colquitt asked 22/8, 2019 at 13:24
10
I came across this quite interesting problem, where we have a 4x4 maze and a robot in it trying to get to the goal. The thing is, you have to find a sequence of predefined commands that will always...
Nitpicking asked 13/11, 2014 at 13:48
1
I am using Prim's Algorithm to create a maze. I have successfully done so, but I am now trying to make it 'harder' by changing the way that it selects potential cells to be added to the maze. In my...
Anemoscope asked 21/12, 2018 at 16:21
1
Solved
[Updated my questions at the end]
I am creating a 2d multiplayer RTS game which happens inside a maze. I have used Growing Tree algorithm to randomly generate the maze. I thought that the maze woul...
Biased asked 10/9, 2018 at 15:40
1
I want to solve a maze automatically when I run the program.
My maze is like this at the beginning.
1 0 0 0
0 0 1 0
0 1 1 0
0 1 1 0
At the end it should look like this :
0 1 1 1
1 1 0 1
1 0 0...
3
Solved
Are there algorithms to produce 3 dimensional mazes? Essentially the same as a 2D maze but the Z depth axis can be traversed? The idea is still the same though, to get from Start to End. Coul...
2
I'm trying to create a program that will traverse a randomly generated maze where 1's are open and 0's are walls. starting in the top left and ending in the bottom right. The path can go up, down, ...
Grenoble asked 11/5, 2016 at 1:55
2
Given a source and a destination cell in a maze, I would like to find all possible solutions to a maze using DFS. 0 represents a wall in my maze.
Visualise the maze
I've successfully writte...
Laden asked 18/10, 2017 at 19:0
2
Solved
I seem to have a problem with my maze generating program made in Python. I'm trying to randomly create a path that branches out at select points, with the points getting stored as it goes alo...
5
I've been assigned with the task of creating a maze solver in Java. Here's the assignment:
Write an application that finds a path through a maze.
The maze should be read from a file. A sample maz...
2
I am trying to figure out if this algorithm is A* (A-Star) Algorithm or whatever but still I am confused.
Stack<Cell> stack = new Stack<>();
stack.push(maze.start());
stack.peek().mar...
1
In an interview, my interviewer asked me this question:
Develop a function to generate a random maze
This is a quite difficult question to solve in 30min if you don't have solved this question...
Collaborate asked 13/4, 2016 at 7:57
1 Next >
© 2022 - 2024 — McMap. All rights reserved.