NEHE 2008

UNDER CONSTRUCTION
login.php profile.php?mode=register faq.php memberlist.php search.php http://omac.forum2u.org/

NEHE 2008 首頁 » 天才培訓班 » The problem of crossing bridge
發表新主題  回覆主題 上一篇主題 :: 下一篇主題 
The problem of crossing bridge
發表發表於: 星期三 十月 31, 2007 8:32 pm 引言回覆
kim
敬拜者
敬拜者
註冊時間: 2007-07-29
文章: 161




Assume there are 4 people , A, B, C and D, need to cross a bridge. The night is dark and they have only one flash light. to make the situation worse, the bridge can only carry 2 people at one time. Thus, whenever 2 people cross the bridge, one person always has to go back to bring other people over (because they have only one flash light, remember!)

Now, A can cross the bridge at 5 min
B can do it in 2 min
C can do it in 10 min
D can do it in 1 min

when 2 people cross the bridge at same time, they always have to move at the slower pace. (if A and C walk together, it will take them 10 min to cross).

Q: what's the most efficient way to bring all 4 people over?
檢視會員個人資料 查詢 kim 發表的所有文章 發送私人訊息 發送電子郵件
發表發表於: 星期三 十月 31, 2007 8:35 pm 引言回覆
kim
敬拜者
敬拜者
註冊時間: 2007-07-29
文章: 161




HInt : the answer is not the obvious solution which takes 19 min !!
檢視會員個人資料 查詢 kim 發表的所有文章 發送私人訊息 發送電子郵件
發表發表於: 星期三 十月 31, 2007 8:39 pm 引言回覆
kim
敬拜者
敬拜者
註冊時間: 2007-07-29
文章: 161




btw.. dont see much going on with the forum these days...
c'm on.. give this a shot!
it's a do-able problem, just take some thinking beyond intuition
檢視會員個人資料 查詢 kim 發表的所有文章 發送私人訊息 發送電子郵件
發表發表於: 星期三 十月 31, 2007 9:41 pm 引言回覆
Mikka
天使長
天使長
註冊時間: 2007-07-20
文章: 129




kim 寫到:
btw.. dont see much going on with the forum these days...
c'm on.. give this a shot!
it's a do-able problem, just take some thinking beyond intuition


17minutes!!!

_________________
"你给我扁一顿,你就不空虚了我也就不烦躁了" - Pipi
檢視會員個人資料 查詢 Mikka 發表的所有文章 發送私人訊息
發表發表於: 星期三 十月 31, 2007 10:00 pm 引言回覆
kim
敬拜者
敬拜者
註冊時間: 2007-07-29
文章: 161




拍手
檢視會員個人資料 查詢 kim 發表的所有文章 發送私人訊息 發送電子郵件
The problem of crossing bridge
NEHE 2008 首頁 » 天才培訓班
無法 在這個版面發表文章
無法 在這個版面回覆文章
無法 在這個版面編輯文章
無法 在這個版面刪除文章
無法 在這個版面進行投票
所有的時間均為 EST (美國/加拿大)  
1頁(共1頁)  

  
  
 發表新主題  回覆主題  


Powered by phpBB © 2001-2004 phpBB Group
Designed for Trushkin.net | Themes Database
正體中文語系由 phpbb-tw 維護製作
Powered by MakeForum.org - Free Forum Hosting
Sign Up now to get your Free Forum!