{"video_id":"g8pjrVbdafY","comment_count":400,"fetched_at":"2026-10-20T15:55:31+00:00","source":"innertube_next","comments":[{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugx1On9Ue6xOxKuLabB4AaABAg","text":"also afaik z3 doesn't have any progress bar, did u find that at all anxiety inducing? like if you had stopped the solve 1.9wk after start, maybe you would have missed a solution that you could have found with just one more day of solving","author":"@digantamukhopadhyaydex","author_id":"UCiD37k07TPzptIOtnSOJj_Q","like_count":198,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"Ugx1On9Ue6xOxKuLabB4AaABAg","text":"also afaik z3 doesn't have any progress bar, did u find that at all anxiety inducing? like if you had stopped the solve 1.9wk after start, maybe you would have missed a solution that you could have found with just one more day of solving","author":"@digantamukhopadhyaydex","author_id":"UCiD37k07TPzptIOtnSOJj_Q","like_count":198,"published_time":"2 years ago"},{"id":"UgysiO1Af-lhURLLWPR4AaABAg","text":"4:00 its impossible to compute THE previous state. Easy example: an empty board. Was the previous state an empty board too? 1 cell? 2 cells aligned but spaced by 2 empty ones? Or the space between was 3? 4? 99999? Graams number? Tree(3)?????? We cant know","author":"@lukatambourgi9372","author_id":"UCU23iPfALAVWmYkP1sHOdGg","like_count":53,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgzNhZb2suPBqQJF-bd4AaABAg","text":"did you hear about Golly during this investigation? it runs finite automata extremely quickly because of a method called hashlife. it memoizes computed blocks to advance larger and larger patterns more quickly than evaluating the rules. you can use it to look backwards by looking forwards, unless there's an incredibly improbable situation that can never happen under a certain sized starting condition, it will find it","author":"@steubens7","author_id":"UC0gFDmYIElONvQNOQUGLgbg","like_count":32,"published_time":"2 years ago"},{"id":"Ugyu6M5z0B8HSEdk7JR4AaABAg","text":"24:10 to be completely precise, it is not known if NP-complete problems require non-polynomial time to solve (but it is widely believed to require exponential time and all current SAT solvers are running in exponential time (with some heuristics to hopefully be fast in easy cases)). Just one of those open problems in computer science.","author":"@jonasmaier6631","author_id":"UCBKOoqeR8GHpvK9iXORCAdA","like_count":87,"published_time":"2 years ago (edited)"},{"id":"UgzWLSl3rIt3M59LoXx4AaABAg","text":"Have you looked at zero-suppressed decision diagrams also, they \"break down\" (by running out of memory) more often than SAT solvers but when they work they enable you to ask questions about the entire space of solutions (instead of just getting one of them, as SAT would, making you generate them one-by-one with extra constraints). Such as you can ask how many solutions there are, or even a list of pairs of how many solutions there are for each number of \"live\" cells, or find the solutions with the most or least life cells.","author":"@harold2718","author_id":"UCMX-BFOCQ0ICKjzV5LIzw1g","like_count":28,"published_time":"2 years ago (edited)"},{"id":"UgyZWCJKtwEGTK55-pl4AaABAg","text":"Have you considered a wave function collapse in causality space ( populate the 2d prediction list with all possible 3x3 starter grids for the current state), solve for overlap in the 3x3 grids ( as graphs) and then run wave function collapse from a random starting point to see if it has a solution?","author":"@naukowiec","author_id":"UCcX35Xr6_sEOD2IzaCWwI9w","like_count":5,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxlRix1ViJoM9J5Ckt4AaABAg","text":"3:50 It's kind of like how multiplying two large numbers is easy, but determining the factors of a large number is hard (so hard all modern cryptography and indeed the security of the internet depends on it).","author":"@AMurderOfLobs","author_id":"UCVdTfjg9RMYZeDqVJg5eMyA","like_count":6,"published_time":"1 year ago"},{"id":"Ugxl1WWs0QTqHgry_jF4AaABAg","text":"To me this sounds like a perfect inverse problem. Pretty much how do we go from a current state and work our way backwards to find the initial state, given that the initial state has pretty much infinite possibilities and there are infinite solutions. Inverse problems are pretty heavily studied at least in geophysics and hence there are some solid algorithms for them. That might be another approach to solve this problem which could make it much faster.","author":"@duncanbyrne1134","author_id":"UCWQyw5GEs0SSNVzM5M2rJVQ","like_count":3,"published_time":"2 years ago (edited)"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"Ugx1On9Ue6xOxKuLabB4AaABAg","text":"also afaik z3 doesn't have any progress bar, did u find that at all anxiety inducing? like if you had stopped the solve 1.9wk after start, maybe you would have missed a solution that you could have found with just one more day of solving","author":"@digantamukhopadhyaydex","author_id":"UCiD37k07TPzptIOtnSOJj_Q","like_count":198,"published_time":"2 years ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgwTwbjvlnXBvMwlEZ94AaABAg","text":"At 10:00 I noticed something interesting. Traversing diagonally across a face always flips the same two pixels. Look a the front face. The top two pixels change along each diagonal, but the bottom one is never affected. Along the top face, diagonals flip the left and bottom pixels, but never the right one. Similarly, traversing the 3D diagonal flips all 3 pixels. A 4D diagonal four flip 4 pixels, etc. This means a path length of sqrt(n) would always flip n pixels, making plotting a path much easier to calculate.\n\nYou could imagine a large image with huge chunks of pixels being the wrong color. Instead of navigating through configuration space in cardinal directions only, you could take a shortcut by pre-calculating and caching the diagonal that corresponds to flipping that entire chunk. Maybe divide the whole pixel array into smaller square chunks for faster processing, etc, etc.","author":"@NorthOfEarth","author_id":"UCyTRrcz-SrJ81etUQ68dwQA","like_count":20,"published_time":"2 years ago (edited)"},{"id":"Ugyu6M5z0B8HSEdk7JR4AaABAg","text":"24:10 to be completely precise, it is not known if NP-complete problems require non-polynomial time to solve (but it is widely believed to require exponential time and all current SAT solvers are running in exponential time (with some heuristics to hopefully be fast in easy cases)). Just one of those open problems in computer science.","author":"@jonasmaier6631","author_id":"UCBKOoqeR8GHpvK9iXORCAdA","like_count":87,"published_time":"2 years ago (edited)"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgysiO1Af-lhURLLWPR4AaABAg","text":"4:00 its impossible to compute THE previous state. Easy example: an empty board. Was the previous state an empty board too? 1 cell? 2 cells aligned but spaced by 2 empty ones? Or the space between was 3? 4? 99999? Graams number? Tree(3)?????? We cant know","author":"@lukatambourgi9372","author_id":"UCU23iPfALAVWmYkP1sHOdGg","like_count":53,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"Ugx1On9Ue6xOxKuLabB4AaABAg","text":"also afaik z3 doesn't have any progress bar, did u find that at all anxiety inducing? like if you had stopped the solve 1.9wk after start, maybe you would have missed a solution that you could have found with just one more day of solving","author":"@digantamukhopadhyaydex","author_id":"UCiD37k07TPzptIOtnSOJj_Q","like_count":198,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"UgwgFPPs-9wiryB8yAp4AaABAg","text":"33:33\n\"Eden found\" did the computer just die and ascend to heaven?..","author":"@JohnTheCoolingFan","author_id":"UCOhqau8gWef8VKKwhPChmlQ","like_count":30,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugx1On9Ue6xOxKuLabB4AaABAg","text":"also afaik z3 doesn't have any progress bar, did u find that at all anxiety inducing? like if you had stopped the solve 1.9wk after start, maybe you would have missed a solution that you could have found with just one more day of solving","author":"@digantamukhopadhyaydex","author_id":"UCiD37k07TPzptIOtnSOJj_Q","like_count":198,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgysiO1Af-lhURLLWPR4AaABAg","text":"4:00 its impossible to compute THE previous state. Easy example: an empty board. Was the previous state an empty board too? 1 cell? 2 cells aligned but spaced by 2 empty ones? Or the space between was 3? 4? 99999? Graams number? Tree(3)?????? We cant know","author":"@lukatambourgi9372","author_id":"UCU23iPfALAVWmYkP1sHOdGg","like_count":53,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"Ugyu6M5z0B8HSEdk7JR4AaABAg","text":"24:10 to be completely precise, it is not known if NP-complete problems require non-polynomial time to solve (but it is widely believed to require exponential time and all current SAT solvers are running in exponential time (with some heuristics to hopefully be fast in easy cases)). Just one of those open problems in computer science.","author":"@jonasmaier6631","author_id":"UCBKOoqeR8GHpvK9iXORCAdA","like_count":87,"published_time":"2 years ago (edited)"},{"id":"UgzNhZb2suPBqQJF-bd4AaABAg","text":"did you hear about Golly during this investigation? it runs finite automata extremely quickly because of a method called hashlife. it memoizes computed blocks to advance larger and larger patterns more quickly than evaluating the rules. you can use it to look backwards by looking forwards, unless there's an incredibly improbable situation that can never happen under a certain sized starting condition, it will find it","author":"@steubens7","author_id":"UC0gFDmYIElONvQNOQUGLgbg","like_count":32,"published_time":"2 years ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgyZWCJKtwEGTK55-pl4AaABAg","text":"Have you considered a wave function collapse in causality space ( populate the 2d prediction list with all possible 3x3 starter grids for the current state), solve for overlap in the 3x3 grids ( as graphs) and then run wave function collapse from a random starting point to see if it has a solution?","author":"@naukowiec","author_id":"UCcX35Xr6_sEOD2IzaCWwI9w","like_count":5,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgwqnsiV3TIsiJBiDBx4AaABAg","text":"I bet reddit still thinks it can't be done after watching this video.","author":"@acf2802","author_id":"UClzELNkBKKrEtGA0TDyjflA","like_count":105,"published_time":"2 years ago"},{"id":"UgxuTyZ2eHktNbR8lFt4AaABAg","text":"FINALLY, an answer to the burning question I've been asking myself for decades: whether it's more difficult to reverse Conway's Game of Life or to gerrymander the state of North Carolina","author":"@FAT9L","author_id":"UCxajqp27jiNGysyHjsg6ydA","like_count":66,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"Ugy76rx4AGYasX-y5bx4AaABAg","text":"I once heard a very clever computer scientist say:\n\n\nWe programmers do no choose what we work on because it is easy. We choose it because we thought it would be easy!","author":"@manuelpena3988","author_id":"UCYwZvO1dAhV7a7acvvzWOFg","like_count":126,"published_time":"2 years ago (edited)"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"Ugw1dbd_vcajvy9TnAV4AaABAg","text":"I really love how Gerrymandering is relatively much more computationally easier than reversing GoL states. \nLike, oh, making this cool pattern pop out? insanely hard, computationally intensive. \nAbusing loopholes in a democratic system leading to political corruption? yeah dude, it's a walk in the park","author":"@MooImABunny","author_id":"UCSPtyK5mRQsj0oZtN9EkdAw","like_count":278,"published_time":"2 years ago"},{"id":"UgwKlZ2QMAmnviVdlNZ4AaABAg","text":"I get SO frustrated with other people's videos because they DON'T understand the problem they're looking at to the depth you do and they don't explain it.  Thank you for making the first video I've seen in a long time that lacks the hand waving of incomprehension.","author":"@goombario3220","author_id":"UC5S7ivZfctKgqO053vsnpbQ","like_count":159,"published_time":"2 years ago"},{"id":"UgxUCZie0ZNG77pGIKV4AaABAg","text":"26:06 Hexagons are the Bestagons after all.","author":"@tonydai782","author_id":"UCJfboUydFWCUmeW7q2uvihA","like_count":21,"published_time":"2 years ago"},{"id":"UgyxZEW30y7zbNVxuDN4AaABAg","text":"FAQ and corrections in this comment!\n1) Check out today's sponsor at https://brilliant.org/alphaphoenix/ for 20% off!\n2) Yes, there will be a part 2 video, but no, it's not coming out next. these programming videos are monstrous to edit because they're all animations and I can't stand to look at this project anymore. hopefully the next video is something fun with the high speed camera!\n3) I'd love to see more people take a crack at this! Someone on Patreon wrote a fantastic algorithm this week that could take loads of steps backwards on a glider, but apparently struggled with the larger \"play button\" pattern I was using.\n4) A LOT of people are complaining about the complexity section, but I chose my words very carefully there. I said “NP complete is AT WORST exponential”. I also said “there’s no KNOWN algorithm” to solve NP hard questions in polynomial time.\n5) AI would be awful for this problem. Neural nets also likes smooth parameter spaces, and they are good at finding “good” solutions not “exact” solutions.\n6) a lot of people are pointing out that there can be more than one GoL board that leads to any given desired GoL board. On the surface it feels like this would make the problem easier, because there are more solutions to find, but it’s also this property that guarantees you will have “Eden” game boards that cannot be produced by a previous step.\n7) Tile solver: a bunch of people have suggested pre solving tiles, and I love this idea - it’s one that I tossed around too late down my path of pixel-by-pixel SAT. You’re trading precompute time and memory to build an enormous library: find every way to back up a 3x3 area and save them, then catalog if a tile is used to back up a particular state, what tiles could be adjacent (this will chop down the long list to a less but still quite long list), then you can build a solution from tiles. Maybe by making tiles from tiles iteratively you could precompute solutions for quite large patterns. This may be an interesting way to cut down run-time complexity pretty massively. I didn’t initially go this way because I felt it would be difficult to keep the simulation small while taking multiple steps backwards, but that could be sorted by your tile selection method/biases (a sat solver would be faster but it’s not easily biasable)","author":"@AlphaPhoenixChannel","author_id":"UCCWeRTgd79JL0ilH0ZywSJA","like_count":409,"published_time":"2 years ago (edited)"},{"id":"UgyvmaV0tJkFnbJRTa94AaABAg","text":"Computer scientist here.\nIf you're just using the SAT-solver built-in to Z3 (as opposed to SMT constraints), you should really instead be using a specialized sat solver like cadical or kissat. They're much much much faster. >1 week for one sat solve at the problem scale you're dealing with is almost always unnecessary. The annual sat competition does a good job keeping track of what's currently fastest.\nIf you're actually using SMT constraints in Z3 (like you were previously with integers), you should almost certainly switch to CVC5. It is also much faster than Z3 in almost all cases (save for some theories that you won't use).\n\nAlso, you almost certainly should not be doing manual a local search for multiple steps like you are now. It should be very straightforward and fairly efficient to encode multiple steps of your constraints at once into SAT (or SMT). Then you don't implement manual backtracking (which I'm assuming is what you're doing currently with your \"edens\") - that's already what DPLL does (and hence what CDCL emulates).\n\nI'm not sure what your constraint formulation looks like, but also see if you can add any \"symmetry breaking constraints\". It shouldn't be too hard to find good resources on why these are useful and what they look like.\n\nNot super important, but also the thing you're calling a \"phase space\" is what would be called a \"reconfiguration graph\" in my field, since it's a graph over the space of configurations whose edges correspond to a certain type of \"reconfiguration move\" (in this case, flipping the colour of a grid point). There are some much cooler reconfiguration graphs. Fun fact the simplex method for linear programming is a greedy reconfiguration graph traversal.","author":"@procedurecall4219","author_id":"UCY4k6CICWK8BQzKxtAwPn-g","like_count":1,"published_time":"2 years ago"},{"id":"UgxlNpDwf7VptKsHsa94AaABAg","text":"\"we did it not because it was easy, but because we thought it would be easy\"\n(Naive developer discovering that the algorithm they are trying to reverse is not bijective)","author":"@satibel","author_id":"UCQ_4qBNcBk-CSTkOigpQ0wQ","like_count":2,"published_time":"2 years ago"},{"id":"Ugw4-2M22PfuIRCux5R4AaABAg","text":"Surpised you didn't show a solved rubics cube and ask the viewer to try to figure out what unsolved state it began from","author":"@brothertyler","author_id":"UCKiKDa94dOuKtQjqVGRozDg","like_count":4,"published_time":"2 years ago"},{"id":"UgxHdhke7IHMPfnG5X14AaABAg","text":"Bro just made a whole series about entropy and thermodynamics and now he’s surprised that reversing something like Game of Life is hard? :D","author":"@Tandanuu","author_id":"UC0HQ14Jkyvt2SyZCsaeJLkQ","like_count":5,"published_time":"2 years ago"},{"id":"UgzTf4X8P6wXFldarMV4AaABAg","text":"I’m a software engineer, and I used to work with data that required n-dimensional arrays. At first I was really confused trying to imagine a hypercube of cubes in my brain. As you’ve noted, it’s extremely difficult. One day I was staring across my office at my file cabinet, and I realized that when dealing with arrays using grids & cubes are just an abstraction. \n\nThere’s no reason to conceptualize arrays in dimensions, it’s much easier to imagine them as containers. Like squares -> grid -> cube -> drawer -> cabinet -> storage room -> building -> etc. It’s not a complex shift in metaphor, but for me it made the notion of distance between cells much easier to understand.\n\nI use the same logic when thinking about configuration space. Containers of containers of containers of containers. It’s surprisingly effective!","author":"@SkoddieAltair","author_id":"UCnZntWiztD6sD-VPlhJ-kLQ","like_count":211,"published_time":"2 years ago"},{"id":"Ugz1voZWwEIxZkRIp6B4AaABAg","text":"During the video I considered this \"what if you just checked every possible combination\" but turns out that with a 10 by 10 board, if each combination takes one microsecond it'll take 40 quadrillion years to check them all.","author":"@8bit_cat72","author_id":"UCqoZcSSJrPzAP-ejtrT5VYw","like_count":456,"published_time":"2 years ago"},{"id":"UgxvegnEbcZr7tG0EvJ4AaABAg","text":"That false solution thing is also the mechanism behind a lot of \"Why didn't evolution lead to X!\" conversations. You basically never will go down a hill, even if the evolutionary mountain on the other side is four times as high. Creates these feedback loops where animals keep terrible systems because in order to improve they'd have to \"unwind\" first.","author":"@oafkad","author_id":"UCuKFP6Z6X2yaIvPwMPFUyZQ","like_count":637,"published_time":"2 years ago"},{"id":"UgwATQWOzQJrRbJ05j54AaABAg","text":"\"Conways Game of Death\" completely fair name because it kills the developer","author":"@Drawliphant","author_id":"UClUU7hsab0eHzGLhwH9rYtg","like_count":1,"published_time":"2 years ago"},{"id":"Ugz32En0YE4WvRFDMg54AaABAg","text":"Another problem which is NP-hard is placing conveyor belts in Factorio.\n\nSomeone made a modified SAT solver that just makes custom belt balancers for you.","author":"@moth.monster","author_id":"UCSg-5sd-BilwHTUqAlLZbyw","like_count":598,"published_time":"2 years ago"},{"id":"Ugx1On9Ue6xOxKuLabB4AaABAg","text":"also afaik z3 doesn't have any progress bar, did u find that at all anxiety inducing? like if you had stopped the solve 1.9wk after start, maybe you would have missed a solution that you could have found with just one more day of solving","author":"@digantamukhopadhyaydex","author_id":"UCiD37k07TPzptIOtnSOJj_Q","like_count":198,"published_time":"2 years ago"},{"id":"UgysiO1Af-lhURLLWPR4AaABAg","text":"4:00 its impossible to compute THE previous state. Easy example: an empty board. Was the previous state an empty board too? 1 cell? 2 cells aligned but spaced by 2 empty ones? Or the space between was 3? 4? 99999? Graams number? Tree(3)?????? We cant know","author":"@lukatambourgi9372","author_id":"UCU23iPfALAVWmYkP1sHOdGg","like_count":53,"published_time":"2 years ago"},{"id":"Ugwcmum_rXqnixmOA5R4AaABAg","text":"The N always stands for Nondeterministic. The NP-hard problems in NP are those that can be verified in polynomial time. It’s an open problem (with a million dollar prize!) to prove or disprove if all the problems verifiable in polynomial time can be decided in polynomial time. — So, polynomials are still very much involved!\n\n(Note: the qualifier of “NP-hard in NP” in necessary, because there are undecidable problems that are NP-hard: the Halting problem is famously undecidable, but it’s trivially easy to reduce any NP problem to the halting problem: simply prepend a string representing a Turing machine that solves that NP problem. Likewise, if the N actually stood for “non” then it would include the halting problem as well.)","author":"@mshonle","author_id":"UCIieT1j5g5MA64p4x0qxG_g","like_count":101,"published_time":"2 years ago"},{"id":"UgwDprVMfjX_N78sdLZ4AaABAg","text":"Heartbreaking: someone has solved your non trivial problem but used completely different terminology you were unaware of meaning that if you just knew what you didn't know you didn't know you would have saved yourself endless headache","author":"@Axolotine","author_id":"UCC1HpyUlQ-M4Pb98YQIwVgg","like_count":427,"published_time":"2 years ago"},{"id":"UgzSnMRxHBWC7gHDwCV4AaABAg","text":"Your first algorithm kind of reminds me of how people intuitively try to solve Rubik’s cubes. Most people just solve one face, but are then too scared to mess it up, so they avoid changing it, even though most of the algorithms for further steps require you to temporarily mess up the face.","author":"@n7x","author_id":"UC0wm0uYo9uLMbppkLBYd9UQ","like_count":59,"published_time":"1 year ago"},{"id":"UgxLiOp-9gGivvLAPnJ4AaABAg","text":"I'm incredibly chuffed at the recent trend of not deciding that \"this video idea takes way too long to arrive at the final stage to be worth a video\" and instead adapting it to \"this incredibly simple looking thing took me incredible effort, let me explain to you the surprising reasons why\".\nA lot of my favourite channels have been putting out partial successes or outright failures and creating absolutely wonderful pieces of content.","author":"@Arkios64","author_id":"UCmhxRhUICPBZwLN7D-b9sLA","like_count":68,"published_time":"2 years ago"},{"id":"UgwTwbjvlnXBvMwlEZ94AaABAg","text":"At 10:00 I noticed something interesting. Traversing diagonally across a face always flips the same two pixels. Look a the front face. The top two pixels change along each diagonal, but the bottom one is never affected. Along the top face, diagonals flip the left and bottom pixels, but never the right one. Similarly, traversing the 3D diagonal flips all 3 pixels. A 4D diagonal four flip 4 pixels, etc. This means a path length of sqrt(n) would always flip n pixels, making plotting a path much easier to calculate.\n\nYou could imagine a large image with huge chunks of pixels being the wrong color. Instead of navigating through configuration space in cardinal directions only, you could take a shortcut by pre-calculating and caching the diagonal that corresponds to flipping that entire chunk. Maybe divide the whole pixel array into smaller square chunks for faster processing, etc, etc.","author":"@NorthOfEarth","author_id":"UCyTRrcz-SrJ81etUQ68dwQA","like_count":20,"published_time":"2 years ago (edited)"},{"id":"UgzNhZb2suPBqQJF-bd4AaABAg","text":"did you hear about Golly during this investigation? it runs finite automata extremely quickly because of a method called hashlife. it memoizes computed blocks to advance larger and larger patterns more quickly than evaluating the rules. you can use it to look backwards by looking forwards, unless there's an incredibly improbable situation that can never happen under a certain sized starting condition, it will find it","author":"@steubens7","author_id":"UC0gFDmYIElONvQNOQUGLgbg","like_count":32,"published_time":"2 years ago"},{"id":"Ugyu6M5z0B8HSEdk7JR4AaABAg","text":"24:10 to be completely precise, it is not known if NP-complete problems require non-polynomial time to solve (but it is widely believed to require exponential time and all current SAT solvers are running in exponential time (with some heuristics to hopefully be fast in easy cases)). Just one of those open problems in computer science.","author":"@jonasmaier6631","author_id":"UCBKOoqeR8GHpvK9iXORCAdA","like_count":87,"published_time":"2 years ago (edited)"},{"id":"UgzWLSl3rIt3M59LoXx4AaABAg","text":"Have you looked at zero-suppressed decision diagrams also, they \"break down\" (by running out of memory) more often than SAT solvers but when they work they enable you to ask questions about the entire space of solutions (instead of just getting one of them, as SAT would, making you generate them one-by-one with extra constraints). Such as you can ask how many solutions there are, or even a list of pairs of how many solutions there are for each number of \"live\" cells, or find the solutions with the most or least life cells.","author":"@harold2718","author_id":"UCMX-BFOCQ0ICKjzV5LIzw1g","like_count":28,"published_time":"2 years ago (edited)"}]}