Math and Logic Puzzles: Redux
Forum rules
- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
Math and Logic Puzzles: Redux
The old thread got archived. Here's a new one!
Vaguely, someone will post a math or logic puzzle. Other people try to solve it, and whoever solves it gets to post their own. But in practice, things can be free-formed; if you have an interesting riddle or puzzle, feel free to post it! Just don't flood the thread with a bunch of different things at once.- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
First is one that I thought of a few days ago. Consider the following way to create a graph based on a finite string:
-For each possible permutation of the characters of the string, create a vertex of the graph labeled with that permutation.
-Create an edge between any two permutations with the property that there exists a contiguous substring of one that can be reversed to form the other.
For instance, if our string is "happy", then the vertices for "happy" and "hppay" would share an edge, because you can reverse the "app" substring; likewise, "happy" would be adjacent to "yppah", "ahppy", etc.
Must any graph formed in this way must be regular (with every vertex having the same degree)? Prove, or provide a counterexample.- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
That's pretty much it. The only other slight missing piece is showing that adding duplicate letters doesn't make any other reversals "not count," that is, that any reversal where the endpoints are distinct characters will never do the same thing as a different reversal where the endpoints are distinct characters, even if there are duplicate characters elsewhere in the string. But this isn't too difficult to show.
Here's one that's based on something that me and Mitillos and Ellibereth discussed in sitechat a while ago.
Suppose we have an undirected graph G, and a function f: G->R≥0. That is, we have a graph and each vertex is labeled with a nonnegative real number. Additionally, f fulfills one other property: for any vertex v in G, f(v) is the average of f(w) over all neighbors w of v. That is, each vertex's label is the average of its neighbors' labels. Call a graph Gbalanceableif there exists such a function f that is nonconstant.
1) Prove that no finite graph is balanceable.
2) Exhibit some balanceable graph and a nonconstant function f with the given property for it. Note that no vertex can have infinite degree, as that would break the definition.
3) (the original problem we looked at, and we never figured it out, but feel more than free to take a crack if you want to): consider the 2-d square lattice graph (put a vertex at every lattice point in the cartesian plane, then connect each vertex to the four adjacent vertices). Is this graph balanceable?- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
Oh yeah I just remembered I had a thing I thought of. So here's another one for anyone interested.
It turns out that if you pick three points at random (uniformly) in a unit square, the expected value of the area of the triangle with those three points as vertices is 11/144. This is a complicated result that involves mean iterated integrals to calculate. See here if you're curious.
Using this, determine the probability that two line segments with endpoints generated at random (uniformly) in a unit square will intersect.- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
Not quite - you're missing a case. Right idea, though.
- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
You still have to do the last step that you did in your first solution, but yes.- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
Also, two years late, but I never answered this question on the first page!
A function on a graph typically means a function on the set of vertices. So that function maps each vertex to a nonnegative real number.- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
I suspect it's 1/2 but am not confident and am intrigued to try to show it formally and will think about it more later- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
I understand, I came up with a heuristic argument that made me think it would be 1/2 anyway asymptotically. But it certainly wasn't rigorous or anything.In post 155, Sirius9121 wrote:
please note that both requirements need to be fulfilled... its lower than 1/2In post 154, implosion wrote:I suspect it's 1/2 but am not confident and am intrigued to try to show it formally and will think about it more later- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
- implosion
-
implosion he/himPolymath
- implosion
he/him- Polymath
- Polymath
- Posts: 13497
- Joined: September 9, 2010
- Pronoun: he/him
- Location: zoraster's wine cellar
- implosion
- implosion
- implosion
- implosion
- implosion
- implosion
- implosion
- implosion
- implosion
- implosion
- implosion
- implosion
- implosion