How many combinations of this pattern are there?

Associate
Joined
18 Oct 2002
Posts
2,333
Location
London, WC1
Imagine a square 2D grid of nodes of dimension n by n nodes.

Now imagine you can start at any node, and travel in any direction (up, down, left, right, or in any of the diagonal directions). Moving to an adjacent node constitutes '1 length'.

The rules are:
a. You can move diagonally.
b. You cannot backtrack
c. For a particular journey, you cannot travel over the same path, but you can cross it if necessary.
d. You can start and end the journey at any node, providing you have travelled the required journey length set by the game.

The journey length is called 't'.

How many possible different patterns are there as a function of t and n?

I have attached the image to explain.

MjJ7k.png
 
No. It's something I've been thinking about, and I like to think that I can solve this type of thing but I really can't - I haven't been successful. It's not a game or for any sort of work - just a challenge I set myself
 
No. t does not have to equal 4. And l does not have to equal 3 or whatever. They are just variables in the game.

I think it would be something along the lines of:

combinations = f(t,n)_non_edge_start + f(t,n)_edge_start

Where edge_start signifies journeys commencing from the edges, and non_edge_start commences journeys commencing away from the edge.
 
first thing to recognise is that a corner is different to an edge ;)

and non edge starts can potentially visit edge/corner and non-edge/corner nodes multiple times non-consecutively :eek:

Yes, very true. So you can see why this problem is really quite tough to solve. It's not impossible, obviously. Just difficult. There IS a solution.
 
is the grid always square?

Yes, the grid is always square.

Could one of you bright buttons have a stab at how many combinations we're talking about for say: n = 4, t = 4? An educated guess. I want to know if we're talking hundreds or tens of thousands or perhaps more?

I'm going to email my faculty at uni and have the PhDs look at it.
 
Back
Top Bottom