Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEA
Hi Maveryx,
A solution to last week’s challenge can be found here.
This week, we are diving deep into the realms of Math and Spatial tools by tackling the creation of Sierpinski’s triangle fractal. This challenge, designed by Roland van Leeuwen @RWvanLeeuwen, is an Expert-level task. If you are preparing for certification and plan to attempt an exam during Inspire, it is an excellent opportunity to hone your skills. Thank you, Roland, for crafting this challenge!
What is a Sierpinski triangle?
A Sierpinski triangle is a fractal shape composed of smaller triangles, each a scaled-down replica of the whole. It is created by repeatedly dividing an equilateral triangle into smaller triangles and removing the middle triangle at each iteration. This process results in a geometric pattern that exhibits self-similarity at different scales, forming a visually striking and intricate triangle-based fractal.
(This definition is sourced from https://en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle.)
The provided input consists of the of latitude, longitude, and corners a, b, and c. (The corners are used to determine each point of the triangle.) Your output triangle will look like this:
For this challenge, we are providing additional guidance to simplify the tasks and help you build your Sierpinski’s triangle.
To construct a fractal triangle, follow these steps:
By repeating these steps, a fractal should appear in the shape of Sierpinski's triangle!
If you need a refresher on how to build an iterative macro or create spatial objects, review these lessons in Academy to gear up:
Good luck!
This definitely seems like a @patrick_digan math problem
Oof, this was a doozy. More in spoiler
That was fascinating. Having a hard time with why the algorithm works from any point but it sure does.
Needed a lot more than 100 iterations to get something filled out. Wonder if that meant 100, from each existing point each time.
I just kicked it up to 10k and the pattern emerges.
I like math, I like this challenge.
When it comes to a challenge associated with Iteration Macro, it's very quiet here. It implies that Iterative operation in Alteryx would be one of the hurdle for the most users.
Math is really magical.
Great challenge! I posted a similar challenge before on Databasyx.com so I've gone a bit rogue and have a couple of other ways to create the Sierpinski triangle in Alteryx!
One way is similar to this challenge with using midpoints but cutting out shapes instead using spatial process. The other is to colour in every even number in a Pascal's Triangle!
Edit: Pictures in below post. Failed to upload and couldn't edit them in!
Apologies for double post but pictures failed to upload in my previous post and can't edit them in still!