人工智能课后习题答案部分已翻译考试.doc

上传人:坚持 文档编号:4239308 上传时间:2019-10-07 格式:DOC 页数:16 大小:223.29KB
下载 相关 举报
人工智能课后习题答案部分已翻译考试.doc_第1页
第1页 / 共16页
人工智能课后习题答案部分已翻译考试.doc_第2页
第2页 / 共16页
人工智能课后习题答案部分已翻译考试.doc_第3页
第3页 / 共16页
人工智能课后习题答案部分已翻译考试.doc_第4页
第4页 / 共16页
人工智能课后习题答案部分已翻译考试.doc_第5页
第5页 / 共16页
点击查看更多>>
资源描述

1、Chapter 11.1 Define in your own word: (a) intelligence, (b) artificial intelligence, (c) agent. Intelligence智能: Dictionary definitions of intelligence talk about “the capacity to acquire and apply knowledge” or “the faculty of thought and reason” or “the ability to comprehend and profit from experie

2、nce.” These are all reasonable answers, but if we want something quantifiable we would use something like “the ability to apply knowledge in order to perform better in an environment.”智能的字典定义有一种学习或应用知识的能力,一种思考和推理的本领,领会并且得益于经验的能力,这些都是有道理的答案,但如果我们想量化一些东西,我们将用到一些东西像为了在环境中更 好的完成任务使能力适应知识 Artificial inte

3、lligence人工智能: We define artificial intelligence as the study and construction of agent programs that perform well in a given environment, for a given agent architecture.作为一学习和构造智能体程序,为了一个智能体结构,在被给的环境中可以很好的完成任务。 Agen 智能体 t: We define an agent as an entity 实体 that takes action in response to percepts

4、from an environment.在一个环境中对一个对象做出反应的实体1.4 There are well-known classes of problem that are intractably difficult for computers, and other classes that are provably undecidable. Does this mean that AI is impossible?No. It means that AI systems should avoid trying to solve intractable problems. Usuall

5、y, this means they canonly approximate optimal behavior. Notice that humans dont solve NP complete problems either. Sometimes they are good at solving specific instances with a lot of structure, perhaps with the aid of background knowledge. AI systems should attempt to do the same.1.11 “surely compu

6、ters cannot be intelligent-they can do only what their programmers tell them.” Is the latter statement true, and does it imply the former?This depends on your definition of “intelligent” and “tell.” In one sense computers only do what theprogrammers command them to do, but in another sense what the

7、programmers consciously tells the computer to do often has very little to do with what the computer actually does. Anyone who has written a program with an ornery bug knows this, as does anyone who has written a successful machine learning program. So in one sense Samuel “told” the computer “learn t

8、o play checkers better than I do, and then play that way,” but in another sense he told the computer “follow this learning algorithm” and it learned to play. So were left in the situation where you may or may not consider learning to play checkers to be s sign of intelligence (or you may think that

9、learning to play in the right way requires intelligence, but not in this way), and you may think the intelligence resides in the programmer or in the computerChapter 22.1 Define in your own words the following terms: agent, agent function, agent program, rationality, reflex agent, model-based agent,

10、 goal-based agent, utility-based agent, learning agent.The following are just some of the many possible definitions that can be written: Agent智能体: an entity(实体) that perceives (感知)and acts行为; or, one that can be viewed as perceiving and acting. Essentially本质上 any object qualifies限定; the key point is

11、 the way the objectimplements an agent function. (Note: some authors restrict the term to programs that operate on behalf of a human, or to programs that can cause some or all of their code to run on other machines on a network, as in mobile agents. MOBILE AGENT)一个具有感知和行文的实体,或者是一个可以观察到感觉的实体,本质上,任何限定

12、对象,只要的观点是一种对象执行智能体函数的方法。(注意,一些作者) 可以感知环境,并在环境中行动的某种东西。 Agent function智能体函数: a function that specifies the agents action in response to every possible percept sequence.智能体相应任何感知序列所采取的行动 Agent program智能体程序: that program which, combined with a machine architecture, implements an agent function. In our

13、simple designs, the program takes a new percept on each invocation and returns anaction.实现了智能函数。有各种基本的智能体程序设计,反应出现实表现的一级用于决策过程的信息 种类。设计可能在效率、压缩性和灵活性方面有变化。适当的智能体程序设计取决于环境的本性 Rationality;理性: a property of agents that choose actions that maximize their expected utility, given the percepts to date. Auto

14、nomy自主: a property of agents whose behavior is determined by their own experience rather than solely by their initial programming. Reflex agent反射型智能体: an agent whose action depends only on the current percept.一个智能体的行为仅仅依赖于当前的知觉。 Model-based agent基于模型的智能体: an agent whose action is derived directly fr

15、om an internal model of the current world state that is updated over time.一个智能体的行为直接得自于内在模型的状态,这个状态是当前世界通用的不断更新。 Goal-based agen基于目标的智能体t: an agent that selects actions that it believes will achieve explicitly represented goals.智能体选择它相信能明确达到目标的行动。 Utility-based agen基于效用的智能体t: an agent that selects a

16、ctions that it believes will maximize the expected utility of the outcome state.试图最大化他们自己期望的快乐 Learning agent学习智能体: an agent whose behavior improves over time based on its experience.2.2 Both the performance measure and the utility function measure how well an agent is doing. Explain the difference

17、between the two.A performance measure(性能度量) is used by an outside observer to evaluate(评估) how successful anagent is. It is a function from histories to a real number. A utility function(效用函数) is used by an agent itself to evaluate how desirable(令人想要) states or histories are. In our framework, the u

18、tility functionmay not be the same as the performance measure; furthermore, an agent may have no explicit utility function at all, whereas there is always a performance measure.2.5 For each of following agents, develop a PEAS description of the task environment:a. Robot soccer player;b. Internet boo

19、k-shopping agent;c. Autonomous Mars rover;d. Mathematicians theorem-proving assistant.Some representative, but not exhaustive, answers are given in Figure S2.1.智能体类型性能度量环境执行器传感器机器人足 球运动员 因特网购赢得比赛, 打败对手 获得请求/感兴趣裁判,自己队伍,其他队伍,自己身体装置(腿)行走踢球 向下连接,输入提相机,触摸传感器 加速器书智能体的书,最小支出因特网交数据,用户显示器网页,用户请求自主火星 漫步者 数学家的

20、定理 证明助手地形探测,汇报, 样本采集分析火星,运行装置, 登陆器轮子/腿,简单手机装置, 分析装置,无线电发射装置相机,触摸传感器 方向传感器2.6 For each of the agent types listed in Exercise 2.5, characterize the environment according to the properties given in Section 2.3,and select a suitable agent design. The following exercises all concern the implementation of

21、 environment and agents for the vacuum-cleaner world.Environment properties are given in Figure S2.2. Suitable agent types:a. A model-based reflex agent would suffice for most aspects; for tactical play, a utilitybased agent with lookahead would be useful.基于模型的映射能够满足大多数要求,对于战术游戏,向前效用智能体将会 有用b. A goa

22、l-based agent would be appropriate for specific book requests. For more openended taskse.g., “Find me something interesting to read”tradeoffs (权衡折中)are involved(棘手的) and the agent must compare utilities for various(不同的) possible purchases.基于目标的智能体将适当的明确书的请求, 为更多开放的任务,例如查找我有兴趣读的书,智能体必须比较各种可能的购买方式之间的效

23、用c. A model-based reflex agent would suffice for low-level navigation and obstacle avoidance; for routeplanning, exploration planning, experimentation, etc., some combination of goal-based and utility-based agents would be needed.基于模型的映射智能体能够满足低水平的航线和避免障碍,为了路由计划,探 测计划,实验等。这需要基于目标和效用的智能体。d. For speci

24、fic proof tasks, a goal-based agent is needed. For “exploratory” taskse.g., “Prove some useful lemmata concerning operations on strings”a utility-based architecture might be needed.为了明确的检验任务,需要基于目标的智能体,为探测任务,任务环境机器人足可观察性确定性片段性静态性离散型智能体数球运动员部分随机的连续的动态的连续的多因特网购书智能体部分确定的连续的静态的离散的单自主火星漫步者部分随机的连续的动态的连续的单

25、数学家的定理证明助手完全确定的连续的静态的离散的多Chapter 33.1 Define in your own words the following terms: state, state space, search tree, search node, goal, action, successor function, and branching factor. state :A state is a situation that an agent can find itself in. We distinguish two types of states: world states (

26、the actual concrete situations in the real world) and representational states (the abstract descriptions of the real world that are used by the agent in deliberating about what to do). state space :A state space is a graph whose nodes are the set of all states, and whose links are actions that trans

27、form one state into another. search tree :A search tree is a tree (a graph with no undirected loops) in which the root node is the start state and the set of children for each node consists of the states reachable by taking any action. search node :A search node is a node in the search tree. goal :A

28、 goal is a state that the agent is trying to reach. action :An action is something that the agent can choose to do. successor function :A successor function described the agents options: given a state, it returns a set of(action, state) pairs, where each state is the state reachable by taking the ac

29、tion. branching factor :The branching factor in a search tree is the number of actions available to the agent.3.7 Give the initial state, goal test, successor function, and cost function for each of the following. Choose a formulation that is precise enough to be implemented.a. You have to color a p

30、lanar map using only four colors, in such a way that no two adjacent regions have the same color.Initial state: No regions colored.Goal test: All regions colored, and no two adjacent regions have the same color. Successor function: Assign a color to a region.Cost function: Number of assignments.路径耗损

31、b. A 3-foot-tall monkey is in a room where some bananas are suspended from the 8-foot ceiling. He would like to get the bananas. The room contains two stackable, movable, climbable 3-foot-high crates.Initial state: As described in the text.初始状态:Goal test: Monkey has bananas.目标测试:猴子拿到香蕉后继函数: Hop on c

32、rate; Hop off crate; Push crate from one spot to another; Walk from one spot to another;grab bananas (if standing on crate). 挪动箱子,把箱子叠起,走到箱子上拿香蕉Cost function: Number of actions. 行动数量c. You have a program that outputs the message “illegal input record” when fed a certain file of input records. You kn

33、ow that processing of each record is independent of the other records. You want to discover what record is illegal.Initial state: considering all input records.Goal test: considering a single record, and it gives “illegal input” message.Successor function: run again on the first half of the records;

34、 run again on the second half of the records.Cost function: Number of runs.Note: This is a contingency problem; you need to see whether a run gives an error message or not to decide what to do next.d. You have three jugs, measuring 12 gallons, 8 gallons, and 3 gallons, and a water faucet. You can fi

35、ll the jugs up or empty them out from one to another or onto the ground. You need to measure out exactly one gallon.Initial state: jugs have values 0, 0, 0.Successor function: given values x, y, z, generate 12, y, z, x, 8, z, x, y, 3 (by filling); 0, y, z, x, 0, z, x, y, 0 (by emptying); or for any

36、two jugs with current values x and y, pour y into x; this changes the jug with x to the minimum of x + y and the capacity of the jug, and decrements the jug with y by the amount gained by the first jug.Cost function: Number of actions.3.8 Consider a state space where the start state is number 1 and

37、the successor function for state n return two states, numbers 2n and 2n+1.a. Draw the portion of the state space for states 1 to 15.See Figure S3.1.b. Suppose the goal state is 11.List the order in which nodes will be visited for breadth-first search, depth-limited search with limit 3, and iterative

38、 deepening search.Breadth-first: 1 2 3 4 5 6 7 8 9 10 11Depth-limited: 1 2 4 8 9 5 10 11Iterative deepening: 1; 1 2 3; 1 2 4 5 3 6 7; 1 2 4 8 9 5 10 11c. Would bidirectional search be appropriate for this problem? If so, describe in detail how it would work.Bidirectional search is very useful, becau

39、se the only successor of n in the reverse direction is (n/2). This helps focus the search.d. What is the branching factor in each direction of the bidirectional search?2 in the forward direction; 1 in the reverse direction.e. Does the answer to (c) suggest a reformulation of the problem that would a

40、llow you to solve the problem of getting from state 1 to a given goal state with almost no search?Yes; start at the goal, and apply the single reverse successor action until you reach 1.Chapter 44.2 The heuristic path algorithm is a best-first search in which the objective function is f(n)=(2-w)g(n)

41、+wh(n).For what values of w is this algorithm guaranteed to be optimal?(You may assume that h is admissible.) What kind of search does this perform when w = 0? When w = 1? When w = 2?w = 0 gives f(n) = 2g(n). This behaves exactly like uniform-cost searchthe factor of two makes no difference in the o

42、rdering of the nodes. w = 1 gives A search. w = 2 gives f(n) = 2h(n), i.e., greedy best-first search. We also have f(n) = (2 w)g(n) +w2 wh(n)which behaves exactly like A search with aheuristic w2wh(n). For w 1, this is always less than h(n) and hence admissible, provided h(n) is itselfadmissible.4.1

43、1 Give the name of the algorithm that results from each of the following special cases:a. Local beam search with k=1.Local beam search with k = 1 is hill-climbing search.b. Local beam search with one initial state and no limit on the number of states retained.Local beam search with k = : strictly sp

44、eaking, this doesnt make sense. (Exercise may be modified in future printings.) The idea is that if every successor is retained (because k is unbounded), then the search resembles breadth-first search in that it adds one complete layer of nodes before adding the next layer. Starting from one state,

45、the algorithm would be essentially identical to breadth-first search except that each layer is generated all at once.c. Simulated annealing with T = 0 at all times (and omitting the termination test).Simulated annealing with T = 0 at all times: ignoring the fact that the termination step would be tr

46、iggered immediately, the search would be identical to first-choice hill climbing because every downward successor would be rejected with probability 1. (Exercise may be modified in future printings.)d. Genetic algorithm with population size N = 1.Genetic algorithm with population size N = 1: if the

47、population size is 1, then the two selected parents will be the same individual; crossover yields an exact copy of the individual; then there is a small chance of mutation. Thus, the algorithm executes a random walk in the space of individuals.Chapter 55.1 Define in your own words the terms constraint satisfaction problem, constraint, backtracking search, arc consistency, backjumping and min-conflicts.

展开阅读全文
相关资源
相关搜索
资源标签

当前位置:首页 > 教育教学资料库 > 参考答案

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。