에이전트·상태·행동·문제의 표현Agents, states, actions and problem formulation
두 방의 세 행동에서 실제 자료를 읽는 과제까지From three actions in two rooms to tasks that inspect actual records
실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions
기초Foundations
1. 두 방을 깨끗하게 만드는 세 행동1. Three actions to clean two rooms
방 A와 B에 먼지가 있고 작은 청소 장치가 A에 있습니다. 배터리는 행동 세 번을 할 만큼 남았습니다. A를 청소하고, 오른쪽 B로 이동하고, B를 청소하면 두 방이 깨끗해집니다. 한 행동씩 상태를 적어 보겠습니다. 여기서 배터리와 먼지의 변화는 우리가 정한 학습 규칙입니다.
가정한 한 경로 · 먼지 1은 있음, 0은 없음
시점
방
A 먼지
B 먼지
남은 에너지
직전 행동
0
A
1
1
3
시작
1
A
0
1
2
청소
2
B
0
1
1
오른쪽
3
B
0
0
0
청소
마지막 행의 목표 검사는 참입니다. 그러나 목표가 참인 것과 프로그램이 정지한 것은 다릅니다. 이 장의 환경은 목표에 도달했다는 이유만으로 정지시키지 않습니다. 장치가 stop을 선택했는지, 주어진 행동열이 끝났는지, 시간 예산을 다 썼는지도 따로 적습니다.
Rooms A and B are dirty, and a small cleaning cart starts in A. Its battery supports three energy-consuming actions. Clean A, move right to B, then clean B. Record each change instead of jumping directly to the result. These dirt and battery changes follow our declared teaching rules.
One assumed path · dirt 1 means present, 0 absent
Time
Room
A dirty
B dirty
Energy left
Previous action
0
A
1
1
3
Start
1
A
0
1
2
Clean
2
B
0
1
1
Right
3
B
0
0
0
Clean
The final state passes the goal test. Reaching a goal and stopping the program are different events. This environment does not automatically stop at a goal. Separately record whether the cart chose stop, exhausted its supplied action sequence, or reached its time budget.
기초Foundations
2. 관측을 받고 행동을 내보내는 장치2. A system that receives observations and selects actions
청소 장치는 현재 방의 센서값을 읽고 다음 행동을 고릅니다. 이처럼 환경에서 정보를 받고 환경에 작용하는 대상을 에이전트라고 부릅니다. 이름에 AI가 붙었다고 반드시 사람처럼 말하거나 신경망으로 학습해야 하는 것은 아닙니다. 간단한 if 문으로 움직이는 장치도 이 관점으로 분석할 수 있습니다.
한 주기는 관측 받기 → 내부 정보 갱신 → 행동 선택 → 환경 변화 → 다음 관측으로 이어집니다. 센서가 실제로 알려 준 값과 프로그램이 추측한 값을 구별해 적으면, 장치가 왜 그 행동을 골랐는지 추적할 수 있습니다. 사람의 목표도 먼저 적어야 합니다. 두 방 청소, 짧은 시간, 적은 비용은 서로 다른 평가 기준입니다.
The cart reads a sensor in its current room and selects an action. An agent receives information from an environment and acts on it. An AI agent need not speak like a person or learn a neural network. Even a small program built from if statements can be studied this way.
One cycle is observation, internal update, action selection, environmental change, and another observation. Distinguishing sensor readings from program assumptions makes the decision trace understandable. State the human task first: clean both rooms, finish quickly, and spend little are different criteria.
기초Foundations
3. 다음 일을 계산하는 데 필요한 상태3. A state sufficient to calculate what happens next
현재 방만 적으면 청소 결과를 계산하기 어렵습니다. A의 먼지, B의 먼지, 남은 에너지, 지금까지의 행동 수, 정지 여부를 함께 적습니다. 이 모형의 상태는 이 여섯 값입니다. position은 A 또는 B, dirtyA와 dirtyB는 참·거짓, energy와 time은 정수입니다.
s=(ℓ,dA,dB,e,t,z)
상태가 실제 세계의 모든 사실을 담아야 한다는 뜻은 아닙니다. 방 벽의 색은 이 전이 규칙에 영향을 주지 않아 생략했습니다. 반면 에너지를 빼면 같은 청소 요청이 가능한지 결정하지 못합니다. 어떤 정보가 필요한지는 행동 규칙과 비용, 목표에 달려 있습니다.
Location alone is insufficient to calculate cleaning results. Include dirt in A, dirt in B, remaining energy, action count, and whether the cart has stopped. Those six values form our model state. Position is A or B; dirtyA and dirtyB are booleans; energy and time are integers.
s=(ℓ,dA,dB,e,t,z)
A state need not describe every physical fact. Wall color is omitted because it affects none of our rules. Energy cannot be omitted: it determines whether a requested cleaning action is allowed. The information required depends on transitions, costs, and the goal.
기초Foundations
4. 0과 미제공, 거짓과 숫자를 구별한다4. Distinguish zero, missing values and boolean values
에너지 0은 배터리가 없다는 관측된 모형 값입니다. 빈칸은 그 값을 제공하지 않았다는 뜻입니다. 두 경우를 같게 처리하면 충전되지 않은 장치가 움직이거나, 모르는 상태를 아는 것으로 바꾸게 됩니다. 실습은 에너지를 0부터 20까지의 정수로 받으며 참·거짓을 에너지 숫자 대신 넣으면 거절합니다.
먼지는 불리언으로 입력합니다. false는 먼지가 없다는 뜻이지 먼지 정보가 없다는 뜻이 아닙니다. stopped=false인 상태도 두 방이 이미 깨끗할 수 있습니다. 목표, 행동 가능성, 정지 상태를 각각 계산하면 이런 조합을 억지로 하나의 숫자에 합칠 필요가 없습니다.
Energy zero is a specified battery state. A blank means the value was not supplied. Conflating them can turn unknown information into claimed knowledge. The lab accepts integer energy from zero through twenty and rejects booleans used as energy numbers.
Dirt fields require booleans. False means no dirt; it does not mean an unavailable reading. A state with stopped=false can already have two clean rooms. Calculate the goal, admissible actions, and stopping status separately rather than compressing them into one number.
기초Foundations
5. 위치 두 개와 먼지 네 조합5. Two locations and four dirt configurations
시간·에너지·정지 여부를 고정하고 위치와 두 먼지 표지만 바꾸어 봅시다. 위치는 두 가지, A 먼지는 두 가지, B 먼지도 두 가지이므로 조합은 2×2×2=8개입니다. 위치 A만 그려 놓고 먼지 조합을 세면 전체의 절반만 센 셈입니다.
에너지·시간·정지는 같은 값으로 고정한 여덟 구성
위치
A 먼지
B 먼지
두 방 청소 목표
A
0
0
참
A
0
1
거짓
A
1
0
거짓
A
1
1
거짓
B
0
0
참
B
0
1
거짓
B
1
0
거짓
B
1
1
거짓
전체 입력 영역에서는 에너지 21가지, 시간 65가지, 정지 표지 2가지가 더 있어 8×21×65×2=21,840개 튜플이 가능합니다. 이것은 변수 영역의 곱을 센 것입니다. 특정 시작점에서 실제로 도달할 수 있는 상태가 모두 그만큼이라는 뜻은 아닙니다.
Hold energy, time and stopping status fixed. There are two locations and four combinations of the two dirt flags, giving 2×2×2=8 configurations. Counting dirt only at location A would miss half of them.
Eight configurations with identical energy, time and stopping status
Position
A dirty
B dirty
Both-clean goal
A
0
0
True
A
0
1
False
A
1
0
False
A
1
1
False
B
0
0
True
B
0
1
False
B
1
0
False
B
1
1
False
The full input domains add twenty-one energy values, sixty-five times and two stopping flags, giving 21,840 tuples. This counts a Cartesian product. It does not say that all tuples are reachable from a specified initial state.
기초Foundations
6. 입력 가능한 조합과 도달 가능한 상태6. Possible configurations and reachable states
처음 에너지가 3이면 이 환경의 어떤 행동열도 에너지를 4로 올리지 못합니다. 충전 행동이 없기 때문입니다. 처음 A가 깨끗하면 나중에 다시 더러워지지도 않습니다. 이 모형에는 먼지가 새로 생기는 규칙이 없습니다. 따라서 변수 영역에는 있어도 그 시작점에서는 도달할 수 없는 튜플이 있습니다.
이 장은 전체 상태 표현의 영역과 시작점에서 도달하는 집합을 구별합니다. CS50의 도달 가능한 상태공간이라는 용어도 이 두 번째 뜻으로 읽을 수 있습니다. 문제를 표현할 때는 시작 상태와 가능한 전이를 함께 주어야 합니다. 다음 AI02는 이 구조 위에서 경로를 찾는 방법을 전개합니다.
Starting with energy three, no action sequence can raise it to four: the model has no charging action. A room initially clean cannot become dirty because there is no re-soiling rule. Some tuples in the variable domains are therefore unreachable from that start.
Distinguish the domain used to represent states from the subset reachable from a particular start. CS50 uses reachable state space in this second sense. Formulating a problem requires both a start and transition rules. AI02 studies how to find paths through the resulting structure.
기초Foundations
7. 두 방이 깨끗하다는 조건을 먼저 정한다7. Specify what counts as reaching the goal
두 먼지 표지가 모두 거짓일 때 목표 달성이라고 합시다. A에 있든 B에 있든 상관없습니다. 에너지가 0이어도 두 방이 깨끗하면 이 목표는 참입니다. 반대로 정지했어도 B에 먼지가 남아 있으면 목표는 거짓입니다. 목표 검사는 행동이나 센서가 아니라 상태에 붙인 조건입니다.
Goal(s)=(dA=0)∧(dB=0)
목표를 “B로 도착하기”로 바꾸면 어떤 상태를 성공으로 셀지도 바뀝니다. 그러나 에너지 제약을 유지한다면 여전히 에너지를 알아야 허용 행동을 판단할 수 있습니다. 목표만 바뀌었다고 비용이나 제약까지 자동으로 사라지지는 않습니다.
Declare success when both dirt flags are false, regardless of location. Zero remaining energy does not prevent this goal from being true. Conversely, a stopped cart with dirt left in B has failed it. A goal test is a condition on state, distinct from an action or sensor reading.
Goal(s)=(dA=0)∧(dB=0)
Changing the goal to reaching B changes which states count as success. Keeping the energy constraint still requires energy information to determine permitted actions. A new goal does not automatically remove costs or constraints.
기초Foundations
8. 실습 A · 상태를 바꾸고 목표를 검사한다8. Lab A · Change a state and inspect its goal
먼지를 하나씩 지우며 목표 표지가 언제 참이 되는지 먼저 예측합니다. 미정지이고 시간이 64보다 작으면 에너지 0에서도 wait와 stop은 허용되지만 이동·청소는 허용되지 않습니다. 두 방이 깨끗한 상태에서 stopped를 거짓으로 두어 목표와 정지가 다른 칸임을 확인하세요.
그림의 여덟 구성은 선택한 에너지·시간·정지 값을 공통으로 둔 작은 절편입니다. 전체 21,840개 튜플을 모두 도달 가능한 상태라고 그린 것이 아닙니다. time=64와 정지 상태에서는 가능한 행동집합이 비어 있습니다. 이 시간 상한은 실습의 계산 계약이며 실제 로봇의 자연법칙은 아닙니다.
Before changing the controls, predict when removing dirt makes the goal true. Before stopping and while time is below 64, zero energy still permits wait and stop, while movement and cleaning do not. Keep stopped false in a both-clean state to see that goal and termination are separate fields.
The eight configurations share the selected energy, time and stopping values. They are not a diagram claiming all 21,840 tuples are reachable. Stopped states and time sixty-four admit no actions. The time bound is a lab contract, not a physical law of robots.
기초Foundations
9. 같은 관측과 다른 상태9. The same observation can come from different states
A의 바닥이 깨끗하다는 센서값을 받았다고 합시다. B도 깨끗한 세계와 B에 먼지가 있는 세계가 모두 가능합니다. 위치·에너지·시간·정지 표지가 같다면 두 세계의 국소 관측은 같습니다. 그러나 두 방 청소라는 목표의 참·거짓은 다릅니다.
A의 센서 하나만으로 구별되지 않는 두 가정 세계
실제 모형 상태
센서가 보는 A
보이지 않는 B
목표
첫 세계
깨끗함
깨끗함
참
둘째 세계
깨끗함
먼지 있음
거짓
이 예에서 “실제 상태”는 시뮬레이터가 보유한 전체 가정 상태를 뜻합니다. 실제 로봇으로 그 두 세계를 측정했다는 뜻은 아닙니다. 장치가 받지 않은 B의 값을 프로그램 결정에 몰래 넣으면 국소 센서만 쓰는 에이전트를 평가한 것이 아니게 됩니다.
Suppose the cart observes a clean floor in A. B may be clean or dirty. With identical location, energy, time and stopping status, those worlds yield the same local observation but different truth values for the both-clean goal.
Two assumed worlds indistinguishable to the sensor in A
Model state
Observed A
Unseen B
Goal
First world
Clean
Clean
True
Second world
Clean
Dirty
False
The full state here belongs to the simulator; it is not a claim that two physical robot worlds were measured. Feeding unseen B into the agent’s decision would change the information available to the policy.
기초Foundations
10. 전체 상태를 관측으로 바꾸는 함수10. A function from full state to observation
관측 함수를 O라고 쓰면 전체 상태 s가 센서 출력 O(s)로 바뀝니다. 국소 센서는 현재 방의 먼지만 보여 주고, 전체 센서는 두 방을 모두 보여 줍니다. 위치 전용 관측은 두 먼지 값을 모두 숨깁니다. 이 세 관측 모두 에너지·시간·정지 표지는 함께 보여 준다고 정합니다.
o=O(s)
센서 설계는 환경의 먼지를 바꾸는 행동이 아닙니다. 같은 상태를 다른 정보 창으로 보는 것입니다. 반대로 clean은 그 상태 자체를 바꿉니다. 실습에서는 관측 종류를 바꾼 것과 행동을 실행한 것을 다른 조작으로 표시합니다.
Write O for the observation function. It maps a full state s to a sensor output O(s). A local sensor reveals dirt only in the current room, a full sensor reveals both rooms, and a position-only sensor reveals neither dirt bit. All three also reveal energy, time and stopping status in this model.
o=O(s)
Changing the sensor does not remove dirt. It changes the information window onto the same state. Cleaning changes the state itself. The lab therefore separates choosing an observation type from executing an action.
기초Foundations
11. 관측과 양립하는 상태를 직접 센다11. Count states compatible with an observation
위치가 A이고 그 바닥이 깨끗하다고 알면 B의 먼지만 두 가지로 남습니다. 따라서 같은 에너지·시간·정지를 고정한 양립 상태는 두 개입니다. 위치만 보이면 A와 B 먼지가 각각 두 가지라 네 개이고, 두 먼지를 모두 보면 하나입니다.
동일한 자원·시간 좌표에서 남는 구성
관측 방식
알려진 먼지
양립 구성 수
위치 전용
없음
4
국소
현재 방
2
전체
두 방
1
국소 센서가 현재 방의 먼지를 보고하면 목표 실패는 이미 알 수 있습니다. 두 방이 모두 깨끗할 수 없기 때문입니다. 현재 방이 깨끗하다는 보고만으로는 목표 달성을 알 수 없습니다. 부분 관측이라고 모든 질문에 무조건 답할 수 없는 것은 아닙니다.
Knowing that the cart is in clean A leaves two possibilities for B. At fixed energy, time and stopping status, there are two compatible configurations. Seeing position alone leaves four, while seeing both dirt bits leaves one.
Configurations remaining at identical resource and time coordinates
Observation
Known dirt
Compatible configurations
Position only
Neither room
4
Local
Current room
2
Full
Both rooms
1
A dirty local reading already proves the both-clean goal false. A clean local reading does not prove it true. Partial observability does not mean every question is unanswerable; it means some distinct states remain compatible with the information.
기초Foundations
12. 가능한 두 상태가 자동으로 반반은 아니다12. Two possible states do not automatically have equal probability
B가 깨끗하거나 더러울 수 있다는 말은 두 가능성을 나열한 것입니다. 각각의 확률이 1/2라는 뜻은 아닙니다. 처음 세계를 어떤 확률로 정했는지 추가로 주어야 확률을 계산할 수 있습니다. 이 관측 실습은 그 법칙을 제공하지 않아 양립 집합만 반환합니다.
예를 들어 A가 깨끗한 두 세계에 처음부터 각각 3/4와 1/4의 질량을 선언하면, 같은 관측을 받은 뒤에도 그 비율은 그대로입니다. 두 세계가 관측에 모두 맞고 그 밖의 세계가 없기 때문입니다. 후반의 여덟 세계 균등 평가는 별도로 선택한 또 다른 법칙입니다.
Listing clean B and dirty B states their possibilities, not a probability of one half each. Probabilities require a declared law for how worlds were chosen. The observation lab supplies no such law and therefore returns a compatibility set only.
For example, assign those two clean-A worlds masses three quarters and one quarter from the outset. Their common observation leaves the same relative masses because both worlds fit it and no others exist. The later uniform eight-world benchmark is a separate chosen law.
기초Foundations
13. 지금 관측 하나와 지금까지의 관측열13. One current observation and an observation history
A를 깨끗하게 만든 뒤 B로 이동한 장치는 예전에 A가 깨끗해졌다는 사실을 기억할 수 있습니다. 현재 B의 센서값만 받는 규칙과, 과거 관측을 저장하는 규칙은 같은 입력을 쓰는 것이 아닙니다. 외부 환경 상태와 에이전트 내부 기억을 따로 적어 보세요.
π:(o0,o1,…,ot)↦at
이 식은 관측 이력에서 다음 행동을 고르는 규칙의 표현입니다. 모든 긴 이력을 그대로 저장해야 한다는 뜻은 아닙니다. 두 방의 마지막 확인값만 저장해도 이 장의 정적인 먼지 규칙에서는 필요한 일부 사실을 유지할 수 있습니다. 어떤 기억을 지워도 되는지는 환경 모형을 보고 결정해야 합니다.
After cleaning A and moving to B, a cart can remember that A was clean. A rule using only the current B reading and one storing earlier observations do not have the same inputs. Keep the external environment state separate from the agent’s internal memory.
π:(o0,o1,…,ot)↦at
This expresses a rule mapping observation history to the next action. It does not require storing every history literally. Remembering the last checked dirt value in each room preserves some useful facts under our static dirt rules. Decide which memory can be discarded by examining the environment model.
기초Foundations
14. 모르는 값에서 확인된 거짓으로14. From unknown to a confirmed false dirt flag
기억 규칙은 처음 A와 B의 먼지 정보를 모두 미확인으로 둡니다. A에서 먼지를 보면 A=참을 기억하고 clean을 고릅니다. 알려진 청소 전이가 성공하면 A=거짓으로 갱신합니다. 오른쪽으로 이동한 뒤 B가 깨끗하다는 센서값을 받으면 B도 거짓이 됩니다. 이제 두 기억이 모두 거짓이라 stop을 고릅니다.
마지막 확인 정보만 저장하는 가정 기억 규칙
단계
받은 정보 또는 실행
A 기억
B 기억
시작
아직 관측 전
미확인
미확인
관측
A에 먼지 있음
참
미확인
행동
A 청소 성공
거짓
미확인
관측
이동 후 B가 깨끗함
거짓
거짓
실습은 성공한 청소가 먼지를 없앤다는 규칙을 알려 주므로 그 결과도 기억에 반영합니다. 실제 청소기가 고장날 수 있다면 같은 갱신을 정당화하려면 다른 전이나 추가 센서가 필요합니다. 기록되지 않은 성공을 사실처럼 채우는 규칙은 아닙니다.
A를 떠난 뒤 새 먼지가 생기지 않는다고 정했기 때문에 A가 깨끗하다는 기억을 유지했습니다. 만약 사람이 나중에 A를 더럽힐 수 있다면 같은 기억이 현재 상태를 알려 주지 못합니다. 기억을 더 많이 저장하는 것만으로 틀린 전이 모형을 고칠 수는 없습니다.
반사 규칙은 현재 방이 더러우면 청소하고, 깨끗하면 다른 방으로 갑니다. 기억 규칙은 두 방이 깨끗하다고 확인되면 멈춥니다. 전체 관측 규칙은 처음부터 두 먼지를 보므로 두 방이 이미 깨끗한 시작점에서 바로 멈출 수 있습니다. 세 규칙의 정보가 다르다는 점을 성과 비교에서도 함께 보고합니다.
The memory rule begins with both dirt values unknown. A dirty reading in A records A=true and selects clean. The known successful cleaning transition changes that memory to false. After moving right, a clean B reading records B=false. Both stored values are now false, so the rule selects stop.
A declared rule storing the last confirmed dirt information
Stage
Observation or action
A memory
B memory
Start
Before observing
Unknown
Unknown
Observe
A is dirty
True
Unknown
Act
A successfully cleaned
False
Unknown
Observe
B is clean after movement
False
False
The lab supplies a transition in which successful cleaning removes dirt, so memory can incorporate it. A physical cleaner that might fail would require different dynamics or another sensor. This rule does not turn an unobserved physical success into a measured fact.
Remembering clean A remained valid because our model forbids new dirt after departure. If someone can dirty A later, that memory no longer establishes its current condition. Storing more history alone cannot repair incorrect transition assumptions.
The reflex rule cleans a dirty current room and otherwise moves to the other room. The memory rule stops after confirming both rooms clean. A full-observation rule sees both from the start and can immediately stop if both are already clean. Report these information differences when comparing performance.
기초Foundations
15. 한 번의 결정 규칙을 몇 개나 만들 수 있을까15. How many one-decision rules can we specify?
에너지가 양수이고 시간이 상한보다 작으며 아직 정지하지 않은 한 시점을 고정합시다. 위치와 국소 먼지는 네 가지 관측 조합을 만듭니다. 각 관측에서 다섯 행동 중 하나를 고르는 결정적 규칙은 5×5×5×5=625개입니다. 전체 여덟 구성을 각각 구별하면 5⁸=390,625개의 한 번 결정 규칙이 가능합니다.
∣Πlocal∣=54=625
∣Πfull∣=58=390625
이 수는 고정한 자원 절편의 한 번 결정표 개수입니다. 모든 시간·배터리 값과 임의의 긴 기억을 쓰는 정책을 전부 센 것이 아닙니다. 더 큰 표현 공간은 더 좋은 규칙을 담을 여지를 주지만, 그 안에서 실제로 좋은 규칙을 찾았다는 결론은 따로 확인해야 합니다.
Fix one nonstopped decision with positive energy and time below the limit. Position and local dirt produce four observation types. Choosing one of five actions for each type gives 5⁴=625 deterministic one-decision rules. Distinguishing all eight full configurations gives 5⁸=390,625 such rules.
∣Πlocal∣=54=625
∣Πfull∣=58=390625
These counts concern a single resource slice and one decision table. They do not count every policy across all times, batteries and arbitrary memory histories. A larger representation can contain better rules without establishing that a particular implemented rule finds them.
기초Foundations
16. 실습 B · 같은 관측의 다른 세계16. Lab B · Different worlds with the same observation
위치 A와 A의 먼지를 고정하고 B만 바꿔 보세요. 국소 관측값은 그대로지만 전체 목표는 바뀔 수 있습니다. 전체 관측으로 바꾸면 두 세계가 구별되고 양립 구성 수는 1이 됩니다. 위치 전용에서는 네 구성이 남습니다.
화면에서 전체 상태를 보는 사람과 에이전트가 받은 정보는 다릅니다. 센서 칸에 없는 B를 결정 규칙이 사용했다고 말하지 않습니다. 확률을 선언하지 않은 이 패널의 두 후보에는 50% 표지를 자동으로 붙이지 않습니다.
Hold position A and its dirt value fixed, then change only B. The local reading remains unchanged although the full-state goal can change. Full observation separates the worlds and leaves one compatible configuration; position-only observation leaves four.
A person viewing the simulator’s whole state sees more than the agent receives. Do not attribute unseen B to the local decision rule. The panel assigns no automatic fifty-percent probabilities because no probability law was declared.
기초Foundations
17. 행동 이름을 실행 규칙과 연결한다17. Connect an action name to its execution rule
왼쪽, 오른쪽, 청소, 대기, 정지라는 다섯 이름만으로는 장치가 무엇을 하는지 충분하지 않습니다. A에서 왼쪽으로 가면 그대로 있는지 오류가 나는지, 깨끗한 방을 청소해도 배터리를 쓰는지 정해야 합니다. 같은 행동 이름에도 다른 환경 규칙이 있을 수 있습니다.
이 장에서 선언한 다섯 행동의 전이
행동
위치·먼지 변화
배터리 사용
left
위치를 A로
1
right
위치를 B로
1
clean
현재 방의 먼지를 거짓으로
1
wait
그대로
0
stop
정지 표지를 참으로
0
모든 실행은 시간을 1 늘립니다. 이동과 청소의 배터리가 없으면 그 행동은 거절됩니다. 행동을 거절한 것은 실행 뒤 배터리를 음수로 만든 전이가 아닙니다. 실제 로봇을 관측한 결과가 아니라 우리가 분석할 수 있도록 먼저 정한 계약입니다.
Five names—left, right, clean, wait and stop—do not fully specify what a device does. Does left at A remain in place or fail? Does cleaning an already clean room use battery? The same action vocabulary can support different environments.
The five declared transitions in this chapter
Action
Position or dirt change
Energy used
left
Set position A
1
right
Set position B
1
clean
Set current dirt false
1
wait
Unchanged
0
stop
Set stopped true
0
Every executed action increases time by one. Movement or cleaning without the required energy is rejected. Rejection is not a transition that first executes and leaves negative battery. These rules define our teaching environment; they are not measured robot behavior.
기초Foundations
18. 현재 상태와 행동으로 다음 상태를 쓴다18. Write a successor from a state and an action
A가 더럽고 B도 더러우며 에너지 3·시간 0·미정지인 상태에서 clean을 실행합시다. 위치는 A, 먼지는 거짓·참, 에너지는 2, 시간은 1이 됩니다. 이 여섯 값을 함께 적어야 다음 결정을 재현할 수 있습니다. 청소라는 이름만 기록하면 시작 위치와 남은 에너지를 잃습니다.
st+1=T(st,at)
T는 허용된 상태·행동 쌍에서 다음 상태를 하나 정하는 함수입니다. 이 장에서는 같은 입력을 다시 넣으면 같은 출력을 얻습니다. 실제 장치에 실패 확률이나 외부 방해가 있다면 T 대신 확률 법칙이나 외부 입력이 필요할 수 있습니다. 여기서는 그 다음 모형을 앞당겨 가정하지 않습니다.
Execute clean at A with both rooms dirty, energy three, time zero and not stopped. The successor has position A, dirt false and true, energy two and time one. Recording all six fields lets us reproduce the next decision. Logging only the action name loses the starting location and remaining battery.
st+1=T(st,at)
T assigns one successor to each admissible state–action pair. In this chapter the same input produces the same output. Physical failures or disturbances might require probabilities or additional external inputs. Our present deterministic contract supplies neither.
기초Foundations
19. 행동 후보와 지금 허용되는 행동19. Action names and currently admissible actions
에너지 0에서도 clean이라는 단어는 존재하지만 실행할 수는 없습니다. 아직 정지하지 않았고 시간이 64보다 작으면 wait와 stop은 가능합니다. 이미 정지했거나 시간이 64이면 새 행동은 없습니다. 반대로 목표를 달성했다는 이유만으로 모든 행동이 사라지지는 않습니다.
자원과 종료 표지가 정하는 허용 집합
상태 조건
허용 행동
미정지·시간<64·에너지>0
left, right, clean, wait, stop
미정지·시간<64·에너지=0
wait, stop
정지 또는 시간=64
없음
허용 집합을 A(s)라고 쓰면 전이 함수의 입력은 a∈A(s)를 만족해야 합니다. 상태 검증과 행동 검증은 따로 필요합니다. 올바른 상태라도 지금 불가능한 행동을 요구할 수 있기 때문입니다.
At energy zero the word clean still exists, but the action is unavailable. Before stopping and before time 64, wait and stop remain available. A stopped state or time 64 allows no new action. Reaching the goal alone does not remove actions.
Resources and the stopping flag determine admissibility
State condition
Admissible actions
Not stopped, time<64, energy>0
left, right, clean, wait, stop
Not stopped, time<64, energy=0
wait, stop
Stopped or time=64
None
Writing A(s) for this set, a transition requires a∈A(s). State validation and action validation are separate: a valid state can still be paired with an unavailable action.
기초Foundations
20. 겉으로 그대로여도 자원이 달라진다20. A visible nonchange can still consume resources
A에서 left를 실행하면 위치가 A로 유지됩니다. 그러나 에너지 2는 1로, 시간 0은 1로 바뀝니다. 이미 깨끗한 A에서 clean도 먼지 표지는 그대로지만 같은 자원을 씁니다. 위치·먼지만 비교하여 두 전이가 완전히 같다고 해서는 안 됩니다.
반면 wait는 에너지를 쓰지 않고 시간만 1 늘립니다. clean과 wait를 같은 무동작으로 묶으면 이후 청소를 할 수 있는지가 달라지는 사실을 지워 버립니다. 상태의 일부 열을 감추는 것과 그 열이 실제로 변하지 않는다는 주장은 다릅니다.
Executing left at A keeps the same position, but energy two becomes one and time zero becomes one. Cleaning an already clean A also preserves its dirt flag while using energy. Comparing position and dirt alone would miss these transitions.
Wait instead uses no energy and advances time by one. Treating clean and wait as the same nonaction erases a difference that can determine whether later cleaning is possible. Hiding a state field does not establish that it stayed unchanged.
기초Foundations
21. 배터리 한 칸과 비용 한 단위를 구별한다21. Distinguish an energy unit from a cost unit
기본 비용은 이동 1, 청소 1, 대기 0, 정지 0입니다. 처음 장면의 clean→right→clean은 에너지 3과 비용 3을 사용합니다. 두 수가 우연히 같지만 뜻은 다릅니다. 비용을 청소 2·이동 1로 바꾸면 같은 경로의 에너지는 여전히 3이고 비용은 5입니다.
C(a0,…,aH−1)=t=0∑H−1c(at)
여기서 H는 실제 실행한 행동 수이며 모든 행동 비용은 비음수 유리수로 선언합니다. 실습에서 비용을 바꾸어도 먼지 제거와 배터리 전이 규칙은 바뀌지 않습니다. 비용은 시간, 돈, 소모를 합친 실제 측정값이라고 해석하지 말고 선택한 평가 단위와 함께 보고합니다.
Default costs are one for movement or cleaning and zero for waiting or stopping. The opening clean→right→clean uses three energy units and costs three. These equal numbers have different meanings. Changing cleaning cost to two and movement cost to one leaves energy use at three while cost becomes five.
C(a0,…,aH−1)=t=0∑H−1c(at)
Here H is the number of actions actually executed; all action costs are declared nonnegative rationals. Changing cost does not change cleaning or battery transitions. Report the chosen evaluation unit rather than treating these numbers as measured money, time and wear combined.
기초Foundations
22. 도착·정지·평가 종료는 다른 사건이다22. Arrival, stopping and evaluation ending are different
마지막 clean 직후 두 방이 깨끗해졌어도 stopped는 거짓입니다. 이어 stop을 실행하면 시간은 한 번 더 늘고 정지 표지가 참이 됩니다. 반대로 더러운 방에서 stop을 눌러도 정지는 성공하지만 청소 목표는 실패합니다. 정지 버튼이 목표 검사 자체를 대신하지 않습니다.
평가를 세 행동까지만 보겠다고 정한 H=3에서도 실행은 끝날 수 있습니다. 이는 장치가 정지 행동을 했다는 뜻이 아니라 관찰하는 사람이 유한한 구간을 잘랐다는 뜻입니다. 보고서에는 목표 여부, stopped, 실제 행동 수, 평가 종료 사유를 함께 적습니다.
Immediately after the final clean, both rooms can be clean while stopped is false. A subsequent stop advances time once more and sets the flag. Conversely, stopping in a dirty world terminates operation without meeting the cleaning goal. The stop button does not replace the goal test.
An evaluation limited to H=3 can also end after three actions. That is an evaluator’s finite cutoff, not proof that the agent chose stop. Report goal status, the stopped flag, action count and the reason evaluation ended together.
기초Foundations
23. 문제를 다섯 요소로 다시 조립한다23. Assemble a problem from five components
상태 표현을 먼저 정한 뒤, 문제의 다섯 요소인 시작 상태·허용 행동·전이·목표 검사·경로 비용을 문장으로 적습니다. 예를 들어 시작은 A·두 방 더러움·에너지 3, 목표는 두 방 깨끗함, 허용 행동은 자원에 따라 위 표처럼 정합니다. 경로는 연속한 전이가 모두 허용되어야 합니다.
clean→right→clean은 이 시작점의 한 해입니다. right→clean→left→clean은 배터리 네 칸을 요구하므로 에너지 3 계약에서는 해가 아닙니다. 처음부터 에너지 4인 다른 문제라면 허용될 수 있습니다. 문제 표현을 고정하기 전에 두 경로의 좋고 나쁨을 비교하면 서로 다른 질문을 섞게 됩니다.
다음 장은 이런 표현을 받아 해를 찾는 탐색을 다룹니다. 여기서는 한 해의 유효성과 평가를 확인하며 특정 탐색법의 최단성이나 최적성을 증명했다고 주장하지 않습니다.
After fixing a state representation, specify five problem components: the initial condition, admissible actions, transition, goal test and path cost. For example, start at A with both rooms dirty and energy three; require both rooms clean and use the resource-dependent action table. Every transition in a candidate path must be admissible.
Clean→right→clean is one solution from that start. Right→clean→left→clean requires four energy units, so it is unavailable under energy three. It may be feasible in a different problem starting with four. Fix the problem before comparing paths.
The next chapter studies search for solutions in such representations. Here we verify and evaluate a candidate; we have not established a search algorithm’s shortest-path or optimality guarantee.
기초Foundations
24. 실습 C · 한 행동의 여섯 필드를 대조한다24. Lab C · Compare six fields across one action
시작 상태와 행동을 골라 전후 표를 비교하세요. A에서 left, 깨끗한 방에서 clean, 에너지 0에서 clean을 차례로 넣어 보세요. 앞의 둘은 허용되어 자원만 달라질 수 있고 마지막은 거절되어 새 상태를 만들지 않습니다.
청소 비용만 2로 바꿔도 에너지는 여전히 한 칸 줄어듭니다. 숫자 0이 된 비용과 정의되지 않은 실행을 같은 표지로 표시하지 않습니다. 모든 출력은 브라우저의 선언된 모형 계산이며 실제 로봇 명령을 보내지 않습니다.
Choose a start and action, then compare the before and after fields. Try left at A, clean in a clean room and clean at zero energy. The first two can be admissible resource changes; the last is rejected without a successor.
Changing cleaning cost to two still uses one energy unit. A zero cost differs from an unavailable execution. These outputs calculate the declared model in the browser; they do not send commands to a physical robot.
기초Foundations
25. 미리 적은 행동열은 무엇을 보지 않을까?25. What does a fixed action sequence ignore?
종이에 clean→right→clean을 적고 순서대로만 실행합시다. A에서 시작하면 두 방을 청소하는 앞 장면이 됩니다. 그러나 B에서 시작하면 첫 청소는 B이고 right도 B에 머물러 마지막 청소 역시 B입니다. A가 더러웠다면 같은 행동열은 목표를 달성하지 못합니다.
이런 규칙은 중간 센서값을 읽어 다음 행동을 바꾸지 않습니다. 실행 전 알려진 시작 상태에 맞는 계획으로는 쓸 수 있지만, 다른 시작점을 넣어도 같은 성과가 나오는 정책은 아닙니다. 각 전이의 허용성과 목표 여부를 새 입력에서 다시 확인해야 합니다.
Write clean→right→clean on paper and execute it in order. Starting at A gives our opening path. Starting at B cleans B first; right stays at B, and the final clean also addresses B. If A was dirty, the same sequence fails the goal.
This rule does not change its next action using intermediate sensor readings. It can describe a plan for a known start without being a successful policy at every other start. Recheck admissibility and the goal for the actual input.
기초Foundations
26. 관측을 받은 뒤 다음 행동을 고른다26. Select the next action after observing
반사 규칙은 지금 방이 더러우면 clean, 깨끗하면 다른 방으로 이동합니다. 위치가 A이면 right, B이면 left를 고릅니다. 에너지가 0이면 stop을 고릅니다. 같은 규칙을 여러 번 호출하되 매번 새 관측을 넣으므로 고정 행동열과 다릅니다.
두 방이 처음부터 깨끗하고 에너지가 3이면 이 규칙은 이동을 세 번 한 뒤 정지합니다. 목표는 이미 참이었지만 현재 방 하나만 보고 양쪽이 깨끗하다고 결론내리는 규칙이 없기 때문입니다. 피드백을 쓴다는 사실 자체가 에너지 효율이나 최적성을 보장하지는 않습니다.
The reflex rule cleans if the current room is dirty and otherwise moves to the other room: right at A and left at B. It stops at zero energy. The same rule is called repeatedly with fresh observations, unlike a fixed action list.
With both rooms initially clean and energy three, it moves three times and then stops. The goal was already true, but this local rule cannot infer that both rooms are clean. Feedback alone does not guarantee energy efficiency or optimality.
기초Foundations
27. 기억 규칙의 갱신 순서를 추적한다27. Trace the order of memory updates
기억 규칙도 매 결정 때 국소 관측을 받습니다. 먼저 현재 방의 기억을 센서값으로 갱신합니다. 두 방이 모두 깨끗하다고 확인되면 stop, 그렇지 않고 에너지가 0이면 stop, 현재 방이 더러우면 clean, 나머지는 다른 방으로 이동합니다. 성공한 clean의 알려진 결과도 기억에 반영합니다.
처음 A가 더럽고 B가 깨끗하면 clean→right→stop입니다. 에너지는 2, 행동은 3번을 씁니다. 같은 시작점에서 반사 규칙은 clean→right→left→stop으로 에너지 3을 씁니다. 기억 규칙의 개선은 새 먼지가 생기지 않는 전이 가정과 두 확인값의 저장을 함께 사용합니다.
The memory rule also receives a local observation at each decision. First update the stored value for the current room. Stop if both are confirmed clean; otherwise stop at zero energy, clean a dirty current room, or move to the other room. Successful clean also updates the corresponding memory.
Starting with dirty A and clean B gives clean→right→stop: two energy units and three actions. The reflex rule instead gives clean→right→left→stop, using three energy units. The improvement uses both stored confirmations and the model’s no-new-dirt assumption.
기초Foundations
28. 처음부터 두 방을 보는 규칙28. A rule that sees both rooms from the outset
전체 관측 규칙은 두 방이 깨끗하면 바로 stop을 고릅니다. 그렇지 않으면 에너지 0에서 정지하고, 지금 방이 더러우면 청소하며, 깨끗하면 다른 방으로 갑니다. 처음 둘 다 깨끗하면 한 번의 stop으로 끝나 비용은 0입니다. 기억 규칙은 처음에는 다른 방을 모르므로 이동 한 번으로 확인합니다.
전체 관측 규칙과 기억 규칙을 비교할 때는 정보의 차이를 함께 적습니다. 같은 국소 센서에 더 좋은 코드만 넣었다는 실험이 아닙니다. 센서를 설치하거나 통신하는 비용도 평가하려면 그 비용을 새 계약에 넣어야 합니다. 현재 비용은 행동 실행에만 부과됩니다.
The full-observation rule stops immediately when both rooms are clean. Otherwise it stops at zero energy, cleans a dirty current room or moves to the other room. If both start clean, one stop ends the run at zero cost. The memory rule initially lacks the remote reading and spends one move checking it.
Report this information difference when comparing the rules. It is not an experiment that changes only code behind the same local sensor. Installing or communicating sensor information would need an additional cost contract; current costs apply only to executed actions.
기초Foundations
29. 결과 한 줄보다 경로 표가 알려 주는 것29. What a trace shows beyond one final number
두 방이 더러운 시작에서 기억 규칙의 실행 기록
시각
행동 전 위치
현재 먼지
행동
행동 뒤 에너지
0
A
더러움
clean
2
1
A
깨끗함
right
1
2
B
더러움
clean
0
3
B
깨끗함
stop
0
처음 에너지는 3이며 각 행의 먼지는 그 결정 때 받은 국소 관측입니다. 앞에서 전체 상태를 설정한 사람은 B를 알지만 첫 행의 에이전트 관측에는 B의 먼지가 없습니다. 기록에는 행동 전 상태, 실제 관측, 선택 행동, 다음 상태를 함께 남깁니다.
최종 비용이 같아도 행동 순서나 종료 사유는 다를 수 있습니다. 한 숫자로 합치기 전에 네 열을 대조하면 불가능한 이동, 감춘 정보 사용, 에너지 중복 차감 같은 실수를 찾기 쉽습니다.
Memory-rule trace from a both-dirty start
Time
Position before
Local dirt
Action
Energy after
0
A
Dirty
clean
2
1
A
Clean
right
1
2
B
Dirty
clean
0
3
B
Clean
stop
0
Initial energy is three; dirt entries are the local observation received at each decision. A person configuring the simulator knows B, but B’s dirt is absent from the agent’s first observation. Preserve the before-state, actual observation, chosen action and successor together.
Equal final costs can hide different action orders or termination reasons. Comparing these fields helps detect unavailable movements, use of hidden information or double energy deductions before aggregating a run to one score.
기초Foundations
30. 몇 번까지만 실행했는지 밝힌다30. State how many decisions evaluation allows
평가 길이 H=2에서 앞 경로는 clean→right까지만 실행합니다. B가 아직 더러워 목표는 거짓입니다. H=3이면 마지막 clean까지 실행해 목표는 참이지만 stopped는 거짓입니다. H=4이면 stop까지 기록합니다. 규칙은 같아도 평가 길이에 따라 목표·행동 수·정지 표지가 달라집니다.
H=0은 행동을 실행하지 않고 초기 상태를 평가합니다. 실습은 시작 시간과 H의 합을 64 이하로 제한합니다. 이는 계산 범위의 계약이며 실제 로봇이 64초 후 반드시 멈춘다는 관측이 아닙니다. 한 시간 단위를 실제 초로 대응시키지도 않았습니다.
At evaluation horizon H=2, the previous path executes clean→right only. B remains dirty, so the goal is false. At H=3 the final clean makes the goal true while stopped remains false. H=4 includes stop. The same rule can produce different goal status, counts and flags under different evaluation horizons.
H=0 executes nothing and evaluates the initial state. The lab requires initial time plus H to be at most 64. This bounds the calculation; it is not an observation that a robot physically stops after 64 seconds. No model time unit has been identified with a real second.
기초Foundations
31. 행동열 소진과 정지 명령을 구분한다31. Distinguish sequence exhaustion from a stop command
행동열이 clean 하나뿐이고 H=4라면 한 행동 뒤 목록이 소진되어 평가를 끝냅니다. stopped는 여전히 거짓입니다. clean→stop이면 두 번째 행동이 정지 표지를 참으로 바꿉니다. 목록 길이가 정확히 H와 같아 마지막에 stop이 없다면 종료 사유는 평가 길이 도달입니다.
실행기는 이미 정지한 시작 상태, 실행한 stop, 행동열 소진, 평가 길이 도달을 구별합니다. 목표는 이 이유와 별도로 검사합니다. 거절된 행동은 정상 경로의 한 단계로 채우지 않고 오류로 돌려줍니다. 빈 경로도 목표를 만족하는 시작점에서는 성공일 수 있습니다.
A sequence containing only clean with H=4 ends after one action because the list is exhausted; stopped remains false. Clean→stop sets the flag on its second action. If a list exactly fills H without stop, the evaluation ends by reaching the horizon.
The runner distinguishes an initially stopped state, an executed stop, sequence exhaustion and the horizon. Goal status is checked separately. A rejected action produces an error rather than an invented normal step. An empty path can satisfy a goal that already holds initially.
기초Foundations
32. 실습 D · 규칙을 고정하고 경로를 비교한다32. Lab D · Fix a rule and compare its traces
두 방 더러움·A·에너지 3에서 네 규칙을 비교한 뒤 시작 위치만 B로 바꾸세요. 고정 행동열과 관측 규칙이 무엇에 반응하는지 경로에서 읽습니다. 비용·정보·평가 길이를 동시에 바꾸면 원인을 분리하기 어려우므로 한 항목씩 바꾸세요.
H를 0·2·3·4로 바꾸고 목표와 stopped를 함께 확인하세요. 각 규칙이 받은 관측과 기억 상태도 읽습니다. 표시된 전체 상태를 반사 규칙이 전부 입력으로 받았다고 해석하지 않습니다.
Compare four rules from both-dirty, A, energy three, then change only the start position to B. Read which inputs affect a fixed sequence versus an observation-based rule. Change one of cost, information or horizon at a time to make the comparison interpretable.
Try H=0, 2, 3 and 4 while checking both the goal and stopped. Inspect the observations and memory actually used. Do not treat the full simulator state displayed to a reader as information received by the reflex rule.
기초Foundations
33. 한 경로에서 여덟 시작 세계로33. From one path to eight starting worlds
한 시작점의 성공만으로 규칙 전체를 평가하기는 어렵습니다. 위치 A·B와 두 먼지의 참·거짓을 조합하면 여덟 시작 구성이 됩니다. 평가 실습은 시간 0·미정지·같은 초기 에너지로 이 여덟 개를 모두 실행합니다. 기본값은 각 구성의 비중 1, 에너지 3, H=6입니다.
이 여덟 구성은 먼저 선언한 유한 시험 묶음입니다. 실제 가정집에서 각 구성이 같은 확률로 생긴다고 측정한 것이 아닙니다. 서로 다른 배터리·고장·새 먼지·사람의 이동도 포함하지 않습니다. 무엇을 바꾸지 않고 비교하는지 밝히면 작은 벤치마크도 정확한 질문에 답할 수 있습니다.
Success at one start does not evaluate an entire rule. Combining two positions with two dirt flags gives eight starts. The evaluation lab runs all eight at time zero, not stopped and the same initial energy. Defaults use weight one per start, energy three and H=6.
This is a declared finite benchmark, not a measurement that household configurations occur equally often. Different batteries, failures, new dirt and people moving around are absent. Explicitly stating what is held fixed lets a small benchmark answer a precise question.
기초Foundations
34. 네 가지 먼지 경우의 비용을 먼저 계산한다34. First calculate costs for four dirt cases
기본 에너지 3·H=6·이동/청소 비용 1·대기/정지 비용 0
현재 방·다른 방
반사 비용
기억 비용
전체 관측 비용
깨끗·깨끗
3
1
0
더러움·깨끗
3
2
1
깨끗·더러움
3
2
2
더러움·더러움
3
3
3
각 행은 시작 위치 두 가지에서 대칭으로 반복됩니다. 모든 규칙은 이 조건에서 두 방을 깨끗하게 합니다. 반사는 에너지를 다 쓸 때까지 이동하므로 각 비용이 3입니다. 기억은 확인을 위해 다른 방에 가며, 전체 관측은 이미 깨끗한 방을 확인하러 이동하지 않아도 됩니다.
여덟 세계를 균등하게 평균하면 반사 비용은 3, 기억은 (1+2+2+3)/4=2, 전체 관측은 (0+1+2+3)/4=3/2입니다. 정보가 다른 규칙의 결과라는 점을 표 제목과 함께 읽습니다. 이 세 규칙 밖의 모든 정책을 비교한 최소비용 증명은 아닙니다.
Energy 3, H=6, move/clean cost 1 and wait/stop cost 0
Current / other dirt
Reflex cost
Memory cost
Full-observation cost
Clean / clean
3
1
0
Dirty / clean
3
2
1
Clean / dirty
3
2
2
Dirty / dirty
3
3
3
Each row occurs symmetrically at two starting positions. All three rules clean both rooms under these conditions. Reflex uses its energy before stopping, giving cost three throughout. Memory visits the other room to confirm it; full observation can avoid that confirmation trip.
Uniform averages over eight worlds are three for reflex, (1+2+2+3)/4=2 for memory and (0+1+2+3)/4=3/2 for full observation. These rules have different information. This comparison is not a minimum-cost proof over every conceivable policy.
기초Foundations
35. 달성 비율의 분자와 분모를 쓴다35. Write the numerator and denominator of goal fraction
세계 i의 목표가 참이면 Iᵢ=1, 거짓이면 0이라고 둡니다. 비중 wᵢ가 모두 비음수이고 합이 양수일 때 가중 달성 비율은 성공한 세계의 비중 합을 전체 비중 합으로 나눈 값입니다. 기본 평가에서는 여덟 세계가 모두 성공하여 8/8=1입니다.
G=∑iwi∑iwiIi
H=0이면 행동을 하지 않습니다. 균등한 여덟 시작점에서 두 방이 처음부터 깨끗한 구성은 위치별 한 개씩 두 개이므로 비율은 2/8=1/4입니다. 이 값은 실제 청소 성공률의 추정치가 아니라 이 선언된 시작 법칙의 정확한 비율입니다.
Set Iᵢ=1 if world i meets the goal and zero otherwise. For nonnegative weights with positive total, weighted goal fraction divides successful weight by total weight. In the default benchmark all eight worlds succeed, giving 8/8=1.
G=∑iwi∑iwiIi
At H=0 no actions occur. Only the initially both-clean configuration succeeds, once for each position: 2/8=1/4 under uniform weights. This is an exact fraction for the declared start law, not an estimated household cleaning reliability.
기초Foundations
36. 비중을 바꾸면 어떤 평균이 바뀔까?36. What changes when benchmark weights change?
같은 여덟 결과라도 비중을 다르게 주면 평균 비용과 달성 비율이 달라질 수 있습니다. H=0에서 깨끗한 두 세계에 각각 비중 3, 나머지 여섯에 각각 1을 주면 성공 비중은 6이고 전체는 12여서 1/2입니다. 이전 균등 비율 1/4과 계산 법칙이 다릅니다.
비중 0인 세계도 표에서 지우지 않습니다. 다만 그 법칙의 가중 평균에는 기여하지 않습니다. 여덟 비중이 모두 0이면 평균을 정의할 분모가 없어 입력을 거절합니다. 확률로 쓰려면 비중을 합으로 나누어 정규화하며, 원 비중의 합이 꼭 1일 필요는 없습니다.
Different weights on the same eight outputs can change mean cost and goal fraction. At H=0, give each of the two both-clean worlds weight three and each of the other six weight one. Successful weight is six out of twelve, giving one half instead of the uniform one quarter.
Keep zero-weight worlds in the table even though they contribute nothing to this weighted mean. Eight zero weights are rejected because no denominator exists. Normalize by their sum to obtain probabilities; raw weights need not sum to one.
기초Foundations
37. 평균에 분수가 나와도 행동을 쪼갠 것은 아니다37. A fractional mean does not split an action
각 실행의 행동 수는 정수입니다. 전체 관측 규칙의 네 대칭 경우는 stop까지 포함하여 1·2·3·4번입니다. 평균 (1+2+3+4)/4=5/2는 한 세계에서 행동 2.5번을 했다는 뜻이 아니라 여러 시작점의 평균입니다.
같은 조건에서 기억 규칙은 평균 3번, 반사는 4번입니다. 정지는 에너지를 쓰지 않아도 행동 수와 시간을 하나 늘립니다. 따라서 평균 에너지와 평균 행동 수를 같은 지표로 바꾸어 부르면 안 됩니다. 실제 시간 단위를 원한다면 각 행동의 소요 시간부터 측정하는 다른 계약이 필요합니다.
Every individual run has an integer action count. The four symmetric full-observation cases use one, two, three and four actions including stop. Their mean is 5/2, not a claim that one world executed half an action.
Under the same conditions memory averages three actions and reflex four. Stop uses no energy but adds one action and one time unit. Thus mean energy and mean action count are different metrics. Physical duration would require a separate contract with measured action times.
기초Foundations
38. 점수의 보상과 비용을 따로 읽는다38. Read reward and cost separately in a score
이 장의 점수는 마지막에 깨끗한 방 수에 방당 보상 r을 곱하고 총비용을 뺀 값입니다. 기본 r=2에서 두 방이 깨끗하면 보상은 4입니다. 앞 균등 평가의 평균 점수는 반사 4−3=1, 기억 4−2=2, 전체 관측 4−3/2=5/2입니다.
S=rNclean,final−C
이 보상은 처음부터 깨끗했던 방도 포함합니다. 새로 청소한 방 수와 같은 숫자가 아닙니다. 기본 여덟 세계에서 처음의 깨끗한 방 수는 평균 1이고 최종은 2라 새로 청소한 수는 평균 1입니다. 점수의 정의를 바꾸면 비교도 다시 해야 합니다.
Our score multiplies final clean-room count by reward r and subtracts total cost. At default r=2, two clean rooms receive reward four. Uniform mean scores are 4−3=1 for reflex, 4−2=2 for memory and 4−3/2=5/2 for full observation.
S=rNclean,final−C
This reward includes rooms already clean initially. It is not the number newly cleaned. In the eight-world benchmark the initial clean count averages one and the final count two, so newly cleaned rooms average one. Redefining reward requires a new comparison.
기초Foundations
39. 높은 점수가 항상 목표 달성은 아니다39. A higher score need not meet the goal
A는 더럽고 B는 깨끗하며 A에서 시작한다고 합시다. 청소 비용 1·정지 비용 0, 보상 r=0이면 stop의 점수는 0이며 목표는 실패입니다. clean→stop은 목표를 달성하지만 점수는 −1입니다. 점수를 크게 만드는 것과 두 방 청소라는 조건은 여기서 같은 목적이 아닙니다.
평가기는 점수만 숨겨서 보여 주지 않고 목표 비율·비용·에너지·행동 수를 함께 보고합니다. 어떤 수를 최적화할지 정하는 것은 모델 설계의 일부입니다. 기본 비용에서 표시된 최고 점수도 지금 비교한 유한 규칙 목록의 결과이지 실제 사회적 가치나 모든 가능한 정책의 최적성을 뜻하지 않습니다.
Start at dirty A with clean B. With cleaning cost one, stopping cost zero and reward r=0, immediate stop scores zero but fails the goal. Clean→stop succeeds yet scores minus one. Maximizing this score and requiring both rooms clean are different objectives.
The evaluator reports goal fraction, costs, energy and action counts alongside score. Choosing which metric to optimize is part of model design. Even the highest displayed default score concerns the finite rules compared, not social value or optimality among every possible policy.
기초Foundations
40. 실습 E · 여덟 세계의 지표를 재계산한다40. Lab E · Recalculate metrics across eight worlds
먼저 기본값에서 여덟 원실행의 목표가 모두 참인지, 평균 비용이 3·2·3/2인지 표로 확인하세요. H=0으로 바꾸면 균등 달성 비율은 1/4입니다. 비중을 바꾸어 분자와 분모가 함께 달라지는지도 직접 더해 보세요.
점수와 목표 비율의 가장 좋은 규칙 목록은 동점도 모두 남깁니다. 비중 0인 세계의 경로와 원행은 유지하고 평균에서만 제외합니다. 이 그래프는 브라우저의 JavaScript 모형 계산이며 실제 Python·R 실행 기록과 구별합니다.
At defaults, inspect all eight runs: every goal should hold and mean costs should be three, two and three halves. H=0 gives uniform goal fraction one quarter. Change weights and hand-sum the successful numerator and total denominator.
Lists of best score and goal fraction retain all ties. Zero-weight worlds keep their traces and original positions while contributing nothing to weighted means. These charts use browser JavaScript model calculations, distinct from recorded Python/R executions.
기초Foundations
41. 어떤 상태 열을 지워도 될까?41. Which state fields can be discarded?
위치가 A인 두 상태를 합쳐도 될지 생각합시다. B의 먼지가 다르면 목표가 달라질 수 있고, 에너지가 다르면 허용 행동이 달라질 수 있습니다. 위치가 같다는 이유만으로 모든 후속 결정을 같은 문제로 만들 수는 없습니다. 줄인 표현이 어떤 질문을 보존하는지 확인해야 합니다.
상태를 줄이는 함수 φ를 정하고 같은 φ값의 두 상태를 비교합시다. 목표 판정과 허용 행동 집합이 같고, 같은 허용 행동의 비용이 같으며 다음 상태의 φ값도 같다고 가정합니다. 그러면 길이 0의 경로에서 목표가 일치하고, 같은 행동을 한 번 붙여도 이 네 성질이 유지됩니다. 경로 길이에 대한 귀납법으로 유한 행동열의 허용성·누적비용·끝 목표를 줄인 상태에서 보존할 수 있습니다.
이는 환경 경로를 보존하는 충분조건입니다. 에이전트의 관측·기억까지 같다는 뜻은 아니므로 정책을 비교하려면 그 입력 표현도 맞춰야 합니다. 단지 표의 열 수가 줄었다는 사실만으로 이 조건이 성립하지는 않습니다.
Can two states at position A be merged? Different B dirt can change the goal; different energy can change admissible actions. Sharing a location does not make every subsequent decision the same problem. Check which questions a smaller representation preserves.
Let φ map full states to reduced states. Assume states with the same φ have equal goal tests and action sets, equal costs for the same admissible action, and equal successor φ values. The zero-length paths then agree on the goal. Adding the same action preserves these properties, so induction preserves admissibility, cumulative cost and terminal goal for every finite action sequence.
These are sufficient conditions for preserving environment paths. They do not establish equal agent observations or memories, which must also be addressed for policy comparisons. Merely deleting columns does not establish the conditions.
기초Foundations
42. 더 많은 정보가 늘리는 것은 최선값의 선택지다42. More information enlarges the choices for a best value
유한한 세계·행동 집합에서 한 번의 결정을 생각합시다. 두 관측 O₁,O₂가 있고 O₁=h(O₂)라면 O₂로부터 O₁을 재현할 수 있습니다. 세계의 비중은 비음수이고 총합은 양수이며, 두 정보 체계에서 같은 비중과 유한 실수 성과 g(s,a)를 사용하고, 같은 O₁ 묶음에서 허용 행동 집합이 같고 비어 있지 않으며, 정보 획득의 추가 비용과 다른 제약은 없다고 가정합니다.
O₁만 쓰는 임의의 규칙 π₁에 대해 π₂(o₂)=π₁(h(o₂))라고 정하면 모든 세계에서 같은 행동과 같은 성과를 만듭니다. 따라서 O₂를 쓰는 모든 규칙 중 최고 평균 성과는 O₁만 쓰는 최고값보다 작을 수 없습니다. 유한 집합이므로 여기서는 최고값이 실제로 존재합니다.
V(O2)≥V(O1)
이 결론은 최선값의 비교입니다. 정보를 더 받은 특정 코드가 반드시 좋아진다는 말이 아닙니다. 센서 비용이 추가되거나 서로 다른 기준을 쓰면 전제부터 달라집니다. 앞의 세 청소 규칙 비교를 이 정리의 모든 정책 최적화로 대신하지 않습니다.
Consider one decision with finite worlds and actions. Suppose observations satisfy O₁=h(O₂), so O₂ can reproduce O₁. Use nonnegative weights with positive total, and hold these weights and finite real payoffs g(s, a) fixed across the two information regimes. Assume a common nonempty admissible action set within each O₁ class, no extra information cost and no other changed constraints.
For any coarse rule π₁, define π₂(o₂)=π₁(h(o₂)). It takes the same action and receives the same payoff in every world. Therefore the largest mean payoff over all O₂ rules cannot be below the best O₁ value. Finite sets ensure the maxima are attained here.
V(O2)≥V(O1)
This compares best values, not arbitrary implemented code. Sensor costs or changed criteria alter the premises. Our three cleaning-rule comparison is not a substitute for optimizing over every policy in this theorem.
기초Foundations
43. 실제 국가 기록에서 읽은 필드만 답한다43. Answer from fields inspected in actual country records
국가 과제는 보관한 World Bank 2024년 16개 국가행에서 GDP·출생 시 기대수명·ILO 모형 실업률을 읽습니다. GDP의 단위는 1인당 2015년 불변 USD, 기대수명은 년, 실업률은 노동력 대비 %입니다. 같은 국가·연도라도 세 지표는 서로 다른 값과 단위를 가집니다.
GDP만 답하는 과제라면 GDP 필드를 확인해야 합니다. 세 지표를 함께 보고하는 과제에서 GDP와 기대수명만 읽었다면 실업률은 아직 에이전트 관측에 없습니다. 학습용 읽기 비용을 필드당 1로 정하면 한 필드는 비용 1, 세 필드는 비용 3입니다. 비용은 실제 API 요금이나 조사 비용이 아닙니다.
기록 전체를 보관한 환경과 선택한 필드만 받은 에이전트를 나눕니다. 이 읽기 선택은 GDP를 변화시키는 정책 행동이 아닙니다. 실제 값은 고정하며, 그 정책의 효과나 미래 국가 상태의 전이를 이 관측자료로 확인했다고 만들지 않습니다.
The country task inspects retained World Bank 2024 GDP, period life expectancy at birth and ILO-modelled unemployment fields for 16 countries. GDP is constant-2015 USD per person; longevity is years; unemployment is a percentage of the labour force. The indicators retain distinct values and units even at the same country and year.
A GDP-only question requires inspecting GDP. A combined three-indicator question remains unanswered if only GDP and longevity have been inspected: unemployment is absent from the agent’s observation. At an assumed cost of one per inspected field, reading one costs one and reading three costs three. These are not measured API fees or survey costs.
Separate the environment holding the whole record from the agent receiving selected fields. Inspection does not change GDP and is not a national policy intervention. Recorded values remain fixed; their presence does not establish policy effects or transitions to future national states.
기초Foundations
44. 원행 1의 548센트를 읽고 환산한다44. Inspect and convert source row one’s 548 cents
개인 과제는 Card 원자료의 3,613행을 보존합니다. 원행 1의 개인 코드는 2이고 1976년 원 시간당 임금은 548센트입니다. rawCents 필드를 읽었다면 100으로 나누어 5.48 USD/시간이라고 답할 수 있습니다. 이 단위 환산은 새 임금을 관측하거나 현재 가격으로 환산한 것이 아닙니다.
원자료가 제공한 손질 로그임금 필드 trimmedLog를 묻는 별도 과제에는 그 필드를 읽어야 합니다. 원행 1의 값은 6.30627529입니다. 손질된 가용 범위는 원임금과 다르므로 원임금을 읽고 임의로 로그를 취해 같은 열이라고 대체하지 않습니다. 원임금은 3,017행, 지정 로그는 3,010행에서 가용합니다.
원임금 미관측 596행과 로그 미관측 603행도 남겨 둡니다. 필드를 확인했지만 값이 미관측인 경우와, 아직 그 필드를 읽지 않은 경우를 구별합니다. 임금을 바꾸는 행동이나 교육 개입 효과는 이 자료 계약에 없습니다.
The person task retains all 3,613 original Card rows. Source row one has person code two and recorded 1976 hourly wage 548 cents. Inspecting rawCents permits division by 100 to report 5.48 USD/hour. This converts units; it neither observes a new wage nor adjusts to current prices.
A separate task asking for source-supplied trimmedLog requires that field. Its row-one value is 6.30627529. Trimming and availability differ from the raw wage, so recomputing a raw logarithm does not reproduce the specified source column. Raw wages are available on 3,017 rows and the selected logs on 3,010.
Retain 596 missing raw wages and 603 missing logs. An inspected but unavailable value differs from a field not yet inspected. The data contract supplies no wage-changing action or education-intervention effect.
기초Foundations
45. 불만 표지와 실제 연락 효과를 분리한다45. Separate a complaint flag from a contact effect
기업 과제는 공개 Iranian Churn의 3,150행에서 원 Complains·Status·Churn 코드를 보존합니다. Complains=1이면 검토 대상으로 표시하는 규칙을 비교할 수 있습니다. 여기서 표시는 나중에 기록된 이탈과 맞춰 보는 통계적 행동이며, 실제 고객에게 연락했다는 뜻이 아닙니다.
보관된 원행의 불만·이탈 네 칸
원 불만 표지
원 이탈 1
원 이탈 0
1
200
41
0
295
2,614
거짓 양성 벌점 1, 거짓 음성 벌점 4, 검토 표시 비용 0을 가정하면 불만 규칙의 합계는 41+4×295=1,221입니다. 아무도 표시하지 않으면 4×495=1,980, 모두 표시하면 2,655입니다. 이것은 같은 보관행의 가정 비용 비교이며 독립 시험이나 실제 회사 손해액이 아닙니다.
연락하면 이탈이 얼마나 줄어드는지, 연락 비용과 고객의 반응이 무엇인지는 별도 자료가 필요합니다. Complains와 Churn의 함께 나타남만으로 행동 뒤 전이를 채워 넣지 않습니다. 원행 위치는 재현 좌표이며 확인된 실명 고객 식별자도 아닙니다.
The company task retains original Complains, Status and Churn codes for all 3,150 public Iranian Churn rows. One rule flags records with Complains=1 for review. A flag is a statistical action compared retrospectively with recorded churn; it does not mean that a customer was contacted.
Four complaint–churn cells in the retained rows
Original complaint
Recorded churn 1
Recorded churn 0
1
200
41
0
295
2,614
With assumed false-positive cost one, false-negative cost four and review-flag cost zero, the complaint rule totals 41+4×295=1,221. Flagging nobody costs 4×495=1,980; flagging everybody costs 2,655. This compares assumed costs on the same retained records, without independent testing or measured company losses.
Contact effects, contact costs and customer responses require additional evidence. Co-occurring complaint and churn values do not supply an action-dependent transition. Source position is a reproducibility coordinate, not a verified named customer identity.
기초Foundations
46. 실습 F · 관측과 가정 행동을 맞춰 읽는다46. Lab F · Match observations with declared actions
국가에서는 답하려는 필드와 실제 확인한 필드를 바꾸고, 개인에서는 원센트 환산과 지정 로그 읽기를 구별하세요. 기업에서는 불만·Status=2·모두·아무도 없음의 네 검토 규칙과 선언한 벌점을 비교합니다. 원값은 어떤 선택에도 그대로 유지합니다.
다운로드용 Python·R 재현은 공개 선택 CSV를 읽고 같은 분모·환산·네 칸·가정 비용을 따로 계산합니다. 브라우저의 즉시 반응은 JavaScript입니다. 보관 실행 기록과 실제 새 로컬 실행을 같은 말로 표시하지 않고, 파일 해시·단위·명령·환경을 함께 제공합니다.
For countries, vary required and inspected fields. For people, distinguish raw-cent conversion from reading the selected source log. For company records, compare complaint, Status=2, everybody and nobody review rules under declared costs. None of these selections changes source values.
Downloadable Python/R reproductions read public selected CSVs and independently calculate the same denominators, conversion, four cells and assumed costs. Immediate browser response uses JavaScript. Distinguish archived execution records from a fresh local run and provide file hashes, units, commands and environments.
기초Foundations
47. 국가·개인·기업의 세 읽기 과제47. Three inspection tasks for countries, people and companies
국가 · 기록 전체와 에이전트가 읽은 정보
World Bank 보관본에서 2024년 16개 국가의 세 지표를 읽습니다. 예를 들어 호주 AUS의 한 국가행은 GDP·기대수명·실업률을 함께 연결할 수 있습니다. 이 과제에서 상태는 보관된 기록과 어떤 필드를 읽었는지이며 국가 경제의 모든 실제 상태를 뜻하지 않습니다. 시작부터 이 범위를 정하면 관측된 값과 행동의 효과를 섞지 않고 에이전트 문제를 만들 수 있습니다.
2024년 선택 국가행 · 보관된 실제 값의 필드 정의
필드
원 지표
단위
16행 가용 수
GDP
NY.GDP.PCAP.KD
1인당 2015년 불변 USD
16
기대수명
SP.DYN.LE00.IN
기간 기대수명·년
16
실업률
SL.UEM.TOTL.ZS
ILO 모형·노동력 대비 %
16
세 지표는 단위를 합쳐 하나의 성과로 만들지 않습니다. GDP가 1 늘고 기대수명이 1 늘었다고 같은 변화로 셀 수도 없습니다. 동일한 국가 코드와 연도로 연결했지만 원 API의 지표별 원위치를 따로 보존합니다. 2024는 관측 대상 연도이고 2026년 10월 20일은 공통 원본을 보관한 날짜입니다. 이번 27일의 재추출이 그 시점의 실제 새 API 응답이라는 뜻은 아닙니다.
환경 표는 세 값을 모두 가지고 있지만 에이전트는 선택한 필드만 받습니다. GDP 질문에는 GDP가 필요하고, 세 지표 보고 질문에는 셋이 모두 필요합니다. 아래 비용 1은 읽은 필드 하나당 수업에서 붙인 값입니다. 실제 World Bank 접속 요금·연구 시간·국가 조사비를 관측한 것이 아닙니다.
필드당 비용 1인 가정 읽기 과제 · 원 지표는 고정
읽은 필드
GDP 답
세 지표 답
가정 읽기 비용
없음
미확인
미완성
0
GDP
가용
미완성
1
GDP·기대수명
가용
미완성
2
셋 모두
가용
완성
3
그림은 각 필드의 실제 가용 기록 수를 보여 줍니다. 셋 모두 16이라는 같은 높이가 세 지표 값이 같다는 뜻은 아닙니다. 미관측과 미열람도 구별합니다. 이 선택 표에서는 세 지표가 모두 가용하지만 읽지 않은 필드는 에이전트에게 아직 보이지 않습니다. 가용성을 확인하는 일과 값 자체를 아는 일은 서로 다릅니다.
생각한 뒤 풀이 · GDP만 읽으면 국가의 실업 상태도 알 수 있나요?
이 읽기 과제에서는 알 수 없습니다. 두 값을 연결하는 전이·추론 모형을 선언하지 않았으며 원기록의 실업률을 읽어야 합니다. 경제적 상관관계를 가정하지 않은 상태에서 GDP로 미확인 필드를 채우지 않습니다.
생각한 뒤 풀이 · 실업률 필드를 읽는 행동은 실업률을 낮추나요?
바뀌는 것은 에이전트의 정보 집합입니다. 국가의 실업률은 원값 그대로이며 고용정책의 효과나 미래 전이는 이 데이터 계약에 없습니다. 그런 질문에는 다른 행동·전이·자료 설계가 필요합니다.
개인 · 값을 읽는 일과 임금을 바꾸는 일
Card의 공개 원본 nls.dat에서 3,613개 원행을 보존했습니다. 이 과제는 1976년 시간당 원임금과 원본이 제공한 손질 로그임금 중 어느 필드를 읽어 어떤 질문에 답하는지 다룹니다. 원행 1의 개인 코드는 2입니다. 원행 위치는 파일 안 좌표이며 개인 코드와 같은 필드가 아닙니다. 같은 사람인지 판단할 때 다른 장의 점포 코드나 고객 행 번호를 대신 쓰지 않습니다.
실제 첫 원행의 세 토큰 · 두 임금 표현을 구별
원행 1의 필드
원 토큰
읽은 뒤 답하는 내용
개인 코드
2
원본의 개인 코드
원 시간당 임금
548
1976년 센트/시간
지정 손질 로그
6.30627529
원자료가 제공한 로그 필드
원임금을 읽고 달러/시간으로 답하는 과제라면 548를 100으로 나눕니다. 548/100=137/25=5.48 USD/시간입니다. 같은 기록의 단위 환산이므로 미래 임금을 예측하거나 물가를 조정한 것이 아닙니다. 반면 로그 과제는 지정한 원 열을 읽어 6.30627529라고 답합니다. 서로 다른 과제의 답을 같은 단위의 수치처럼 비교하지 않습니다.
로그 열을 원임금에 브라우저에서 로그를 취한 열로 대체하면 손질·가용성 범위가 달라집니다. 원임금은 3,017행 가용·596행 미관측, 지정 로그는 3,010행 가용·603행 미관측입니다. 원 점(.)은 선택 CSV의 빈칸과 모형 null로 옮기되, 미관측 상태를 유지하고 숫자 0과 구별합니다. 원임금이 있으나 지정 로그가 없는 원행도 있어 원행별 두 표지를 따로 둡니다.
읽은 필드와 요청한 답 · 비용은 측정한 임금이 아님
질문
필요한 읽기
필드당 가정 비용 1
미관측 값이면
달러/시간 환산
rawCents
1
답을 계산하지 않음
지정 원 로그
trimmedLog
1
원 미관측을 보존
두 값을 함께 보고
둘 다
2
각 결과의 가용성 구별
그림은 두 필드의 가용·미관측 개수를 모두 보여 줍니다. 세로축은 임금 액수가 아니라 원행 수입니다. 가용 개수의 차이 7은 원행별 표지를 대체하지 않습니다. 처음부터 총 3,613행을 유지하므로 없는 값을 읽지 못한 경우와, 있는 값을 아직 읽지 않은 경우를 구별할 수 있습니다.
생각한 뒤 풀이 · 원임금 548을 읽었으니 개인의 교육 행동 뒤 임금도 알 수 있나요?
원값은 1976년 기록입니다. 교육 선택이나 노동시간 변화의 전이·반사실 임금은 제공되지 않았습니다. 원 기록을 읽은 과제의 성공을 개인 정책의 성공으로 바꾸어 해석하지 않습니다.
생각한 뒤 풀이 · 로그가 없는 행의 답을 0으로 반환하면 편하지 않을까요?
그렇게 하면 미관측과 관측한 로그 0을 섞습니다. 답이 정의되는지 표시하고 원 점(.)을 빈칸으로 옮긴 규칙과 미관측 상태를 남겨야 합니다. 0비용의 읽기 행동도 미관측 값을 가용하게 만들지는 않습니다.
기업 · 검토 표지를 계산해도 개입 전이는 모른다
UCI Iranian Churn의 실제 3,150개 익명 원행을 사용합니다. 다운로드에는 원 14열을 모두 보존하지만 이 과제의 결정 규칙은 Complains 또는 Status 코드만 읽습니다. Churn은 나중에 기록된 정답으로 비교하며 규칙의 입력으로 전달하지 않습니다. 화면에 정답이 보인다고 에이전트도 그 정답을 미리 받은 것은 아닙니다.
공식 설명은 입력을 첫 9개월 집계, 목표를 12개월 끝 상태라고 설명합니다. 원행에는 달력상의 시작일과 예측 순간의 실제 도착 시각이 없으므로 운영 시점의 가용성까지 확인했다고 쓰지 않습니다. 2026년 다운로드 날짜는 고객의 관측 연도가 아닙니다. 원행 번호도 확인된 개인 식별자나 실제 발생 순서가 아닙니다.
행동은 검토 표지 0·1입니다. 불만 1인 행, Status 코드 2인 행, 모두, 아무도 없음을 선택하는 네 고정 규칙을 비교합니다. 이는 연락을 실행하거나 고객 이탈을 바꾸는 전이가 아닙니다. 상태는 원 기록과 표지이며 원 Churn은 행동을 바꾸어도 그대로 남습니다.
동일한 보관 3,150행의 원 정답 대조 · 독립 시험 아님
규칙
표시 행
TP
FP
FN
TN
불만 1
241
200
41
295
2614
상태 코드 2
782
370
412
125
2243
모두 표시
3150
495
2655
0
0
아무도 표시 안 함
0
0
0
495
2655
불만 규칙의 FP는 41, FN은 295입니다. 벌점 FP=1·FN=4, 별도 표시 비용 0이면 41+4×295=1,221이고 평균은 407/1,050입니다. Status 코드 2는 412+4×125=912입니다. 아래 두 비용 열은 같은 네 칸에 다른 기준을 적용한 값입니다.
맞힌 비용·표시 비용 0 · 합계는 가정 평가 단위
규칙
FP 1·FN 4
FP 4·FN 1
불만 1
1221
459
상태 코드 2
912
1773
모두 표시
2655
10620
아무도 표시 안 함
1980
495
첫 비용에서는 상태 코드 규칙이 네 후보 중 최소지만 둘째에서는 불만 규칙의 459가 최소입니다. 자료의 이탈값을 고쳐서 순위가 바뀐 것이 아닙니다. FN을 얼마나 크게 평가하느냐가 달라졌습니다. 표시마다 비용 1/10을 더하고 싶다면 불만 규칙은 241×1/10을 추가해 1,245.1이 됩니다. 이 선택도 실제 인건비라고 주장하지 않습니다.
그림은 네 규칙의 FP·FN 기록 수만 비교합니다. 비용의 단위와 기록 수를 같은 세로축에 섞지 않습니다. 작은 비용의 규칙이 접촉 후 고객을 더 많이 유지한다고 결론내리려면 접촉 자체와 반응을 관측한 추가 설계가 필요합니다. 비용 최솟값과 개입 효과는 다른 질문입니다.
생각한 뒤 풀이 · 원 Churn을 그대로 표지로 복사하면 더 좋은 에이전트인가요?
과거 정답을 미리 사용하면 오류를 0으로 만들 수 있지만 필요한 결정 시점의 정보 조건을 어깁니다. 이번 네 규칙은 Churn을 입력으로 쓰지 않습니다. 표지 성과를 읽을 때도 원 정보의 실제 도착 시점은 별도 확인해야 합니다.
생각한 뒤 풀이 · 이탈 정답 200개를 표시했으니 200명의 이탈을 막은 것인가요?
TP 200은 원 이탈 1인 행 중 규칙이 1을 붙인 개수입니다. 실제 연락, 유지 성공, 미래 반응을 관측한 수가 아닙니다. 관측을 보존한 채 가정 행동의 계산만 수행합니다.
Country · A complete record and the information an agent inspects
Inspect three indicators for 16 countries in the retained World Bank 2024 snapshot. For example, an Australian record with code AUS links GDP, longevity and unemployment. State in this task means the archived record and inspection status, not every physical fact about a national economy. This limited task lets us distinguish observed values from effects of actions.
Selected 2024 country rows · Definitions of actual retained fields
Field
Source indicator
Unit
Available of 16
GDP
NY.GDP.PCAP.KD
Constant-2015 USD per person
16
Longevity
SP.DYN.LE00.IN
Period life expectancy, years
16
Unemployment
SL.UEM.TOTL.ZS
ILO-modelled, % of labour force
16
Do not add these units into one performance number. A one-unit GDP difference and a one-year longevity difference are not the same change. Country/year matching preserves each indicator’s original source position. The observation year is 2024; the common original was retained on 20 October 2026. Extraction on 27 October is not a new live API response.
The environment holds all three values while the agent receives inspected fields only. A GDP question needs GDP; a combined report needs all three. A cost of one per inspected field is a teaching assumption, not a measured API fee, research time or national survey expense.
Assumed cost one per field · Source indicators remain fixed
Inspected fields
GDP answer
Combined answer
Assumed cost
None
Uninspected
Incomplete
0
GDP
Available
Incomplete
1
GDP and longevity
Available
Incomplete
2
All three
Available
Complete
3
The chart shows actual availability counts, not indicator magnitudes. Three bars of 16 do not make the values equal. Also distinguish unavailable from uninspected: all fields are available in this selected table, but an uninspected field is still absent from the agent’s information. Knowing availability differs from knowing the value.
Think, then read · Does inspecting GDP also reveal unemployment?
Not under this task contract. No transition or inference model linking the fields was supplied. Inspect the retained unemployment field rather than filling it from GDP using an undeclared relationship.
Think, then read · Does inspecting unemployment lower it?
Inspection changes the information received by the agent. The original unemployment rate stays fixed. Policy effects and future national transitions require a different action, dynamics and evidence design.
Person · Inspecting a wage differs from changing it
Retain all 3,613 rows from Card’s public nls.dat. The task asks which source field is inspected to answer either a 1976 raw hourly-wage question or a source-trimmed-log question. Original position one has person code two. File position and person code are distinct fields; neither should be replaced by an establishment code or another dataset’s row number.
Three actual tokens from the first original row
Field at source row 1
Original token
Answer after inspection
Person code
2
Original person code
Raw hourly wage
548
1976 cents/hour
Specified trimmed log
6.30627529
Source-supplied log field
For a raw-dollar task, inspect the wage and divide by 100: 548/100=137/25=5.48 USD/hour. This converts the same historical record’s unit without forecasting wages or adjusting prices. For the log task, inspect the selected field and report 6.30627529. Answers to different tasks are not numbers in the same unit.
Replacing that field by a browser-computed logarithm of raw wages changes trimming and availability. Raw wage has 3,017 available and 596 unavailable rows; the specified log has 3,010 and 603. Map the original missing dot to an empty selected-CSV field and model null, retaining unavailability instead of numeric zero. Some rows with raw wages lack the selected log, so retain both row-level flags.
Inspected fields and requested answers · Cost is not an observed wage
Task
Required inspection
Assumed cost 1 per field
If unavailable
Raw USD/hour
rawCents
1
Do not invent an answer
Specified source log
trimmedLog
1
Preserve missingness
Report both
Both fields
2
Keep each availability flag
The chart displays both available and missing counts. Its vertical axis counts original rows, not wage amounts. The difference of seven does not replace row-level availability. Keeping all 3,613 positions distinguishes an uninspected available value from a value inspected and found unavailable.
Think, then read · Does reading 548 identify a wage after an education action?
The value is a 1976 record. No education-choice transition, hours response or counterfactual wage is supplied. Successful record inspection is not successful personal policy.
Think, then read · Why not return zero when the log is missing?
That confuses unavailability with an observed log of zero. Report whether an answer is defined and document the dot-to-empty mapping while preserving missingness. Even a free inspection does not make an unavailable source value observed.
Company · Review flags do not identify intervention dynamics
Use all 3,150 anonymous original rows of UCI Iranian Churn. Downloads preserve all 14 source columns, while the decision rules inspect only Complains or Status. Churn is a later recorded outcome used for comparison, not an input passed to the rule. Displaying an answer to the reader does not mean that the agent received it beforehand.
The official description places inputs in the first nine months and the target at the end of month twelve. The rows lack calendar start dates and actual feature-arrival timestamps, so operational availability is not verified here. Downloading in 2026 does not identify the observation year. Row number is neither a verified person identifier nor established event chronology.
An action is a review flag zero or one. Compare four fixed rules: complaint one, Status code two, everybody and nobody. A flag does not execute contact or change churn. The task state holds the retained record and flag; original Churn remains fixed under every action selection.
Same 3,150 retained rows · Not independent testing
Rule
Flagged
TP
FP
FN
TN
Complaint 1
241
200
41
295
2614
Status code 2
782
370
412
125
2243
Flag all
3150
495
2655
0
0
Flag none
0
0
0
495
2655
The complaint rule has 41 false positives and 295 false negatives. At assumed FP cost one, FN cost four and flag cost zero, total is 41+4×295=1,221 and mean is 407/1,050. Status code two gives 412+4×125=912. The following columns apply different criteria to the same cells.
Correct and flag costs zero · Totals use assumed evaluation units
Rule
FP1 / FN4
FP4 / FN1
Complaint 1
1221
459
Status code 2
912
1773
Flag all
2655
10620
Flag none
1980
495
Status code two minimizes the first cost among the four candidates; complaint one minimizes the second with 459. No original outcome changed. The relative penalty on missing a churn changed. Adding an assumed cost of one tenth per flag adds 241/10 to complaint cost, giving 1,245.1. This also is not a measured staffing expense.
The chart compares FP and FN record counts only. It does not mix cost units and row counts on one axis. Establishing that a lower-cost flagging rule causes more retention requires additional observations and a design for contact effects. Minimum retrospective cost and intervention effects are distinct questions.
Think, then read · Is copying original Churn into the flag a better agent?
Using later answers can produce zero retrospective error while violating the decision-time information contract. Our four rules do not take Churn as input. Actual arrival timing of their permitted fields still requires separate operational verification.
Think, then read · Do 200 true positives mean 200 churns were prevented?
No. They count retained Churn=1 rows assigned flag one. They do not count observed contact, retention success or future responses. The calculation preserves observations while evaluating declared flags.
기초Foundations
48. 공식 영상·에이전트 읽기·두 번째 읽기48. Official video, agents and a second reading
첫 읽기에서는 그림 대신 두 방의 위치·먼지·에너지를 종이에 그려 세 행동을 따라갑니다. 두 번째는 상태·관측·기억을 다른 칸에 적고, 세 번째는 줄인 상태의 충분조건과 정보의 최선값 비교를 읽습니다. Stuart Russell의 Berkeley 기관 소개는 에이전트 관점의 연구·교재 맥락을 읽는 자료이며, 이 장의 코드나 보관자료 계산을 그가 검증했다는 뜻은 아닙니다.
Use the official introductory video and notes for agents, initial states, actions, transitions, goal tests and path costs. Our two-room contract is not an actual robot experiment reported by the lecture. Comparisons of search algorithms continue in the next chapter.
On a first pass, draw the two rooms and follow three actions on paper. On a second, place environment state, observation and memory in separate columns. On a third, read the sufficient abstraction conditions and best-value information comparison. Stuart Russell’s Berkeley institutional profile supplies context for the agent perspective; it does not endorse our code or certify our retained-data calculations.
자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.
결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.
영상·학자·함께 읽기Videos, thinkers and guided reading
본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.
CS50 AI · 에이전트와 탐색 문제의 입구CS50 AI · Agents and the start of search problems
Harvard CS50 AI · Lecture 0: Search
에이전트·초기 상태·행동·전이·목표 검사·경로 비용의 도입을 두 방의 여섯 필드와 연결합니다. 탐색 알고리즘 비교는 다음 장의 과제입니다.Connect introductory agents, initial states, actions, transitions, goals and path costs to the six two-room fields. Search algorithms continue in the next chapter.
교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.
보고 읽은 뒤 답하기Respond after watching/reading목표에 도착하면 항상 stop을 실행한 것인가요?Does reaching the goal always mean stop was executed?
생각을 점검하는 해설Check your reasoning
이번 계약에서는 다릅니다. 두 먼지가 거짓이면 목표이고 stopped는 별도 행동으로 정해집니다.Not under this contract. Both false dirt flags define the goal; stopped is set by a separate action.
스튜어트 러셀 · 에이전트 관점으로 질문하기Stuart Russell · Asking questions from an agent perspective
UC Berkeley · Official institutional profile
기관 소개의 인공지능 연구·교재 맥락에서 정보·환경·행동·목적을 묻습니다.Use the institutional research/textbook context to ask about information, environment, action and objectives.
보고 읽은 뒤 답하기Respond after watching/reading두 방 최고 점수만으로 실제 로봇의 지능을 판정하나요?Does the best two-room score establish a physical robot’s intelligence?
생각을 점검하는 해설Check your reasoning
유한 시작 묶음에서 규칙과 비용을 비교한 결과만으로 더 넓은 실제 능력이 정해지지는 않습니다.A finite benchmark comparison does not establish broader capability in a physical environment.
Berkeley CS188 · 관측과 기억을 쓰는 에이전트Berkeley CS188 · Agents using observations and memory
UC Berkeley CS188 textbook · Agents
에이전트·환경·반사 규칙과 계획의 구별을 읽습니다. 이 장은 현재 관측과 전체 상태를 따로 표기하고 기억의 전제를 밝힙니다.Read agent/environment and reflex-versus-planning distinctions. Separate current observation from full state and state the premises supporting memory.
보고 읽은 뒤 답하기Respond after watching/reading기억에 A가 깨끗하면 현재도 언제나 깨끗한가요?Does a stored clean-A value always establish current cleanliness?
생각을 점검하는 해설Check your reasoning
새 먼지가 없는 현재 계약에서는 유지되지만 다른 환경에서는 새 관측이나 갱신 모형이 필요합니다.It persists under the present no-new-dirt contract; another environment can require new observations or an update model.
Berkeley CS188 · 상태 공간과 문제 표현Berkeley CS188 · State spaces and problem formulation
UC Berkeley CS188 textbook · State spaces and search problems
초기 상태·행동·전이·목표·비용의 문제 표현을 읽고 가능한 필드 조합 수와 실제 도달 집합을 구별합니다.Read initial states, actions, transitions, goals and costs; distinguish variable combinations from reachable states.
보고 읽은 뒤 답하기Respond after watching/reading21,840개 조합을 셌으면 모두 에너지 3에서 도달하나요?Does counting 21,840 combinations make all reachable from energy three?
생각을 점검하는 해설Check your reasoning
충전이 없어 에너지는 늘지 않으므로 에너지 4 이상은 그 시작에서 도달하지 못합니다.Without recharging, energy cannot increase, so states above energy three are unreachable from that start.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 첫 청소의 다음 상태Successor after the first clean
가정 상태는 위치 A, 두 방 더러움, 에너지 3, 시간 0, 미정지입니다. clean은 현재 방을 깨끗하게 하고 에너지 1·시간 1을 씁니다. 한 번 실행한 다음 상태와 두 방 청소 목표를 쓰세요.
Assume position A, both rooms dirty, energy 3, time 0 and not stopped. Clean clears current dirt, uses one energy and advances time by one. Give the successor and both-clean goal status.
풀이와 확인할 이유Solution and explanation
위치 A, A 깨끗·B 더러움, 에너지 2, 시간 1, 미정지입니다. B가 남았으므로 목표는 거짓입니다. 현재 방 청소와 전체 목표를 구별합니다.
The successor is A, clean A, dirty B, energy 2, time 1 and not stopped. The goal is false because B remains dirty. Cleaning the current room differs from completing the whole task.
2. 세 행동의 합Sum over three actions
A·두 방 더러움·에너지 3에서 clean→right→clean을 실행합니다. 청소는 현재 방을 깨끗하게 하고 right는 B로 옮깁니다. 두 행동 모두 에너지 1·비용 1·시간 1을 씁니다. 마지막 위치·먼지·에너지·총비용·목표를 구하세요.
Start at A with both rooms dirty and energy 3. Execute clean→right→clean. Clean clears current dirt; right sets B. Each action uses one energy, costs one and advances time by one. Find final position/dirt/energy, total cost and goal.
풀이와 확인할 이유Solution and explanation
A 청소 후 에너지 2, B 이동 후 1, B 청소 후 0입니다. 마지막은 B·두 방 깨끗함이고 비용 3, 목표 참입니다. stop을 실행하지 않아 미정지입니다.
Energy falls to 2 after cleaning A, then 1 after moving to B and 0 after cleaning B. Final position is B with both rooms clean, cost 3 and goal true. No stop was executed, so stopped remains false.
3. 시작 위치를 바꾼 행동열A sequence from another start
두 방 더러움·에너지 3이지만 시작 위치는 B입니다. clean은 현재 방만 청소하고 right는 언제나 B로 정하며 둘 다 에너지 1을 씁니다. clean→right→clean 뒤 어느 방이 더러운가요?
Both rooms are dirty with energy 3, but start at B. Clean clears only current dirt; right always sets B; each uses one energy. Which room remains dirty after clean→right→clean?
풀이와 확인할 이유Solution and explanation
세 행동 모두 A에 도달하지 않습니다. B는 깨끗하지만 A가 더러워 목표는 실패합니다. A 시작점의 해가 B 시작점의 해라는 보장은 없습니다.
None of the actions visits A. B is clean, A remains dirty and the goal fails. A sequence solving an A start need not solve a B start.
4. 0과 미관측Zero versus unavailable
상태의 energy는 0 이상 정수이고 dirtyA는 참·거짓이라고 정했습니다. energy=0, energy 미관측, dirtyA=false를 같은 값으로 저장하면 어떤 정보가 사라지나요?
Energy is declared a nonnegative integer and dirtyA a Boolean. What information is lost by storing energy 0, unavailable energy and dirtyA=false as the same value?
풀이와 확인할 이유Solution and explanation
배터리가 없다고 관측한 것, 배터리를 모르는 것, A가 깨끗하다는 관측이 섞입니다. 자료형과 미관측 표지를 보존해야 실행 가능성과 먼지 상태를 따로 판단할 수 있습니다.
Observed empty battery, unknown battery and observed clean A become confused. Preserve types and missingness to distinguish action feasibility from dirt information.
5. 바닥 구성의 개수Count floor configurations
위치는 A·B 두 가지이고 각 방의 먼지는 참·거짓 두 가지입니다. 에너지·시간·정지 표지를 고정했을 때 위치·먼지 조합은 몇 개인가요?
Position has two values A/B and each room has two dirt values. Holding energy, time and stopped fixed, how many position–dirt configurations exist?
풀이와 확인할 이유Solution and explanation
2×2×2=8개입니다. 두 먼지를 하나의 깨끗함 여부로만 합치면 어느 방에 청소가 필요한지 잃습니다. 이 수는 가능한 필드 조합입니다.
There are 2×2×2=8. Collapsing both dirt flags into one cleanliness bit loses which room needs cleaning. This counts configurations of the stated fields.
6. 구성 공간과 도달 집합Configurations versus reachable states
위치 2가지, 먼지 각각 2가지, 에너지 정수 0~20, 시간 정수 0~64, 정지 참·거짓을 허용합니다. 조합 수를 구하고, 이 모두가 한 시작점에서 도달 가능한지 구별하세요.
Allow two positions, two values for each dirt flag, integer energy 0–20, integer time 0–64 and a Boolean stopped flag. Count combinations and distinguish them from reachability from one start.
풀이와 확인할 이유Solution and explanation
2×2×2×21×65×2=21,840입니다. 이는 자료형이 허용하는 조합 수입니다. 전이와 시작점 없이 그 모두가 실제 경로에서 도달 가능하다고 말할 수 없습니다.
The product is 2×2×2×21×65×2=21,840. It counts typed combinations, not states proved reachable under a transition from a specified start.
7. 충전 없는 전이의 불변성An invariant without recharging
시작 에너지는 3입니다. 이동·청소는 각각 1을 빼고 대기·정지는 에너지를 그대로 둡니다. 다른 전이는 없습니다. 유한 허용 경로에서 에너지 4에 도달할 수 없는 이유를 귀납법으로 쓰세요.
Start at energy 3. Movement and cleaning subtract one; waiting and stopping leave it unchanged. No other transition exists. Use induction to show that no finite admissible path reaches energy 4.
풀이와 확인할 이유Solution and explanation
길이 0에서는 에너지 3입니다. 에너지가 3 이하인 상태에 한 행동을 붙여도 줄거나 같으므로 여전히 3 이하입니다. 따라서 모든 유한 길이에서 4는 불가능합니다.
The zero-length path has energy 3. Adding any action to a state at most 3 can only reduce or preserve energy. Induction gives energy at most 3 at every finite length, excluding 4.
8. 목표와 배터리Goal status versus battery
목표는 두 먼지 표지가 모두 거짓인 것입니다. 상태는 B·두 방 깨끗함·에너지 0·시간 3·미정지입니다. 목표와 stopped를 각각 판정하세요.
The goal requires both dirt flags false. The state is B, both rooms clean, energy 0, time 3 and not stopped. Report the goal and stopped separately.
풀이와 확인할 이유Solution and explanation
목표는 참이고 stopped는 거짓입니다. 배터리 0이나 정지 표지는 이 목표식의 입력이 아닙니다. 성공 뒤 정지하지 않은 상태도 가능합니다.
The goal is true and stopped is false. Battery and the stopping flag are not arguments of this goal test. A successful state need not already be stopped.
9. 실패한 정지Stopping without success
A가 더럽고 B는 깨끗합니다. stop은 먼지를 바꾸지 않고 정지 표지만 참으로 만듭니다. 실행 뒤 목표와 정지는 같은 결과인가요?
A is dirty and B clean. Stop changes no dirt and sets stopped true. Do the goal and stopping status agree afterward?
풀이와 확인할 이유Solution and explanation
정지는 참이지만 A가 더러워 목표는 거짓입니다. 종료 행동을 성공 판정으로 대체할 수 없습니다.
Stopped is true but the goal is false because A remains dirty. Termination does not replace success evaluation.
10. 에너지 0의 허용 행동Actions at zero energy
미정지·시간 5·에너지 0입니다. left/right/clean은 에너지 1을 요구하고 wait/stop은 0을 요구합니다. 시간 상한 64 전에는 이 조건을 만족하는 행동만 허용합니다. 허용 집합을 쓰세요.
Assume not stopped, time 5 and energy 0. Left/right/clean require one energy; wait/stop require none. Before time 64, admit only actions meeting that requirement. Give the admissible set.
풀이와 확인할 이유Solution and explanation
wait와 stop만 허용됩니다. 청소를 거절한 것은 에너지 −1인 새 상태로 실행했다는 뜻이 아닙니다.
Only wait and stop are admissible. Rejecting clean does not mean executing it into a state with energy minus one.
11. 시간 상한의 경계The time-limit boundary
시각 64 또는 이미 정지한 상태에서는 어떤 행동도 허용하지 않는 계약입니다. 에너지 20·미정지·시간 64에서 wait와 clean이 가능한가요?
The contract admits no action at time 64 or after stopping. Are wait and clean available at energy 20, not stopped and time 64?
풀이와 확인할 이유Solution and explanation
둘 다 불가능합니다. 에너지 조건만 만족해도 시간 조건이 막습니다. 상태 검증과 행동의 모든 허용 조건을 함께 확인합니다.
Neither is available. Sufficient energy does not override the time boundary. All admissibility conditions must hold together.
12. 벽에서의 이동Movement at a wall
위치 A·에너지 2·시간 0·미정지에서 left는 위치를 A로, 에너지를 1만큼 줄이고 시간을 1만큼 늘립니다. 실행 뒤 위치가 같으므로 상태도 같다고 해도 되나요?
At A, energy 2, time 0 and not stopped, left sets position A, subtracts one energy and adds one time unit. Does unchanged position mean unchanged state?
풀이와 확인할 이유Solution and explanation
아닙니다. 위치는 A지만 에너지 1·시간 1입니다. 전체 상태의 동등성과 일부 필드의 동등성은 다릅니다.
No. Position remains A but energy is 1 and time 1. Equality of selected fields does not imply equality of the complete state.
13. 이미 깨끗한 방의 청소Cleaning an already clean room
깨끗한 A·에너지 1·시간 2·미정지입니다. clean은 현재 먼지를 거짓으로 정하고 에너지 1·시간 1을 씁니다. 다음 에너지와 시간, 먼지 변화를 구하세요.
At clean A, energy 1, time 2 and not stopped, clean sets current dirt false, uses one energy and adds one time unit. Find the successor energy/time and dirt change.
풀이와 확인할 이유Solution and explanation
에너지 0·시간 3이며 A 먼지는 거짓 그대로입니다. 겉의 청결이 같아도 자원은 소모되었습니다.
Energy becomes 0 and time 3; A dirt stays false. Unchanged visible cleanliness does not imply no resource use.
14. 대기와 정지Wait versus stop
미정지·시간 7에서 wait와 stop은 둘 다 에너지를 쓰지 않고 시간을 1 늘립니다. wait는 정지 표지를 바꾸지 않고 stop은 참으로 정합니다. 무엇이 다른가요?
At time 7 and not stopped, wait and stop both use no energy and add one time unit. Wait preserves the stopping flag; stop sets it true. What differs afterward?
풀이와 확인할 이유Solution and explanation
두 결과의 시간은 8이고 에너지는 같습니다. wait 뒤에는 시간 여유가 있으면 다시 행동할 수 있지만 stop 뒤에는 허용 행동이 없습니다.
Both results have time 8 and unchanged energy. Wait can permit another action before the time limit; stop leaves no admissible action.
15. 비용만 바꾸는 실험Changing cost alone
A·두 방 더러움·에너지 3에서 clean→right→clean을 허용합니다. 각 이동·청소는 에너지 1을 씁니다. 청소 비용 2·이동 비용 1이면 에너지 사용과 총비용은 각각 얼마인가요?
Admit clean→right→clean from A, both rooms dirty and energy 3. Every move or clean uses one energy. With cleaning cost 2 and movement cost 1, find energy used and total cost.
풀이와 확인할 이유Solution and explanation
에너지는 3, 비용은 2+1+2=5입니다. 비용의 변경이 배터리 전이를 바꾸지는 않습니다.
Energy use is 3 and cost is 2+1+2=5. Changing cost does not change battery dynamics.
16. 비용 0과 자원 0Zero cost versus zero resource use
left는 에너지 1을 쓰지만 이동 비용은 0이라고 선언했습니다. 시작 에너지가 2일 때 한 번의 left 비용이 0이므로 에너지도 2라고 결론내릴 수 있나요?
Declare that left uses one energy but has movement cost zero. Starting at energy 2, may zero cost be taken to imply unchanged energy?
풀이와 확인할 이유Solution and explanation
아닙니다. 에너지는 1이고 비용만 0입니다. 평가 단위와 상태 전이의 자원은 따로 정의됩니다.
No. Energy becomes 1 while cost is zero. The evaluation unit and the transition resource are separately defined.
17. 행동 없는 성공Success without an executed action
초기 두 방은 깨끗하고 에너지는 0입니다. H=0 평가에서는 아무 행동도 실행하지 않습니다. 목표가 두 방 깨끗함이면 행동 수·목표·정지 명령 실행 여부는 무엇인가요?
Both rooms start clean with energy 0. An H=0 evaluation executes nothing. With a both-clean goal, report action count, goal status and whether stop was executed.
풀이와 확인할 이유Solution and explanation
행동 수 0, 목표 참, stop 실행 없음입니다. 성공을 확인하는 데 반드시 새 행동이 필요한 것은 아닙니다.
There are zero actions, the goal is true and no stop was executed. Confirming an already satisfied goal need not require an action.
18. 깨끗한 국소 관측의 두 후보Two candidates under a clean local reading
위치 A·자원·시간·정지 표지를 고정합니다. 국소 센서는 A가 깨끗하다는 것만 알려 주며 B는 참·거짓 모두 가능합니다. 양립 먼지 구성 수와 두 방 목표를 알 수 있는지 쓰세요.
Fix position A, resources, time and stopped. A local sensor reveals clean A only; B can be either dirty or clean. Count compatible dirt configurations and determine whether the both-clean goal is known.
풀이와 확인할 이유Solution and explanation
A 깨끗·B 깨끗과 A 깨끗·B 더러움의 2개입니다. 첫째 목표는 참, 둘째는 거짓이므로 현재 관측만으로 목표를 확정하지 못합니다.
Two configurations fit: clean A with clean B, or clean A with dirty B. Their goals differ, so the reading alone does not determine the goal.
19. 더러운 관측으로 알 수 있는 것What a dirty reading establishes
위치 A에서 국소 센서가 A 더러움을 알려 줍니다. B는 여전히 참·거짓 가능하고 목표는 두 방 깨끗함입니다. 전체 상태를 모르므로 목표도 모른다고 해야 하나요?
At A, a local sensor reveals dirty A. B remains either dirty or clean; the goal is both rooms clean. Must goal status remain unknown because the whole state is unknown?
풀이와 확인할 이유Solution and explanation
아닙니다. 두 후보 모두 A가 더러워 목표는 거짓입니다. 일부 상태가 모호해도 특정 질문의 답은 확정될 수 있습니다.
No. Both compatible states have dirty A, so the goal is known false. Partial state uncertainty need not make every question unanswerable.
20. 센서별 양립 구성 수Compatibility counts for different sensors
위치·에너지·시간·정지를 고정하고 두 먼지만 바꿉니다. 위치 전용 센서는 먼지를 숨기고, 국소 센서는 한 방을, 전체 센서는 두 방을 알려 줍니다. 각각 양립 구성은 몇 개인가요?
Fix position, energy, time and stopped while varying two dirt flags. Position-only hides both flags, local reveals one and full reveals both. Give each compatibility count.
풀이와 확인할 이유Solution and explanation
각각 4·2·1개입니다. 이는 가능한 상태 수이지 그 후보들에 같은 확률을 주었다는 뜻은 아닙니다.
The counts are four, two and one. These count possibilities without assigning equal probability to them.
21. 같은 관측에서 다른 목표Different goals under the same observation
두 상태는 모두 위치 A·A 깨끗함이고 모든 자원도 같습니다. 첫 상태는 B 깨끗함, 둘째는 B 더러움입니다. 현재 방만 보는 관측의 함수가 두 상태의 두 방 청소 목표를 언제나 정확히 맞힐 수 있나요?
Two states share position A, clean A and every resource field. B is clean in one and dirty in the other. Can a function of the current-room observation always determine the both-clean goal correctly?
풀이와 확인할 이유Solution and explanation
같은 관측에는 같은 함수값을 내야 하지만 두 목표값은 다릅니다. 따라서 두 상태 모두에서 항상 정확한 목표 함수를 그 관측 하나로 만들 수 없습니다. 추가 정보나 모형 전제가 필요합니다.
A function must give the same output for the same reading, but these states have different goal values. No such observation-only function can always be correct on both. Additional information or premises are needed.
22. 가능성과 확률Possibility versus probability
깨끗한 A의 관측에 맞는 두 세계가 있습니다. 다른 확률 정보는 주지 않았습니다. 두 세계의 확률을 각각 1/2이라고 결론내릴 수 있나요?
Two worlds fit a clean-A reading and no probability law is supplied. May each be assigned probability one half as a conclusion?
풀이와 확인할 이유Solution and explanation
아닙니다. 두 가능성을 센 것과 같은 확률을 선언한 것은 다릅니다. 1/2·1/2도 선택 가능한 가정 중 하나일 뿐 관측만의 결론은 아닙니다.
No. Counting two possibilities does not declare equal masses. One-half each is a possible added assumption, not a conclusion from compatibility alone.
23. 같은 관측 뒤 남는 비율Masses after an identical observation
가정 법칙은 세계 s₁,s₂에 확률 3/4,1/4를 주고 그 밖의 세계는 없습니다. 두 세계 모두 동일한 관측 o를 확실히 냅니다. o를 받은 뒤 두 조건부 확률을 구하세요.
Assume worlds s₁ and s₂ have masses 3/4 and 1/4, with no other worlds. Both deterministically produce observation o. Find their probabilities conditional on o.
풀이와 확인할 이유Solution and explanation
관측 o의 확률은 1입니다. 각 질량을 1로 나누므로 그대로 3/4와 1/4입니다. 관측에 양립한다고 해서 질량을 반반으로 다시 바꾸지 않습니다.
Observation o has total probability one. Dividing by one leaves masses 3/4 and 1/4. Compatibility does not replace them with equal masses.
24. 국소 한 결정표의 수Count local one-decision rules
위치 2가지·현재 방 먼지 2가지의 관측을 구별합니다. 같은 양의 에너지·상한 전 시간·미정지 조건에서 각 관측마다 다섯 행동이 모두 허용됩니다. 결정적 한 결정표는 몇 개인가요?
Distinguish two positions and two local dirt values. Fix positive energy, time below the limit and not stopped, so all five actions are available at each reading. Count deterministic one-decision tables.
풀이와 확인할 이유Solution and explanation
관측 조합은 4개이고 각 칸에 선택지 5개이므로 5⁴=625입니다. 모든 시간·에너지·임의 이력까지 포함한 정책의 총수는 아닙니다.
Four observation types each permit five choices, giving 5⁴=625. This does not count policies over every time, battery and arbitrary history.
25. 전체 관측의 한 결정표One-decision rules with full observation
자원·시간·미정지를 고정하고 위치 2가지·두 먼지 각각 2가지의 전체 구성을 구별합니다. 각 구성에서 행동 5개가 모두 허용됩니다. 결정적 한 결정표 수를 구하세요.
Fix resources, time and not stopped. Distinguish two positions and two values for each dirt flag, with five actions allowed at every configuration. Count deterministic one-decision tables.
풀이와 확인할 이유Solution and explanation
구성 8개에서 각각 5가지이므로 5⁸=390,625입니다. 후보가 더 많다는 사실은 특정 코드가 그중 최적이라는 증명이 아닙니다.
Eight configurations give 5⁸=390,625 tables. More possible rules do not establish that a particular implementation is optimal.
26. 확인한 값만 저장하는 기억Memory stores confirmed values
A는 깨끗하고 B는 미확인입니다. 기억 규칙은 국소 관측을 저장하고 두 기억이 깨끗하면 stop, 아니면 다른 방으로 이동합니다. 이동 뒤 B도 깨끗하다고 보며 새 먼지는 생기지 않습니다. A에서의 행동과 B에서의 다음 행동을 쓰세요.
A is observed clean and B is unknown. A memory rule records local readings, stops if both stored values are clean and otherwise moves to the other room. After moving it observes clean B; no new dirt occurs. Give the first and next actions.
풀이와 확인할 이유Solution and explanation
먼저 right로 B에 갑니다. B의 거짓 먼지를 저장하면 두 기억이 깨끗하여 stop입니다. 미확인 B를 처음부터 깨끗하다고 채운 것이 아닙니다.
First move right to B. Recording its false dirt flag completes two clean memories, so stop follows. B was not silently filled as clean before inspection.
27. 기억이 낡는 환경An environment where memory becomes stale
A가 깨끗함을 관측한 뒤 B로 이동했습니다. 이번에는 사람이 A를 다시 더럽힐 수 있다고 가정합니다. 예전의 A=깨끗 기억만으로 현재 A도 깨끗하다고 확정할 수 있나요?
After observing clean A, an agent moves to B. Now suppose a person may dirty A again. Does the old clean-A memory establish its current cleanliness?
풀이와 확인할 이유Solution and explanation
아닙니다. 기억의 관측 시점 뒤에 상태가 바뀔 수 있습니다. 새 먼지가 없다는 이전 전제는 사용할 수 없고, 새 관측이나 갱신 모형이 필요합니다.
No. The state may have changed since that observation. The earlier no-new-dirt premise no longer applies; a new observation or update model is needed.
28. 불필요한 청소 한 번One unnecessary cleaning action
A 깨끗·B 더러움·위치 A·에너지 3입니다. 청소와 이동은 에너지·비용 각각 1, stop은 0입니다. 고정열 clean→right→clean과 관측 규칙의 right→clean→stop을 비용과 목표로 비교하세요.
Start at clean A, dirty B, position A and energy 3. Clean/move each use one energy and cost one; stop costs zero. Compare fixed clean→right→clean with right→clean→stop in cost and goal.
풀이와 확인할 이유Solution and explanation
고정열은 비용 3, 관측 경로는 2입니다. 둘 다 두 방을 깨끗하게 하지만 첫 경로는 깨끗한 A에 청소 비용을 썼습니다. 정지 표지도 둘째에서만 참입니다.
Costs are three and two; both meet the cleaning goal. The fixed path spent one cleaning an already clean A. Only the second path executes stop.
29. 깨끗한 세계의 반사 규칙A reflex rule in an already clean world
두 방 깨끗·위치 A·에너지 3·시간 0·미정지입니다. 반사는 현재 방이 깨끗하면 다른 방으로 이동하고 에너지 0에서 stop합니다. 이동은 에너지·비용 1, stop 비용 0이고 H=6입니다. 행동열·비용·목표를 구하세요.
Both rooms start clean at A with energy 3, time 0 and not stopped. Reflex moves to the other room when local dirt is false and stops at zero energy. Moves use/cost one, stop costs zero and H=6. Find the trace, cost and goal.
풀이와 확인할 이유Solution and explanation
right→left→right→stop입니다. 행동 4번·에너지와 비용 3, 목표는 처음부터 끝까지 참입니다. 현재 관측 피드백만 쓴다고 불필요한 이동이 없어지지는 않습니다.
The trace is right→left→right→stop: four actions, energy use and cost three. The goal remains true throughout. Current-observation feedback does not by itself prevent unnecessary movement.
30. 같은 세계의 기억 규칙The memory rule in the same clean world
두 방 깨끗·위치 A·에너지 3·시간 0·미정지에서 기억은 처음 미확인으로 시작합니다. 현재 관측을 저장하고, 두 방이 확인되면 stop, 아니면 다른 방으로 이동합니다. 새 먼지 없음·이동 비용 1·stop 비용 0·H=6에서 행동 수와 비용은?
Both rooms are clean at A with energy 3, time 0 and not stopped. Memory starts unknown, records local readings, stops once both are confirmed clean and otherwise moves to the other room. With no new dirt, move cost one, stop cost zero and H=6, find action count and cost.
풀이와 확인할 이유Solution and explanation
A를 확인하고 right, B를 확인하고 stop이므로 행동 2번·비용 1입니다. 전체 상태를 처음부터 본 것과는 다르게 확인 이동을 했습니다.
It checks A, moves right, checks B and stops: two actions and cost one. Unlike full initial observation, it pays for a confirmation trip.
31. 전체 관측의 즉시 정지Immediate stop with full observation
두 방 깨끗·에너지 3·시간 0·미정지입니다. 전체 관측 규칙은 두 방이 깨끗하면 stop을 고르며 stop은 시간 1·비용 0·에너지 0입니다. H=6에서 행동 수·비용·에너지 사용은?
Both rooms are clean with energy 3, time 0 and not stopped. A full-observation rule selects stop when both are clean. Stop advances time by one, costs zero and uses no energy. At H=6, find action count, cost and energy use.
풀이와 확인할 이유Solution and explanation
stop 한 번이어서 행동 1번·비용 0·에너지 사용 0입니다. 즉시 정지한다는 말은 시간 변화까지 0이라는 뜻은 아닙니다.
One stop gives one action, zero cost and zero energy use. Immediate stopping does not mean zero model-time advancement.
32. 확인 이동의 비용 차이The cost of a confirmation trip
시작은 A 더러움·B 깨끗함·위치 A·에너지 3입니다. 이동·청소 비용은 1, stop은 0입니다. 기억 경로 clean→right→stop과 전체 관측 경로 clean→stop의 비용·행동 수를 비교하세요.
Start at dirty A, clean B, position A and energy 3. Moves/clean cost one and stop zero. Compare memory trace clean→right→stop with full-observation trace clean→stop in cost and action count.
풀이와 확인할 이유Solution and explanation
기억은 비용 2·행동 3, 전체 관측은 비용 1·행동 2입니다. 두 규칙은 B의 초기 정보를 다르게 받으므로 센서가 같은 코드 비교라고 말할 수 없습니다.
Memory costs two over three actions; full observation costs one over two. Initial information about B differs, so this is not a code-only comparison behind identical sensors.
33. 네 행의 실행 기록A four-action trace
A·두 방 더러움·에너지 3·시간 0에서 clean→right→clean→stop을 실행합니다. 이동·청소는 에너지 1·비용 1, stop은 둘 다 0이며 모든 행동의 시간은 1입니다. 마지막 상태·총비용을 쓰세요.
Execute clean→right→clean→stop from A, both dirty, energy 3 and time 0. Move/clean use one energy and cost one; stop uses/costs zero. Every action advances time by one. Give the final state and total cost.
풀이와 확인할 이유Solution and explanation
B·두 방 깨끗함·에너지 0·시간 4·정지입니다. 총비용 3, 목표 참입니다. 세 번의 자원 소비와 네 번의 결정을 구별합니다.
The result is B, both clean, energy 0, time 4 and stopped, with cost three and goal true. Three resource-consuming actions differ from four decisions.
34. 평가 길이 2와 3Horizons two and three
A·두 방 더러움·에너지 3에서 clean→right→clean의 앞 H개 행동만 실행합니다. 각 행동은 에너지 1을 쓰고 clean은 현재 방을 청소합니다. H=2와 H=3의 목표와 stopped를 비교하세요. stop은 목록에 없습니다.
From A, both dirty and energy 3, execute the first H actions of clean→right→clean. Each uses one energy and clean clears current dirt. Compare goals and stopped at H=2 and H=3; the list has no stop.
풀이와 확인할 이유Solution and explanation
H=2에서는 B가 더러워 목표 거짓, H=3에서는 두 방 깨끗하여 참입니다. 두 경우 모두 stop을 하지 않아 stopped는 거짓입니다.
At H=2, dirty B makes the goal false. At H=3 both rooms are clean, so it is true. Neither run executes stop; stopped remains false.
35. 행동열이 먼저 끝나면A sequence ends before the horizon
시간 0·미정지 상태에서 clean 한 행동이 허용되며 목록에는 그것만 있습니다. H=4이고 clean은 정지 표지를 바꾸지 않습니다. 한 행동 뒤의 종료 사유와 stopped는 무엇인가요?
From a nonstopped state at time 0, one clean is admissible and is the entire action list. H=4; clean does not set stopped. Give the termination reason and stopped flag after execution.
풀이와 확인할 이유Solution and explanation
목록 소진으로 종료하고 stopped는 거짓입니다. 평가기 반복이 끝났다고 장치가 정지 명령을 실행한 것은 아닙니다.
The sequence is exhausted and stopped remains false. Ending the evaluator’s loop does not establish that a stop command was executed.
36. 정지 명령으로 끝내기Ending with an explicit stop
시간 0·미정지 상태에서 clean과 그다음 stop이 모두 허용됩니다. H=4, 목록 clean→stop이며 stop은 정지 표지를 참으로 만듭니다. 실행 행동 수·종료 이유·stopped를 쓰세요.
At time 0 and not stopped, clean and then stop are admissible. With H=4 and list clean→stop, stop sets the stopping flag true. Give action count, termination reason and stopped.
풀이와 확인할 이유Solution and explanation
두 행동을 실행한 뒤 stop 실행으로 종료하고 stopped는 참입니다. 목표 여부는 초기 먼지와 청소 결과를 따로 알아야 판정할 수 있습니다.
Two actions execute, ending by stop with stopped true. Goal status still requires the initial dirt and cleaning result; it does not follow from termination alone.
37. 길이 0에서의 실패Failure at horizon zero
두 방이 모두 더러운 초기 상태에서 H=0입니다. 목표는 두 방 청소이고 점수는 최종 깨끗한 방당 2에서 실행 비용을 뺍니다. 행동 수·목표·점수를 구하세요.
Both rooms start dirty and H=0. The goal is both clean; score is two per final clean room minus executed cost. Find action count, goal and score.
풀이와 확인할 이유Solution and explanation
행동 0·목표 거짓·점수 0입니다. 비용을 쓰지 않았다고 목표를 달성한 것은 아닙니다.
There are zero actions, the goal is false and score is zero. Spending nothing does not imply accomplishing the goal.
38. 네 경우의 평균 비용Average costs over four cases
여덟 균등 시작 세계는 네 먼지 경우를 위치별 두 번씩 포함합니다. 반사 비용은 (3,3,3,3), 기억은 (1,2,2,3), 전체 관측은 (0,1,2,3)입니다. 각 평균을 구하세요.
Eight equally weighted starts contain four dirt cases twice each by position. Reflex costs are (3, 3, 3, 3), memory (1, 2, 2, 3), full observation (0, 1, 2, 3). Find their means.
풀이와 확인할 이유Solution and explanation
동일한 반복 횟수이므로 네 비용을 4로 나눕니다. 각각 3, 2, 3/2입니다. 위치 두 번 반복을 손실이나 성공의 독립 표집 증거로 해석하지 않습니다.
Equal repetition permits averaging the four costs: three, two and three halves. Two positions repeating a case do not establish independent empirical sampling.
39. 평균 행동 수의 분수A fractional mean action count
네 동일비중 경우에서 전체 관측 행동 수는 (1,2,3,4), 기억은 (2,3,3,4), 반사는 (4,4,4,4)이며 stop도 한 행동으로 셉니다. 각 평균과 2.5번의 의미를 쓰세요.
Four equally weighted cases have full-observation counts (1, 2, 3, 4), memory (2, 3, 3, 4) and reflex (4, 4, 4, 4), counting stop as an action. Find means and interpret 2.5.
풀이와 확인할 이유Solution and explanation
평균은 5/2, 3, 4입니다. 2.5는 각 실행의 정수 행동 수를 평균한 값이며 한 번의 실행에서 행동을 반으로 나눈 것이 아닙니다.
Means are 5/2, three and four. The 2.5 averages integer counts across runs; it does not split an action within one run.
40. 처음부터 깨끗한 방의 보상Reward for an initially clean room
네 동일비중 먼지 경우의 초기 깨끗한 방 수는 (2,1,1,0)이고 종료 때 모두 2개입니다. 최종 수와 새로 청소한 수의 평균을 비교하세요. 새 먼지는 생기지 않습니다.
Four equally weighted dirt cases start with clean counts (2, 1, 1, 0) and all finish with two clean rooms. No new dirt occurs. Compare mean final count with mean newly cleaned count.
풀이와 확인할 이유Solution and explanation
최종 평균은 2이고 초기 평균은 1이어서 새로 청소한 평균은 1입니다. 최종 방당 보상은 이미 깨끗했던 방까지 포함하므로 새 작업량 보상과 같지 않습니다.
Final mean is two and initial mean one, so newly cleaned mean is one. Reward per final clean room includes initially clean rooms and differs from rewarding new work only.
41. 행동 전의 달성 비율Goal fraction before acting
시작 위치 2가지와 두 먼지 각각 2가지를 조합한 여덟 세계가 균등합니다. H=0에서 두 방이 깨끗한 세계만 성공입니다. 달성 비율을 구하세요.
Eight uniform worlds combine two positions and two values for each dirt flag. At H=0 only initially both-clean worlds meet the goal. Find the goal fraction.
풀이와 확인할 이유Solution and explanation
깨끗·깨끗 구성은 위치 A·B에 하나씩이므로 2/8=1/4입니다. 이는 선언한 시작 법칙의 비율입니다.
Both-clean occurs once at each position, giving 2/8=1/4. This is a fraction under the declared start law.
42. 시작 비중을 바꾼 달성 비율Goal fraction after reweighting starts
H=0의 여덟 세계 중 성공 2개에 각각 비중 3, 실패 6개에 각각 1을 줍니다. 정규화 달성 비율을 구하고 단순 행 비율 2/8과 비교하세요.
At H=0 give each of two successful worlds weight three and each of six failures weight one. Find weighted goal fraction and compare with the unweighted 2/8.
풀이와 확인할 이유Solution and explanation
성공 비중 6, 전체 12여서 1/2입니다. 단순 행 비율 1/4과 다른 평균 법칙을 썼습니다. 세계의 전이나 성공값 자체가 바뀐 것은 아닙니다.
Successful weight is six of twelve, giving one half rather than one quarter. The averaging law changed, not the world transitions or success indicators.
43. 총비중 0의 경계The zero-total-weight boundary
가중 달성 비율은 ΣwᵢIᵢ/Σwᵢ이고 wᵢ≥0입니다. 여덟 비중이 모두 0일 때와 하나만 0이고 나머지는 양수일 때를 구별하세요.
Weighted goal fraction is ΣwᵢIᵢ/Σwᵢ with wᵢ≥0. Distinguish all eight weights zero from one zero weight with the others positive.
풀이와 확인할 이유Solution and explanation
모두 0이면 분모가 없어 입력을 거절해야 합니다. 하나만 0이면 그 세계의 기록은 보존하고 평균 기여만 0으로 둡니다. 나머지 양의 비중으로 정상화합니다.
All zero gives no denominator and must be rejected. A single zero-weight world can be retained while contributing zero to the mean, normalized using the positive total.
44. 평균 점수의 계산Calculate mean score
모든 세계가 최종 깨끗한 방 2개이고 방당 보상은 2입니다. 평균 비용은 반사 3·기억 2·전체 관측 3/2입니다. 점수=보상−비용의 각 평균을 구하세요.
Every world finishes with two clean rooms worth reward two each. Mean costs are reflex 3, memory 2 and full observation 3/2. With score=reward−cost, find mean scores.
풀이와 확인할 이유Solution and explanation
보상은 항상 4이므로 평균 점수는 1, 2, 5/2입니다. 비용과 점수가 다른 단위라면 같은 식에 더할 수 없으므로 이 예는 동일한 선언 평가 단위를 전제합니다.
Reward is always four, giving scores one, two and five halves. Adding reward and cost presupposes the common declared evaluation unit used here.
45. 점수는 높지만 목표 실패Higher score while failing the goal
A 더러움·B 깨끗함·위치 A에서 청소 비용 1·정지 비용 0·방당 보상 0입니다. 허용된 stop과 clean→stop을 점수=보상−비용 및 두 방 목표로 비교하세요.
From position A with dirty A and clean B, cleaning costs one, stopping zero and reward per clean room zero. Compare admissible stop and clean→stop by score=reward−cost and the both-clean goal.
풀이와 확인할 이유Solution and explanation
stop은 점수 0·목표 실패, clean→stop은 점수 −1·성공입니다. 이 점수 최대화와 목표 달성은 서로 다른 목적입니다.
Stop scores zero and fails; clean→stop scores minus one and succeeds. Maximizing this score differs from meeting the goal.
46. 에너지 없는 벤치마크의 동점Ties in a benchmark without energy
여덟 균등 시작 세계에서 에너지는 0·시간 0·미정지입니다. 비교하는 세 규칙은 모두 첫 결정에 stop을 고릅니다. H=1, stop 비용 0, 최종 깨끗한 방당 보상 2입니다. 달성 비율·평균 비용·평균 점수와 최고 규칙 집합을 구하세요.
Eight uniform starts have energy 0, time 0 and not stopped. All three compared rules choose stop on their first decision. Use H=1, stop cost zero and reward two per final clean room. Find goal fraction, mean cost, mean score and best-rule sets.
풀이와 확인할 이유Solution and explanation
두 방 깨끗한 시작이 2개라 달성 비율 1/4, 비용은 0입니다. 초기 깨끗한 방 평균 1이 그대로여서 평균 점수 2입니다. 세 규칙 모두 두 지표에서 동점입니다.
Two both-clean starts give goal fraction one quarter. Cost is zero; mean final clean count remains one, giving score two. All three rules tie on both metrics.
47. 이동 비용을 0으로 바꾸면Set movement cost to zero
같은 여덟 균등 실행에서 모든 규칙은 평균 새 청소 1번·최종 깨끗한 방 2개입니다. 평균 이동은 반사 2·기억 1·전체 관측 1/2입니다. 청소 비용 1·이동/정지 비용 0·방당 보상 2로 바꾸면 평균 비용과 점수는?
Across the same eight uniform runs, every rule averages one new cleaning and two final clean rooms. Mean moves are reflex 2, memory 1 and full observation 1/2. Set cleaning cost one, move/stop costs zero and reward two per clean room. Find mean cost and score.
풀이와 확인할 이유Solution and explanation
이동 항은 0이므로 모두 비용 1·점수 4−1=3입니다. 이동 횟수가 달라도 이번 평가 기준에서는 동점입니다. 에너지 전이는 비용 변경으로 바뀌지 않습니다.
Free movement removes its contribution, so every rule costs one and scores three. Different move counts tie under this criterion. Cost changes do not alter energy transitions.
48. 한 세계에만 질량을 둘 때Put all mass on one world
목표를 달성한 세계 한 개에만 양의 비중을 주고 나머지는 0입니다. 그 세계에서 세 규칙 모두 비용 3·최종 깨끗한 방 2개입니다. 방당 보상 2일 때 가중 달성 비율·점수를 구하세요.
Only one successful world has positive weight; all others have zero. In that world all three rules cost three and finish with two clean rooms. At reward two per room, find weighted goal fraction and score.
풀이와 확인할 이유Solution and explanation
질량을 가진 세계가 성공하므로 달성 비율 1, 점수는 4−3=1입니다. 다른 일곱 세계의 기록이 사라진 것은 아니며 이번 평균에만 기여하지 않습니다.
The sole positive-mass world succeeds, giving fraction one and score one. The other seven records remain present but do not contribute to this mean.
49. 에너지를 지운 상태 표현A representation that deletes energy
A·A 깨끗·B 더러움·시간 0·미정지인 두 상태의 에너지는 각각 0과 1입니다. clean이 에너지 1을 요구한다면 에너지를 지워 합친 표현이 허용 행동 집합을 보존하나요?
Two states share A, clean A, dirty B, time 0 and not stopped, but energies are zero and one. Clean requires one energy. Does merging them after deleting energy preserve admissible actions?
풀이와 확인할 이유Solution and explanation
아닙니다. 첫 상태에서는 clean이 불가능하고 둘째에서는 가능합니다. 허용 집합이 달라 경로 보존 충분조건을 위반합니다.
No. Clean is unavailable in the first and available in the second. Their action sets differ, violating the stated path-preservation conditions.
50. 먼지 한 열을 지운 표현Deleting a dirt field
두 상태의 위치 A·A 깨끗함·자원은 같습니다. B만 하나는 깨끗하고 하나는 더럽습니다. B를 지운 표현이 두 방 청소 목표를 보존하는지 반례로 설명하세요.
Two states share position A, clean A and all resources; B is clean in one and dirty in the other. Use them to test whether deleting B dirt preserves the both-clean goal.
풀이와 확인할 이유Solution and explanation
줄인 표현은 같지만 목표가 참·거짓으로 다릅니다. 따라서 이 표현만으로 두 방 목표를 정확히 재현할 수 없습니다.
The reduced representations agree while their goals differ. The reduced value alone cannot reproduce that goal test exactly.
51. 상태 축약의 경로 귀납법Induction for a state abstraction
φ가 같은 두 상태는 목표·허용 행동 집합이 같고, 같은 행동의 비용과 다음 상태의 φ값도 같다고 가정합니다. 두 상태에서 같은 유한 행동열을 실행할 때 허용성·총비용·마지막 목표가 일치하는 이유를 증명하세요.
Assume states sharing φ have equal goals and admissible actions, and the same action has equal cost and equal successor φ. Prove that a common finite action sequence has matching feasibility, total cost and terminal goal from those states.
풀이와 확인할 이유Solution and explanation
길이 0에서는 목표와 비용 0이 같습니다. 길이 k까지 축약 상태가 같다면 다음 행동의 허용성·비용이 같고 다음 φ도 같으므로 성질이 k+1까지 유지됩니다. 귀납법으로 모든 유한 길이에 성립합니다.
At length zero, goals agree and costs are zero. If reduced states agree through k steps, the next action has matching admissibility and cost and produces matching φ. Induction extends the properties to every finite length.
52. 정보를 무시할 수 있는 최선값Best values when extra information can be ignored
유한 세계·행동과 비음수 질량·양의 총질량, 유한 실수 성과를 둡니다. O₁=h(O₂)이고 각 O₁ 묶음의 허용 행동 집합은 같고 비어 있지 않습니다. 정보 비용은 없습니다. 모든 결정적 규칙을 허용할 때 최고 평균 성과 V(O₂)≥V(O₁)를 보이세요.
Use finite worlds/actions, nonnegative weights with positive total and finite real payoffs. Let O₁=h(O₂), with a common nonempty admissible action set within each O₁ class and no information cost. Allow every deterministic rule. Show V(O₂)≥V(O₁).
풀이와 확인할 이유Solution and explanation
O₁ 규칙 π₁을 O₂에서 π₂(o₂)=π₁(h(o₂))로 복사하면 모든 세계에서 같은 행동·성과를 얻습니다. O₂의 후보 집합은 이 복사를 포함하므로 최고값이 더 작을 수 없습니다. 유한 집합에서 최고값은 달성됩니다.
Copy any coarse rule as π₂(o₂)=π₁(h(o₂)); it produces the same actions/payoffs in every world. The refined class includes every such copy, so its maximum cannot be lower. Finiteness ensures attainment.
53. 센서 비용이 바꾸는 비교A sensor cost changes the comparison
동일확률 두 세계에서 올바른 0·1 행동은 각각 0·1이며 맞으면 성과 1, 틀리면 0입니다. 아무 정보가 없으면 상수 행동만 가능합니다. 세계를 정확히 알려 주는 센서를 반드시 쓰고 비용 2를 빼야 하는 별도 제도와 최고 순성과를 비교하세요.
Two equally likely worlds require actions zero and one respectively. Correct actions earn one, wrong actions zero. Without information only a constant action is possible. Compare with a separate regime that reveals the world but necessarily charges sensor cost two, maximizing net payoff.
풀이와 확인할 이유Solution and explanation
정보 없는 최고 평균은 1/2입니다. 센서를 쓰면 항상 맞혀 보상 1이지만 순성과는 1−2=−1입니다. 정보가 무료라는 전제를 바꾸었으므로 앞 최선값 정리와 모순이 아닙니다.
The uninformed best mean is one half. Perfect sensing earns one but nets minus one after the compulsory cost. This changes the no-information-cost premise and does not contradict the previous result.
54. 특정 코드와 최선값One implementation versus the best value
두 동일확률 세계에서 맞는 행동은 각각 0·1이고 성과는 정답 1·오답 0입니다. 정보 없는 상수 0과, 세계를 보지만 항상 반대 답을 내는 코드를 비교하세요. 정보의 최고값 정리가 이 코드도 더 좋다고 하나요?
Two uniform worlds require actions zero and one, rewarding correct actions one and wrong actions zero. Compare uninformed constant zero with a fully informed program that always chooses the wrong action. Does the best-information-value theorem guarantee this program improves?
풀이와 확인할 이유Solution and explanation
상수 0의 평균은 1/2, 반대로 고르는 코드는 0입니다. 정리는 전체 관측을 쓸 수 있는 모든 규칙의 최고값에 관한 것으로 임의 구현의 성과를 보장하지 않습니다.
Constant zero averages one half; the always-wrong program averages zero. The theorem concerns the best of all permitted informed rules, not every implementation.
55. 세 국가 필드의 읽기 계약An inspection contract for three country fields
실제 국가 기록의 GDP·기대수명·실업률 세 값은 모두 보관되어 있습니다. 에이전트는 GDP와 기대수명만 읽었고 과제는 셋을 모두 보고하는 것입니다. 필드당 가정 비용 1일 때 현재 답의 완성 여부·비용과 완성에 필요한 추가 읽기를 쓰세요.
All three actual country fields—GDP, longevity and unemployment—are retained, but the agent has inspected GDP and longevity only. The task requires all three. At assumed cost one per field, report completeness, current cost and the additional inspection needed.
풀이와 확인할 이유Solution and explanation
실업률이 관측에 없어 답은 미완성이고 현재 비용은 2입니다. 실업률을 읽으면 비용 1이 더해져 합계 3입니다. 읽기 행동은 국가의 실업률이나 GDP를 바꾸지 않습니다.
The answer is incomplete because unemployment is uninspected; current cost is two. Inspect it for one more, totalling three. Inspection does not change national unemployment or GDP.
56. 원센트에서 달러로Source cents to dollars
Card 실제 원행 1은 개인 코드 2·1976년 원 시간당 임금 548센트입니다. 그 필드를 읽어 1 USD=100센트로 환산합니다. 정확한 USD/시간과 이 값이 현재 임금인지 쓰세요.
Actual Card source row one has person code two and recorded 1976 hourly wage 548 cents. Inspect that field and use 100 cents per USD. Give exact USD/hour and say whether this is a current wage.
풀이와 확인할 이유Solution and explanation
548/100=137/25=5.48 USD/시간입니다. 1976년 원값의 단위 환산이지 현재 임금·현재 구매력으로의 변환이 아닙니다.
It is 548/100=137/25=5.48 USD/hour. This converts the unit of a 1976 record; it does not identify a current wage or current purchasing power.
57. 가용 개수와 같은 행 집합Available counts versus identical row sets
원행 3,613개에서 원임금은 3,017개, 지정 로그는 3,010개가 가용합니다. 각 미관측 개수와 가용 개수 차이를 구하세요. 개수만으로 어느 원행이 빠졌는지도 정해지나요?
Among 3,613 source rows, raw wage is available on 3,017 and the specified log on 3,010. Find missing counts and the difference in available counts. Do counts alone identify which rows are missing?
풀이와 확인할 이유Solution and explanation
미관측은 각각 596·603개이고 가용 개수 차이는 7입니다. 개수만으로 원행 위치나 두 가용 집합의 포함 관계는 알 수 없습니다. 원행별 표지를 함께 읽어야 합니다.
Missing counts are 596 and 603; available counts differ by seven. Counts alone identify neither row positions nor set inclusion. Inspect row-level availability flags as well.
58. 보관 고객 네 칸의 가정 비용Assumed cost on four retained customer cells
실제 보관 불만 규칙의 네 칸은 TP=200, FP=41, FN=295, TN=2,614입니다. FP 벌점 1·FN 벌점 4·맞힌 벌점과 표시 비용 0입니다. 총비용과 3,150행 평균을 구하고 실제 회사 손해인지 설명하세요.
The retained complaint rule has TP=200, FP=41, FN=295 and TN=2,614. Assume FP penalty one, FN penalty four and zero correct/flag costs. Find total cost and its mean over 3,150 rows. Is it a measured company loss?
풀이와 확인할 이유Solution and explanation
합계는 41+4×295=1,221이고 평균은 1,221/3,150=407/1,050입니다. 원 네 칸은 실제 기록의 집계지만 벌점은 가정이므로 실제 회사 금전 손해라고 부를 수 없습니다.
Total cost is 41+4×295=1,221 and mean is 407/1,050. The cells summarize retained observations, but penalties are assumed, so the result is not a measured financial company loss.
59. 관측 기록이 정하지 않는 다음 전이A next transition not determined by retained observations
보관 고객 기록에 Complains=1·Churn=1이 있지만 연락 행동과 연락 뒤 새 결과는 없습니다. 두 가정 모형은 같은 원 기록을 보존하면서 연락 후 새 이탈을 하나는 1, 하나는 0으로 정합니다. 원 기록만으로 어느 전이가 맞는지 선택할 수 있나요?
A retained customer row has Complains=1 and Churn=1, but no contact action or new post-contact outcome. Two assumed models preserve that same row while assigning a new post-contact churn of one or zero. Can the retained row determine which transition is correct?
풀이와 확인할 이유Solution and explanation
아닙니다. 두 모형이 관측된 원 기록에서는 같고 알려지지 않은 행동 뒤 결과에서만 다릅니다. 연락 효과를 판단할 추가 자료·설계가 필요하며 원 Churn을 행동 뒤 관측값으로 덮어쓰지 않습니다.
No. The models agree on the observed record and differ only on an unobserved future outcome after action. Additional evidence/design is needed; do not overwrite original Churn as if it were a post-action measurement.
60. 문제 표현의 최종 메모A final formulation memo
실제 국가·개인·기업 중 하나로 읽기 과제를 만들고 일곱 문장 메모를 씁니다. 원자료·상태·관측·행동·전이·목적·성과와 알 수 없는 부분을 포함하는 틀을 제시하세요.
Create an inspection task from one actual country, person or company case. Give a seven-sentence memo template covering source, state, observation, action, transition, objective, performance and what remains unknown.
풀이와 확인할 이유Solution and explanation
예: ①원자료와 원행·단위를 밝힌다. ②전체 기록 상태를 정의한다. ③에이전트가 실제 받은 필드와 미확인을 적는다. ④허용한 읽기·검토 행동과 가정 비용을 적는다. ⑤원 기록 보존과 추가 전이 가정을 구별한다. ⑥목표·성과식·가중 분모·평가 범위를 쓴다. ⑦미확인 행동 효과·미래 성과·실제 비용을 남기고 재현 파일을 연결한다.
For example: identify source/positions/units; define the full record state; state inspected and unknown fields; declare inspection/review actions and assumed costs; distinguish fixed observations from extra transition assumptions; specify goal/metric/weight denominator/evaluation scope; retain unknown action effects, future performance and real costs while linking reproduction files.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.