130k views
5 votes
Tools

[TASK] 5

Which Direction?
Using geospatial logic and considering two processes that run in parallel

IQ tests and similar attempts to define and measure human intelligence, differentiate between different types of logic. So far we’ve looked at verbal logic and mathematical logic. This next puzzle involves using geospatial logic, as well as considering two processes that run in parallel. In coding, keeping track of multiple different components doing different things becomes very important when working with more complex problems. Try the next, visual, puzzle, and see if you can work out how to provide clear logical instructions to your robot team in order to achieve specific goals.




In a warehouse, there are 2 robots that work together. They move in the same direction concurrently, so if one moves North, they both North. The robots will follow any instructions they’re given and will collect any objects they find along the way. They only take instructions by the points of the compass and can only move in 4 directions (N, E, S, W).

For example, if the 2 robots are given the directions: “N, E, S”, then Robot A will collect a ball and Robot B will collect a hat.


Write the directions the robots would need to follow to collect the following objects, remembering that both robots get the same directions, and assuming that for each question they start off in the same (pictured above) positions:

User Jondow
by
5.8k points

1 Answer

1 vote

Here are the directions the robots would need to follow to collect the objects in the warehouse:

"N, N, E, E" - This will cause the robots to move north twice and then east twice, allowing them to collect the ball and the box.

"E, S, E, S" - This will cause the robots to move east and then south, then east and south again, allowing them to collect the hat and the crate.

"W, W, S, S" - This will cause the robots to move west twice and then south twice, allowing them to collect the bike and the bag.

"N, E, S, W" - This will cause the robots to move north, then east, then south, and finally west, allowing them to collect the box and the crate.

"E, N, W, S" - This will cause the robots to move east, then north, then west, and finally south, allowing them to collect the hat and the bag.

I hope this helps!

User Cvogt
by
6.9k points