PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

AI · Theory

knowledge base for Wumpus World

← All stacks

Theory

34/215

knowledge base for Wumpus World

KB starts with rules: breeze iff a neighbour is a pit (in the standard toy). As you visit squares, you Tell facts: ~Pit(1,1), Breeze(1,2), … Inference marks some squares safe. That KB is why a logic agent beats a random walker.

Exam — write two sentences in English or PL, not a full axiom dump.

Output — idea / do / check for knowledge base for Wumpus World. Fill those three in the viva.

Exam tip

Two KB sentences for breeze/pit.

Example

# knowledge base for Wumpus World
print("idea :", "knowledge base for Wumpus World")
print("do   : one tiny example on paper")
print("check: one failure case")

Output: idea / do / check for knowledge base for Wumpus World. Fill those three in the viva.

Short notes

  • DefRules + visited facts.
  • RuleInfer safe squares.

Questions

1

Explain knowledge base for Wumpus World as if you are teaching a junior — definition, then one example.

2

What does the example print, and what does that prove?

3

What mistake do freshers make with knowledge base for Wumpus World?

Previous← The Wumpus worldNextFirst-Order Logic →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.