DSME Group Sdn. Bhd.


Tutorial Spiral Waste Bin

Step by Step:

Step 1:
Set Up the Bin:
We create a grid (like a sheet) to represent the waste bin. It's initially empty.

Step 2:
Plan Directions:
We decide how to move in the bin: right, down, left, up. We'll follow this sequence to fill the bin in a spiral pattern.

Step 3:
Start at the Center:
We begin filling waste from the center of the bin.

Step 4:
Fill the Bin:
For each cell in the bin, we put waste and move according to our plan. If we hit a wall or a filled cell, we change direction and keep moving.

Step 5:
After filling all cells, we have a waste bin with waste disposed in a spiral pattern.