지’라고 합니다). 이번 절에서는 계산 그래프에 친숙해지기 위한 간단한 문제를 풀어보려 합
니다. 간단한 문제에서부터 한 단계씩 나아가면서 마지막에는 오차역전파법에 도달할 예정입
니다.
5.1.1
계산 그래프로 풀다
그럼 간단한 문제를 계산 그래프를 사용해서 풀어봅시다. 곧 보게 될 문제는 암산으로도 풀 정
도로 간단하지만 지금의 목적은 계산 그래프에 익숙해지는 것입니다. 계산 그래프는 뒤에 나올
복잡한 계산에서 진짜 위력을 발휘하므로, 지금 기회에 꼭 그 사용법을 익혀두길 권합니다.
문제
1
: 현빈 군은 슈퍼에서
1
개에
100
원인 사과를
2
개 샀습니다. 이때 지불 금액을 구
하세요. 단, 소비세가
10
% 부과됩니다.
계산 그래프는 계산 과정을 노드와 화살표로 표현합니다. 노드는 원(○)으로 표기하고 원 안
에 연산 내용을 적습니다. 또, 계산 결과를 화살표 위에 적어 각 노드의 계산 결과가 왼쪽에서
오른쪽으로 전해지게 합니다. 문제
1
을 계산 그래프로 풀면 [그림
5
-
1
]처럼 됩니다.
그림
5-1 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.