본문으로 건너뛰기
김신건의 로그

Sprague-Grundy Theorem: 게임 이론 통일

· 수정 · 📖 약 1분 · 151자/단어 #algorithm #game #grundy
Sprague-Grundy Theorem, Sprague-Grundy, Grundy Number, 님 값

정의

Sprague-Grundy Theorem: 모든 impartial game (플레이어 무관, deterministic, no draw) 은 하나의 Nim 무더기와 등가.

각 상태 v 의 Grundy number g(v):

mex = Minimum EXcluded non-negative integer.

게임 합 (game sum)

여러 게임을 병렬로 진행하는 합 게임의 Grundy = 개별 Grundy 의 XOR.

필패 판정

g(state) = 0 ⟺ P-position (다음 플레이어 패)

예제

  • Nim: g(pile of n) = n
  • Kayles: 특정 패턴 반복
  • Green Hackenbush: 트리로 환원

참고

이 글의 용어 (3개)
게임 이론 (Game Theory)algorithm
정의 게임 이론 (Game Theory) 은 둘 이상의 플레이어가 정해진 규칙 아래 의사 결정을 내리는 상황을 수학적으로 모델링하는 분야. PS에서는 두 명이 완벽한 플레이를 할…
Hackenbush (하켄부시 게임)algorithm
정의 Hackenbush 는 John H. Conway 가 "On Numbers and Games" (1976) 에서 고안한 combinatorial game. 바닥에 연결된 여…
Nim Game: XOR 규칙algorithm
정의 Nim 은 여러 돌무더기에서 두 플레이어가 번갈아 한 무더기의 돌을 임의 수만큼 가져가는 게임. 마지막 돌을 가져가는 쪽이 승 (normal play). Bouton's T…

이 개념을 다룬 위키 페이지 (2)

💬 댓글

사이트 검색 / 명령어

검색

스크롤 = 확대/축소 · 드래그 = 이동 · 0 = 원래 크기 · ESC = 닫기