Given a L by L square grid, consider 4 neighbours connections. Given L^2 beads of different colors. Put all the beads onto the grid and the penalty for putting any two beads of the same colour as neighbour is one. Total penalty is the sum of all penalties. Your task is to find a way to put the beads onto the square grid with least penalty. Perform this tasks with 1. L=5 with 12 red beads (R) and 13 blue beads (B) 2. L=64 with 139 red beads (R), 1451 blue beads (B), 977 green beads (G), 1072 white beads (W), 457 yellow beads (Y)
Unitary Method
The word “unitary” comes from the word “unit”, which means a single and complete entity. In this method, we find the value of a unit product from the given number of products, and then we solve for the other number of products.
Speed, Time, and Distance
Imagine you and 3 of your friends are planning to go to the playground at 6 in the evening. Your house is one mile away from the playground and one of your friends named Jim must start at 5 pm to reach the playground by walk. The other two friends are 3 miles away.
Profit and Loss
The amount earned or lost on the sale of one or more items is referred to as the profit or loss on that item.
Units and Measurements
Measurements and comparisons are the foundation of science and engineering. We, therefore, need rules that tell us how things are measured and compared. For these measurements and comparisons, we perform certain experiments, and we will need the experiments to set up the devices.
Given a L by L square grid, consider 4 neighbours connections. Given L^2 beads of different colors. Put all the beads onto the grid and the penalty for putting any two beads of the same colour as neighbour is one. Total penalty is the sum of all penalties. Your task is to find a way to put the beads onto the square grid with least penalty. Perform this tasks with
1. L=5 with 12 red beads (R) and 13 blue beads (B)
2. L=64 with 139 red beads (R), 1451 blue beads (B), 977 green beads (G), 1072 white beads (W), 457 yellow beads (Y)
Step by step
Solved in 2 steps