a) Explain the difference between the A* algorithm and Dijkstras algorithm. b) The following graph (network) shows
Question:
a) Explain the difference between the A* algorithm and Dijkstra’s algorithm.
b) The following graph (network) shows how long it takes (in seconds) to walk between ten hotels in a city.
i) Using Dijkstra’s algorithm, show the shortest time to walk from the City Hotel (C) to the Quality Hotel (Q).
ii) Give the route corresponding to your answer in part b) i).
Transcribed Image Text:
City Hotel 140 Valencia Hotel 85 310 Adelphi Hotel (A 160 230 70 H Hilton Hotel 90 Sandy's Hotel 130 110 110 Bellini Hotel (B 105 M) Metropolitan Hotel 110 260 160 Newark Hotel (N 160 90 Q) Quality Hotel 130 Luxury Hotel OL
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (3 reviews)
INTRODUCTION Movement from one location to the next has been a routine in peoples daily lives People have to take shortest routes to get to work quickly to save on time Buses and Airplanes have to use ...View the full answer
Answered By
Hemstone Ouma
"Hi there! My name is Hemstone Ouma and I am a computer scientist with a strong background in hands-on experience skills such as programming, sofware development and testing to name just a few. I have a degree in computer science from Dedan Kimathi University of Technology and a Masters degree from the University of Nairobi in Business Education. I have spent the past 6 years working in the field, gaining a wide range of skills and knowledge. In my current role as a programmer, I have had the opportunity to work on a variety of projects and have developed a strong understanding of several programming languages such as python, java, C++, C# and Javascript.
In addition to my professional experience, I also have a passion for teaching and helping others to learn. I have experience as a tutor, both in a formal setting and on a one-on-one basis, and have a proven track record of helping students to succeed. I believe that with the right guidance and support, anyone can learn and excel in computer science.
I am excited to bring my skills and experience to a new opportunity and am always looking for ways to make an impact and grow as a professional. I am confident that my hands-on experience as a computer scientist and tutor make me a strong candidate for any role and I am excited to see where my career will take me next.
5.00+
8+ Reviews
22+ Question Solved
Related Book For
Cambridge International AS & A Level Computer Science
ISBN: 9781510457591
1st Edition
Authors: David Watson, Helen Williams
Question Posted:
Students also viewed these Computer science questions
-
A company is investigating how long it takes its drivers to deliver goods from its factory to a nearby port for export. Records reveal that with a standard specified driving route, the last n = 48...
-
Explain the difference between value-added time and nonvalue-added time.
-
In your own words, explain the difference between a trigonometric equation and a trigonometric identity.
-
You have the following information on two bonds Bond 1 Bond 1 Type Coupon Zero Coupon Term (Yrs) 3 3 Payment Frequency Annual Annual Face Amount ($) $25,000 $25,000 Coupon (%) 6% NA a. Calculate the...
-
Do you try to pad an insurance claim to cover your deductible? About 40% of all U.S. adults will try to pad their insurance claims! Suppose that you are the director of an insurance adjustment...
-
Loveland Corporation issued $400,000 of 10-year bonds at a discount. Prior to maturity, when the carrying value of the bonds was $388,000, the company redeemed the bonds at 99. Prepare the entry to...
-
Conway Crafters, LLC, negotiated two promissory notes with Gotham Bank. Conway secured the loans to help finance the construction of a new commercial building. Separate mortgages secured each note....
-
Selzik Company makes super-premium cake mixes that go through two processing departments, Blending and Packaging. The following activity was recorded in the Blending Department during July: All...
-
1. How do price levels and the changes in price level determine a country's exch rate? 2. When are the spot and forward currency markets aligned with interest rates? 3. Are changes in exchange rates...
-
Brothers Mike and Tim Hargenrater began operations of their tool and die shop (H & H Tool, Inc.) on January 1, 2019. The annual reporting period ends December 31. The trial balance on January 1,...
-
Copy and complete the text, using words from the box. Words may be used once, more than once, or not at all. actual output machine learning reinforcement learning back propagation minimised removed...
-
The following graph is made up of a (9 8) matrix. Use the A* algorithm to show the shortest route from A to B. 1 2 3 4 5 6 7 8 9 starting point 'A' 3 4 5 6 7 finishing point 'B' 8
-
In many states, including Florida, it is illegal to engage in price gouging. Floridas law penalizes a seller for any gross disparity between the quoted price of a necessity item such as water, and...
-
Smith & Jones Inc.'s stockholders are mostly individual investors, and there is relatively little institutional ownership. If several pension and mutual funds were to take large positions in Smith &...
-
Choose the correct option. XYZ Co. reported the following cost of goods over the last 3 years: $1M in year 1; $1.2M in year 2; $1.25M in year 3. It also reported the following revenue over the last 3...
-
Fictitious employees can appear on the payroll records or unauthorized payments can be made to existing employees or fictitious employees if which duties are not segregated? Multiple choice question....
-
An audit firm's audit documentation DOES NOT ______. Multiple choice question. assist supervisors in reviewing work quality assist in planning future audits demonstrate audit team accountability...
-
If sales are over $1000, the bonus is 10%. If sales are over $500, the bonus is 5%. Otherwise, there is no bonus. Which formula calculates the correct bonus percentage? =IF(A1 > 1000, "10%", "5%")...
-
(a) Show that the ground-state energy of the hydrogen atom can be written E1 = ke2 /(2a0), where a0 is the Bohr radius. (b) Explain why, according to classical physics, an electron with energy E1...
-
In Problem 8.43, determine the smallest value of for which the rod will not fall out of the pipe. IA -3 in.-
-
Al says he can prove that all sheep in a flock are the same color: Base case: One sheep. It is clearly the same color as itself. Induction step: A flock of n sheep. Take a sheep, a, out. The...
-
Alice has two circular queues,C and D, which can store integers. Bob givesAlice 50 odd integers and 50 even integers and insists that she stores all 100 integers in C and D. They then play a game...
-
Suppose Bob has four cows that he wants to take across a bridge, but only one yoke, which can hold up to two cows, side by side, tied to the yoke. The yoke is too heavy for him to carry across the...
-
Write the IUPAC name for the compound below. Be sure to use correct punctuation. Keep the information page open for guidance and for use with feedback. Accepted names for branched alkyl groups are...
-
Home work 1 1. John invested $5,000 in a savings account that earns an annual interest rate of 4%. Calculate the simple interest earned after 2 years. 2. Emily invested some money in a savings...
-
A company is considering in acquiring a local Waste-to-Energy plant which produces electricity for the energy market by burning wastes collected from the community. The investment will cost the...
Study smarter with the SolutionInn App