CS-265/CSC325 ArtificialIntelligence

news/2025/3/1 18:59:29/文章来源:https://www.cnblogs.com/justdoing/p/18739404

CS-265/CSC325 Artificial Intelligence – Coursework 1 [15 marks]

Deadline: 6 March 2025, 11am GMT

Task Description

Consider the following situation:  Assume you  have a database of articles, together with their length in words and the topics covered.  Using graph search you want to create an information brochure that is as concise as possible, i.e., as short as possible while covering all of the required topics.  The article database contains the five articles in the table below.

Table 1: Database of articles, their length and topics covered.

Article

Length in words

Topics Covered

art0

200

[introduction]

art1

600

[industry 5.0, challenges]

art2

1000

[introduction, human-centric design, cobots]

art3

800

[infographic, skills]

art4

1000

[industry 5.0, cobots]

In the search graph, a node is a pair (To Cover, Articles〉where Articles is a list of articles that  must be  in the brochure,  and To Cover is  a  list of topics that  have to be covered.

• The neighbours of a node are obtained by first selecting a topic from To Cover.

• There is a neighbour for each article that covers the selected topic.

• The remaining topics are the topics not covered by the articles added so far.

Assume that the leftmost topic is selected at each step.  For instance, given the database  shown in Table 1, the neighbours of the node ([introduction, cobots], []〉, when ‘introduction’ 代 写CS-265/CSC325 Artificial Intelligenceis selected, are ([], [art2]〉and ([cobots], [art0]〉. Thus, each arc adds exactly one article but  can cover (and so remove) one or more topics.  Suppose that the cost of the arc is equal to  the word count of the article added.

The goal is to design a brochure that covers all of the topics in the list Must Cover.  The starting node is (Must Cover, []〉.  The goal nodes are of the form ([], Brochure〉.  The cost of the path from a start node to a goal node is the length of the articles used.  Thus, an optimal brochure is a shortest collection of articles that covers all of the topics in Must Cover.

(a)  Suppose that the goal is to cover the topics [introduction, industry 5.0, cobots] and the algorithm always selects the leftmost topic to find the neighbours for each node. Draw the search space expanded for a Greedy search.  Number the nodes in the order of expansion until a solution is found.  Nodes that are not considered should not carry a number. Your search tree should include all nodes expanded, highlight which node is a goal node, and show the frontier when the goal was found.                 [9 marks]

(b)  Give a non-trivial admissible heuristic function h.  [Note that h(n) = 0 for all nodes n is the trivial heuristic function.]  Does your heuristic satisfy the monotone restriction for a heuristic function?                                     [3 marks]

(c)  Does the order of topics selected in the expansion of the search space influence the result found?  Justify your answer.                   [3 marks]

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/891647.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

3.1 多元函数的全微分

1 多元函数的全微分 1.1 定义 1.1.1 回顾一元函数的微分 1.1.2 多元函数的定义1.1.3 可微推导连续 但连续不一定可微,证明如下: 若连续一定可微,又一元函数必满足二元函数的性质,又一元函数可微必可导,可推至连续必可导,矛盾 1.2 多元函数可微的必要条件 1.2.1 可微必可导…

React—10—受控组件和非受控组件;高阶组件

一、概念 我的理解是,是否有react提供数据,分为受控组件和非受控组件。 比如input元素,只要绑定了value属性,那么在react中,用户在输入框输入的值不会显示在输入框(react应该做了限制,原生html的input框即使value绑定了值依然可以输入), 这就导致,想改变value的值,必须…

autojs通过vscode写好的文件上传的手机,并打包apk

1.安装vscode 2.下载autojs插件和chinese插件3.启动autojs插件,手机才可以链接 (链接时输入的是手机的ip地址)4.上传到手机5.打包本文来自博客园,作者:六月OvO,转载请注明原文链接:https://www.cnblogs.com/chenlifan/p/18745272

Windows 提权-UAC 绕过

本文通过 Google 翻译 UAC-Bypass – Windows Privilege Escalation 这篇文章所产生,本人仅是对机器翻译中部分表达别扭的字词进行了校正及个别注释补充。导航0 前言 1 场景一:枚举得到存储的管理员凭证(GUI 环境)1.1 使用 netplwiz.exe 帮助主题绕过 UAC2 场景二:枚举得到…

三剑客与正则系列-正则表达式

1.注意事项正则符号都是英文符号,避免使用中文符号 推荐使用grep/egrep命令,默认设置了别名,自动加上颜色 http://nbre.oldboylinux.cn/ 分析正则与正则匹配到的内容. 其他坑.# "" . #‘’ ”“ 。alias grep=grep color=auto alias egrep=egrep color=auto2.符号概述…

【凸优化笔记2】-凸函数、下水平集、范数

转自:https://zhuanlan.zhihu.com/p/102098039 1. 凸函数 1.1 凸函数定义 一个函数𝑓:𝑅𝑛→𝑅是凸的,如果定义域𝑑𝑜𝑚𝑓是凸集,并且对于所有𝑥,𝑦∈𝑑𝑜𝑚𝑓,𝜃∈[0,1],都有: 𝑓(𝜃𝑥+(1−𝜃)𝑦)≤𝜃𝑓(𝑥)+(1−𝜃)𝑓…

使用AI后为什么思考会变得困难?

使用AI后为什么思考会变得困难? 我总结了四篇近期的研究论文,来展示AI是如何以及为什么侵蚀我们的批判性思维能力。作者使用AI制作的图像前言:作者在这篇文章中,借AI技术的崛起,揭示了一场悄然发生的思想博弈。表面上,AI为我们带来了前所未有的效率与便捷,但在无形之中,…

44页太阳花绘制

点击查看代码 from turtle import * color(red, yellow) begin_fill() while True:forward(200)left(170)if abs(pos()) < 1:break end_fill() done()

leetcode hot 15

解题思路:思路还是比较清晰,先按照起始位置排序,然后再逐个遍历,根据起始位置与前一个结束位置进行比较,两种情况进行处理即可(这边代码比较麻烦因为前面list泛型用错了) import java.util.Arrays; class Solution {public int[][] merge(int[][] intervals) {List<Lis…

WgelCTF打靶笔记(2)

参考视频:https://www.bilibili.com/video/BV1itwgeHEEk/?spm_id_from=333.1387.upload.video_card.click&vd_source=e948147c25027ef3216b5c376b31fc96扫描dirb: 发现.ssh有一个id_rsa文件,即ssh连接私钥,右键下载到本地 ssh私钥: SSH:用于安全的连接到远程服务器 …

44页五角星绘制

点击查看代码 from turtle import * fillcolor("red") begin_fill() while True:forward(200)right(144)if abs(pos()) < 1:break end_fill()

Go1.24版本终于来了!各位开发者,准备好迎接这些激动人心的新功能了吗?让我们一起来探讨下Go1.24中有哪些精彩的亮点?

前言 Gopher们,Go 1.24.0 正式发布了!与 Go 1.23.0 相比,这个版本带来了众多改进。让我们一同看看 Go 1.24.0 都有哪些新变化吧! 在 Windows 下,请在 https://github.com/voidint/g/releases 下载适合您系统的版本。例如,如果您的系统是 64 位的,可以下载 g1.7.0.window…