0:00:06.879,0:00:10.030 In many ways, [br]our memories make us who we are, 0:00:10.030,0:00:12.059 helping us remember our past, 0:00:12.059,0:00:13.989 learn and retain skills, 0:00:13.989,0:00:16.273 and plan for the future. 0:00:16.273,0:00:19.916 And for the computers that often act[br]as extensions of ourselves, 0:00:19.916,0:00:22.126 memory plays much the same role, 0:00:22.126,0:00:23.711 whether it's a two-hour movie, 0:00:23.711,0:00:25.283 a two-word text file, 0:00:25.283,0:00:27.833 or the instructions for opening either, 0:00:27.833,0:00:33.372 everything in a computer's memory[br]takes the form of basic units called bits, 0:00:33.372,0:00:35.846 or binary digits. 0:00:35.846,0:00:38.387 Each of these is stored in a memory cell 0:00:38.387,0:00:42.185 that can switch between two states[br]for two possible values, 0:00:42.185,0:00:44.057 0 and 1. 0:00:44.057,0:00:47.177 Files and programs consist of millions[br]of these bits, 0:00:47.177,0:00:50.428 all processed in [br]the central processing unit, 0:00:50.428,0:00:51.746 or CPU, 0:00:51.746,0:00:54.096 that acts as the computer's brain. 0:00:54.096,0:00:58.671 And as the number of bits needing[br]to be processed grows exponentially, 0:00:58.671,0:01:01.532 computer designers face [br]a constant struggle 0:01:01.532,0:01:05.295 between size, cost, and speed. 0:01:05.295,0:01:10.126 Like us, computers have short-term memory[br]for immediate tasks, 0:01:10.126,0:01:13.407 and long-term memory [br]for more permanent storage. 0:01:13.407,0:01:15.277 When you run a program, 0:01:15.277,0:01:18.950 your operating system allocates area[br]within the short-term memory 0:01:18.950,0:01:20.845 for performing those instructions. 0:01:20.845,0:01:24.392 For example, when you press a key[br]in a word processor, 0:01:24.392,0:01:29.536 the CPU will access one of these locations[br]to retrieve bits of data. 0:01:29.536,0:01:33.861 It could also modify them,[br]or create new ones. 0:01:33.861,0:01:38.258 The time this takes is known [br]as the memory's latency. 0:01:38.258,0:01:43.801 And because program instructions must be[br]processed quickly and continuously, 0:01:43.801,0:01:48.563 all locations within the short-term memory[br]can be accessed in any order, 0:01:48.563,0:01:51.714 hence the name random access memory. 0:01:51.714,0:01:55.900 The most common type of RAM [br]is dynamic RAM, or DRAM. 0:01:55.900,0:02:00.989 There, each memory cell consists[br]of a tiny transistor and a capacitor 0:02:00.989,0:02:02.987 that store electrical charges, 0:02:02.987,0:02:07.555 a 0 when there's no charge,[br]or a 1 when charged. 0:02:07.555,0:02:09.167 Such memory is called dynamic 0:02:09.167,0:02:13.380 because it only holds charges briefly[br]before they leak away, 0:02:13.380,0:02:16.759 requiring periodic recharging[br]to retain data. 0:02:16.759,0:02:20.006 But even its low latency [br]of 100 nanoseconds 0:02:20.006,0:02:22.651 is too long for modern CPUs, 0:02:22.651,0:02:26.563 so there's also a small, [br]high-speed internal memory cache 0:02:26.563,0:02:28.513 made from static RAM. 0:02:28.513,0:02:31.722 That's usually made up [br]of six interlocked transistors 0:02:31.722,0:02:33.624 which don't need refreshing. 0:02:33.624,0:02:36.779 SRAM is the fastest memory [br]in a computer system, 0:02:36.779,0:02:38.680 but also the most expensive, 0:02:38.680,0:02:42.414 and takes up three times [br]more space than DRAM. 0:02:42.414,0:02:46.597 But RAM and cache can only hold data[br]as long as they're powered. 0:02:46.597,0:02:49.625 For data to remain[br]once the device is turned off, 0:02:49.625,0:02:53.005 it must be transferred [br]into a long-term storage device, 0:02:53.005,0:02:55.291 which comes in three major types. 0:02:55.291,0:02:57.739 In magnetic storage, [br]which is the cheapest, 0:02:57.739,0:03:03.560 data is stored as a magnetic pattern on[br]a spinning disc coated with magnetic film. 0:03:03.560,0:03:07.203 But because the disc must rotate [br]to where the data is located 0:03:07.203,0:03:08.621 in order to be read, 0:03:08.621,0:03:14.510 the latency for such drives is 100,000 [br]times slower than that of DRAM. 0:03:14.510,0:03:18.626 On the other hand, optical-based storage[br]like DVD and Blu-ray 0:03:18.626,0:03:20.621 also uses spinning discs, 0:03:20.621,0:03:22.813 but with a reflective coating. 0:03:22.813,0:03:28.029 Bits are encoded as light and dark spots[br]using a dye that can be read by a laser. 0:03:28.029,0:03:31.151 While optical storage media are cheap[br]and removable, 0:03:31.151,0:03:34.878 they have even slower latencies [br]than magnetic storage 0:03:34.878,0:03:37.236 and lower capacity as well. 0:03:37.236,0:03:42.871 Finally, the newest and fastest types of[br]long-term storage are solid-state drives, 0:03:42.871,0:03:44.025 like flash sticks. 0:03:44.025,0:03:45.957 These have no moving parts, 0:03:45.957,0:03:48.627 instead using floating gate transistors 0:03:48.627,0:03:53.134 that store bits by trapping [br]or removing electrical charges 0:03:53.134,0:03:56.453 within their specially designed [br]internal structures. 0:03:56.453,0:03:59.739 So how reliable [br]are these billions of bits? 0:03:59.739,0:04:03.463 We tend to think of computer memory[br]as stable and permanent, 0:04:03.463,0:04:06.363 but it actually degrades fairly quickly. 0:04:06.363,0:04:09.000 The heat generated from a device[br]and its environment 0:04:09.000,0:04:11.739 will eventually demagnetize hard drives, 0:04:11.739,0:04:13.991 degrade the dye in optical media, 0:04:13.991,0:04:17.115 and cause charge leakage [br]in floating gates. 0:04:17.115,0:04:20.081 Solid-state drives [br]also have an additional weakness. 0:04:20.081,0:04:24.095 Repeatedly writing to floating gate [br]transistors corrodes them, 0:04:24.095,0:04:26.705 eventually rendering them useless. 0:04:26.705,0:04:29.215 With data on most current storage media 0:04:29.215,0:04:31.958 having less than [br]a ten-year life expectancy, 0:04:31.958,0:04:36.333 scientists are working to exploit[br]the physical properties of materials 0:04:36.333,0:04:38.649 down to the quantum level 0:04:38.649,0:04:40.998 in the hopes of making [br]memory devices faster, 0:04:40.998,0:04:42.063 smaller, 0:04:42.063,0:04:43.609 and more durable. 0:04:43.609,0:04:49.045 For now, immortality remains out of reach,[br]for humans and computers alike.