Heuristics for Problem Solving (OCR A-Level Computer Science): Quizzes

📚Quizzes
Heuristics for Problem Solving
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What is the primary purpose of a heuristic in problem solving?

Provide a quick, good enough solution

In the A* algorithm, what does g(n)g(n) represent?

Actual cost to reach node nn

What is the formula for the total cost function in the A* algorithm?

f(n)=g(n)+h(n)f(n) = g(n) + h(n)

What does the Manhattan Distance formula calculate for grid-based pathfinding?

Estimated distance to the goal

What is the Manhattan Distance formula?

h(n)=x1x2+y1y2h(n) = |x_1 - x_2| + |y_1 - y_2|

How do heuristics improve efficiency in algorithms?

By reducing the search space

When are heuristics particularly useful?

For complex or large-scale problems

What is a major drawback of using heuristics?

They may not produce optimal solutions

In chess AI, which factors are used as heuristics to evaluate the board?

Material balance and piece mobility

What heuristic is used for route optimisation in delivery truck problems?

Straight-line distance estimate

In the A* algorithm, what does h(n)h(n) represent?

Heuristic estimate to goal from nn

What is a common mistake when designing heuristics?

Choosing poor heuristics

Explore OCR A-Level Computer Science Revision Notes by Topics

Explore OCR A-Level Computer Science Model Answers by Topics

Explore OCR A-Level Computer Science Flashcards by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

Join 100,000+ A-Level students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.