#logic problem

54 messages · Page 1 of 1 (latest)

solemn sail
#

There are 5 lockers placed next to each other on a wall, in the order: A, B, C, D, E- We know that the key to A also opens E, the key to C also opens B and each key opens at least one of the adjacent lockers. How many keys do we need, at a minimum, to open all the lockers

the book says the answer is 1

tiny peakBOT
#
  1. Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
  2. Wait patiently for a helper to come along.
  3. Once someone helps you, say thank you and close the thread with:
    +close
    
  4. Feel free to nominate the person for helper of the week in #helper-nominations
  5. Do not ping the mods, unless someone is breaking the rules.
  6. If you're happy with the help you got here, and the server overall, you can contribute financially as well:
magic elm
#

So weirdly written

#

"each key opens at least one of the adjacent lockers" you don't know which one?

magic elm
#

Or you have to open D or the book is wrong

solemn sail
#

idk i don’t think it’s wrong

#

like i think

#

if we have the key to c

#

it also openes b

#

the only adjacent of A is b

#

so b’s key openes A too

#

and if B’s key openes A

#

it says the key that openes A also openes E

#

so we can unlock E

#

@magic elm

#

do you think this is correct

magic elm
#

Yup that's right

tropic token
solemn sail
#

it’s like this

tropic token
solemn sail
#

no

#

💀

tropic token
#

The key to A is the one and only key that is designed to open A. It may also open B, but it's not the key to B, that would be a different key.

#

Think about the distinction in a hotel between the key to room 402 and the master key.

solemn sail
#

bro

#

can you tell me

#

how to solve that problem

tropic token
solemn sail
#

number 92

#

(it’s italian)

#

you can translate it

solemn sail
#

this is the translation

tropic token
solemn sail
#

i think it openes the one u wnat

#

want

tropic token
# solemn sail idk

...I know you don't know. You don't know because the problem doesn't tell you. That's what makes the problem poorly written.

solemn sail
#

it says the answer is 1

#

how can we get to 1

solemn sail
#

it says it openes atleast 1 of the adjacent lockers

#

it can mean it openes both

tropic token
solemn sail
#

i’m gonna shower hope you can solve it or i will have to skip the problem

tropic token
#

That's what I mean when I say the problem is poorly stated.

#

I think the answer is actually 3. Take the key to A, which also opens E and B, and then you need the keys to C and D.

tropic token
#

But it's important to note that the question is poorly stated and not specific enough. We had to make assumptions about what it was saying to reach that result, and the reason we got a different answer is presumably because my assumptions were more conservative than the gap between what the question says and what the question meant.