[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:22.04,0:00:24.61,Default,,0000,0000,0000,,After breaking Ethic out of prison, Dialogue: 0,0:00:24.61,0:00:27.82,Default,,0000,0000,0000,,Hedge flies them both towards \Na frontier settlement Dialogue: 0,0:00:27.82,0:00:34.64,Default,,0000,0000,0000,,in the shadow of the Bradbarrier, \Nthe great wall that encircles the nation. Dialogue: 0,0:00:34.64,0:00:38.97,Default,,0000,0000,0000,,All the settlers there will soon gather \Nfor the monthly feeding. Dialogue: 0,0:00:38.97,0:00:43.19,Default,,0000,0000,0000,,The people of the wall spend their days \Ngathering up works of art and literature, Dialogue: 0,0:00:43.19,0:00:45.79,Default,,0000,0000,0000,,from all across the land. Dialogue: 0,0:00:45.79,0:00:50.38,Default,,0000,0000,0000,,On feeding day, the furnace-bots arrive, \Nravenous. Dialogue: 0,0:00:50.38,0:00:56.12,Default,,0000,0000,0000,,If they eat, the lights stay on, \Nand the food gets delivered. Dialogue: 0,0:00:56.12,0:00:59.41,Default,,0000,0000,0000,,If they starve, the people do too. Dialogue: 0,0:01:00.95,0:01:05.93,Default,,0000,0000,0000,,Hedge’s fuel supply runs out just as he \Nand Ethic reach the outskirts of town, Dialogue: 0,0:01:05.93,0:01:08.73,Default,,0000,0000,0000,,and they come in for a crash landing. Dialogue: 0,0:01:10.58,0:01:14.100,Default,,0000,0000,0000,,Luckily, everyone is too busy preparing \Nfor the feeding to notice. Dialogue: 0,0:01:14.100,0:01:17.87,Default,,0000,0000,0000,,Today’s feeding is where Ethic \Ncan find the leader Dialogue: 0,0:01:17.87,0:01:20.55,Default,,0000,0000,0000,,of an underground resistance movement. Dialogue: 0,0:01:20.55,0:01:24.82,Default,,0000,0000,0000,,This person knows the location of the \Nfirst of three powerful artifacts. Dialogue: 0,0:01:24.82,0:01:27.22,Default,,0000,0000,0000,,The problem is, Hedge and \NEthic don’t know Dialogue: 0,0:01:27.22,0:01:30.62,Default,,0000,0000,0000,,the resistance leader’s name \Nor appearance. Dialogue: 0,0:01:30.62,0:01:34.80,Default,,0000,0000,0000,,But Hedge has gathered the \Nfollowing information: Dialogue: 0,0:01:34.80,0:01:37.22,Default,,0000,0000,0000,,The leader has green eyes. Dialogue: 0,0:01:37.22,0:01:43.24,Default,,0000,0000,0000,,If the leader has red hair, their name has\Nat least one consecutive double letter. Dialogue: 0,0:01:43.24,0:01:48.29,Default,,0000,0000,0000,,If the leader wear glasses, \Ntheir name has exactly 2 vowels. Dialogue: 0,0:01:48.29,0:01:52.30,Default,,0000,0000,0000,,Otherwise, their name has \Nexactly 3 vowels. Dialogue: 0,0:01:52.30,0:01:57.11,Default,,0000,0000,0000,,There is exactly one person for whom \Nthese are all true. Dialogue: 0,0:01:57.11,0:01:58.32,Default,,0000,0000,0000,,As a fugitive, Dialogue: 0,0:01:58.32,0:02:02.51,Default,,0000,0000,0000,,Ethic can’t sneak into the crowd without \Ndrawing attention to herself. Dialogue: 0,0:02:02.51,0:02:05.33,Default,,0000,0000,0000,,But she can give instructions to Hedge. Dialogue: 0,0:02:05.33,0:02:09.50,Default,,0000,0000,0000,,And one tool she has is what \Nprogrammers call a conditional. Dialogue: 0,0:02:09.50,0:02:13.18,Default,,0000,0000,0000,,That’s a statement of the form \N“If A, then B.” Dialogue: 0,0:02:13.18,0:02:16.38,Default,,0000,0000,0000,,Flowcharts are great illustrations \Nof how those work. Dialogue: 0,0:02:16.38,0:02:22.27,Default,,0000,0000,0000,,This conditional translates to: \Nif A is true, carry out instruction B. Dialogue: 0,0:02:22.27,0:02:26.18,Default,,0000,0000,0000,,There are also conditionals that account \Nfor different possibilities. Dialogue: 0,0:02:26.18,0:02:30.02,Default,,0000,0000,0000,,This says, “If A is true, perform \Ninstruction B. Dialogue: 0,0:02:30.02,0:02:33.72,Default,,0000,0000,0000,,Otherwise, carry out instruction C.” Dialogue: 0,0:02:33.72,0:02:38.83,Default,,0000,0000,0000,,So what instructions does she give Hedge \Nso he can find the resistance leader? Dialogue: 0,0:02:38.83,0:02:43.49,Default,,0000,0000,0000,,Pause now to figure it out for yourself. Dialogue: 0,0:02:43.49,0:02:47.41,Default,,0000,0000,0000,,With a problem like this, \Nit can help to simplify first. Dialogue: 0,0:02:47.41,0:02:50.99,Default,,0000,0000,0000,,What if Hedge just has to examine \Nthis one person? Dialogue: 0,0:02:50.99,0:02:54.23,Default,,0000,0000,0000,,What information does he need \Nto collect about her? Dialogue: 0,0:02:54.23,0:02:57.24,Default,,0000,0000,0000,,He might ask, “Does she have green eyes?” Dialogue: 0,0:02:57.24,0:03:01.69,Default,,0000,0000,0000,,What other questions should Hedge \Nask to find the resistance leader, Dialogue: 0,0:03:01.69,0:03:05.73,Default,,0000,0000,0000,,and how can he track those answers? Dialogue: 0,0:03:05.73,0:03:10.72,Default,,0000,0000,0000,,Pause now to figure it out for yourself. Dialogue: 0,0:03:10.72,0:03:14.61,Default,,0000,0000,0000,,It may seem intuitive how you’d approach \Nthis problem as a human. Dialogue: 0,0:03:14.61,0:03:16.38,Default,,0000,0000,0000,,But Hedge isn’t a human, Dialogue: 0,0:03:16.38,0:03:20.99,Default,,0000,0000,0000,,and so the challenge comes from needing \Nto give him systematic instructions Dialogue: 0,0:03:20.99,0:03:23.65,Default,,0000,0000,0000,,that will work in any scenario. Dialogue: 0,0:03:23.65,0:03:26.58,Default,,0000,0000,0000,,Hedge needs to examine the settlers, \None at a time, Dialogue: 0,0:03:26.58,0:03:29.14,Default,,0000,0000,0000,,until he discovers the right person. Dialogue: 0,0:03:29.14,0:03:32.71,Default,,0000,0000,0000,,In other words, like with the \Nlock on the prison cell, Dialogue: 0,0:03:32.71,0:03:36.56,Default,,0000,0000,0000,,this is a loop that repeats the \Nsame instructions. Dialogue: 0,0:03:36.56,0:03:40.08,Default,,0000,0000,0000,,Only this time the loop will involve \Na series of questions Dialogue: 0,0:03:40.08,0:03:41.77,Default,,0000,0000,0000,,in the form of conditionals, Dialogue: 0,0:03:41.77,0:03:45.08,Default,,0000,0000,0000,,and will end as soon as Hedge \Nfinds his target. Dialogue: 0,0:03:45.08,0:03:48.59,Default,,0000,0000,0000,,But first, you’ll want to organize \Nyour information. Dialogue: 0,0:03:48.59,0:03:55.13,Default,,0000,0000,0000,,Each person has a set of characteristics: \NEye color, hair color, glasses, and name. Dialogue: 0,0:03:55.13,0:03:57.30,Default,,0000,0000,0000,,Does this person have green eyes? Dialogue: 0,0:03:57.30,0:04:02.37,Default,,0000,0000,0000,,If so, mark a check next to “eye color." \NIf not, mark an X there. Dialogue: 0,0:04:02.37,0:04:06.21,Default,,0000,0000,0000,,If they have red hair, does their \Nname contain a double letter? Dialogue: 0,0:04:06.21,0:04:09.54,Default,,0000,0000,0000,,If so, mark a check next to “hair color.” Dialogue: 0,0:04:09.54,0:04:13.83,Default,,0000,0000,0000,,If they don’t have a double letter, \Nmark an X next to “hair color.” Dialogue: 0,0:04:13.83,0:04:18.58,Default,,0000,0000,0000,,Anyone with red hair and no double \Nletter can’t be the resistance leader. Dialogue: 0,0:04:18.58,0:04:20.83,Default,,0000,0000,0000,,But notice that if they have blue hair, Dialogue: 0,0:04:20.83,0:04:25.43,Default,,0000,0000,0000,,Hedge will skip this question and \Ngo on to the next one. Dialogue: 0,0:04:25.43,0:04:27.80,Default,,0000,0000,0000,,For the last question, we can say, Dialogue: 0,0:04:27.80,0:04:32.55,Default,,0000,0000,0000,,“If they wear glasses, does their name \Nhave exactly 2 vowels? Dialogue: 0,0:04:32.55,0:04:38.13,Default,,0000,0000,0000,,If they don’t have glasses, does their \Nname have exactly 3 vowels?” Dialogue: 0,0:04:38.13,0:04:42.46,Default,,0000,0000,0000,,There will be people in the crowd with \Nglasses and 1 vowel, Dialogue: 0,0:04:42.46,0:04:44.86,Default,,0000,0000,0000,,or no glasses and 2 vowels. Dialogue: 0,0:04:44.86,0:04:48.67,Default,,0000,0000,0000,,But they’re not who we’re looking for, \Nso they’ll get X’s. Dialogue: 0,0:04:48.67,0:04:52.20,Default,,0000,0000,0000,,The resistance leader must be someone \Nwith either check marks Dialogue: 0,0:04:52.20,0:04:55.03,Default,,0000,0000,0000,,or blanks next to every question. Dialogue: 0,0:04:55.03,0:04:58.11,Default,,0000,0000,0000,,Blanks are ok, because if someone \Nhas blue hair, Dialogue: 0,0:04:58.11,0:05:01.92,Default,,0000,0000,0000,,the rule about red hair doesn’t \Napply to them. Dialogue: 0,0:05:01.92,0:05:05.51,Default,,0000,0000,0000,,You could have Hedge ask every question \Nabout every person, Dialogue: 0,0:05:05.51,0:05:09.22,Default,,0000,0000,0000,,and then choose the person with \Nonly checks and blanks. Dialogue: 0,0:05:09.22,0:05:14.16,Default,,0000,0000,0000,,But there’s a way to save yourself lots \Nof time: as soon as Hedge marks an X, Dialogue: 0,0:05:14.17,0:05:16.72,Default,,0000,0000,0000,,have him move on to the next person. Dialogue: 0,0:05:16.72,0:05:19.29,Default,,0000,0000,0000,,You don’t need to know the answer \Nto every question; Dialogue: 0,0:05:19.29,0:05:24.40,Default,,0000,0000,0000,,just one X means they’re not the target \Nof your search. Dialogue: 0,0:05:26.28,0:05:28.08,Default,,0000,0000,0000,,Hedge buzzes through the crowd, Dialogue: 0,0:05:28.08,0:05:31.65,Default,,0000,0000,0000,,and within minutes finds Adila, \Nthe resistance leader, Dialogue: 0,0:05:31.65,0:05:33.78,Default,,0000,0000,0000,,and brings her back to Ethic. Dialogue: 0,0:05:33.78,0:05:39.06,Default,,0000,0000,0000,,Adila agrees to help them steal the first \Nartifact— the node of power— Dialogue: 0,0:05:39.06,0:05:41.02,Default,,0000,0000,0000,,but under one condition: Dialogue: 0,0:05:41.02,0:05:43.75,Default,,0000,0000,0000,,that Ethic and Hedge jump-start \Nthe revolution Dialogue: 0,0:05:43.75,0:05:48.35,Default,,0000,0000,0000,,by reprogramming the furnace-bots \Nthat terrorize the town. Dialogue: 0,0:05:48.35,0:05:51.13,Default,,0000,0000,0000,,And right on cue, the robots descend.