As a wildfire rages through the grasslands, three lions and three wildebeest flee for their lives. To escape the inferno, they must cross over to the left bank of a crocodile-infested river. Fortunately, there happens to be a raft nearby. It can carry up to two animals at a time, and needs as least one lion or wildebeest on board to row it across the river. There's just one problem. If the lions ever outnumber the wildebeest on either side of the river, even for a moment, their instincts will kick in, and the results won't be pretty. That includes the animals in the boat when it's on a given side of the river. What's the fastest way for all six animals to get across without the lions stopping for dinner? Pause here if you want to figure it out for yourself. Answer in: 3 Answer in: 2 Answer in: 1 If you feel stuck on a problem like this, try listing all the decisions you can make at each point, and the consequences each choice leads to. For instance, there are five options for who goes across first: one wildebeest, one lion, two wildebeest, two lions, or one of each. If one animal goes alone, it'll just have to come straight back. And if two wildebeest cross first, the remaining one will immediately get eaten. So those options are all out. Sending two lions, or one of each animal, can actually both lead to solutions in the same number of moves. For the sake of time, we'll focus on the second one. One of each animal crosses. Now, if the wildebeest stays and the lion returns, there will be three lions on the right bank. Bad news for the two remaining wildebeest. So we need to have the lion stay on the left bank and the wildebeest go back to the right. Now we have the same five options, but with one lion already on the left bank. If two wildebeest go, the one that stays will get eaten, and if one of each animal goes, the wildebeest on the raft will be outnumbered as soon as it reaches the other side. So that's a dead end, which means that at the third crossing, only the two lions can go. One gets dropped off, leaving two lions on the left bank. The third lion takes the raft back to the right bank where the wildebeest are waiting. What now? Well, since we've got two lions waiting on the left bank, the only option is for two wildebeest to cross. Next, there's no sense in two wildebeest going back, since that just reverses the last step. And if two lions go back, they'll outnumber the wildebeest on the right bank. So one lion and one wildebeest take the raft back leaving us with one of each animal on the left bank and two of each on the right. Again, there's no point in sending the lion-wildebeest pair back, so the next trip should be either a pair of lions or a pair of wildebeest. If the lions go, they'd eat the wildebeest on the left, so they stay, and the two wildebeest cross instead. Now we're quite close because the wildebeest are all where they need to be with safety in numbers. All that's left is for that one lion to raft back and bring his fellow lions over one by one. That makes eleven trips total, the smallest number needed to get everyone across safely. The solution that involves sending both lions on the first step works similarly, and also takes eleven crossings. The six animals escape unharmed from the fire just in time and begin their new lives across the river. Of course, now that the danger's passed, it remains to be seen how long their unlikely alliance will last.
ไฟป่าได้แผดเผาและโหมกระหน่ำ ทุ่งหญ้าสะวันนา สิงโตสามตัวและวิลเดอบีสต์สามตัว วิ่งหนีกันอย่างสุดชีวิต เพื่อหลบหนีจากเพลิงโลกันตร์ พวกมันต้องข้ามแม่น้ำ ที่เต็มไปด้วยจระเข้ดุร้ายให้ได้ โชคยังดีที่มีแพไม้อยู่ริมตลิ่ง แพรับน้ำหนักสัตว์ได้มากสุดสองตัว และต้องการสัตว์อย่างน้อยหนึ่งตัว เพื่อพายแพข้ามแม่น้ำ แต่ติดปัญหาอยู่อย่างหนึ่ง ถ้าสิงโตที่อยู่บนฝั่ง มีจำนวนมากกว่าวิลเดอบีสต์ แม้เพียงชั่วขณะ สัญชาติญาณนักล่าของมันก็จะถูกปลุกขึ้น และสภาพตรงนั้นก็คงจะดูไม่จืด เงื่อนไขนี้รวมขณะที่ แพกำลังเทียบตลิ่งด้วย สัตว์ทั้งหกตัวนี้จะข้ามแม่น้ำ ให้เร็วที่สุดได้อย่างไร โดยที่วิลเดอบีสต์ไม่ตกเป็นอาหาร หยุดวิดีโอตรงนี้ ถ้าต้องการเวลาคิด เฉลยใน: 3 เฉลยใน: 2 เฉลยใน: 1 ถ้าเจอคำถามแบบนี้แล้วคิดไม่ออก ให้ลองไล่ทางเลือกที่เป็นไปได้ทั้งหมด ในแต่ละขั้น และลองคำนึงถึงผลลัพธ์ ที่จะเกิดขึ้น ตัวอย่างเช่น มีทางเลือกที่เป็นไปได้ห้าทาง สำหรับการข้ามครั้งแรก วิลเดอร์บีสต์หนึ่งตัว สิงโตหนึ่งตัว วิลเดอบีสต์สองตัว สิงโตสองตัว หรือสัตว์ชนิดละตัว ถ้ามีสัตว์นั่งแพไปตัวเดียว มันก็ต้องพายแพกลับมาอยู่ดี และถ้าวิลเดอบีสต์สองตัวนั่งแพไป อีกตัวที่เหลืออยู่ ก็จะถูกสิงโตรุมขย้ำ ดังนั้นทางเลือกพวกนั้นจึงใช้ไม่ได้ การส่งสิงโตสองตัว หรือสัตว์ชนิดละตัวขึ้นแพ เป็นทางเลือกที่ทำให้เหล่าสัตว์ข้ามได้ โดยใช้จำนวนครั้งเท่า ๆ กัน แต่เพื่อประหยัดเวลา เราจะมาดูแค่วิธีที่สองกัน นั่นคือการส่งสัตว์ชนิดละตัวขึ้นแพ ถ้าให้วิลเดอบีสต์รออยู่อีกฝั่ง และให้สิงโตพายแพกลับมา ฝั่งขวาของแม่น้ำ จะมีสิงโตสามตัว และวิลเดอบีสต์ที่เหลืออยู่ก็จะโดนเจื๋อน ดังนั้นเราจึงต้องให้สิงโต รออยู่บนฝั่งซ้าย และให้วิลเดอบีสต์พายแพกลับไป มาถึงตอนนี้ เรามีทางเลือกห้าทางเหมือนครั้งแรก ต่างกันตรงที่ ครั้งนี้มีสิงโตหนึ่งตัวรออยู่อีกฝั่ง ถ้าให้วิลเดอบีสต์สองตัวขึ้นแพ ตัวที่ยังอยู่บนฝั่งก็จะถูกกิน และถ้าให้สัตว์ชนิดละตัวขึ้นแพ วิลเดอบีสต์ที่อยู่บนแพ ก็จะตกเป็นลาภปากของสิงโตสองตัว ทันทีที่กีบของมันแตะฝั่งอีกด้าน ทางเลือกนี้จึงใช้ไม่ได้ ทำให้ในการข้ามฝั่งครั้งที่สาม ต้องให้สิงโตสองตัวขึ้นแพ และส่งตัวหนึ่งขึ้นฝั่งไป ตอนนี้มีสิงโตสองตัวอยู่บนฝั่งอีกด้าน สิงโตตัวที่สามพายแพกลับมา ที่ฝั่งขวาของแม่น้ำ ที่มีวิลเดอบีสต์สามตัวรออยู่ แล้วเอาไงต่อล่ะ ในเมื่อตอนนี้มีสิงโตสองตัว รอรับฟาสต์ฟู้ดอยู่ที่ฝั่งซ้าย ทางเลือกเดียวที่ใช้ได้ คือการส่งวิลเดอบีสต์สองตัวข้ามฟากไป ขั้นต่อไป ก็ไม่มีเหตุผลอะไร ที่วิลเดอบีสต์สองตัวจะกลับไปอีก เพราะเราจะวกกลับมาอยู่ขั้นที่พึ่งผ่านไป และถ้าส่งสิงโตสองตัวกลับไป ก็จะมีจำนวนมากกว่า วิลเดอบีสต์ตัวเดียวที่ยังอยู่บนฝั่ง ทางเลือกเดียวที่ใช้ได้ คือการส่งสัตว์ชนิดละตัวกลับมา ทำให้ตอนนี้มีสัตว์ชนิดละตัว อยู่บนฝั่งซ้าย และชนิดละสองตัวบนฝั่งขวา การจะส่งสัตว์ชนิดละตัวข้ามฟากไป จะเป็นการวกกลับไปอยู่ขั้นที่พึ่งผ่านมา ดังนั้นการข้ามฟากครั้งนี้จึงเหลือ การส่งสิงโตสองตัว หรือวิลเดอบีสต์สองตัวไป ถ้าส่งสิงโตไป พวกมันก็จะกินวิลเดอบีสต์ ที่อยู่อีกฟาก ทางเลือกนี้จึงตัดไป และให้วิลเดอบีสต์สองตัวข้ามฟาก ตอนนี้เริ่มง่ายแล้วเพราะ พวกวิลเดอบีสต์ทั้งหมดอยู่ที่ฝั่งอีกด้าน โดยไม่ต้องกลัวว่าจะถูกกิน ดังนั้นขั้นตอนที่เหลือ ก็แค่ให้สิงโตพายแพไปฝั่งขวา และทยอยพาเพื่อนสิงโตกลับมา ทีละตัว สรุปแล้ว วิธีนี้จะต้องพายแพสิบเอ็ดเที่ยว ซึ่งเป็นจำนวนเที่ยวที่น้อยที่สุด ที่ทำให้สัตว์ทุกตัวข้ามฟากได้ วิธีที่ให้สิงโตสองตัวขึ้นแพในเที่ยวแรก ก็คล้าย ๆ กับวิธีนี้ และใช้การพายแพสิบเอ็ดเที่ยวเช่นเดียวกัน สัตว์ทั้งหกตัวหลบหนีจากไฟป่า ได้อย่างเฉียดฉิว และเตรียมเริ่มต้นชีวิตใหม่ ที่อีกฝั่งของแม่น้ำ เอาล่ะ ในเมื่อภัยจากไฟป่าหมดสิ้นไปแล้ว น่าสนใจว่ามิตรภาพที่พึ่งสร้างนี้ จะยังคงอยู่ต่อไปไหม