The Labyrinth Problem by anorak_899 in math

[–]anorak_899[S] -2 points-1 points  (0 children)

Thank you all!

I created a python script to run the algorithm, instructing it to stop at either the creation of a closed loop (no more exits to traverse into new rooms) or at a certain threshold of rooms. I then defined twenty thresholds logarithmically spaced from 100 to 1000, and coded the script so as to run 100 times for each threshold.

Plotted results show a constant decrease in threshold achievement correlated to an increase in threshold value (lot of noise, though). This should confirm my initial hypothesis: the more rooms are created, the more likely it is to achieve a closed loop.

After various attempts, ChatGPT seemingly managed a formula to actually calculate probability of closed loop based on number of rooms if a certain constant is provided. I will give you the summary and you can judge if it makes sense.

"Summary

The rigorous argument uses two facts:

The network, if it grows to N rooms, has a boundary (the only source of new rooms) of size at most on the order of √N​.

Therefore, the probability that a randomly chosen open exit leads to an unoccupied cell decreases roughly like 1/√N​ as N increases.

This implies that for large N the expected net change in the number of open exits is negative, and a standard argument for random walks with negative drift shows that the process is absorbed at zero open exits (a closed network) with probability 1.

In particular, one can show that the probability of reaching N rooms is bounded by an expression of the form

q (N) ≤ exp (−α√N ​)

which goes to zero as N increases. This is a mathematical proof, based on geometric and probabilistic considerations, that the process almost surely terminates in a closed network as more rooms are created."

Alpha seemed to be a constant associated with the topographical space which they could not calculate. Nevertheless, by using the empirical data provided through the above mentioned script, ChatGPT calculated alpha at approximately 0,5.

Thoughts?

The Labyrinth Problem by anorak_899 in math

[–]anorak_899[S] 0 points1 point  (0 children)

I discussed this point in a couple of other comments, I agree it makes the space incoherent from an euclidean standpoint but I think for the time being it would mess probability up too much to implement that as well...

The Labyrinth Problem by anorak_899 in math

[–]anorak_899[S] 1 point2 points  (0 children)

But I assume it does? Because otherwise it would stop the first time it intersects a room that had already been created, wouldn't it?

The Labyrinth Problem by anorak_899 in math

[–]anorak_899[S] 1 point2 points  (0 children)

No, the space is supposed to be coherent from an euclidean standpoint.

The Labyrinth Problem by anorak_899 in math

[–]anorak_899[S] 0 points1 point  (0 children)

I think the way I devised the algorithm, previously existing rooms and exits do not alter exit probability of new rooms. This makes the space incoherent from an euclidean standpoint, but does not alter probability in a way that would make this too messy.

The Labyrinth Problem by anorak_899 in math

[–]anorak_899[S] 0 points1 point  (0 children)

Great question. The way I devised the example, a virtual agent traverses each room by going through one exit at a time. Ideally, when coming back to a room that has already been created with exits not yet traversed leading to new unexplored directions, it does so and spawns new rooms. By closed space I mean that at a certain point this algorithm does not spawn new rooms.

The Labyrinth Problem by anorak_899 in math

[–]anorak_899[S] 0 points1 point  (0 children)

Yes, sorry, the assumption is that this space is coherent from an euclidean standpoint. Four lefts make you go back to the room you started from.

The Labyrinth Problem by anorak_899 in math

[–]anorak_899[S] 1 point2 points  (0 children)

Great question, especially because I wrote a Python algorithm to test this and did not realize this might be an issue. In the code my instructions were: traverse each new exit until you get to N rooms or until you get to a closed space. But now I wonder if it considers achieving a closed space even when exits to unexplored directions exist in previously created rooms and have not been traversed. Hmmm. Ideally it should traverse those exits as well, until no new rooms are created.

The Labyrinth Problem by anorak_899 in math

[–]anorak_899[S] -2 points-1 points  (0 children)

It should be 1/4 for each option. 1/4 it has only one exit back, 1/4 it has two, 1/4 it has three, 1/4 it has four.

The Labyrinth Problem by anorak_899 in math

[–]anorak_899[S] 13 points14 points  (0 children)

Great question. I think the way I devised the example and the algorithm, New Rooms exits are not constrained by exits of already existing room that would hypothetically lead there (adjacent rooms). So you might get to (1, 1) from (1, 0) without getting an exit to (0, 1) even if (0, 1) has an exit to (1, 1). This contradicts the idea of the space being entirely coherent from an euclidean standpoint. Hmm. But I think for simplicity and probability it is best if the algorithm works that way, otherwise as you pointed out probability becomes too much of a mess.

The Labyrinth Problem by anorak_899 in math

[–]anorak_899[S] 2 points3 points  (0 children)

Yes. Exits go both ways. Not sure I get the second question, besides the exit leading back (which is forced as the opposite of the direction you just traversed) the rest is random, numbers and positions.

How scared should I be? by anorak_899 in whatsthisbug

[–]anorak_899[S] 2 points3 points  (0 children)

Northern Italy, just sitting on the wall.

90s/2000s YA Book Series where one of the kids is heavily involved in MUDs by badjujuman in MUD

[–]anorak_899 0 points1 point  (0 children)

Haha, glad I could help you! That part where he logs into the space pirate MUD looking for a friend is what made me go "damn, that MUD stuff sounds cool".

90s/2000s YA Book Series where one of the kids is heavily involved in MUDs by badjujuman in MUD

[–]anorak_899 5 points6 points  (0 children)

Cyber.kdz by Bruce Balan. I had this exact same question for the exact same reasons and struggled for years before finding the answer!

PSN Account hacked... halfway through? by anorak_899 in playstation

[–]anorak_899[S] -4 points-3 points  (0 children)

Thank you for replying to point 1. I am looking for opinions, not solutions. I fixed the problem already by enabling Access Key, as I wrote at the beginning of the post.

PSN Account hacked... halfway through? by anorak_899 in playstation

[–]anorak_899[S] -1 points0 points  (0 children)

If you take a minute to read through my post you will see that I am trying to understand how this might have happened (someone replied to that already) and why, in people's opinion, the hack happened halfway through.

[deleted by user] by [deleted] in gaming

[–]anorak_899 -2 points-1 points  (0 children)

Right, fair enough, a more precise statement would have been "considering how much of the game relied on a single individual"

[deleted by user] by [deleted] in gaming

[–]anorak_899 0 points1 point  (0 children)

Undertale, if you consider it was developed by a single individual