Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9255433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:43:00+00:00 2026-06-18T11:43:00+00:00

I am trying to solve a problem using different algorithms and Steepest Ascent Hill

  • 0

I am trying to solve a problem using different algorithms and Steepest Ascent Hill Climbing (SAHC) and Best First Search are two of these algorithms that I need to implement.

According to Wikipedia:

“In steepest ascent hill climbing all successors are compared and the closest to the solution is chosen…”

“Steepest ascent hill climbing is similar to best-first search, which tries all possible extensions of the current path instead of only one.”

SAHC: All successors are compared and the closest to the solution is chosen.

BestFS: Tries all possible extensions of the current path instead of only one.

I don’t really understand how these are different. Could some please help me with this, preferably with some sort of an explanation using trees?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:43:01+00:00Added an answer on June 18, 2026 at 11:43 am

    They are quite similar. The difference is that best-first search considers all paths from the start node to the end node, whereas steepest ascent hill climbing only remembers one path during the search.

    For example, say we have a graph like

    start ---- A ---- B ---- end
      \                     /
       ------\    /---------
              \  /
               C
    

    where each edge has the same weight: ignore my crappy ASCII art skills :).
    Also suppose that in our heuristic function, A is considered as closer to the end than C. (This could still be an admissible heuristic – it just underestimates the true distance of A.)

    Then steepest-ascent hill climbing would choose A first (because it has the lowest heuristic value), then B (because its heuristic value is lower than the start node’s), and then the end node.

    A best-first search, on the other hand, would

    1. Add A and C to the open list.
    2. Take A, the best value, off the open list, and add B. Then OPEN = {B, C}.
    3. Take the best node off the open list (either B or C, more on that in a second), and add its successor, the goal state.
    4. Take the goal state off the open list and return the path that got there.

    The choice of B or C in step 3 depends on exactly the best-first search algorithm you’re using. A* would evaluate the node as the cost to get there plus the estimate of the cost to get to the end, in which case C would win (and in fact, with an admissible heuristic, A* is guaranteed to always get you the optimal path). A “greedy best-first search” would choose between the two options arbitrarily. In any case, the search maintains a list of possible places to go from rather than a single one.

    Is it clearer how the two are different now?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to solve Project Euler problem in Clojure using recursion. The following
I'm trying to solve this problem in a pure-functional way, without using set! .
Trying to solve a problem with templatetags. I have two templatetags: @register.inclusion_tag('directory/_alphabet.html') def alphabet_list(names):
I was trying to solve Project Euler problem 10 using python, but my program
I am trying to solve a problem of compositing two images in Java. The
I am trying to solve the readers-writers problem with writer preference in Java using
I am trying to solve the following codechef problem using scala. The statement of
I'm trying to solve a simple problem using LINQ, which I'm just learning. I
I'm trying to solve Problem 13 of project euler, which involves the sum of
Trying to solve this problem . I would like to learn how the bootstrapper

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.