1 00:00:00,000 --> 00:00:01,700 Okay, I guess I'm going to start now. 2 00:00:04,020 --> 00:00:07,860 My name is Oskar Sandberg, and as you see, I'm going to talk a bit about network mathematics. 3 00:00:08,520 --> 00:00:11,160 So this talk is probably going to be a little different than most talks here, 4 00:00:11,220 --> 00:00:13,480 because I'm not going to be giving you any attacks or anything like that. 5 00:00:13,580 --> 00:00:18,660 I'm just going to be talking a bit about the ideas behind the mathematics of networks, 6 00:00:18,860 --> 00:00:20,040 and I'm going to give some examples. 7 00:00:20,300 --> 00:00:21,600 Maybe some of them you have seen. 8 00:00:22,680 --> 00:00:24,440 Some of them I promise you have not seen. 9 00:00:27,860 --> 00:00:32,400 So what I mean by network, and the word is used in many different ways, 10 00:00:33,100 --> 00:00:36,140 but for this one it's going to be the simplest abstraction possible, 11 00:00:36,420 --> 00:00:41,460 which is that there's just a collection of points, and there are connections between them. 12 00:00:41,520 --> 00:00:43,220 So that's a network, points and connections. 13 00:00:45,460 --> 00:00:52,960 So this kind of abstraction is very common, and it comes up in a lot of different sciences. 14 00:00:53,060 --> 00:00:54,180 So the study of networks. 15 00:00:54,180 --> 00:00:56,720 Networks really is a cross-science field, 16 00:00:57,020 --> 00:01:02,440 and it comes up in physics, in biology, in sociology, 17 00:01:02,900 --> 00:01:08,440 and of course when you're dealing with computers and computer security and everything like that. 18 00:01:10,280 --> 00:01:16,100 And so I like to put this up just because this abstraction has many different names, 19 00:01:17,000 --> 00:01:20,560 as tends to be the case when different fields are studying the same thing, 20 00:01:20,660 --> 00:01:22,240 but it really all means the same thing. 21 00:01:22,320 --> 00:01:24,120 So mathematicians, and since... 22 00:01:24,180 --> 00:01:26,540 I do math, I'm probably going to use these terms most, 23 00:01:26,840 --> 00:01:29,800 is instead of a network, you talk about a graph, 24 00:01:30,060 --> 00:01:32,340 which is confusing to a lot of non-mathematicians 25 00:01:32,340 --> 00:01:33,960 because they think of a graph as the plot thing, 26 00:01:34,120 --> 00:01:35,760 but that's not what you mean. 27 00:01:36,000 --> 00:01:37,960 If a mathematician says graph, he means a network, 28 00:01:38,020 --> 00:01:39,720 points and connections between them. 29 00:01:40,160 --> 00:01:45,200 And in math, they're called vertices and edges. 30 00:01:45,860 --> 00:01:48,760 And computer scientists often would rather refer to a network, 31 00:01:48,820 --> 00:01:51,200 and they talk about nodes and links, possibly. 32 00:01:51,400 --> 00:01:51,900 Not all these. 33 00:01:52,040 --> 00:01:54,160 I mean, within any field, it varies as well. 34 00:01:54,180 --> 00:01:56,720 But these are just examples of the sort of thing that people would say. 35 00:01:56,960 --> 00:01:59,300 And then down at the bottom, I put some examples, right? 36 00:01:59,460 --> 00:02:02,420 If you see, you can see the World Wide Web as a network, 37 00:02:03,000 --> 00:02:06,160 and then each vertex is a web page, 38 00:02:06,300 --> 00:02:09,620 and then you have links, and those are directional, 39 00:02:09,780 --> 00:02:13,900 but the Internet, depending on how you look at it, 40 00:02:13,940 --> 00:02:17,180 you could either see individual sites or networks, and they're connected. 41 00:02:20,360 --> 00:02:23,140 So just since this is a math talk, 42 00:02:23,140 --> 00:02:24,220 we're going to do some math. 43 00:02:24,940 --> 00:02:28,320 So formally, the way you define this graph is you say that 44 00:02:28,320 --> 00:02:30,540 there's a set of vertices and a set of edges. 45 00:02:32,140 --> 00:02:34,500 And we just denote those by V and E. 46 00:02:34,580 --> 00:02:36,640 So it's a collection of vertices, these are the points, 47 00:02:36,720 --> 00:02:38,400 and then the edges between them. 48 00:02:40,960 --> 00:02:43,920 And so V is just some collection, 49 00:02:44,080 --> 00:02:47,340 and UV, then, is a collection of pairs, 50 00:02:47,440 --> 00:02:52,200 saying that for each pair UV, if this exists in the set E, 51 00:02:53,140 --> 00:02:54,320 then that is an edge. 52 00:02:56,880 --> 00:03:02,080 And one thing you have is, when you're looking at networks, 53 00:03:02,720 --> 00:03:04,920 if we're trying to study networks in real life, 54 00:03:05,060 --> 00:03:09,660 is that you have either ones that are structured and designed by people explicitly, 55 00:03:09,940 --> 00:03:13,520 or you have ones that are randomly evolved. 56 00:03:15,520 --> 00:03:17,420 And those are some examples. 57 00:03:18,280 --> 00:03:22,060 Corporate LANs or telephone networks tend to be designed by somebody 58 00:03:22,060 --> 00:03:23,120 who thinks about how the network works, 59 00:03:23,120 --> 00:03:24,060 network should be set up. 60 00:03:24,160 --> 00:03:27,600 Whereas other things are maybe more or less random. 61 00:03:28,460 --> 00:03:30,800 There's no design to the network that makes up the 62 00:03:30,800 --> 00:03:32,940 World Wide Web or the social network of the world. 63 00:03:34,500 --> 00:03:36,680 And then there's also those that are somewhere in between. 64 00:03:36,840 --> 00:03:39,020 The best way to model something like many peer-to-peer 65 00:03:39,020 --> 00:03:41,320 networks or the internet itself is to say, well, there 66 00:03:41,320 --> 00:03:42,220 is some structure. 67 00:03:42,520 --> 00:03:45,920 Somebody is trying to bring some sort of order here, but 68 00:03:45,920 --> 00:03:47,040 it's pretty chaotic. 69 00:03:47,160 --> 00:03:51,460 Nobody drew up a map and said this is how it should be. 70 00:03:51,460 --> 00:03:54,040 And these ones that lie somewhere in between is 71 00:03:54,040 --> 00:03:55,800 actually where some of the most interesting mathematics 72 00:03:55,800 --> 00:03:56,440 comes in. 73 00:03:56,540 --> 00:03:57,960 And that's where we're going to get to. 74 00:04:00,120 --> 00:04:02,520 And so when you're doing analysis of these sort of 75 00:04:02,520 --> 00:04:04,800 things, what type of questions you're asking usually depends 76 00:04:04,800 --> 00:04:07,360 on what type of network you're looking at. 77 00:04:08,220 --> 00:04:10,780 For these structured networks, the questions are 78 00:04:10,780 --> 00:04:13,080 typically something that are algorithmic in nature. 79 00:04:13,260 --> 00:04:16,600 They tend to be, oh, how should I make a network so 80 00:04:16,600 --> 00:04:17,900 that it has this and that property? 81 00:04:18,860 --> 00:04:21,440 And these tend to be the very classical, combinatorial 82 00:04:21,440 --> 00:04:22,520 computer science problem. 83 00:04:22,660 --> 00:04:26,300 How do I connect this to make a graph in a certain sense or 84 00:04:26,300 --> 00:04:26,540 whatever? 85 00:04:27,140 --> 00:04:30,060 Whereas if you're dealing with randomly generated networks, 86 00:04:30,160 --> 00:04:32,760 social networks, the web, something like that, you tend 87 00:04:32,760 --> 00:04:35,680 to be more analytic because you're saying, well, we have 88 00:04:35,680 --> 00:04:39,160 this dynamic that's randomly wiring up this thing, and we 89 00:04:39,160 --> 00:04:40,440 want to understand what's going on. 90 00:04:40,600 --> 00:04:43,300 So the questions tend to be more analytic in nature. 91 00:04:46,880 --> 00:04:50,680 So I'm going to be dealing with networks that are randomly 92 00:04:50,680 --> 00:04:51,160 created. 93 00:04:51,160 --> 00:04:51,420 . 94 00:04:51,440 --> 00:04:55,240 With either completely random or with some structure, and 95 00:04:55,240 --> 00:04:56,800 we're going to be looking a little bit at different models 96 00:04:56,800 --> 00:04:57,120 of this. 97 00:04:57,300 --> 00:05:00,300 So what we start out with is the very simplest model, which 98 00:05:00,300 --> 00:05:03,880 mathematicians refer to as GNP, G of NMP. 99 00:05:04,340 --> 00:05:06,360 And the roles of NMP I'll explain. 100 00:05:06,940 --> 00:05:09,800 And this is an old model that goes back to the work of 101 00:05:09,800 --> 00:05:11,680 Erdős in the 50s, Erdős and . 102 00:05:12,840 --> 00:05:15,500 And the idea is we just enumerate the vertices. 103 00:05:15,540 --> 00:05:16,960 So we call the points on the graph. 104 00:05:18,100 --> 00:05:20,420 Well, I numbered from 0 here, but normally 105 00:05:20,420 --> 00:05:21,160 you'd number from 1. 106 00:05:21,440 --> 00:05:23,160 If you can forget the zero, that's a typo. 107 00:05:25,100 --> 00:05:26,960 And too much coding in C. 108 00:05:30,720 --> 00:05:34,540 And then the point is, once you have this collection of vertices, 109 00:05:34,780 --> 00:05:40,500 you just add edges independently and with this probability P for every pair. 110 00:05:41,120 --> 00:05:44,500 And so this notion of independence is extremely important 111 00:05:44,500 --> 00:05:46,260 when you're dealing with anything probabilistic. 112 00:05:46,380 --> 00:05:50,380 And what it means is that it happens without depending on what the outcome of the other things were. 113 00:05:50,380 --> 00:05:54,240 The best way to think about this is that for every pair of vertices, 114 00:05:54,500 --> 00:06:00,700 we toss a coin, and if the coin comes up heads, then they have an edge between them. 115 00:06:00,780 --> 00:06:02,340 If not, then they don't. 116 00:06:02,580 --> 00:06:06,200 There's no whether two nodes have an edge between them. 117 00:06:06,240 --> 00:06:08,880 It doesn't depend on whether there are all the other edges in the network. 118 00:06:10,880 --> 00:06:12,540 So I have this simulator. 119 00:06:13,300 --> 00:06:17,420 Just to show here, I took 200 vertices like this, 120 00:06:17,460 --> 00:06:19,220 and I just spread them out now. 121 00:06:19,280 --> 00:06:20,100 We don't know which is which. 122 00:06:20,100 --> 00:06:20,960 But it doesn't really matter. 123 00:06:21,200 --> 00:06:22,980 And then we have a rather low P here. 124 00:06:23,200 --> 00:06:28,360 So for every possible pair of edges, we can just add one randomly. 125 00:06:29,200 --> 00:06:31,600 And I hope you can see those all right there. 126 00:06:32,600 --> 00:06:34,460 Because this P is very small now, 127 00:06:34,700 --> 00:06:39,100 for every possible pair here, there's only a small probability that there's an edge. 128 00:06:39,180 --> 00:06:40,920 You see rather few edges. 129 00:06:41,040 --> 00:06:43,880 And I'll show you some more of that, sorry, later. 130 00:06:48,360 --> 00:06:48,800 So, 131 00:06:48,800 --> 00:06:52,240 so this is not going to be the main part of the talk, 132 00:06:52,340 --> 00:06:54,680 but it's worth noting that already with this very simple model, 133 00:06:54,780 --> 00:06:57,280 which is really the simplest way to make a random network, 134 00:06:57,960 --> 00:07:01,480 you get a lot of interesting properties that have been, 135 00:07:01,580 --> 00:07:03,800 and that actually are quite relevant. 136 00:07:04,060 --> 00:07:04,200 Yeah? 137 00:07:08,060 --> 00:07:08,500 What? 138 00:07:12,900 --> 00:07:16,020 I'm sure that there are applications to computer graphics, yes. 139 00:07:17,440 --> 00:07:17,880 So, 140 00:07:19,100 --> 00:07:21,780 so, for instance, if, 141 00:07:22,680 --> 00:07:24,560 I did this kind of backwards, so. 142 00:07:28,880 --> 00:07:34,040 Yeah, the point is, if this P is greater than one over N, 143 00:07:34,700 --> 00:07:38,940 then you're going to get what is known as a connected cluster, 144 00:07:39,160 --> 00:07:42,860 which means that most of the edges, for some definition of most, 145 00:07:42,940 --> 00:07:45,320 which is different from most definitions of most, 146 00:07:47,340 --> 00:07:48,120 you're, you're, 147 00:07:48,120 --> 00:07:52,860 you're going to, so, so a lot, a very big part of, of the, of the vertices 148 00:07:52,860 --> 00:07:54,580 are all going to be connected to each other, 149 00:07:54,620 --> 00:07:58,460 by which we mean that we can travel along edges to go from any one to any other. 150 00:07:59,240 --> 00:08:02,480 So, as an example of this, so we could take this picture here, 151 00:08:02,660 --> 00:08:05,600 and hopefully this, the contrast is good enough, yeah, 152 00:08:05,980 --> 00:08:07,560 that you can see what happens if we, 153 00:08:07,640 --> 00:08:10,440 what I've done now is I colored all the edges that are, that, 154 00:08:10,480 --> 00:08:12,240 that are connected to one another, 155 00:08:12,360 --> 00:08:16,480 where you can pass through from one to the other in the same color. 156 00:08:16,600 --> 00:08:17,920 But what we see is that, 157 00:08:17,920 --> 00:08:21,720 with this very small P, we get very many different colors, 158 00:08:21,820 --> 00:08:25,300 because most, to start with, most vertices we can see have no edges at all, 159 00:08:25,420 --> 00:08:27,240 so they're completely disconnected from anybody else, 160 00:08:27,380 --> 00:08:30,680 and even where there are edges, most of the edges are disconnected from one another. 161 00:08:30,860 --> 00:08:34,540 You can't travel from one vertex to another over these edges in this network. 162 00:08:34,680 --> 00:08:37,840 So, this is a disconnected network, where you, for instance, you can't, 163 00:08:37,840 --> 00:08:39,760 if it was a communication network, you couldn't have communication, 164 00:08:40,540 --> 00:08:47,900 but it turns out that, even for a pretty small value, like this, where we only have two, so, the number of, of edges at each vertex, 165 00:08:47,900 --> 00:08:49,840 vertex is going to be n times p here 166 00:08:49,840 --> 00:08:51,720 because you've got n different nodes and 167 00:08:51,720 --> 00:08:53,900 probability p of connecting to each one 168 00:08:53,900 --> 00:08:55,820 of them. So here you've got about two edges 169 00:08:55,820 --> 00:08:57,960 at each point. And it turns out already here 170 00:08:57,960 --> 00:08:59,220 if we do the same thing that 171 00:08:59,220 --> 00:09:01,820 even though there are rather few edges, it turns out that 172 00:09:01,820 --> 00:09:03,960 almost everyone belongs to this red. 173 00:09:04,160 --> 00:09:05,820 You can see there's still vertices that are 174 00:09:05,820 --> 00:09:07,660 disconnected from each other, but 175 00:09:07,660 --> 00:09:09,900 almost everyone belongs to this red cluster here. 176 00:09:10,900 --> 00:09:11,800 And this is 177 00:09:11,800 --> 00:09:13,680 an important property because 178 00:09:13,680 --> 00:09:15,840 it says that it doesn't take a lot 179 00:09:15,840 --> 00:09:17,640 of edges. In fact, so the 180 00:09:17,640 --> 00:09:19,400 theoretical threshold is only 181 00:09:19,400 --> 00:09:20,780 one edge per vertex. 182 00:09:21,040 --> 00:09:23,680 The probability of connecting can be so small 183 00:09:23,680 --> 00:09:25,660 that each vertex on average only has one edge. 184 00:09:26,020 --> 00:09:27,440 And yet, most 185 00:09:27,440 --> 00:09:29,700 vertices will still be in this connected 186 00:09:29,700 --> 00:09:31,720 or it has to be a little over one, 187 00:09:31,820 --> 00:09:33,600 but most of the 188 00:09:33,600 --> 00:09:35,400 vertices will still be connected to one another. 189 00:09:35,640 --> 00:09:37,560 And this is one of these very important 190 00:09:37,560 --> 00:09:38,900 for example for security applications, 191 00:09:39,200 --> 00:09:41,400 the robustness of random networks 192 00:09:41,400 --> 00:09:43,680 in the sense that if you do 193 00:09:43,680 --> 00:09:44,420 knock out edges 194 00:09:45,820 --> 00:09:46,300 and 195 00:09:46,300 --> 00:09:46,760 it 196 00:09:46,760 --> 00:09:49,200 , if you try to attack a network, you have to 197 00:09:49,200 --> 00:09:51,260 bring down the average number of edges very, very 198 00:09:51,260 --> 00:09:53,340 far if they're randomly wired in order to 199 00:09:53,340 --> 00:09:55,360 disconnect people. And it turns 200 00:09:55,360 --> 00:09:56,860 out that with just a little more, 201 00:09:57,120 --> 00:09:59,280 so if you go up to log n edges 202 00:09:59,280 --> 00:10:01,380 per vertex, then you'll 203 00:10:01,380 --> 00:10:03,240 get something which looks like this. 204 00:10:03,360 --> 00:10:04,880 Now we've gone up to five 205 00:10:04,880 --> 00:10:07,020 in this example with 200. 206 00:10:07,620 --> 00:10:08,060 And 207 00:10:09,020 --> 00:10:11,000 then you get something which is completely connected. 208 00:10:11,180 --> 00:10:13,380 So everyone is really connected and no one is 209 00:10:13,380 --> 00:10:14,880 left out at all. So 210 00:10:14,880 --> 00:10:17,300 an interesting property of these random networks 211 00:10:17,300 --> 00:10:19,300 is that it takes rather few edges to make sure that 212 00:10:19,300 --> 00:10:21,280 everyone is included. And in order to 213 00:10:21,280 --> 00:10:23,000 disconnect the network, you really have to 214 00:10:23,000 --> 00:10:24,360 knock things out. 215 00:10:25,560 --> 00:10:26,280 Shit, sorry. 216 00:10:27,440 --> 00:10:28,600 Keep hitting the wrong button. 217 00:10:30,860 --> 00:10:31,300 So 218 00:10:31,300 --> 00:10:33,400 the other thing which I'm going to 219 00:10:33,400 --> 00:10:35,320 come back to is the question of diameter of 220 00:10:35,320 --> 00:10:37,400 this connected cluster, which is how many edges 221 00:10:37,400 --> 00:10:39,380 do I have to, I know I can travel from 222 00:10:39,380 --> 00:10:41,480 one vertex to another within the cluster. 223 00:10:41,640 --> 00:10:43,540 How many steps does it take? 224 00:10:43,720 --> 00:10:44,800 And that's at most. 225 00:10:44,880 --> 00:10:47,380 And that's what's called the diameter. It's like if you think about the diameter 226 00:10:47,380 --> 00:10:49,680 of a circle, that's how far apart 227 00:10:49,680 --> 00:10:50,840 are to 228 00:10:51,780 --> 00:10:53,440 the distance between the furthest 229 00:10:53,440 --> 00:10:54,800 points on the circle is the diameter. 230 00:10:55,100 --> 00:10:57,220 In the same sense, when you talk about the diameter of a network 231 00:10:57,220 --> 00:10:59,080 or a graph, you mean how far apart, 232 00:10:59,180 --> 00:11:01,120 how many steps does it take to go from the ones that are 233 00:11:01,120 --> 00:11:02,100 farthest from each other. 234 00:11:04,880 --> 00:11:05,280 So 235 00:11:05,280 --> 00:11:06,920 this model GMP has, 236 00:11:07,140 --> 00:11:09,140 it does have interesting properties 237 00:11:09,140 --> 00:11:10,820 and you can really see some of the things 238 00:11:10,820 --> 00:11:12,960 with the utility of the randomness 239 00:11:12,960 --> 00:11:14,600 in doing things like keeping the graph connected. 240 00:11:14,880 --> 00:11:16,980 But it isn't known as a very good 241 00:11:16,980 --> 00:11:18,600 model for studying real world networks 242 00:11:18,600 --> 00:11:20,960 because it doesn't seem to 243 00:11:20,960 --> 00:11:22,700 obey a lot of the properties that we see 244 00:11:22,700 --> 00:11:24,700 in networks like the internet, 245 00:11:24,920 --> 00:11:27,040 like social networks, like biological networks. 246 00:11:27,980 --> 00:11:28,780 And one 247 00:11:28,780 --> 00:11:29,940 example of this is 248 00:11:29,940 --> 00:11:32,480 that, I'm going to 249 00:11:32,480 --> 00:11:34,700 show an example of this, but the degree 250 00:11:34,700 --> 00:11:36,900 is highly concentrated, to use a 251 00:11:36,900 --> 00:11:38,960 technical term, which means that it varies very little. 252 00:11:39,300 --> 00:11:40,920 And by degree I mean 253 00:11:40,920 --> 00:11:42,520 the number of edges connected to each 254 00:11:42,520 --> 00:11:43,640 vertex. So 255 00:11:44,880 --> 00:11:45,680 when you have 256 00:11:48,160 --> 00:11:49,180 when you have 257 00:11:49,180 --> 00:11:51,180 this, you, essentially what happens 258 00:11:51,180 --> 00:11:53,080 for large networks like this is that 259 00:11:53,080 --> 00:11:54,780 most vertices have 260 00:11:54,780 --> 00:11:56,940 about the same number of edges. 261 00:11:57,060 --> 00:11:59,100 They're connected to about the same number 262 00:11:59,100 --> 00:12:00,700 of other ones. Whereas 263 00:12:00,700 --> 00:12:02,700 if you think about a real world network, 264 00:12:02,860 --> 00:12:05,080 sort of like a world social network, that isn't the case 265 00:12:05,080 --> 00:12:07,080 at all. You have some people who are isolated 266 00:12:07,080 --> 00:12:09,000 and lonely, and some people 267 00:12:09,000 --> 00:12:10,980 who get all the friends and get to go to all the parties. 268 00:12:12,300 --> 00:12:13,020 No bitterness. 269 00:12:15,700 --> 00:12:16,100 So 270 00:12:17,740 --> 00:12:19,420 it tends to be, so it seems like 271 00:12:19,420 --> 00:12:21,260 if you look at most real world networks, they can't really 272 00:12:21,260 --> 00:12:23,240 be wired up in this very simple fashion of taking 273 00:12:23,240 --> 00:12:25,300 each possible edge and saying, and flipping 274 00:12:25,300 --> 00:12:26,980 a coin to see whether it's on or off. I guess 275 00:12:26,980 --> 00:12:29,380 no one would think that a social network would be built 276 00:12:29,380 --> 00:12:31,280 that way, but it's obviously not a good 277 00:12:31,280 --> 00:12:33,080 model because it fails to get for 278 00:12:33,080 --> 00:12:35,300 this property that you have 279 00:12:35,300 --> 00:12:37,300 that some people are very 280 00:12:37,300 --> 00:12:38,680 popular and some people aren't. 281 00:12:40,220 --> 00:12:41,020 And also 282 00:12:41,020 --> 00:12:43,100 there's an important property 283 00:12:43,100 --> 00:12:44,700 of triangles in the graph. 284 00:12:44,880 --> 00:12:46,880 And by triangles, I mean loops of 285 00:12:46,880 --> 00:12:48,320 three edges. So you can go from 286 00:12:49,220 --> 00:12:51,040 an easy way to think about it, if you think 287 00:12:51,040 --> 00:12:53,100 go back to the social network, which is usually 288 00:12:53,100 --> 00:12:55,020 the easiest context to think about these things, 289 00:12:55,080 --> 00:12:56,540 is that if you have two friends, 290 00:12:56,820 --> 00:12:59,000 it's very likely that they are friends 291 00:12:59,000 --> 00:13:01,100 as well. I mean, not very, but it's 292 00:13:01,100 --> 00:13:02,860 quite likely that they are friends as well. 293 00:13:02,980 --> 00:13:04,840 But if you remember, even in this 294 00:13:04,840 --> 00:13:06,980 highly connected network that we had here, 295 00:13:07,180 --> 00:13:08,960 this probability that any 296 00:13:08,960 --> 00:13:10,680 one edge exists is still just 297 00:13:10,680 --> 00:13:11,980 0.025, 298 00:13:12,880 --> 00:13:14,460 which means that if you, 299 00:13:14,880 --> 00:13:16,920 if a network is built like this, that I'm 300 00:13:16,920 --> 00:13:18,940 connected to two people, the probability 301 00:13:18,940 --> 00:13:20,640 that they have an edge between them is independent 302 00:13:20,640 --> 00:13:23,020 of that I knew them, so it doesn't depend on that. 303 00:13:23,120 --> 00:13:24,200 So it's still this probability 304 00:13:24,700 --> 00:13:26,920 which is very low, which probably isn't true 305 00:13:26,920 --> 00:13:28,840 about your friends because a lot of your friends will know 306 00:13:28,840 --> 00:13:30,560 each other because they met through you or whatever. 307 00:13:31,020 --> 00:13:32,220 So this is also 308 00:13:32,220 --> 00:13:34,300 an unrealistic property. 309 00:13:35,040 --> 00:13:36,920 And we're going to, I'm going to 310 00:13:36,920 --> 00:13:38,940 be talking a bit about models which include 311 00:13:39,600 --> 00:13:40,920 these sort of things, and especially 312 00:13:40,920 --> 00:13:42,860 the ladder thing is something we'll come back to. 313 00:13:43,200 --> 00:13:44,700 So before I do, though, 314 00:13:44,880 --> 00:13:46,000 I wanted to give one example, 315 00:13:47,120 --> 00:13:48,820 an example of a model 316 00:13:48,820 --> 00:13:50,880 sort of explaining why it is 317 00:13:50,880 --> 00:13:53,080 that we have this unfairness 318 00:13:53,080 --> 00:13:54,840 that there are some vertices that 319 00:13:54,840 --> 00:13:56,680 have a very high degree, some people who have very many 320 00:13:56,680 --> 00:13:58,620 friends, and some vertices that have a low degree. 321 00:13:59,020 --> 00:14:00,760 And this model is called preferential 322 00:14:00,760 --> 00:14:02,620 attachment, and it was originally 323 00:14:02,620 --> 00:14:04,780 proposed by two physicists, Barabasci 324 00:14:04,780 --> 00:14:06,860 and Albert, and the rigorous 325 00:14:06,860 --> 00:14:08,500 mathematical work was done by 326 00:14:08,500 --> 00:14:10,860 Barabasci and Riordan in analysing it 327 00:14:10,860 --> 00:14:12,800 to try to see that it really behaves like 328 00:14:12,800 --> 00:14:14,000 one would predict that it would. 329 00:14:15,600 --> 00:14:17,240 And the idea with this 330 00:14:17,240 --> 00:14:19,380 model is that you have 331 00:14:19,380 --> 00:14:21,440 this network, and like a social 332 00:14:21,440 --> 00:14:23,300 graph or whatever, and people are 333 00:14:23,300 --> 00:14:25,460 coming in one by one, and when 334 00:14:25,460 --> 00:14:27,360 they come in, they connect to somebody who's 335 00:14:27,360 --> 00:14:29,300 already joined. So first 336 00:14:29,300 --> 00:14:31,480 person joins, he can't do anything. Second person comes 337 00:14:31,480 --> 00:14:33,480 in, he joins with the first, he becomes friends with the 338 00:14:33,480 --> 00:14:35,420 first person. Third person comes in, he has 339 00:14:35,420 --> 00:14:36,960 to choose one of them to become friends with, 340 00:14:37,060 --> 00:14:39,440 and so on. And what happens 341 00:14:39,440 --> 00:14:40,660 is that in the later phases, 342 00:14:42,200 --> 00:14:43,080 the probability 343 00:14:43,080 --> 00:14:45,100 that a new vertex or a new node, 344 00:14:45,240 --> 00:14:48,460 sorry, I'm using, is that he will connect 345 00:14:48,460 --> 00:14:51,380 to somebody will be proportional to the 346 00:14:51,380 --> 00:14:52,620 number of friends they have already. 347 00:14:52,960 --> 00:14:56,460 So that means if somebody already has a high degree, 348 00:14:56,520 --> 00:14:58,680 has many edges coming out, then they will be 349 00:14:58,680 --> 00:15:00,600 more likely to get another edge when the next 350 00:15:00,600 --> 00:15:02,640 person joins the network. And this leads 351 00:15:02,640 --> 00:15:04,860 to this sort of the rich get richer sort 352 00:15:04,860 --> 00:15:08,760 of effect, which of course, I mean, 353 00:15:08,800 --> 00:15:10,500 it's very natural, and if you think about 354 00:15:13,760 --> 00:15:16,520 social networks, there does seem to be somewhat 355 00:15:16,520 --> 00:15:19,340 of that dynamic going on in there. So here's 356 00:15:19,340 --> 00:15:21,300 preferential attachment to sort of illustrate 357 00:15:21,300 --> 00:15:24,500 this in my simulator here. You can see at the 358 00:15:24,500 --> 00:15:26,240 bottom here, I've done a plot of the degree 359 00:15:26,240 --> 00:15:28,960 distribution. By that I mean, how many vertices 360 00:15:28,960 --> 00:15:32,960 have so many friends, right? And the numbers 361 00:15:32,960 --> 00:15:34,440 aren't there, but they aren't very important. It's 362 00:15:34,440 --> 00:15:36,680 more the shape of this plot that you see, the 363 00:15:36,680 --> 00:15:39,040 shape of the histogram there, which says that 364 00:15:39,880 --> 00:15:42,360 it's sort of, it's concentrated around one point. 365 00:15:42,440 --> 00:15:42,960 Most people 366 00:15:43,080 --> 00:15:45,700 have like four or five friends, and some people 367 00:15:45,700 --> 00:15:47,360 have a little bit more, some people have a little 368 00:15:47,360 --> 00:15:50,340 bit less, but it really just sticks around there. 369 00:15:50,800 --> 00:15:55,200 And in green, I've highlighted the edges of the 370 00:15:55,200 --> 00:15:57,000 vertex who has the most number of friends, and 371 00:15:57,000 --> 00:15:58,400 you can see he's got quite a few friends, but 372 00:15:58,400 --> 00:16:01,740 it's not extremely many. And this was then generated, 373 00:16:01,840 --> 00:16:03,400 this is the same graph we were looking at before, 374 00:16:03,540 --> 00:16:06,160 this GMP graph where each edge just exists by a 375 00:16:06,160 --> 00:16:09,580 coin flip. So then we'll do this preferential 376 00:16:09,580 --> 00:16:12,280 attachment instead. So the nodes join one at a 377 00:16:12,280 --> 00:16:12,900 time, and then 378 00:16:13,080 --> 00:16:15,920 their willingness to connect to vertices now is 379 00:16:16,560 --> 00:16:20,100 going to be dependent on how many friends that 380 00:16:20,100 --> 00:16:23,100 vertex had before. And you can see already from 381 00:16:23,100 --> 00:16:25,720 the beginning is the zero bar on the degree 382 00:16:25,720 --> 00:16:27,700 distribution is because ones that haven't joined 383 00:16:27,700 --> 00:16:30,480 have zero. That goes down, and you see that you 384 00:16:30,480 --> 00:16:32,500 get a very different shape on this distribution 385 00:16:32,500 --> 00:16:36,040 here, which is that the lowest, which is two here, 386 00:16:36,140 --> 00:16:38,840 I think, because everyone got two friends just from 387 00:16:38,840 --> 00:16:40,600 joining the network, that most people just have 388 00:16:40,600 --> 00:16:43,060 two. Some people have a little bit more, and they're 389 00:16:43,060 --> 00:16:44,400 getting 3 and you can't see it, but there's actually 390 00:16:44,400 --> 00:16:47,900 like, there's actually very, very small one pixel bars 391 00:16:47,900 --> 00:16:49,680 going all the way to the end of the screen, because 392 00:16:49,680 --> 00:16:51,740 if we look at the guy here who has the most number 393 00:16:51,740 --> 00:16:53,900 of friends, he knows a lot of people. Because he was 394 00:16:53,900 --> 00:16:56,500 one of the first people to join, he happened to get 395 00:16:56,500 --> 00:16:58,320 a lot of friends early on, and because he had a lot 396 00:16:58,320 --> 00:17:00,400 of friends early on, he got more friends later, and 397 00:17:00,400 --> 00:17:03,140 therefore, he got this. These sort of dynamic 398 00:17:03,680 --> 00:17:06,360 explanations for why networks form are the sort of 399 00:17:06,360 --> 00:17:11,500 things that one is looking for in the study of networks. 400 00:17:12,000 --> 00:17:14,000 or one of the things that we're going to be looking for. 401 00:17:14,120 --> 00:17:17,980 But this was actually an aside because the real thing that I'm going to be talking about 402 00:17:17,980 --> 00:17:20,760 is not this but the other one. 403 00:17:21,280 --> 00:17:23,880 And before that, I want to step aside from the mathematics 404 00:17:23,880 --> 00:17:33,020 and talk about sort of one of the motivating ideas behind this part of studying networks. 405 00:17:33,320 --> 00:17:35,560 And this, again, relates to the world social network, 406 00:17:35,780 --> 00:17:39,320 but one shouldn't really think of it as being just being – 407 00:17:39,320 --> 00:17:41,620 I use the social network metaphor because it's very direct. 408 00:17:41,680 --> 00:17:42,600 It's right in front of us. 409 00:17:42,800 --> 00:17:46,260 But all these things really do apply to a lot of different kinds of networks. 410 00:17:47,200 --> 00:17:49,940 This preferential attachment has been applied to just about everything, 411 00:17:50,160 --> 00:17:53,180 from power graphs to how your brain wires up to everything like that. 412 00:17:53,300 --> 00:17:55,500 But you have to forgive me for using the social metaphor 413 00:17:55,500 --> 00:17:58,600 because it's very direct and it's easy to think about. 414 00:17:59,160 --> 00:18:03,960 And the small world phenomenon comes straight from the social metaphor as well. 415 00:18:04,200 --> 00:18:07,300 And it says that if we look at naturally occurring networks, 416 00:18:07,400 --> 00:18:08,620 and social networks in particular, 417 00:18:08,620 --> 00:18:10,800 they tend to have this small diameter, 418 00:18:11,040 --> 00:18:12,140 which is what I mentioned before, 419 00:18:13,180 --> 00:18:17,100 that the number of steps to go from one point to another 420 00:18:17,100 --> 00:18:21,140 following the edges of the graph is not that big between anybody else in the graph. 421 00:18:22,760 --> 00:18:24,680 And so this sort of – 422 00:18:24,680 --> 00:18:27,100 the real birth of the interest in the small world phenomenon 423 00:18:27,100 --> 00:18:30,560 comes from an experiment done by this guy, Stanley Milgram, in 1967. 424 00:18:31,200 --> 00:18:32,780 I don't know if anyone's heard of Milgram. 425 00:18:33,060 --> 00:18:34,640 Well, I'm sure somebody's heard of him, 426 00:18:34,680 --> 00:18:35,780 but I don't know if all of you have heard of him. 427 00:18:35,860 --> 00:18:38,140 He's an extremely cool guy who did a lot of, like, 428 00:18:39,100 --> 00:18:41,900 strange psychological experiments in the 60s. 429 00:18:42,200 --> 00:18:46,820 He's most famous for the one where he had volunteers electrocute other people 430 00:18:46,820 --> 00:18:48,620 to see how much voltage they would put in 431 00:18:49,180 --> 00:18:54,300 if they were just told to do it by somebody who looked like they're authoritative. 432 00:18:54,400 --> 00:18:57,180 But this particular experiment that I'm talking about 433 00:18:57,180 --> 00:19:00,360 is a little less sadistic than that, unfortunately. 434 00:19:03,960 --> 00:19:06,140 It's instead we're going to – 435 00:19:06,140 --> 00:19:08,120 instead what he did was he wanted to see – 436 00:19:08,120 --> 00:19:10,400 how far is it between people in the world? 437 00:19:10,840 --> 00:19:12,240 Everyone sort of knows the – 438 00:19:12,240 --> 00:19:16,360 I mean, this idea that if I have a friend who has a friend who has a friend who knows whoever. 439 00:19:17,680 --> 00:19:23,740 And the way that he wanted to do this was to give letters to people. 440 00:19:23,880 --> 00:19:24,760 And he started – 441 00:19:24,760 --> 00:19:27,960 he thought, if we take people on opposite ends of the world and we give them letters 442 00:19:27,960 --> 00:19:29,320 and they have to give them to their friends 443 00:19:29,880 --> 00:19:32,320 in order to reach somebody on the other side of the world. 444 00:19:32,360 --> 00:19:34,240 So the letters, it was addressed to somebody – 445 00:19:34,240 --> 00:19:37,640 to a stockbroker in Boston, or actually Sharon, which is outside Boston. 446 00:19:38,120 --> 00:19:40,200 And he gave it to volunteers in Omaha, Nebraska, 447 00:19:40,460 --> 00:19:43,860 which I guess in Stanley Milgram's world was like the opposite ends of the world. 448 00:19:46,340 --> 00:19:47,500 So he – 449 00:19:48,020 --> 00:19:49,180 as far as he could get. 450 00:19:49,300 --> 00:19:53,660 And the idea was it was addressed to this guy who it was destined for, 451 00:19:53,720 --> 00:19:56,840 but the people were only allowed to send the letter to people that they knew. 452 00:19:57,000 --> 00:19:59,980 So they couldn't just put a stamp on it, put it in the mailbox and send it to him. 453 00:20:00,020 --> 00:20:03,820 They had to find some friend who they thought was the right person to give it to 454 00:20:03,820 --> 00:20:06,300 to get it in the direction of this guy in Boston. 455 00:20:06,560 --> 00:20:08,100 And that way they could sort of – 456 00:20:08,100 --> 00:20:09,740 to see, is it really a small world? 457 00:20:10,820 --> 00:20:14,660 And sort of this experiment, he did several versions of it, and you can sort of – 458 00:20:14,660 --> 00:20:17,320 but his – the overall result was, yes, it was. 459 00:20:17,620 --> 00:20:21,140 And when these letters – for those letters that did reach their destination, 460 00:20:21,440 --> 00:20:26,500 and he found that it was only about six steps on average that they took 461 00:20:26,820 --> 00:20:32,320 to go from these farmers out in Omaha, Nebraska, to the stockbroker in Boston. 462 00:20:32,660 --> 00:20:36,740 And this – if anyone's heard the term six degrees of separation, 463 00:20:37,060 --> 00:20:38,080 the sort of – the idea that there's – 464 00:20:38,100 --> 00:20:40,820 there's six steps between anybody in the world, 465 00:20:40,940 --> 00:20:45,940 it comes from this – this experiment that he did and the publicity that it got. 466 00:20:47,220 --> 00:20:51,380 So nowadays, we don't really need to do these sort of experiments in order to do similar things. 467 00:20:51,500 --> 00:20:52,280 So I have this example. 468 00:20:52,520 --> 00:20:56,480 I just went on one of these social network sites where people go put in all their stuff. 469 00:20:56,780 --> 00:20:58,900 In this case, it was Google's One Orchid. 470 00:20:59,420 --> 00:21:02,500 And just to get a similar path there by a little bit of experimentation, 471 00:21:02,880 --> 00:21:04,120 I got a little bit of help from the site. 472 00:21:04,280 --> 00:21:06,100 So I just picked a random person. 473 00:21:08,100 --> 00:21:12,140 And – and I thought, well, what if she wanted to find a path to some other random person? 474 00:21:15,680 --> 00:21:17,600 It – it could happen. 475 00:21:19,760 --> 00:21:20,200 Right? 476 00:21:20,300 --> 00:21:24,420 And – and well, so it turns out that – that in six steps, 477 00:21:24,640 --> 00:21:31,060 this Miss Fernanda Trincado here, who – I should say that I've – I – I made this example a while ago. 478 00:21:31,160 --> 00:21:33,760 And I've used it quite a number of times in talks now. 479 00:21:33,880 --> 00:21:35,440 And I – I actually did pick her. 480 00:21:35,540 --> 00:21:36,660 I don't know who she is. 481 00:21:36,660 --> 00:21:39,520 So I'm always thinking, like, someday I'm going to do this. 482 00:21:39,780 --> 00:21:42,040 And – and somebody's going to be, hey, I know her. 483 00:21:42,440 --> 00:21:43,480 And I'll get in trouble. 484 00:21:43,600 --> 00:21:46,060 But then I'll also have confirmed that it is a small world, right? 485 00:21:46,140 --> 00:21:54,240 So – so Fernanda Trincado, she knows this gentleman named Leandro Toledo, apparently, 486 00:21:54,320 --> 00:22:00,760 who knows Marcelo Toledo, who – I guess they're related brothers or something by – 487 00:22:01,520 --> 00:22:06,400 and he happens to know Nat Friedman, who some people in this room may have heard of, 488 00:22:06,400 --> 00:22:10,460 because, of course, he's a free software programmer, one of the GNOME guys, I think. 489 00:22:10,780 --> 00:22:15,940 And Nat Friedman knows Roger Dingledine, who many of you should have heard of, 490 00:22:16,000 --> 00:22:17,760 especially if – and you should have gone to his talk yesterday. 491 00:22:19,060 --> 00:22:22,000 So this is somebody who I know. 492 00:22:22,100 --> 00:22:26,100 So there we have our six steps between Miss Fernanda and me. 493 00:22:28,980 --> 00:22:30,400 Yeah, you're right, it's five steps. 494 00:22:30,580 --> 00:22:32,260 But it – that's less than six steps. 495 00:22:34,380 --> 00:22:35,180 It's actually – 496 00:22:36,400 --> 00:22:40,320 not knowing how to count is a basic property that you need if you want to be a mathematician. 497 00:22:45,080 --> 00:22:45,440 Okay. 498 00:22:48,080 --> 00:22:52,300 So I wanted to note that, as I said before – I didn't show it to you, but I will – 499 00:22:52,300 --> 00:22:55,240 the simple types of graphs that we were talking about before, these GMP, 500 00:22:55,400 --> 00:23:00,020 where we just take it to every edge and we flip it on or off, they have a low diameter. 501 00:23:00,220 --> 00:23:02,380 They really have this property that going from – 502 00:23:02,380 --> 00:23:05,180 as long as there is a path between the two points, it tends to be short. 503 00:23:07,500 --> 00:23:15,580 But we noted that they are not a good model for social networks for any number of reasons. 504 00:23:15,660 --> 00:23:17,700 The degree distribution, the triangle, stuff like that. 505 00:23:17,940 --> 00:23:27,360 And in particular, one can see this in a very interesting property of this Milgram experiment, 506 00:23:27,620 --> 00:23:31,820 which is even though these networks have a low diameter, it isn't possible to search in them. 507 00:23:32,280 --> 00:23:35,680 And I'll try to show you what I mean by this. 508 00:23:36,400 --> 00:23:41,420 If we look at this, I went back now to this standard, simple GMP, 509 00:23:41,580 --> 00:23:43,600 where we just have every edge on or off with some probability. 510 00:23:43,800 --> 00:23:45,200 It's the same graph I had in the beginning. 511 00:23:45,980 --> 00:23:48,300 And if we want to find out the diameter, then – 512 00:23:48,300 --> 00:23:50,920 well, a lot of people here have done some computer science, 513 00:23:50,960 --> 00:23:54,660 so they know that there are these breadth-first algorithms for finding the shortest path. 514 00:23:55,120 --> 00:23:59,700 So I went and I did that here, and you can see in red the shortest path between these two points. 515 00:23:59,740 --> 00:24:03,420 And it turns out to be three steps between the top corner and the bottom corner. 516 00:24:04,940 --> 00:24:06,380 And what I've highlighted here – 517 00:24:06,400 --> 00:24:11,720 what I've highlighted in green and blue here are all the edges we had to look down in order to run this algorithm. 518 00:24:12,060 --> 00:24:13,540 So I did a breadth-first search. 519 00:24:13,660 --> 00:24:17,180 I looked at all the neighbors of the first point, all their neighbors, all their neighbors' neighbors, 520 00:24:17,360 --> 00:24:19,140 until I found the endpoint. 521 00:24:19,660 --> 00:24:23,640 And that's when I knew that I'd found the minimum path between them. 522 00:24:23,680 --> 00:24:25,940 The smallest path between these two points is three steps, 523 00:24:26,060 --> 00:24:29,240 because I checked all the ones that are within two steps, 524 00:24:29,380 --> 00:24:31,800 and I know that none of those was this node that we were looking for. 525 00:24:32,200 --> 00:24:35,580 So while I was able to find this very short path – 526 00:24:35,580 --> 00:24:37,940 so this random network does have this sort of short path. 527 00:24:38,040 --> 00:24:39,880 It is a small world in some sense. 528 00:24:41,340 --> 00:24:43,360 We had to do a lot of work. 529 00:24:43,480 --> 00:24:45,480 We had to look through the whole network to do it. 530 00:24:45,820 --> 00:24:48,960 And if you think about this experiment with these people in – 531 00:24:49,760 --> 00:24:52,540 if you think about this experiment with the people in Omaha 532 00:24:53,060 --> 00:24:57,200 who were sending their letters and trying to get them to this guy in Boston, 533 00:24:57,300 --> 00:24:58,400 and their friends and their friends, 534 00:24:58,640 --> 00:25:02,820 they obviously – they didn't have access to doing this type of analysis, 535 00:25:02,820 --> 00:25:05,380 of looking at the whole world's social network. 536 00:25:05,660 --> 00:25:07,640 There weren't social networking sites back then. 537 00:25:07,760 --> 00:25:10,420 So they couldn't look and see. 538 00:25:10,480 --> 00:25:12,100 They only had to go by sort of, 539 00:25:12,120 --> 00:25:17,460 which one of my friends do I think is most likely to sort of be in the right direction 540 00:25:17,460 --> 00:25:19,660 of this stockbroker who should get it? 541 00:25:20,560 --> 00:25:23,040 So if you try to do it that way, 542 00:25:23,140 --> 00:25:25,880 it becomes something more like this in this type of network. 543 00:25:26,500 --> 00:25:28,380 Here we're trying just to forward, 544 00:25:28,520 --> 00:25:31,380 and he's trying to forward the whole time until he finds his destination. 545 00:25:32,820 --> 00:25:37,060 And as you can see, the path that we found was not as great as those three steps that we had. 546 00:25:37,180 --> 00:25:41,880 In fact, they had to forward around for 54 steps before it reached the destination here. 547 00:25:42,140 --> 00:25:46,500 And the reason for this comes back to this independence of edges that we had, 548 00:25:46,600 --> 00:25:50,580 which is to say that every edge in this thing existed like a coin flip. 549 00:25:50,800 --> 00:25:53,780 Where I drew them on the screen is just for visualization. 550 00:25:53,860 --> 00:25:57,000 It had nothing to do with how connected they are. 551 00:25:58,520 --> 00:26:02,040 So if you think about it, 552 00:26:02,040 --> 00:26:06,120 there is no point in passing the message towards the person 553 00:26:06,120 --> 00:26:07,860 because in a graph like that, 554 00:26:08,060 --> 00:26:11,320 being close to somebody doesn't mean that you're more likely to know them. 555 00:26:12,040 --> 00:26:17,200 And I think it's important to note the difference between their existing path 556 00:26:17,200 --> 00:26:19,060 and being able to find one. 557 00:26:19,360 --> 00:26:21,420 And if we look at this example again, 558 00:26:22,100 --> 00:26:23,940 I think you can sort of see it here. 559 00:26:24,060 --> 00:26:26,500 So say that Fernanda did want to send a letter to me. 560 00:26:28,240 --> 00:26:31,780 She knew a little bit about me. 561 00:26:31,780 --> 00:26:32,680 She knows I'm from Sweden. 562 00:26:32,800 --> 00:26:35,380 I do computer stuff and I do networks and stuff. 563 00:26:35,780 --> 00:26:36,840 Maybe this, I don't know, 564 00:26:36,860 --> 00:26:40,040 maybe this Leander Toledo is somebody who works a bit with computers. 565 00:26:40,140 --> 00:26:43,320 Or maybe she knows that his brother Marcelo does work with computers. 566 00:26:43,620 --> 00:26:45,160 So she thinks, okay, I'll give it to him. 567 00:26:45,940 --> 00:26:49,660 Marcelo knows that he knows Nat Friedman who is a free software programmer. 568 00:26:49,780 --> 00:26:51,320 So he thinks, okay, that kind of makes sense. 569 00:26:51,560 --> 00:26:52,740 And then Nat Friedman might, 570 00:26:52,840 --> 00:26:55,560 if he knew that I worked on Freenet and Anonymity and stuff like that, 571 00:26:55,660 --> 00:26:57,700 think that Roger is a good person to give it to 572 00:26:57,700 --> 00:26:58,900 and Roger would give it to me. 573 00:26:58,980 --> 00:26:59,620 So that kind of works. 574 00:27:00,140 --> 00:27:01,760 But now let's say I wanted to send a letter 575 00:27:01,780 --> 00:27:02,680 to Fernanda. 576 00:27:03,600 --> 00:27:05,020 And Roger's a good guy, 577 00:27:05,160 --> 00:27:07,300 but he's not the person I would send a letter to 578 00:27:07,300 --> 00:27:09,960 I would expect to get to a hot Brazilian girl. 579 00:27:14,480 --> 00:27:17,340 So there really is a difference between having this path 580 00:27:17,340 --> 00:27:19,020 and me being able to find it 581 00:27:19,020 --> 00:27:21,080 if I wanted to get this letter to her. 582 00:27:24,400 --> 00:27:28,060 So what it turns out is that for this sort of searching to be, 583 00:27:28,160 --> 00:27:29,500 in an idealized model, 584 00:27:29,600 --> 00:27:31,040 for this kind of searching to be possible, 585 00:27:31,780 --> 00:27:32,460 we have to, 586 00:27:35,120 --> 00:27:38,360 we need to be able to go from, 587 00:27:39,480 --> 00:27:43,060 sort of the probability that we have this edge between, 588 00:27:43,140 --> 00:27:45,420 that we have this line between two of the points, 589 00:27:45,460 --> 00:27:46,540 an edge between two of the vertices, 590 00:27:46,680 --> 00:27:48,720 has to depend on the distance between them 591 00:27:48,720 --> 00:27:50,680 in the sense that if I am close to somebody, 592 00:27:50,900 --> 00:27:52,700 I have to be more likely to know them. 593 00:27:52,820 --> 00:27:55,740 Otherwise it doesn't make any sense to send the letter to somebody 594 00:27:55,740 --> 00:27:57,840 who's close to the destination in some sense. 595 00:27:58,940 --> 00:28:01,040 And one can sort of see this as saying that 596 00:28:01,040 --> 00:28:04,280 the probability of each edge existing is proportional, 597 00:28:04,600 --> 00:28:07,000 and by proportional I mean we can multiply it by some constant, 598 00:28:07,140 --> 00:28:08,580 but in terms of the distance, 599 00:28:08,820 --> 00:28:12,400 it depends on one over the distance raised to some value. 600 00:28:14,900 --> 00:28:18,200 So in some sense, if this alpha value here is big, 601 00:28:18,320 --> 00:28:20,680 that means that it decreases very fast. 602 00:28:20,920 --> 00:28:22,960 It's very unlikely that I'll know somebody who's far away, 603 00:28:23,060 --> 00:28:24,900 because if somebody's a hundred steps away, 604 00:28:25,040 --> 00:28:26,220 and this is three, 605 00:28:26,420 --> 00:28:28,240 then there would be a million, 606 00:28:30,000 --> 00:28:32,260 then there would be a million, 607 00:28:32,340 --> 00:28:33,380 I got that right this time, 608 00:28:36,180 --> 00:28:38,140 to one over a million that I know them, 609 00:28:38,200 --> 00:28:38,760 which is very unlikely. 610 00:28:39,020 --> 00:28:39,920 If this is small, 611 00:28:40,420 --> 00:28:43,080 then I would be more likely to know people who are far away. 612 00:28:43,160 --> 00:28:47,400 So this alpha here kind of tunes the locality of the graph. 613 00:28:47,540 --> 00:28:49,840 How likely is it that I know somebody who's far away? 614 00:28:50,320 --> 00:28:52,240 How much does it depend on the distance 615 00:28:52,240 --> 00:28:53,100 is given by this, 616 00:28:53,140 --> 00:28:56,220 what we raise the distance to when we take this proportionality. 617 00:28:57,440 --> 00:28:58,800 And if you do this, 618 00:28:58,880 --> 00:29:02,400 you can sort of say that we can formalize the routing algorithm 619 00:29:02,400 --> 00:29:04,420 we're going to use if you think about these simulations, 620 00:29:04,620 --> 00:29:06,660 and we simply use what's called greedy routing, 621 00:29:06,780 --> 00:29:08,760 which is I look at my neighbors and I say, 622 00:29:08,860 --> 00:29:10,480 well, who's closest to the destination 623 00:29:10,480 --> 00:29:12,740 where I want this message to end up? 624 00:29:12,900 --> 00:29:14,220 That's who I'm going to send it to. 625 00:29:14,420 --> 00:29:17,680 So if you said that sort of the people in the Milgram experiment 626 00:29:17,680 --> 00:29:19,600 hadn't known anything about the destination 627 00:29:19,600 --> 00:29:20,660 except where he lived, 628 00:29:20,800 --> 00:29:23,680 it might make sense to do geographically greedy routing. 629 00:29:23,780 --> 00:29:25,620 Well, I know that he lives in Boston. 630 00:29:25,720 --> 00:29:26,200 I'll just say, 631 00:29:26,220 --> 00:29:28,400 I'll send it to whoever I know who lives closest to Boston. 632 00:29:30,020 --> 00:29:33,100 And that's the sort of model that you're looking for. 633 00:29:34,420 --> 00:29:36,520 And this is a... 634 00:29:37,220 --> 00:29:39,880 So these sort of questions and the math around them 635 00:29:39,880 --> 00:29:41,280 were first done by John Kleinberg, 636 00:29:41,420 --> 00:29:43,660 who's a computer scientist at Cornell. 637 00:29:43,960 --> 00:29:46,640 And he figured out something very interesting, 638 00:29:46,700 --> 00:29:49,280 which is that there's really only one case 639 00:29:49,280 --> 00:29:51,380 of this value alpha here, 640 00:29:51,500 --> 00:29:54,720 this value alpha which tunes how much people, 641 00:29:54,720 --> 00:29:57,540 how much the probability that you know somebody 642 00:29:57,540 --> 00:29:58,440 should depend on the distance. 643 00:29:58,580 --> 00:29:59,780 It's only allowed to depend, 644 00:30:00,060 --> 00:30:03,940 it's only one case where you actually have the right situation 645 00:30:03,940 --> 00:30:05,940 to be able to find these quick paths. 646 00:30:06,120 --> 00:30:08,820 And it has to be that this alpha is equal to the dimension 647 00:30:08,820 --> 00:30:10,440 of the world that the people live in. 648 00:30:10,660 --> 00:30:13,360 Or another way of putting this is that the probability 649 00:30:13,360 --> 00:30:17,680 that X should have this way of, this edge, 650 00:30:18,100 --> 00:30:20,120 so here I used a slightly different method for edge, 651 00:30:20,260 --> 00:30:21,900 but what I mean is that there should be this edge 652 00:30:21,900 --> 00:30:24,620 between X and W has to be proportional 653 00:30:24,620 --> 00:30:26,860 to the number of vertices that are between, 654 00:30:27,120 --> 00:30:29,260 that are closer to X than W is. 655 00:30:29,540 --> 00:30:32,800 So if you think about it, it's rather easy to see 656 00:30:32,800 --> 00:30:36,580 that this will be two in two dimensions 657 00:30:36,580 --> 00:30:38,080 and three in three dimensions, etc. 658 00:30:39,080 --> 00:30:41,160 The power there, because... 659 00:30:42,500 --> 00:30:45,040 So we can do that sort of picture, 660 00:30:45,140 --> 00:30:46,680 which is instead of taking this graph, 661 00:30:46,780 --> 00:30:47,760 we now redraw it. 662 00:30:48,440 --> 00:30:51,300 And instead of looking at the degree distribution 663 00:30:51,300 --> 00:30:53,120 as we had before, we look at the link distribution. 664 00:30:54,680 --> 00:30:55,720 Which is... 665 00:30:56,400 --> 00:30:59,240 So before I drew this histogram, 666 00:30:59,380 --> 00:31:02,160 which was how many friends each vertex has, 667 00:31:02,340 --> 00:31:04,780 here this is the distance to their friends on average. 668 00:31:05,100 --> 00:31:07,020 And you can see that in this thing, 669 00:31:07,080 --> 00:31:08,940 we have this sort of spread out look. 670 00:31:09,340 --> 00:31:11,740 And it doesn't decrease very fast. 671 00:31:11,920 --> 00:31:13,220 The probability that you know somebody 672 00:31:13,220 --> 00:31:15,260 doesn't decrease fast with the distance between you. 673 00:31:15,320 --> 00:31:19,100 If we remake the graph according to this distribution 674 00:31:19,100 --> 00:31:22,140 where it does decrease with the distance between you, 675 00:31:22,200 --> 00:31:23,460 so that you're more likely to know people 676 00:31:23,460 --> 00:31:24,480 who are close to you, 677 00:31:24,620 --> 00:31:27,120 and less likely to know people who are far away from you, 678 00:31:27,220 --> 00:31:29,120 then you get a link distribution 679 00:31:29,520 --> 00:31:31,960 which has this sort of smooth tail like that, 680 00:31:32,020 --> 00:31:33,980 sort of tapers off like this one does. 681 00:31:34,280 --> 00:31:37,400 And you get something where instead of jumping around 682 00:31:37,400 --> 00:31:39,080 for 50 steps like we did before, 683 00:31:39,900 --> 00:31:42,140 using just this very plain greedy routing, 684 00:31:42,260 --> 00:31:42,900 where I'm just saying, 685 00:31:43,040 --> 00:31:44,180 okay, look at all his neighbors, 686 00:31:44,300 --> 00:31:45,120 those are the ones in green, 687 00:31:45,320 --> 00:31:46,840 who is closest to the destination? 688 00:31:47,080 --> 00:31:48,480 Okay, we make him red and we go there. 689 00:31:48,800 --> 00:31:50,340 Then we look at all of his neighbors, 690 00:31:50,480 --> 00:31:52,180 they're also green, and take the closest. 691 00:31:52,340 --> 00:31:54,180 And we got there in five steps. 692 00:31:56,080 --> 00:32:00,420 So what you really need is four to have this connection 693 00:32:01,320 --> 00:32:03,320 between how far nodes are from each other 694 00:32:03,320 --> 00:32:06,280 and how they know each other. 695 00:32:06,420 --> 00:32:08,200 And we can do this many times to see 696 00:32:08,200 --> 00:32:09,760 what the average number of steps it would take 697 00:32:09,760 --> 00:32:10,420 in this graph is. 698 00:32:10,520 --> 00:32:12,220 And it turns out that it's 4.1. 699 00:32:12,420 --> 00:32:14,660 So you can search very fast. 700 00:32:14,760 --> 00:32:15,740 Okay, this is a small graph. 701 00:32:15,820 --> 00:32:17,440 It only has 200 vertices in it. 702 00:32:17,540 --> 00:32:19,340 But it turns out that this works very well 703 00:32:19,340 --> 00:32:20,800 however large you make the graph. 704 00:32:20,880 --> 00:32:23,060 It scales logarithmically for those of you 705 00:32:23,060 --> 00:32:25,160 who are polylogarithmically. 706 00:32:26,660 --> 00:32:30,440 Okay, so now after 33 minutes, 707 00:32:30,500 --> 00:32:31,300 we're done with the background. 708 00:32:33,360 --> 00:32:40,460 And I was going to talk a little bit about what I do. 709 00:32:40,920 --> 00:32:42,440 If we're unlucky with the time, 710 00:32:42,500 --> 00:32:43,700 you might not get the proof. 711 00:32:44,220 --> 00:32:45,660 So that would be very unfortunate. 712 00:32:49,660 --> 00:32:52,740 So the interesting thing about this result, 713 00:32:52,820 --> 00:32:53,040 if you think about it, 714 00:32:53,060 --> 00:32:54,940 if you think about the result of Kleinberg, 715 00:32:55,020 --> 00:32:57,040 is that it's mostly negative in the sense that 716 00:32:57,040 --> 00:32:58,480 what he said was that there's only, 717 00:32:58,680 --> 00:33:00,640 you need to have a very, very specific relation 718 00:33:00,640 --> 00:33:02,840 between the distance between two people 719 00:33:02,840 --> 00:33:04,520 and the probability that they know each other 720 00:33:04,520 --> 00:33:06,000 for searching to work. 721 00:33:06,620 --> 00:33:09,720 So it's rather curious because one wants to apply this 722 00:33:09,720 --> 00:33:11,320 to say the Milgram experiment and say, 723 00:33:11,420 --> 00:33:13,800 oh, you can search in the real world social network, 724 00:33:14,020 --> 00:33:15,700 but yet we know that it needs to have 725 00:33:15,700 --> 00:33:18,280 a very, very specific properties for this to be true. 726 00:33:18,500 --> 00:33:21,400 And it seems those two things are kind of difficult to, 727 00:33:21,560 --> 00:33:22,620 because, I mean, 728 00:33:23,060 --> 00:33:24,480 the search network forms somewhat chaotically. 729 00:33:24,600 --> 00:33:27,360 There has to be some dynamic then which causes this to happen. 730 00:33:27,740 --> 00:33:30,500 And that's sort of the question which I'm going to try to answer. 731 00:33:30,740 --> 00:33:32,040 And what we're going to try to do is, 732 00:33:32,060 --> 00:33:33,100 if you think about this model, 733 00:33:33,180 --> 00:33:35,420 the preferential attachment where people were coming in, 734 00:33:35,480 --> 00:33:37,240 and we could kind of explain via a dynamic 735 00:33:38,740 --> 00:33:40,820 why some people got more friends than others. 736 00:33:40,900 --> 00:33:42,860 We tried to do something similar to see 737 00:33:42,860 --> 00:33:46,300 why people tend to know people who are close and who are far 738 00:33:46,300 --> 00:33:49,960 with exactly this proportion so that it tapers off 739 00:33:49,960 --> 00:33:52,260 with the right value so that searching is possible. 740 00:33:55,780 --> 00:33:58,100 Okay, so here comes some math now. 741 00:33:58,280 --> 00:34:00,420 So those of you who are so inclined 742 00:34:00,420 --> 00:34:01,420 can fall asleep for a while. 743 00:34:02,900 --> 00:34:05,900 If you take the numbers 1 to up to n, 744 00:34:06,660 --> 00:34:08,300 and then we sort them in a random order. 745 00:34:08,440 --> 00:34:10,100 So say we had the cards in a deck. 746 00:34:10,180 --> 00:34:12,660 Actually, I bought a deck of cards to illustrate this, 747 00:34:12,740 --> 00:34:14,240 but then I got drunk last night and I lost them. 748 00:34:18,780 --> 00:34:19,300 It's fine. 749 00:34:20,180 --> 00:34:21,620 We have a gambler in the house. 750 00:34:23,060 --> 00:34:25,660 Or as we call it, applied probability theory. 751 00:34:26,880 --> 00:34:29,280 How I fund my trips to Vegas. 752 00:34:30,660 --> 00:34:31,340 Field studies. 753 00:34:34,740 --> 00:34:36,880 So if I take these and I say, 754 00:34:36,980 --> 00:34:39,380 what is the probability that the case number that I draw 755 00:34:39,380 --> 00:34:40,880 is the biggest one yet? 756 00:34:41,100 --> 00:34:43,020 So what I mean by this is, 757 00:34:43,080 --> 00:34:44,980 you have this random ordering of the numbers, 758 00:34:45,800 --> 00:34:47,740 and you take out the first one and you say, 759 00:34:47,880 --> 00:34:49,940 well, what's the probability that that's the biggest one yet? 760 00:34:50,020 --> 00:34:50,600 Well, duh. 761 00:34:50,760 --> 00:34:51,800 I mean, it's the first one, 762 00:34:51,800 --> 00:34:53,020 so of course it's the biggest one yet. 763 00:34:53,140 --> 00:34:55,920 So for the first one, that probability is 1. 764 00:34:56,700 --> 00:34:58,320 I draw the second one. 765 00:34:58,440 --> 00:35:00,500 What is the probability that the second one I draw 766 00:35:00,500 --> 00:35:01,920 is the biggest one yet? 767 00:35:02,360 --> 00:35:04,600 Can anyone guess what that is? 768 00:35:05,240 --> 00:35:05,640 Half. 769 00:35:05,680 --> 00:35:05,920 Half, yeah. 770 00:35:06,000 --> 00:35:08,140 Because if it's bigger than the first, 771 00:35:10,880 --> 00:35:14,780 those two could have come in either order equally likely. 772 00:35:14,880 --> 00:35:16,640 Since we had things shuffled in a random order, 773 00:35:16,800 --> 00:35:19,040 it's equally likely that the first one is bigger than the second. 774 00:35:19,880 --> 00:35:20,500 And same thing, 775 00:35:20,500 --> 00:35:22,860 if you look at the third, 776 00:35:24,300 --> 00:35:29,040 so this is sort of a more formal description, 777 00:35:29,200 --> 00:35:30,160 but if you look at the third one, 778 00:35:30,240 --> 00:35:31,360 then we have those three, 779 00:35:31,420 --> 00:35:33,360 and those could have been in any order with the same probability. 780 00:35:33,540 --> 00:35:35,800 So the probability that the third one is the biggest of the three 781 00:35:35,800 --> 00:35:37,680 that we have drawn so far is 1 third, 782 00:35:37,840 --> 00:35:38,960 and the fourth one is 1 fourth. 783 00:35:39,040 --> 00:35:42,540 So the general answer is that this probably is like 1 over k. 784 00:35:44,580 --> 00:35:47,360 So when I come to draw my tenth one, 785 00:35:47,500 --> 00:35:50,280 the probability that that's a new record is going to be 1 tenth. 786 00:35:50,500 --> 00:35:51,320 When I draw the hundredth, 787 00:35:51,320 --> 00:35:53,460 the probability that that's a record is going to be 1 hundredth. 788 00:35:53,580 --> 00:35:56,500 And this 1 over k here is interesting 789 00:35:56,500 --> 00:36:00,740 because it's similar to this thing we had before 790 00:36:01,340 --> 00:36:04,720 where we wanted to have 1 over the number of vertices 791 00:36:04,720 --> 00:36:09,780 that are closer than the new one that you come to. 792 00:36:09,980 --> 00:36:14,720 So from this one can directly sort of have a model 793 00:36:14,720 --> 00:36:17,600 for how a network forms that will lead to these edges, 794 00:36:17,720 --> 00:36:18,440 namely like this. 795 00:36:18,580 --> 00:36:19,680 We say that each vertex, 796 00:36:19,680 --> 00:36:21,280 and you can sort of think of it as a person, 797 00:36:21,520 --> 00:36:25,060 has for every single person in the world, 798 00:36:25,120 --> 00:36:26,400 they have some level of interest. 799 00:36:27,360 --> 00:36:29,280 So for all of you people out there, 800 00:36:29,640 --> 00:36:30,840 I don't know what it is, 801 00:36:30,920 --> 00:36:33,500 but for all of you have some level of interest to me. 802 00:36:33,540 --> 00:36:35,280 Some of you are not interesting to me at all, sorry. 803 00:36:35,380 --> 00:36:37,300 Some of you might be very, very interesting 804 00:36:37,300 --> 00:36:38,280 if we just started talking. 805 00:36:38,560 --> 00:36:42,200 And one person here is the most interesting person in the room for me. 806 00:36:45,980 --> 00:36:49,660 So what you can say, 807 00:36:49,680 --> 00:36:56,880 you can create a connection between two vertices 808 00:36:56,880 --> 00:36:59,920 if it turns out that the second one, v, 809 00:37:00,060 --> 00:37:03,360 is more interesting to you than anyone that is closer to him. 810 00:37:03,500 --> 00:37:04,280 That is to say, 811 00:37:04,420 --> 00:37:07,600 a person would be friends with someone 812 00:37:07,600 --> 00:37:11,240 if they're more interesting than anyone that they have met previously. 813 00:37:13,240 --> 00:37:15,460 And if you think about the relationship between this, 814 00:37:15,520 --> 00:37:17,080 the probability of knowing somebody should be 815 00:37:17,080 --> 00:37:19,060 1 over the number of people that are closer, 816 00:37:19,680 --> 00:37:21,520 and the probability that setting a new record 817 00:37:21,520 --> 00:37:24,820 is going to be 1 over the probability 818 00:37:26,760 --> 00:37:28,340 of the number you have seen, 819 00:37:28,500 --> 00:37:31,360 you see that you get the right dynamic from this. 820 00:37:33,060 --> 00:37:34,760 So, I mean, a way to think about this is, 821 00:37:34,780 --> 00:37:35,600 I go into the world, 822 00:37:36,120 --> 00:37:38,060 I'm born, I have no friends at all, 823 00:37:38,120 --> 00:37:38,880 so I go into the world, 824 00:37:39,100 --> 00:37:41,500 first person I meet, I become friends with. 825 00:37:41,740 --> 00:37:43,940 Person who lived closest to me is the first person I meet. 826 00:37:44,200 --> 00:37:46,700 Then I go on and I meet more people, 827 00:37:46,800 --> 00:37:48,460 and I will make friends with each new one 828 00:37:48,460 --> 00:37:52,180 which is more interesting than people I had met before. 829 00:37:52,640 --> 00:37:53,820 And if you do this, 830 00:37:53,960 --> 00:37:56,120 then you will get exactly this probability 831 00:37:56,120 --> 00:38:02,680 that an edge between two vertices is 1 over. 832 00:38:02,900 --> 00:38:06,540 And here we'll create more than one edge 833 00:38:06,540 --> 00:38:07,700 coming out of each vertex, 834 00:38:07,780 --> 00:38:09,180 but it will be about log n, 835 00:38:09,240 --> 00:38:10,820 which is sort of the order we're looking for. 836 00:38:11,280 --> 00:38:13,900 And one can do the same argument. 837 00:38:14,000 --> 00:38:16,540 So, I was going to actually prove 838 00:38:16,540 --> 00:38:18,260 that if we create a graph like this, 839 00:38:20,080 --> 00:38:21,160 then we can, 840 00:38:21,780 --> 00:38:24,680 then you can easily see that you can find paths 841 00:38:24,680 --> 00:38:26,960 that are log n in length from one point to another. 842 00:38:27,440 --> 00:38:29,480 And because this is a talk in mathematics, 843 00:38:29,700 --> 00:38:30,800 you want to have one proof in there. 844 00:38:30,920 --> 00:38:33,120 My advisor likes to tell me that 845 00:38:33,120 --> 00:38:36,540 a talk in mathematics should contain one joke and one proof, 846 00:38:36,740 --> 00:38:37,980 and they should not be the same thing. 847 00:38:41,340 --> 00:38:42,140 So, hopefully, 848 00:38:44,440 --> 00:38:46,000 I'm not actually going to go through the proof. 849 00:38:46,040 --> 00:38:47,960 Anyone who's interested can, there are more, yeah? 850 00:38:49,040 --> 00:38:50,360 What you're saying is 851 00:38:50,360 --> 00:38:54,520 there's six degrees of separation between all of us, 852 00:38:54,540 --> 00:38:58,120 and we all know someone who knows someone who knows someone 853 00:38:58,120 --> 00:39:00,160 who knows their, some of their body. 854 00:39:00,440 --> 00:39:04,420 Well, I'm not going to make that sort of categorical statement 855 00:39:04,420 --> 00:39:05,800 about the six degrees of separation. 856 00:39:06,040 --> 00:39:08,160 The point is, if you look at the World Social Network, 857 00:39:08,340 --> 00:39:12,080 then on average, the number of steps between people is very low. 858 00:39:12,180 --> 00:39:14,300 And it's not that strange a thing to expect. 859 00:39:14,440 --> 00:39:16,780 Can we say for sure that there isn't somebody 860 00:39:16,780 --> 00:39:18,400 who's seven steps from somebody else? 861 00:39:18,460 --> 00:39:18,980 Of course not. 862 00:39:20,240 --> 00:39:22,360 But on average, it will be very small. 863 00:39:22,520 --> 00:39:24,160 And people have done, since Milgram, since they're 60, 864 00:39:24,240 --> 00:39:25,920 people have done more experiments of this kind 865 00:39:25,920 --> 00:39:28,160 to try to get an actual number. 866 00:39:28,420 --> 00:39:30,620 And I don't know how worthwhile it is. 867 00:39:30,680 --> 00:39:31,480 The point is, it's small. 868 00:39:31,640 --> 00:39:34,060 I can promise you that there's nobody within 15, 869 00:39:34,220 --> 00:39:35,480 say, further than 15. 870 00:39:35,960 --> 00:39:37,900 That I feel quite comfortable promising. 871 00:39:40,620 --> 00:39:43,620 But the point is that the model that I'm going to make 872 00:39:43,620 --> 00:39:45,280 is actually not the one I was telling you about. 873 00:39:45,340 --> 00:39:47,780 Because a better way to think about this, 874 00:39:47,780 --> 00:39:49,260 rather than think about each person 875 00:39:49,260 --> 00:39:50,840 sort of having this interest in others, 876 00:39:51,000 --> 00:39:52,860 is to think about the world and think about this. 877 00:39:53,320 --> 00:39:55,600 In the real world, we live close to people. 878 00:39:55,720 --> 00:39:57,140 And that makes us similar. 879 00:39:57,260 --> 00:39:59,100 But we also are similar in other ways. 880 00:39:59,320 --> 00:40:02,940 We have similarity both in sort of where we live 881 00:40:02,940 --> 00:40:05,880 and who are close to us, but also in other ways. 882 00:40:05,940 --> 00:40:07,180 For example, here at DEF CON, 883 00:40:07,200 --> 00:40:09,120 we all live all across the world. 884 00:40:09,240 --> 00:40:11,480 But because we're similar in our interests, 885 00:40:11,720 --> 00:40:12,580 we come together. 886 00:40:13,680 --> 00:40:16,140 So one way of modeling this interest 887 00:40:16,880 --> 00:40:17,760 that we have, 888 00:40:17,780 --> 00:40:18,600 between people, 889 00:40:18,680 --> 00:40:20,760 is to say that we place everyone somehow 890 00:40:20,760 --> 00:40:22,940 in the space that represents their interests 891 00:40:22,940 --> 00:40:24,440 in their life. 892 00:40:24,720 --> 00:40:27,120 And then how interesting somebody is to you 893 00:40:27,120 --> 00:40:28,600 is how far apart they are in that space. 894 00:40:29,080 --> 00:40:32,960 So if you put that into sort of the construction 895 00:40:32,960 --> 00:40:33,580 I said before, 896 00:40:33,820 --> 00:40:37,540 then what you say is that I will know somebody 897 00:40:37,540 --> 00:40:41,100 if they are closer in the space of interests 898 00:40:41,560 --> 00:40:45,280 than anyone is in the real world space, to me. 899 00:40:45,420 --> 00:40:47,760 And this creates this double cluster, 900 00:40:47,780 --> 00:40:48,260 this clustering graph, 901 00:40:48,480 --> 00:40:50,600 which I'm going to illustrate for you now 902 00:40:50,600 --> 00:40:55,540 with the simulator. 903 00:40:55,760 --> 00:40:57,880 So this is the reason why we had the colors. 904 00:40:57,920 --> 00:40:59,400 Unfortunately, the contrast isn't great, 905 00:40:59,540 --> 00:41:01,000 but maybe you can see a little bit there. 906 00:41:01,220 --> 00:41:03,540 In the middle, I started out with a guy. 907 00:41:03,820 --> 00:41:06,100 And what I've done now is each vertex, 908 00:41:06,220 --> 00:41:07,920 the reason I had them colored from the beginning 909 00:41:07,920 --> 00:41:10,880 is that aside from assigning a random position to everybody, 910 00:41:11,140 --> 00:41:12,680 I've also assigned a random color, 911 00:41:12,780 --> 00:41:14,880 which shows sort of what they are interested in. 912 00:41:15,520 --> 00:41:17,380 And what they want to do, 913 00:41:18,000 --> 00:41:21,460 is then find the... 914 00:41:21,460 --> 00:41:23,020 He goes out into the world. 915 00:41:23,140 --> 00:41:24,800 So purple is right there in the middle. 916 00:41:25,040 --> 00:41:26,720 And he starts searching outwards. 917 00:41:26,820 --> 00:41:28,200 And the first person he runs into 918 00:41:28,200 --> 00:41:30,640 is this reddish node that is a little bit above him. 919 00:41:30,720 --> 00:41:32,480 That's the one that's the very closest to him. 920 00:41:32,660 --> 00:41:34,260 Because that's the first one he runs into, 921 00:41:34,340 --> 00:41:35,680 it's the most interesting one, 922 00:41:35,740 --> 00:41:37,020 the one that's closest to him in color 923 00:41:37,020 --> 00:41:37,920 that he's met so far. 924 00:41:38,100 --> 00:41:40,020 So we create an edge between them. 925 00:41:40,360 --> 00:41:41,560 He goes a little bit further. 926 00:41:41,620 --> 00:41:43,000 He finds one that's sort of bluish. 927 00:41:43,300 --> 00:41:44,940 And that's closer to purple. 928 00:41:45,100 --> 00:41:47,080 I'm using RGB colors 929 00:41:47,080 --> 00:41:49,160 and Euclidean distance, 930 00:41:49,280 --> 00:41:50,000 if anybody cares. 931 00:41:51,800 --> 00:41:53,800 So this bluish one is a little bit closer. 932 00:41:54,060 --> 00:41:55,920 So he'll add an edge to that. 933 00:41:56,060 --> 00:41:58,000 He goes out and he finds... 934 00:41:58,000 --> 00:42:00,140 Well, there's one yellowish guy there 935 00:42:00,140 --> 00:42:02,240 who was not closer than the bluish guy. 936 00:42:02,320 --> 00:42:03,600 So he's not going to become friends with him, 937 00:42:03,660 --> 00:42:06,120 because he's not more interesting than somebody he already knows. 938 00:42:06,600 --> 00:42:08,100 But there is a guy there 939 00:42:08,100 --> 00:42:09,340 who is the... 940 00:42:10,240 --> 00:42:12,480 who turns out to be also bluish 941 00:42:12,480 --> 00:42:13,840 and is a little bit closer still. 942 00:42:14,340 --> 00:42:16,140 And after a while he finds someone 943 00:42:16,140 --> 00:42:17,340 who's very close to him, 944 00:42:17,440 --> 00:42:18,520 even closer. 945 00:42:18,740 --> 00:42:21,120 And now he really isn't making friends with anyone anymore 946 00:42:21,120 --> 00:42:22,800 because he's met so similar people, 947 00:42:23,000 --> 00:42:24,580 until eventually he meets this person 948 00:42:24,580 --> 00:42:26,560 who's the very closest to him in color 949 00:42:26,560 --> 00:42:27,960 of everyone in the whole graph. 950 00:42:28,140 --> 00:42:31,180 And that creates his longest edge there. 951 00:42:31,360 --> 00:42:32,960 And this is going to run now 952 00:42:32,960 --> 00:42:33,880 for all the vertices. 953 00:42:34,000 --> 00:42:35,380 And you can see this link distribution 954 00:42:35,380 --> 00:42:38,020 being created by this thing here. 955 00:42:38,920 --> 00:42:41,420 As each one of them finds these friends 956 00:42:41,420 --> 00:42:42,700 who are similar to them, 957 00:42:43,820 --> 00:42:45,800 and this link distribution 958 00:42:46,140 --> 00:42:47,500 that you're going to see being created 959 00:42:48,080 --> 00:42:49,280 it speeds up after a while 960 00:42:49,280 --> 00:42:50,380 so I won't have to wait for the whole thing 961 00:42:50,380 --> 00:42:54,300 is going to represent 962 00:42:55,320 --> 00:42:56,560 what we are looking for. 963 00:42:56,700 --> 00:42:57,020 There we go. 964 00:43:02,240 --> 00:43:03,760 And you can see that this 965 00:43:04,320 --> 00:43:06,300 link distance already looks like 966 00:43:06,300 --> 00:43:07,920 what we wanted in the sense that 967 00:43:07,920 --> 00:43:10,140 most edges are rather short. 968 00:43:10,360 --> 00:43:11,040 Most people... 969 00:43:11,040 --> 00:43:13,060 Because when you first go into the world 970 00:43:13,060 --> 00:43:14,260 you're making friends with a lot of people 971 00:43:14,260 --> 00:43:15,980 because you don't have that many 972 00:43:16,140 --> 00:43:16,820 people to compare to. 973 00:43:16,920 --> 00:43:18,920 But as they're further away, then... 974 00:43:18,920 --> 00:43:20,320 And so, I mean, one can say 975 00:43:20,320 --> 00:43:23,880 as a model for how the real world might work 976 00:43:23,880 --> 00:43:26,240 of course, anything like this is going to be idealized. 977 00:43:26,300 --> 00:43:27,080 You don't go into the world, 978 00:43:27,140 --> 00:43:27,940 you don't meet everyone, 979 00:43:28,180 --> 00:43:29,420 you don't make friends with anyone, 980 00:43:29,440 --> 00:43:31,840 you don't have strict criteria on distance. 981 00:43:32,060 --> 00:43:32,880 But what you could say is 982 00:43:32,880 --> 00:43:35,460 in order to keep a relationship with someone, 983 00:43:35,480 --> 00:43:36,880 or to stay friends with somebody, 984 00:43:36,980 --> 00:43:39,680 they need to be somehow more interesting to you 985 00:43:39,680 --> 00:43:41,180 than somebody who is more accessible. 986 00:43:41,560 --> 00:43:44,840 Because if somebody who is more interesting 987 00:43:44,840 --> 00:43:45,700 is more accessible, 988 00:43:45,700 --> 00:43:47,680 then probably you will lose interest 989 00:43:47,680 --> 00:43:49,480 in the people who are farther away 990 00:43:49,480 --> 00:43:50,680 and less accessible to you. 991 00:43:51,620 --> 00:43:52,040 So... 992 00:43:52,620 --> 00:43:54,840 And now that we're done with this construction, 993 00:43:55,080 --> 00:43:55,940 everyone got their edges, 994 00:43:56,020 --> 00:43:57,400 we can try this sort of searching again 995 00:43:57,400 --> 00:43:59,960 and it turns out that it works fine. 996 00:44:00,760 --> 00:44:02,080 And one of the interesting things 997 00:44:02,080 --> 00:44:04,000 that isn't completely obvious with this construction 998 00:44:04,590 --> 00:44:07,880 is that, in fact, this... 999 00:44:07,880 --> 00:44:10,100 The construction is completely symmetrical. 1000 00:44:10,420 --> 00:44:12,660 So the role of the positions 1001 00:44:12,660 --> 00:44:14,280 that you see on the screen in the space 1002 00:44:14,280 --> 00:44:15,740 and the colors are the same. 1003 00:44:16,100 --> 00:44:17,800 So if you look at blue and red here, 1004 00:44:18,340 --> 00:44:20,460 instead of taking the top corner and the bottom corner, 1005 00:44:20,600 --> 00:44:22,200 what I've done is I've taken the bluest vertex 1006 00:44:22,200 --> 00:44:23,200 and the reddest vertex, 1007 00:44:23,460 --> 00:44:25,420 and they happen to live very close to one another, 1008 00:44:25,600 --> 00:44:26,460 but they're very different 1009 00:44:26,460 --> 00:44:28,680 because one of them is only interested in blue things 1010 00:44:28,680 --> 00:44:30,160 and one of them is only interested in red things. 1011 00:44:30,340 --> 00:44:33,440 But we can do the same thing and search using... 1012 00:44:33,440 --> 00:44:35,120 Instead of going greedy in space, 1013 00:44:35,280 --> 00:44:36,380 as I'm trying to find the neighbor 1014 00:44:36,380 --> 00:44:38,540 who was closest to the bottom, 1015 00:44:38,740 --> 00:44:40,080 I say, well, blue starts 1016 00:44:40,080 --> 00:44:41,600 and he looks at his reddest friend, 1017 00:44:41,780 --> 00:44:43,440 and that would look for his reddest friend 1018 00:44:43,440 --> 00:44:44,200 all the way... 1019 00:44:44,280 --> 00:44:44,920 until... 1020 00:44:44,920 --> 00:44:47,040 And it turns out, because this definition is symmetric, 1021 00:44:47,280 --> 00:44:48,520 it's searchable in this way, too. 1022 00:44:48,860 --> 00:44:50,980 So you can do it either by looking for 1023 00:44:50,980 --> 00:44:52,160 the person who lives closest 1024 00:44:52,160 --> 00:44:53,240 or the person who's most... 1025 00:44:53,240 --> 00:44:54,620 And that's a sort of interesting property 1026 00:44:54,620 --> 00:44:56,080 because when the psychologists went 1027 00:44:56,080 --> 00:44:57,160 in these Milgram experiments 1028 00:44:57,160 --> 00:44:57,980 and they asked people, 1029 00:44:58,160 --> 00:45:00,100 well, what were you doing? 1030 00:45:00,320 --> 00:45:02,240 How did you decide what to send the letter? 1031 00:45:02,480 --> 00:45:04,440 But some portion of them said, 1032 00:45:04,500 --> 00:45:06,260 well, I was just looking for somebody who lived close, 1033 00:45:06,420 --> 00:45:07,660 and about some of them said, 1034 00:45:07,720 --> 00:45:08,600 well, I was looking for someone 1035 00:45:08,600 --> 00:45:11,040 who was professionally close to the destination. 1036 00:45:11,240 --> 00:45:13,100 That seems to be sort of what people... 1037 00:45:13,100 --> 00:45:14,400 the reasoning that people are using, 1038 00:45:14,540 --> 00:45:15,260 that sort of thing. 1039 00:45:18,820 --> 00:45:19,300 Okay. 1040 00:45:19,900 --> 00:45:20,380 So... 1041 00:45:21,640 --> 00:45:23,880 This is then the mathematical definition 1042 00:45:23,880 --> 00:45:25,880 of this thing that you don't all need to worry about. 1043 00:45:26,200 --> 00:45:27,840 So just to conclude, 1044 00:45:29,340 --> 00:45:31,580 it's really just sort of a couple of examples 1045 00:45:31,580 --> 00:45:34,440 of how one can do these simple probabilistic models, 1046 00:45:34,580 --> 00:45:37,380 and they give very interesting examples 1047 00:45:37,380 --> 00:45:40,340 of complicated structures and patterns 1048 00:45:40,340 --> 00:45:42,700 and properties that emerge in these networks. 1049 00:45:42,780 --> 00:45:43,080 Okay. 1050 00:45:43,100 --> 00:45:45,640 And I haven't gone into it this time, 1051 00:45:45,760 --> 00:45:48,440 sort of what the applications of these things are. 1052 00:45:48,520 --> 00:45:49,660 If you wanted, 1053 00:45:49,720 --> 00:45:51,760 you could have gone to our talk two years ago at DEF CON, 1054 00:45:51,900 --> 00:45:53,120 and then you would have heard about applications. 1055 00:45:53,740 --> 00:45:55,920 It might be a little too late to tip off on that. 1056 00:45:57,320 --> 00:45:58,120 So anyways, 1057 00:45:58,340 --> 00:46:01,920 there are plenty of sort of interesting applications, 1058 00:46:01,940 --> 00:46:03,940 both sort of how should we build networks 1059 00:46:03,940 --> 00:46:05,220 like peer-to-peer networks, et cetera, 1060 00:46:05,400 --> 00:46:07,700 and also how should we... 1061 00:46:08,320 --> 00:46:10,620 to try to analyze things like social networks, 1062 00:46:10,780 --> 00:46:12,420 how they exist from these sort of models. 1063 00:46:13,100 --> 00:46:14,800 And it involves interesting mathematics 1064 00:46:14,800 --> 00:46:15,680 that, unfortunately, 1065 00:46:16,320 --> 00:46:18,200 I would have had to have a blackboard 1066 00:46:18,200 --> 00:46:19,560 in a couple of hours to do for you. 1067 00:46:19,760 --> 00:46:20,840 So, okay. 1068 00:46:21,340 --> 00:46:22,580 I think that's... 1069 00:46:23,280 --> 00:46:24,280 Except for questions, 1070 00:46:24,960 --> 00:46:26,240 it's going to be... 1071 00:46:26,960 --> 00:46:29,100 You had your hand up first, so... 1072 00:46:37,360 --> 00:46:39,020 I'm not sure what you mean by that. 1073 00:46:39,160 --> 00:46:40,740 There's lots of conditioning in this, 1074 00:46:40,780 --> 00:46:42,600 because you don't have independence 1075 00:46:42,600 --> 00:46:43,860 of edges in these networks, 1076 00:46:43,940 --> 00:46:45,200 so they become difficult to analyze, 1077 00:46:45,360 --> 00:46:46,860 because when you condition on things, 1078 00:46:46,920 --> 00:46:47,740 things change completely. 1079 00:46:48,020 --> 00:46:50,280 So there is a lot of conditioning, but... 1080 00:46:51,360 --> 00:46:51,800 Yeah. 1081 00:46:52,080 --> 00:46:54,100 The software that you've been using 1082 00:46:54,100 --> 00:46:55,140 for all the graphs... 1083 00:46:55,140 --> 00:46:55,340 Yeah. 1084 00:46:56,260 --> 00:46:57,340 ...is that available? 1085 00:46:57,620 --> 00:47:01,460 I keep meaning to put the source code up, yeah. 1086 00:47:01,560 --> 00:47:03,440 As soon as I do it, it will be GPLed. 1087 00:47:03,480 --> 00:47:03,740 Yeah. 1088 00:47:06,640 --> 00:47:08,460 So more your research is worth 1089 00:47:08,460 --> 00:47:10,220 instead of cost more efficient, 1090 00:47:10,260 --> 00:47:11,280 depending on the product? 1091 00:47:12,860 --> 00:47:13,580 So more... 1092 00:47:13,580 --> 00:47:15,120 The point with this particular piece 1093 00:47:15,120 --> 00:47:16,180 that I was talking about in the end 1094 00:47:16,180 --> 00:47:17,020 is really just to see, 1095 00:47:17,080 --> 00:47:18,920 is there a simple natural property 1096 00:47:19,540 --> 00:47:20,880 which can sort of explain 1097 00:47:20,880 --> 00:47:22,600 why these dynamics might approach? 1098 00:47:22,700 --> 00:47:23,180 It's not really, 1099 00:47:24,020 --> 00:47:26,000 can we do this in a quick way? 1100 00:47:26,040 --> 00:47:26,640 There are other ways 1101 00:47:26,640 --> 00:47:28,140 of building these networks in good ways, 1102 00:47:28,240 --> 00:47:29,680 and I could have talked about that as well, 1103 00:47:29,780 --> 00:47:32,220 but this is more like a very simple idea 1104 00:47:32,220 --> 00:47:34,060 that tends to lead to the right dynamics. 1105 00:47:43,640 --> 00:47:44,700 I can't hear you. 1106 00:47:52,740 --> 00:47:54,620 There are plenty of applications, 1107 00:47:54,880 --> 00:47:56,280 but it's not really my department, 1108 00:47:56,400 --> 00:47:58,520 so I'm not going to speculate on that. 1109 00:47:58,800 --> 00:47:59,240 Okay. 1110 00:47:59,300 --> 00:48:00,460 Maybe we'll do the breakout 1111 00:48:00,460 --> 00:48:02,300 if there are more questions, so...