QUESTION ONE (20 MARKS) 1.1 Consider the state space graph shown below. P is the start state and V is the goal state. The costs for each edge are shown on the graph. Each edge can be traversed in both directions. 1.1.1 Use Breadth-First Search to generate the shortest path from P to V. (10) 1.1.2 Apply the Depth First Search method to find a path from P to V. (10)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

QUESTION ONE (20 MARKS)
1.1 Consider the state space graph shown below. P is the start state and V is the goal state. The costs for each edge are shown on the graph. Each edge can be traversed in both directions.
1.1.1 Use Breadth-First Search to generate the shortest path from P to V. (10)
1.1.2 Apply the Depth First Search method to find a path from P to V. (10)
QUESTION TWO (20 MARKS)
2.1 Compute the truth table for the following expressions and their subexpressions.
2.1.1 (p → q) ≡ (NOT p OR q) (5)
2.1.2 p → (q → (r OR NOT p)) (5)
2.1.3 (p OR q) → (p AND q) (5)
2.1.4 (p AND q) → (p OR r) (5)
QUESTION THREE (10 MARKS)
3.1 The binary exclusive-or function, ⊕, is defined to have value TRUE if and only if exactly one of its arguments are TRUE.
3.3.1 Draw the truth table for ⊕. (5)
3.3.2 Is ⊕ commutative? Is it associative? (5)
P
Q
R
S
T
V
U
QUESTION FOUR (20 MARKS)
4.1 Translate the following sentences into a Prolog program (10)
Everyone who teaches programming module is smart.
Craig teaches the programming module.
Craig’s brother teaches the mathematics module.
The programing module is interesting.
Craig’s sister teaches all modules.
4.2 Fill this table with the right Prolog statement for each question in the Artificial Intelligence
system (10)
English question
Prolog statement
Prolog response
Is Artificial Intelligence module hard?
No
Does Peter go to school every Tuesday?
Yes
Who is the CEO of Richrand?
Nolwazi
Is Suzan the mother of Peter?
Yes
What car does Peter drive?
Mercedes
QUESTION FIVE (20 MARKS)
5.1 Read the article “Artificial Intelligence and its Role in Near Future” by Shabbir, J and Anwer, T (2015) and based on the article:
5.1.1 Write in your own words about the role of Artificial Intelligence in shaping the future. (10)
5.1.2 Give your perspective on the destructive effects of Artificial Intelligence. (10)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education