Split by 3, 5, 7, 9

Circuit-free solutions of basic factory-design to achieve optimal item-throughput.
Involving: Belts (balancers, crossings), Inserters, Chests, Furnaces, Assembling Devices ...
Optimized production chains. Compact design.
Please provide blueprints!
Forum rules
Circuit-free solutions of basic factory-design to achieve optimal item-throughput
Z903
Burner Inserter
Burner Inserter
Posts: 16
Joined: Wed Oct 22, 2014 7:18 am
Contact:

Split by 3, 5, 7, 9

Post by Z903 »

Hey everyone,

So a while ago I came up with a way to use splitters to split a stream of resources by odd numbers ( or any number for that matter ).

The basic principle is to find the next biggest power of two and route the undesired fraction back into the input. This creates a recursive splitting. In the case of a divide by 3 every 4th item will loop back to the beginning and be resorted.

These are just some simple examples ( 3, 5, 7, 9 ).
3579.jpg
3579.jpg (488.02 KiB) Viewed 41959 times
They have been kept simple for the example using only basic belts.
3split.png
3split.png (240.48 KiB) Viewed 41922 times
I have also made some designs to take 2 and split them evenly across 3 output belts. The input lines are fully loaded with ore and split evenly.

This originally was inspired by my need to upgrade my smelting array from 4 to 6 furnace lines ( from 64 to 96 elec ).

If anybody has a request for me to post an x in to y out, please do.

Let me know if this is of any use to you,
Have fun!

Edit: added second picture and explanation
Last edited by Z903 on Fri Nov 21, 2014 10:35 am, edited 3 times in total.
Tinyboss
Filter Inserter
Filter Inserter
Posts: 477
Joined: Sun Nov 16, 2014 12:11 pm
Contact:

Re: Split by 3, 5, 7, 9

Post by Tinyboss »

Very nice! :-)
n9103
Smart Inserter
Smart Inserter
Posts: 1067
Joined: Wed Feb 20, 2013 12:09 am
Contact:

Re: Split by 3, 5, 7, 9

Post by n9103 »

This ends up being a neatly split result?
Rather simpler than I would've thought in that case, though it does make sense.
Thanks for the pointer. :)
Colonel Failure wrote:You can lose your Ecologist Badge quite quickly once you get to the point of just being able to murder them willy-nilly without a second care in the world.
Z903
Burner Inserter
Burner Inserter
Posts: 16
Joined: Wed Oct 22, 2014 7:18 am
Contact:

Re: Split by 3, 5, 7, 9

Post by Z903 »

Yes it is a perfect split. If you put 30 iron in the input you will get 10 out each path of the 3 split.

Even if the input is fully loaded but not if the output is blocked.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Split by 3, 5, 7, 9

Post by ssilk »

I hope it is ok, that I included the pics into the wiki, if not just tell:

https://forums.factorio.com/wiki/inde ... _splitters

:)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
The Lone Wolfling
Long Handed Inserter
Long Handed Inserter
Posts: 97
Joined: Tue Oct 28, 2014 3:33 pm
Contact:

Re: Split by 3, 5, 7, 9

Post by The Lone Wolfling »

This is similar to how PRNGs generate random numbers in ranges - they generate a certain number of bits and discard if it is above the maximum number. (Sort of like generating a number between 1 and 7 by rolling an 8-sided die and repeating if/when it comes up 8.)

The one thing I will say with this design is that you have to be careful that your belts backwards don't get clogged or you'll lose the nice splitting value.
skomick
Burner Inserter
Burner Inserter
Posts: 19
Joined: Wed Sep 24, 2014 1:33 am
Contact:

Re: Split by 3, 5, 7, 9

Post by skomick »

Beautiful. I actually bookmarked this topic!
Z903
Burner Inserter
Burner Inserter
Posts: 16
Joined: Wed Oct 22, 2014 7:18 am
Contact:

Re: Split by 3, 5, 7, 9

Post by Z903 »

ssilk wrote:I hope it is ok, that I included the pics into the wiki, if not just tell:

https://forums.factorio.com/wiki/inde ... _splitters

:)
Ya its fine to add them to the wiki

skomick wrote:Beautiful. I actually bookmarked this topic!
Thanks!
Skoobles
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Nov 15, 2017 5:38 pm
Contact:

Re: Split by 3, 5, 7, 9

Post by Skoobles »

What about the dangling splitter on the 5 split? is there some way I should be connecting that up?
quyxkh
Smart Inserter
Smart Inserter
Posts: 1031
Joined: Sun May 08, 2016 9:01 am
Contact:

Re: Split by 3, 5, 7, 9

Post by quyxkh »

You could do that, but already everything going through that splitter is recirculating, I assuage my OCD's dislike of the dead end by thinking of the four plates stuck there as the splitter⇒merger conversion cost.
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2379
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: Split by 3, 5, 7, 9

Post by Jap2.0 »

No, you don't need to hook it up anywhere. By the way, this thread has been dead for almost 3 years.
There are 10 types of people: those who get this joke and those who don't.
golfmiketango
Filter Inserter
Filter Inserter
Posts: 549
Joined: Fri Jan 29, 2016 2:48 am
Contact:

Re: Split by 3, 5, 7, 9

Post by golfmiketango »

Skoobles wrote:What about the dangling splitter on the 5 split? is there some way I should be connecting that up?
No such dangle, that splitter does not exist -- what you are seeing is the top and bottom half of two splitters.
Post Reply

Return to “Mechanical Throughput Magic (circuit-free)”