0% found this document useful (0 votes)
9 views4 pages

CS607 Assignment 1 Correct Solution Spring 2025

The document provides instructions for CS607 Assignment 1, which involves implementing the A* algorithm to find the shortest path from a source node S to a goal node G. It includes a step-by-step solution with calculations of costs and the final optimal path. Additionally, it contains contact information for paid assignment assistance and emphasizes the importance of not copying solutions directly.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

CS607 Assignment 1 Correct Solution Spring 2025

The document provides instructions for CS607 Assignment 1, which involves implementing the A* algorithm to find the shortest path from a source node S to a goal node G. It includes a step-by-step solution with calculations of costs and the final optimal path. Additionally, it contains contact information for paid assignment assistance and emphasizes the importance of not copying solutions directly.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

CS607 ASSIGNMENT 1 SOLUTION SPRING 2025

Due Date: 9-May-2025


Total Marks: 20

Join Group for Free [Assignments, GDBs, Quizzes] Solution Files


https://chat.whatsapp.com/Bto6NP8Af6h1Sz3Z2O7dUK

DO NOT COPY PASTE THE SAME

FOR PAID ASSIGNMENT CONTACT US


WHATSAPP 03162965677

Assignment Submission Instruction:


You are supposed to submit your assignment in Doc or Docx format.

Question
You are required to implement the A* (A-star) algorithm to find the shortest path from a
source node S to a goal node G considering the following graph.

FOR PAID ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677
MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

You must:
 Show the path taken at each step(No need to draw graph at each step).
 Calculate the total cost (f(n)=g(n) + h(n)) at each step where g(n) is actual cost
and h(n) is the heuristic cost.
 Show the final optimal path with cost.

SOLUTION

FOR PAID ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677
MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

Step Current Open List (f = Closed g(n) f(n) Action Taken


Node g+h) List values valu
es
1 S A(2+6 = 8), S S=0, A=2, A=8, Expand S; add A and
B(5+4=9) B=5 B=9 B to Open
2 A C(6+2 = 8), S, A C=6, D=9 C=8, Expand A; and C and
B(5+4 = 9), D=10 D to Open
D(9+1 = 10)
3 C G(9+0 = 9), B S, A, C G=9 G=9 Expand C; add G to
(5+4 = 9), D (9+1 Open
= 10)
4 G B(5+4=9), S, A, C, G — — Goal Reached
D(9+1=10)

Final Optimal path


S→A→C→G

Final cost
g(S→A) = 2
g(A→C) = 4
g(C→G) = 3
g(G)=9

FOR PAID ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677
MORE SOLUTIONS, HANDOUTS AND PAST PAPERS FREELY VISIT

VUAnswer.pk

REGARD - SARIM
WHATSAPP +923162965677

PLEASE NOTE:
Don't copy-paste the same answer.
Make sure you can make some changes to your solution file before
submitting copy paste solution will be marked zero.
If you found any mistake then correct yourself and inform me.
Before submitting an assignment must check your assignment requirement
file.
If you need some help or question about file and solutions feel free to ask.

FOR FREE ASSIGNMENTS SOLUTIONS VISIT

VUAnswer.pk

FOR PAID ASSIGNMENTS CORRECT SOLUTION

WhatsApp: +923162965677

You might also like