New answers tagged optimization
0
votes
Escape from the magic prison
After looking at the problem, I think this problem resembles the "expectancy" problem in mathematics. And this is my way of solving it:
3 + 9 + 27 = 39.
You need at least 39 moves to ...
15
votes
Escape from the magic prison
Upper Bound = 36
These were found using a Depth-First Search with pruning.
$36$ presses:
...
1
vote
Accepted
7
votes
What is the least number of colours Peter could use to color the 3x3 square?
As described in many answers, five colors is the minimum. Here we bring in the theory of pandiagonal Latin squares to show some hidden features of the solution and allow a generalization to $n×n$ ...
16
votes
What is the least number of colours Peter could use to color the 3x3 square?
Basically a beginner here.
Start with a diagonal. All three cells must have unique colours:
Then, the two unshaded corners must be given unique colours because both of them have a diagonal with the ...
4
votes
What is the least number of colours Peter could use to color the 3x3 square?
I got
by "coloring" with numbers:
2
votes
Escape from the magic prison
I've reworked my code entirely in an attempt to find an optimum via A* search. I'm done encoding the worlds and simulation of moves, but I've yet to find a suitable heuristic.
My current heuristic is ...
22
votes
Accepted
What is the least number of colours Peter could use to color the 3x3 square?
The minimum is
because
9
votes
What is the optimal number of function evaluations?
I will ignore the fact that the function is convex. I suspect that this fact doesn't help the worst-case performance.
Definition
Let $x_{answer}$ be the value of $x$ which for $f(x)$ is minimal.
Game ...
2
votes
What is the optimal number of function evaluations?
I believe the minimum is
Strategy
Explicit:
Example
5
votes
What is the optimal number of function evaluations?
I think the answer is:
Order of queries:
Let's analyze this below. Let $1\le x_m\le 200$ be such that $f(x_m)$ is minimum.
The only way to tell if $f(x_m)$ is minimum is that:
Also, if we currently ...
3
votes
What is the optimal number of function evaluations?
I will provide an easy approach (but I don’t think this is the optimized one).
After discussion with @thisIs4d I realized that my approach is wrong, but I don't have a better way to improve it for ...
11
votes
Escape from the magic prison
The best upper bound I've found is 39. Here are a few sequences which should solve every possible configuration:
...
14
votes
8
votes
-1
votes
Escape from the magic prison
Step 1.
As Jaan Scherphuis pointed out, this step does not take into account that the "winning" combination might not be started from the correct room, thus rendering the entire solution ...
34
votes
Accepted
Largest number possible with +, -, ÷
Is there anything in the rules preventing us from simply doing
?
8
votes
6
votes
7
votes
Escape from the magic prison
I cobbled together a Python script to test Tim's ideas, with some added insights:
I still don't guarantee optimality, because
That being said, following the strategy set out in the code gives an ...
11
votes
Accepted
Maximizing the common value of both sides of an equation (part 2)
We can do
which is pretty large, indeed.
If I'm getting the (rather tricky) maths right the value is between
-4
votes
Escape from the magic prison
Edit:
Yes, I am missing something. After it was explained in the comments, I understand what I'm missing, but I'm going to leave this answer so others can learn from my mistake.
Since I know it's ...
3
votes
Maximizing the common value of both sides of an equation (part 2)
Here are my attempts:
which is between
8
votes
Escape from the magic prison
This is probably an extraordinarily weak bound, but to get things started, I claim that we can guarantee to get out in no more than
To achieve this bound, observe that
Now, to find the strategy
...
4
votes
Maximizing the common value of both sides of an equation (part 2)
Pretty sure you can get a lot bigger than this, but..
which is
10
votes
Maximizing the common value of both sides of an equation (part 2)
Sorry I missed the fifth arithmetic operation --- power, and thanks for @franck vivien's advice! Here is my update:
And, as a supplement, in order to see the order of magnitude comparisons...
5
votes
Accepted
0
votes
Rest for three days before the next game
3,4,5,6,7,8 all have a problem:
if 3 is the N: when after the first match 3 days will be lost because the other team would have no competitor... and putting 3 on equation we get 3 days so 3 is ruled ...
25
votes
Accepted
5
votes
Maximizing the common value of both sides of an equation
This is a small improvement on franck vivien's answer. If you upvote this, please also upvote theirs.
The equation
has value
9
votes
4
votes
1
vote
A variant of the 2-Chess Games overlapped
Note: I assume the discarded kings to be exempt from the no-collision rule.
Game 1:
Game 2:
I do not claim minimality.
Overlay Game 2 pieces circled:
6
votes
Accepted
The minimal Anti-Sudoku
Strategy
We already have a computer solution, so I will try to show how a human can obtain it. The strategy is to set the numbers $1,2,\dots,9$ on the anti-sudoku grid one by one. Let $A$ be the ...
Top 50 recent answers are included
Related Tags
optimization × 880mathematics × 372
chess × 138
logical-deduction × 122
geometry × 115
strategy × 106
combinatorics × 91
checkerboard × 46
no-computers × 44
calculation-puzzle × 41
construction × 40
visual × 34
graph-theory × 30
grid-deduction × 29
weighing × 25
dissection × 25
packing × 24
computer-puzzle × 21
board-games × 21
polyomino × 21
formation-of-numbers × 19
algorithm × 19
probability × 18
number-theory × 17
real × 17