NTU-Exam 板


LINE

课程名称︰人工智慧 课程性质︰选修 课程教师:许永真 开课学院:电资学院 开课系所︰资工所、网媒所、知识管理学程 考试日期(年月日)︰2012.11.06 考试时限(分钟):120分钟 试题 : Introduction to AI: Midterm ═══════════════════════════════════════ Please observe the standard testing rules with honor in this open-book exam. There are six parts for a total of 100 points, and you have exactly 120 minutes. You may not have time to finish all problems. We suggest that you browse through the problems first and start with the easiest problems for you. Don'tforget the bonus points! Write your answers in English (or Chinese), on the answer sheets. Mark each answer with the corresponding problem number clearly. Write your name and student ID on both the exam paper and answer sheets. ═══════════════════════════════════════ 1. (20 Points) Search Consider the search strategies introduced in Chapter 3. (a) (5 Points) Which uninformed search strategy compares most favorably with the others, and why? (b) (5 Points) We may extend uniform cost search to iterate over increasing limits on path cost. Is this new algorithm optimal? Justify your answer briefly. (c) (4 Points) Suppose that we modify the evaluation function for best-first search to f(n) = (2 - w)·g(n) + w·h(n). For what values of w is this complete? (d) (6 Points) What kind of search does this perform for w = 0, w = 1, and w = 2? Ans: (a) Any search strategy with reasonable explanation (5 Points). (b) Uniform cost search itself is a optimal algorithm (2 Points). The extention doesn't change its behavior (the order how nodes are expanded) (2 Points), so the new algorithm is still optimal (1 Points). (c) It is complete when 0 ≦ w < 2 (4 Points). For w ≧ 2 or w < 0, it is not complete. (d) Assume the h(n) is admissible. For w = 0, it is a uniform cost search (2 Points); for w = 1, it is a A* search (2 Points); for w = 2, it is a greedy best-first search (2 Points). 2. (15 Points) Local Search Consider the problem of solving the Sudoku puzzle. ╔═╤═╤═╤═╗ ║ │2│ │3║ ╟─┼─┼─┼─╢ ║ │ │4│2║ ╟─┼─┼─┼─╢ ║3│4│ │ ║ ╟─┼─┼─┼─╢ ║2│ │3│ ║ ╚═╧═╧═╧═╝ Figure 1: A simple math puzzle. (a) (6 Points) Please formulate the problem as a local search problem. (b) (4 Points) Please estimate the size of the search space (e.g. O(n^3)). (c) (5 Points) Describe how the search may be improved using simulated annealing. Ans: (a) Problem : A 2×2 Sudoku puzzle with some fixed grids with given values and some blank grids (unfixed) ‧ 1 point for each of the following, 2 points for reasonable formulation ◇ State: a valid value in each blank grid, where a valid value ∈ {1, 2, 3, 4} and the blank itself. ◇ Initial State: each blank (unfixed) grid is still blank. ◇ Action: Change an unfixed grid with a valid number. ◇ Goal: The sum of grids in each row and each column are all equal to 10. ◇ Cost: constant 1 for each action. (This one is optional) (b) The size of search space: ‧ 2 points for your explanation, ‧ 1 point for your parameter definition, ‧ 1 point for the estimation answer Define the amount of blank grids as n, we have O(5^n), where 5 means the size of the set of valid values. (c) Simulated annealing ‧ 3 points for reasonable improvement ‧ 3 points for the relation between the answer and simulated annealing ‧ At most 5 points in this question. Define the Heuristic Function to estimate each state: Compute the sum of grids in each row and column, assumed each summation is an element in the set S. Heuristic Function: h = Σ |10 . si| s_i∈S where h is the smaller the better. The Temperature can be mapped to Time (Action times) Next state S_N, Current state S_C At higher temperature, the next state with higher h(S_N) - h(S_C) may be chosen; at lower temperature, the next state is almost chosen as the state with lowest h(S_N) - h(S_C). With the simulation annealing, the local optimal can be avoided through the random action (with the probability according to temperature). 3. (15 Points) Game Search Consider the search tree for a two-player game as shown. (a) (5 Points) Suppose both players play optimally, what is the final outcome of the game? (b) (5 Points) Circle all the nodes in the search tree above that will be pruned by alpha-beta pruning, assuming the game tree is searched from right to left. (c) (5 Points) Please re-arrange up to 5 leaf nodes so that more nodes may be pruned. http://i.imgur.com/oCIW6wC.png Figure 2: A two-player game tree with utility values at the leaf nodes. Ans: (a) (5 Points) http://i.imgur.com/B9RdQqX.png (b) (5 Points) http://i.imgur.com/9XgYzwe.png (c) (5 Points) Please re-arrange up to 5 leaf nodes so that more nodes may be pruned. http://i.imgur.com/imsL3nJ.png 4. (15 Points) Constraint Satisfaction Consider the problem of solving the Sudoku puzzle again. (a) (6 Points) Please re-formulate the problem as a CSP. (b) (4 Points) Please estimate the size of the search space. (c) (5 Points) Apply the AC-3 algorithm to solve the puzzle. Ans: You can answer the following problems for either Figuare 1 or n by n Sudoku (a) (6 Points) You need to answer the following three elements. ‧ (2 Points) Variables = {A_11, A_12, ..., A_44} ‧ (2 Points) Domains = {1, 2, 3, 4} ‧ (2 Points) Constraints = {A_i1 ≠ A_i2 ≠ A_i3 ≠ A_i4, A_1i ≠ A_2i ≠ A_3i ≠ A_4i, A_11 ≠ A_12 ≠ A_21 ≠ A_22, A_13 ≠ A_14 ≠ A_23 ≠ A_24, A_31 ≠ A_32 ≠ A_41 ≠ A_42, A_33 ≠ A_34 ≠ A_43 ≠ A_44, 1 ≦ i ≦ 4, i ∈ N} (b) (4 Points) You get at most 2 points if you don't explain how you get the complexity. ‧ n is the number of rows. Since each block has n choice and there are n*n blocks, the complexity is O(n^(n*n)). (c) (5 Points) You have to list the steps by applying AC-3 on either Figure 1 or general cases. You get at most 2 points if you just write down the solution. 5. (15 Points) Propositional Logic Consider the following sentence. [(P => D) V (B => D)] Λ C => [(P Λ B) => D]. (a) (4 Points) Determine, using enumeration, whether this sentence is valid, satisfiable (but not valid), or unsatisfiable. (b) (5 Points) Convert the entire sentence into CNF, showing each step. (c) (6 Points) Prove your answer to (a) using resolution Ans: The precedence (order of operations): 「﹁」>「V」, 「Λ」>「=>」 Therefore, the original formula can be presented as f: f = {[(P => D) V (B => D)] Λ C} => [(P Λ B) => D] (a) Truth-table enumeration : ‧ 4 points for showing the correct truth table ‧ You have to use enumeration methods, otherwise you can only get at most 2 points B│C│D│P│P=>D│B=>D│[(P=>D)V(B=>D)]ΛC │[(PΛB)=>D] │f ─┼─┼─┼─┼──┼──┼──────────┼──────┼─ T│T│T│T│ T │ T │ T │ T │T T│T│T│F│ T │ T │ T │ T │T T│T│F│T│ F │ F │ F │ F │T T│T│F│F│ T │ F │ T │ T │T T│F│T│T│ T │ T │ F │ F │T T│F│T│F│ T │ T │ F │ T │T T│F│F│T│ F │ F │ F │ F │T T│F│F│F│ T │ T │ F │ T │T F│T│T│T│ T │ T │ T │ T │T F│T│T│F│ T │ T │ T │ T │T F│T│F│T│ F │ T │ T │ T │T F│T│F│F│ T │ T │ T │ T │T F│F│T│T│ T │ T │ F │ T │T F│F│T│F│ T │ T │ F │ T │T F│F│F│T│ F │ T │ F │ T │T F│F│F│F│ T │ T │ F │ T │T Therefore it is valid according to the column of f (b) Converting steps: ‧ 1 points for each of following steps (except step 1) ‧ 2 points for the correct result ‧ If no step is shown, you can only get at most 2 points 1.) Eliminate <=>: (ignore) 2.) Eliminate ==>: ‧ P => D ~> ﹁P V D ‧ B => D ~> ﹁B V D ‧ (P Λ B) => D ~> ﹁(P Λ B) V D ‧ f ~> ﹁[(﹁P V D V ﹁B V D) Λ C] V [﹁(P ^ B) V D] ~> ﹁[(﹁P V D V ﹁B) Λ C] V [﹁(P Λ B) V D] 3.) Move ﹁ inward: ‧ ﹁(P Λ B) V D ~> ﹁P V ﹁B V D ‧ ﹁[(﹁P V D V ﹁B) Λ C] ~> ﹁(﹁P V D V ﹁B) V ﹁C ~> (P Λ ﹁D Λ B) V ﹁C ‧ f ~> (P Λ ﹁D Λ B) V ﹁C V ﹁P V ﹁B V D 4.) Apply the distributivity law: ‧ (P Λ ﹁D Λ B) V ﹁C V ﹁P V ﹁B V D ~> (P V ﹁C V ﹁P V ﹁B V D) Λ (D V ﹁C V ﹁P V ﹁B V D) Λ (B V ﹁C V ﹁P V ﹁B V D) (c) ‧ If no resolution steps is shown, you can only get at most 3 points ‧ 3 points for the resolution tree (or resolution steps) ‧ 1 points for the re-processing steps ‧ 2 points for the correct result i. Negation of the consequent: ﹁((P Λ B) => D) and the antecedent [(P => D) V (B => D)] Λ C form our knowledge base ii. Convert each of them: ‧ ﹁(﹁(P Λ B) V D) ≡ ﹁﹁(P Λ B) Λ ﹁D ≡ P Λ B Λ ﹁D ‧ [(P => D) V (B => D)] Λ C ≡ [(﹁P V D) V (﹁B V D)] Λ C iii. Use knowledge base: (﹁P V D) V (﹁B V D), C to show P Λ B Λ ﹁D will be resolved by the Resolution Tree. ﹁P V D V ﹁B P ╲ ╱ ╲╱ ﹁B V D B ╲ ╱ ╲╱ D ﹁D ╲ ╱ ╲╱ □ 6. (20 Points) Short-Answer Questions (a) (4 Points) Describe two significant events in the history of AI. (b) (4 Points) A physical symbol system has the necessary and sufficient means for general intelligent action. Please argue for or against it. (c) (4 Points) Construct an admissible heuristic that is not consistent. (d) (4 Points) What are the critical capabilities for Watson to win Jeopardy!? (e) (4 Points) Give a PEAS description of a task environment in which a simple reflex agent will fail. Ans: (a) (4 Points) 2 points for each event. ‧ Dartmouth Conference 1958: The birth of AI. ‧ IBM Deep Blue defeated world champion Garry Kasparov. (b) (4 Points) You need to claim your reason for the statement. (c) (4 Points) 2 points if your heuristic function is admissible. 2 points if your heuristic function is not consisten. (d) (4 Points) You need to answer least two capabilities. 2 points for each capability. ‧ Computing power ‧ Nature language processing to understand the question (e) (4 Points) You need to give a PEAS description that the agent will fail. 1 point for each element. If you don't give a PEAS description, you get at most 2 points. ‧ An agent for driving a car from one place to another. It will fail because there are many unexcepted things that can't be handle by a simple reflex agent. ‧ Perfomance Measure: time ‧ Enviroment: roads ‧ Actuator: wheel, break ‧ Sensor: camera at front 7. (5 Points) Bonus Please make one suggestion for possible improvements to the course. --



※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 61.228.12.163
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/NTU-Exam/M.1441740631.A.B0C.html
1F:→ rod24574575 : 已收资讯系! 09/09 03:31







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:BabyMother 或 站内搜寻

TOP