Questions tagged [algorithm]
Questions about algorithms used or which might be used to implement a procedure known by name or loosely but not in detail. The subject of the question may be a procedure mentioned in the literature or a Mathematica built-in function
391 questions
2 votes
0 answers
120 views
Most efficient way to store set of numbers and manipulate them
I have a set of pairs of numbers {id, quantity}, which I store in the table tab; id takes discrete values, and ...
3 votes
1 answer
206 views
What algorithm(s) does `BoundingRegion` use?
BoundingRegion is also known as enclosing region or circumscribed region. What algorithm(s) does BoundingRegion use? Below links ...
3 votes
0 answers
68 views
Implementing DC Decomposition of Nonconvex Polynomials Using Algebraic Techniques (Hall's Formulation 5.6) in Mathematica?
I'm working on implementing a difference-of-convex (DC) decomposition for nonconvex polynomials, following the algebraic approach described in Georgina Hall's thesis "Optimization over ...
17 votes
3 answers
1k views
How to obtain the frontier of a 2D Brownian walk?
Given the definition: The frontier of Brownian motion is the boundary of the unbounded component of the complement of Brownian motion. Graphically, the frontier is in red: How can one isolate the ...
0 votes
0 answers
190 views
How to find the exact optimal bound
Is there any way to fix or revise this code to find the EXACT optimal bound, and could anyone help find the EXACT optimal bound? Thanks. ...
1 vote
1 answer
94 views
Apply an equation based on two sets with different indexes
Apply an equation based on two sets with different indexes Simple example If I have the following elements in the form of two sets with different indexes: $m=\{m_1,m_2,m_3,m_4,m_5\}=\{1,2,2,2,1\}$ $p=\...
9 votes
8 answers
905 views
Numerical approximation of the integral by using data
I want to use the numerical approximation of the integral of a function given a list of data: $$\int_a^bf(x)dx\approx\sum_{k=1}^N\frac{f(x_{k})+f(x_{k-1})}{2}(x_{k}-x_{k-1}),$$ where $f(x_0)=f(a)$ and ...
3 votes
2 answers
744 views
Recycle buying soda problem
there is a question: " If a bottle of soda costs \$1 and you can exchange two empty bottles for one soda, how many sodas can you drink with \$20 " ...