Exercise: block problem
3 blocks ABC rest on a desk. What are the steps to stack B on C on A?
After completing the exercise, continue:
Computational thinking allows for us to arrive at well defined steps based on the tool that we are using.
If a robotic Arm Were used the steps would be:
- Lift B
- Place B on C
- Lift C
- Place C on A
If we were directing a human, we might arrive at:
- Place B on C
- Place C on A
You may arrive at an entirely different solution:
- Place C on A
- Place B on C
Computational thinking allows for us to find General solutions to problems also. For example, if our problem was
“ N blocks rest on a table. Create a stack using all blocks. “
Using a robotic arm , our solution would be:
- Start with an empty space for a stack area on the table
- Lift an unstacked block from the table and place it on the designated stack area.
- If any other unstacked blocks rest on the table that are not in the stack,
- Lift an unstacked block
- Place the block on the stack
- Repeat Step 3 until there are no more blocks.
Note that:
- This solution can solve multiple problems i.e n could be 0,1,6 etc.
- The task always gets done regardless of the order of how the blocks are stacked.
© 2018 Vedesh Kungebeharry. All rights reserved