University of Waterloo Logo and CEMC Banner

2022 Beaver Computing Challenge
(Grade 9 & 10)

Questions


Part A

Pick Up Sticks

Story

Ana drops six sticks on a table as shown.

A description of the sticks can be found at the end of the Story.

Then she picks all the sticks up according to the following rules:

  1. Pick up one stick at a time.

  2. Only pick up a stick if no other stick is on top of it.

Question

In which order did Ana pick up the sticks?

  1. solid white, dotted grey, dotted black, solid black, solid grey, dotted white
  2. solid black, dotted grey, dotted white, dotted black, solid white, solid grey
  3. dotted grey, solid white, dotted black, solid grey, solid black, dotted white
  4. dotted grey, solid white, solid black, dotted black, dotted white, solid grey

Lost In Space

Story

The mission to explore planet Castor was a success, except for the astronauts losing their personal belongings!

A self-driving robot was sent back to Castor in order to collect all the missing items. The robot can only drive north (\(\uparrow\)), south (\(\downarrow\)), east (\(\rightarrow\)), and west (\(\leftarrow\)). The robot is currently located in the first column on the third row and it has detected the location of seven lost items as shown:

A description of the
diagram follows.

The robot is programmed to identify the item it can get to by driving through the least number of cells. Then it moves to the cell containing that item, and picks the item up. The robot repeats this program until all detected items have been picked up.

Question

Which item does the robot pick up last?

  1. basketball
  2. scissors
  3. calculator
  4. shoe

Octagon Cipher

Story

In an octagon cipher, groups of letters are placed at each vertex of an octagon. An arrow points from the center of the octagon to a letter group, and the arrow can rotate clockwise.

The arrow points to the letter group ABC. Going clockwise from here, around the octagon, the other letter groups are DEF, GHI, JKLY, MNOZ, PQR, STU, and VWX.

This octagon cipher is used to create secret versions of words. For each word, the arrow begins pointing to ABC. Then a pair of digits is generated for each letter in the word as follows:

The pairs of digits are then separated by dashes. For example, the secret version of the word TREE is 62-73-42-02.

Question

What is the secret version of the word WATER?

  1. 72-11-26-32-53
  2. 62-11-62-22-43
  3. 62-11-26-22-53
  4. 72-11-62-32-43

Colourful Tower

Story

Luis has hexagon pieces in three different colours. Whenever Luis arranges three pieces in a way that resembles an upright triangle, the three pieces must either be all the same colour, or all different colours. These rules do not apply to other three-piece arrangements. In particular:

All colours the same
or all colours different

Three identical regular
hexagons placed so they have two vertical sides, two angled top sides, and two angled bottom sides. Two hexagons, placed side-by-side, form a bottom row. A third hexagon is placed on top so that it shares an edge with each of the bottom hexagons.

No colour rules
Two hexagons, placed
side-by-side, form a top row. A third hexagon is placed on the bottom so that it shares an edge with each of the top hexagons.

Luis arranges his hexagon pieces in a way that resembles a tower as shown:

A description of the
tower follows.

Question

Which hexagon piece must be at the very top?

  1. blue hexagon
  2. green hexagon
  3. yellow hexagon
  4. There is more than one possibility

Jumping Game

Story

Verunka has invented a game to play on her sidewalk. Her sidewalk is 13 squares long and there is a coin on the very last square.

The first square is marked START.

Verunka marks each square (except the last) with either an X or an O. Then, she begins playing by jumping on the square labelled START and using the following rules:

Verunka wins if three things happen:

  1. She can always follow the rules (i.e. remain on the sidewalk).

  2. She lands on the square with the coin.

  3. She visits all 13 squares on the sidewalk.

Question

For which marking will Verunka win the game?

  1. X, O, X, O, X, O, X, O, X, O, X, O.
  2. X, O, O, X, O, O, X, O, O, X, O, O.
  3. X, O, O, X, X, O, O, X, X, O, O, X.
  4. X, X, O, O, X, X, O, O, X, X, O, O.

Part B

Neighbours

Story

A beaver wants to visit his friend Mary. He doesn’t know which home is hers, but he has the following map of her neighbourhood, which shows homes numbered from 1 to 8, and paths between some of the homes.

A description of the
paths can be found at the end of the Story.

Two beavers are considered neighbours if there is a path that connects their homes directly.

The beaver knows the following information.

Question

What is Mary’s house number?

  1. 5
  2. 7
  3. 4
  4. 3

Nuts and Bolts

Story

At the Beaver Construction Factory, Lana works on the nuts and bolts assembly line.

Her job description is as follows:

However, things can go wrong for Lana in two different ways:

  1. Lana takes a bolt from the conveyor belt, and there is no nut in the bucket to attach it to.

  2. There are no more bolts on the conveyor belt, and there are still nuts in the bucket.

Question

Which sequence of nuts and bolts, when processed from left-to-right, will not cause things to go wrong for Lana?

  1. 1 nut, 2 bolts, 4 nuts, 3 bolts
  2. 2 nuts, 1 bolt, 2 nuts, 4 bolts, 1 nut
  3. 1 nut, 1 bolt, 2 nuts, 1 bolt, 2 nuts, 3 bolts
  4. 2 nuts, 2 bolts, 1 nut, 1 bolt, 3 nuts, 1 bolt

Rug Weaving

Story

Hale is a Turkish weaving artist. He is creating a square rug that consists of a grid of 25 squares arranged into 5 rows and 5 columns.

The columns are numbered 1 through 5 from left to right. The rows are numbered 1 through 5 from top to bottom.

On each square, Hale will place one of the following four symbols:

Purple symbol, pink
symbol, blue symbol, and yellow symbol.

He decides which symbol to place on each square using the row number and column number of the square and following the instructions in the decision tree given below.

An alternative format for
the decision tree diagram follows.

Question

Which of the following rugs is Hale’s completed rug?

  1. All outer squares (rows 1 and 5 and columns 1 and 5) are purple. For the remaining 3 by 3 grid of squares in the centre: The 3 squares along the diagonal down and to the right are pink, the 3 squares to the left of the diagonal are yellow, and the 3 squares to the right of the diagonal are blue.
  2. All outer squares are purple. For the centre squares: The 3 squares along the diagonal down and to the right are pink, the 3 squares to the left of the diagonal are blue, and those to the right are yellow.
  3. The five squares along the diagonal from top left to bottom right are pink. The remaining outer squares are purple. The three remaining centre squares to the left of the pink diagonal are blue, and those to the right are yellow.
  4. The square in the top right corner is yellow, and the bottom left corner is blue. The remaining outer squares are purple. For the centre squares: The 3 squares along the diagonal down and to the right are pink, the 3 squares to the left of the diagonal are blue, and those to the right are yellow.

Forest Photos

Story

Dai has a camera with a panorama mode, which can take one continuous photo while it moves horizontally. Dai stood in the middle of a circle of eight trees, and took the following photo in panorama mode while rotating 360 degrees.

Eight trees planted in a row. The leftmost three is the tree 1 and the rightmost three is the tree 8.

After a few days, Dai returned to the same location and took a second photo moving in the same direction, but starting from a different tree. She saw that two of the trees had been cut down.

Question

Which of the following is Dai’s second photo?

  1. In a row from left to right: tree 1, tree 5, tree cut down, tree 6, tree 7, tree 8, tree cut down, tree 2.
  2. 4, 5, cut, 7, 8, 6, 2, cut.
  3. Cut, 5, 6, 7, 8, 1, 2, cut.
  4. 7, 8, cut, 2, 3, 5, 6, cut.

Tiger Dolls

Story

At a carnival, five tiger dolls are initially on a shelf in the order shown below. Bo wants to reorder the dolls so that their heights increase from left to right. Bo rearranges the dolls by switching the positions of two dolls at a time.

Five dolls with different heights in a row. The shortest doll is in the third place in the row. The second shortest is in the fifth place. The third shortest is in the first place. The tallest is in the fourth place. The second tallest is in the second place.

Question

What is the fewest number of switches Bo can make in order to place the dolls in the desired order?

  1. 3
  2. 4
  3. 5
  4. 6

Part C

Classroom Seating

Story

There are 31 empty chairs in a classroom. The chairs are placed in a circle and numbered 1 to 31, as shown.

Starting with 1 and moving clockwise around the circle, the chairs are numbered 1 through 31, in order, with chair 31 next to 1.

Students enter the classroom, one at a time, and fill the chairs in the following way:

  1. When a student enters the classroom, they sit on the chair that has the number of the day of the month on which they were born, unless that chair is already occupied.
  2. If that chair is already occupied, then the student starts at that chair and walks around the circle in a clockwise direction, sitting on the first free chair they encounter.

For example, suppose that Geeta and Seeta were both born on April 20, Arun was born on January 21 and Zubin was born on September 22.

Question

Suppose six students enter the classroom and are seated as shown:

Student Birthday Chair Number
Abha May 11 13
Byram February 12 12
Chetan September 14 14
David August 11 11
Eesha April 13 15
Fatima July 12 16

Which of the following statements cannot be true?

  1. Chetan was the first student to enter.
  2. Fatima was the sixth student to enter.
  3. Eesha entered before Abha.
  4. Byram entered before David.

Lists

Story

We can represent a sequence of numbers using a list of boxes. Each number in the sequence is placed in a box and the position of each number in the sequence is indicated above the box. For example, the following list is labelled \(L\) and represents the sequence \(3\), \(5\), \(2\), \(4\), \(1\).

Five boxes in a row. From left to right, the numbers in the boxes are 3, 5, 2, 4, 1, and the numbers above the boxes are 1, 2, 3, 4, 5.

We can use the notation \((L~N)\) to represent the number that is in position \(N\) in list \(L\). For example, \((L~2)\) represents the number in position \(2\) in list \(L\) and so \((L~2) = 5\). Similarly, \((L~5) = 1\).

Note that we can use this notation more than once in an expression. For example, consider the expression \((L~(L~3))\). Since \((L~3) = 2\), substituting this value gives \((L~(L~3)) = (L~2) = 5\).

Consider the following three lists that are labelled \(X\), \(Y\) and \(Z\).

List X is 3, 2, 4, 1, 5.

List Y is 5, 4, 1, 2, 3.

List Z is 2, 5, 4, 3, 1.

Question

What is the number represented by the expression \((X~(Y~(Z~3)))\)?

  1. 2
  2. 3
  3. 4
  4. 5

Maze

Story

A beaver is in a maze that consists of two 6-by-6 floors as shown. The bold lines are walls.

The beaver can move between two adjacent cells within one floor if there is no wall between the cells; this takes one second. The beaver can also magically move to the corresponding cell (same row and same column) of the other floor; this takes five seconds.

For example, if the beaver is in cell A, there are three possible moves:

  1. Move left. This move takes 1 second.

  2. Move down. This move takes 1 second.

  3. Move to the corresponding cell of the other floor. This move takes 5 seconds.

The beaver starts at cell A and wants to reach cell B as soon as possible.

Question

What is the shortest time needed for the beaver to reach cell B?

  1. 17 seconds
  2. 18 seconds
  3. 19 seconds
  4. 20 seconds

Variety Pack

Story

A company sells four different bottled drinks. The bottles are all identical in shape and size, but different drinks have different coloured labels. The red drink is always packaged in a 3 by 5 crate holding 15 bottles, the blue drink in a 3 by 4 crate holding 12 bottles, the green drink in a 2 by 3 crate holding 6 bottles, and the yellow drink in a 1 by 5 crate holding 5 bottles.

A red 3 by 5 rectangle, a blue 3 by 4 rectangle, a green 2 by 3 rectangle, and a yellow 1 by 5 rectangle.

The company wants to sell a "Variety Pack" that includes exactly one crate of each of the four drinks. The Variety Pack is to be packaged in a rectangular container with all four drink crates placed flat on the base of the container. The following diagram shows how a Variety Pack can be made using a rectangular container that is 5 bottles wide and 9 bottles long.

A larger 5 by 9 rectangle contains four smaller rectangles: red 3 by 5, blue 3 by 4, green 2 by 3, and yellow 1 by 5. The smaller rectangles do not overlap and cover most, but not all, of the area of the larger rectangle.

Notice that 7 additional bottles would need to be placed in this container in order to fill the area of the base.

Question

Suppose that a rectangular container is chosen for the Variety Pack so that the four drink crates can be packaged with the least possible amount of empty space on the base of the container. In this case, how many additional bottles would need to be placed in the container in order to fill the area of the base?

  1. 1
  2. 2
  3. 4
  4. 6

Numbers

Story

Birgit is creating numbers using the following diagram:

A description of the
diagram follows.

To create a number they start in the circle labelled START and then they follow arrows until they reach the circle labelled END.

If the arrow they follow is labelled with a digit, they write down that digit as part of their number. One arrow is unlabelled which means Birgit can follow it without writing down any digit.

For example, Birgit can create the number 6235 and the number 67775, among others.

Question

How many different 8-digit numbers can Birgit create?

  1. 5
  2. 9
  3. 12
  4. 14