Assignment - Software Subsystem
Assignment - Software Subsystem
Recruitment Assignment
____________________________________________________________________________
Instructions:
a) Person 1 (P1) and Person 2 (P2) have each been given a paper with two consecutive
letters written on it. Based on the dialogue below, deduce the possible combinations of
pairs of letters assigned to them and explain your reasoning.
P1: “We have consecutive letters on our papers.”
P2: “Yeah, I know.”
P1: “I don't know what your letter is.”
P2: “Neither do I know your letter.”
P1: “Now I know. “
(8)
b) There are 1729 color_1, 5186 color_2, and 8643 color_3 chips on a table. In each step,
you choose two chips of different colours and replace them with a chip of the third colour.
What are the possible colours of the last chip that remains at the end? Explain your
answer.
(4)
c) There are 2 players and they have a m x n array of bricks. The players alternate turns
and in each move you select a brick and remove all the bricks to the south and west of it.
The player that removes the last brick loses. For the case when m=n (square), find either
a winning strategy for the player who moves first or for the the one who moves second.
As a bonus prove that when m != n, the first player always has a winning strategy.
(6+4)
d) Like the previous subpart, we have two players that play alternately. They have two piles
of rocks, one with m and the other with n rocks. In a turn the player who is playing
removes any number of rocks (greater than or equal to 1) from a single pile (without
touching the other one). The player who removes the last rock wins. Mention and prove
the conditions on m and n for the first player to have a winning strategy. What about for
the second player to have a winning strategy. What are these winning strategies?
(7)
e) Given a square floor of side length 23 and square tiles of side lengths 1, 2 and 3. What
is the minimum number of 1 × 1 tiles needed for tiling the floor completely? Give proper
reasoning or show by an example.
(6)
Note: You are expected to research these and answer them in your own words without copying
the content you get online.
Image 1 Image 2