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

AI · Theory

Adversarial Search

← All stacks

Theory

25/215

Adversarial Search

Adversarial search is for games with an opponent who tries to make you lose. Chess, tic-tac-toe, Go. You cannot assume the other player will help. Minimax and alpha-beta live here. Chance games add dice (expectimax).

Not the same as finding a path on a map with no enemy. Say “opponent” in the first sentence.

Adversarial Search — output — three exam lines. Graph on paper first.

Diagram
start
    ├── BFS  queue
    ├── DFS  stack
    └── A*   g+h
    │
    ▼
   goal
Exam tip

Why BFS is the wrong tool for chess.

Example

# Adversarial Search
print("draw 6 nodes")
print("name the DS: queue / stack / priority")
print("say if the path is optimal")

Adversarial Search — output: three exam lines. Graph on paper first.

Short notes

  • DefSearch vs an opponent.
  • Tools : minimax, alpha-beta.

Questions

1

Explain Adversarial Search 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 Adversarial Search?

Previous← Means-Ends AnalysisNextMinimax Algorithm →
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.