Nick: so now it is time to make use of the voronoi diagram. To begin, I want to calculate the average slope of the edges of each cell ChatGPT: The slope of a line is typically calculated as the difference in the y-coordinates of two points divided by the difference in the x-coordinates of thoseContinue reading “Dyson Hatching Golden Ticket”
Category Archives: sorting
ChatGPT and Golden Ticket pt 3
ChatGPT: Yes, that’s correct. Once you have a Delaunay triangulation, generating the corresponding Voronoi diagram is relatively straightforward. In a Voronoi diagram, each cell consists of all the points that are closer to a particular site (i.e., an input point) than to any other. This makes the Voronoi cell the dual of the Delaunay triangle,Continue reading “ChatGPT and Golden Ticket pt 3”
ChatGPT and Golden Ticket 2
Nick: We shall now examine polygon creation ChatGPT: Okay, the next step is to create the polygon that is the hole created by the bad triangles. This polygon is going to be filled by new triangles formed by the vertex v and each edge of the polygon. First, you need to extract all the edgesContinue reading “ChatGPT and Golden Ticket 2”
ChatGPT and Golden Ticket
So, some long time ago when ChatGPT first came out, the first really cool thing I somehow made, was my Golden Ticket algorithm. I’m going to discuss the Golden Ticket code and the production method I used with the original ChatGPT. This is an easy task because my chat history is saved by Open Ai.Continue reading “ChatGPT and Golden Ticket”
C++ comma operator and parallelization
I have never had a reason to use the comma operator, however, writing some modern code, it seems required. Say you have some series of variables and you want to perform a common operation on the group. New C++ is always a fun thing, I know. We could change this to be a generic functionContinue reading “C++ comma operator and parallelization”
SOA sorting
So in my current project, I’m using a library which uses a programming methodology called, SOA, or structure of arrays, which is different than OOP ( object-oriented-programming). Basically, in SOA, instead of having an object with 10 properties, and a vector of those objects, you have a structure with 10 vectors each containing one property.Continue reading “SOA sorting”