100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary cos3751 assignment 1 2022 memo

Rating
4.0
(2)
Sold
9
Pages
7
Uploaded on
10-05-2022
Written in
2021/2022

assignment help, Do not just copy try to understand the content

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Connected book

Written for

Institution
Course

Document information

Summarized whole book?
No
Which chapters are summarized?
Unknown
Uploaded on
May 10, 2022
Number of pages
7
Written in
2021/2022
Type
Summary

Subjects

Content preview

Cos3761 assignment 1 2022 100% pass




List the 5 components that can be used to define a problem.

1. Initial state

2. Actions

3. Transition model




Question 1. 22 Marks

(2.1) List the 5 components that can be used to define a problem.

1. Initial state

2. Actions

3. Transition model

4. Goal test

5. Path cost

, 2.2) Differentiate between search space and goal space. The search space is the set of states that have
to be searched for a solution, whereas a goal space is a set of goal states

(2.3) Differentiate between search space and goal space. The search space is the set of states that have
to be searched for a solution, whereas a goal space is a set of goal states. What is the purpose of the
explored set? Avoids infinite loops since it holds the list of nodes that have already been explored



2.4 List and discuss three types of queues that may be employed in a search. 1. FIFO: usedin
DFSsearches, nodes are added in reverse order to ensure that the last node added will be the first node
to be explored. 2. LIFO: Typically used in BFS searches: nodes are added in the order they are generated.
3. Priority queue: Nodes are added and sorted based on some key, this ensures that certain states take
priority over others during the expansion phase.

2.5 List and explain the measures used to determine problem solving performance. 1. Completeness:
Will the algorithm find a solution if it exists? 2. Optimality: Will the algorithm find the best solution
(optimal path cost among all solutions)? 3. Time complexity: How long does the algorithm take to find a
solution? 4. Space complexity: How much memory is needed to perform the search for a solution?

Question 3: 23 Marks Three (3) hikers (Andile, Barbara, and Ch´e) have just descended down a valley to
find themselves confronted by a river they cannot get across. After walking downstream for a while they
find two young boys with a boat and ask them if they would help them get across the river. The boys
agree, but inform the hikers that since their boat is so small, it can only hold only the two boys or one of
the hikers at a time. We can assume that everyone knows how to row the boat.

(3.1) DefineastateDefine a state using amathematical notation (pictures or any form of graphical
notation will not be accepted). Discuss the appropriateness of your choice, and provide an example to
show that it will be suitable to be employed during a search. Wecan abbreviate the hikers with the
labels A, B, and C. The boys we could label b1 and b2. There are many possible answers. We need not
distinguish between the boys as it would not make a difference to the solution, however, set theory
dictates that sets do not contain duplicates, thus we need to properly indicate that the boys are two
unique entities. State {A,B,C,b1,b2}{}(for hikers, for boys –if boys are unique) represents the two sidesof
the river and the people on that side. We can use a more compact representation {A,B,C,b1,b2}, since if
a person is not on the one side he/she will be on the other side.

3.2 Define the start and goal states using your representation. Start state: {A,B,C,b1,b2}2 There are 3
possible goal states! (I show the state representing the left (beginning) side of the river –the
complement is also correct) 1. {} 2 2. {bi} with I ∈ {1,2} 3. {b1,b2}

3.3 Define an appropriate cost function or functions for this problem. Cost function: A cost function is
not relevant here, since it would not impact which solution would be used(if more than one exists).

3.4Provide a formal definition of a valid action function for this problem –you need not provide a formal
definition for the operation of the function. Discuss the operation of the function and provide an
example to illustrate its use. Successor: move 1 hiker, 1 boy, or 2 boys to the other side. Mathematically
we either remove one or two of the existing elements from our state representation when we move
these people to the other side, or we add one or two missing elements to the set when we move these

Reviews from verified buyers

Showing all 2 reviews
3 year ago

3 year ago

Thank you for rating us. We appreciate the support. Kindly let us know what you would like us to improve.

3 year ago

3 year ago

Thank you for rating us. We appreciate the support.

4.0

2 reviews

5
0
4
2
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
elenaprowriter University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
101
Member since
4 year
Number of followers
70
Documents
19
Last sold
1 month ago

3.5

13 reviews

5
3
4
4
3
4
2
1
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions