Given two ranges of positive integers x: [1 ... n] and y: [1 ... m] and random real R from 0 to 1, I need to find the pair of elements (i,j) from x and y such that x_i / y_j is closes开发者_JAVA技巧t
I\'m trying to find optimized parameters for a model defined by an implicit function to fit a dataset using fsolve and lsqcurvefit. I have defined 3 functions in separate m-files: first one is a defin
I\'m interested in efficiently keeping track of the center of mass of a large box on the integer lattice from which orthant-shaped regions are repeatedly carved out.I\'ve been poking around in the com
I\'ve recently ran into the following problem. Given a list of vectors (here I mean tuple) all with integer entries, is there a package (language isn\'t too much an issue, the faster the better, so I
Is there a re开发者_开发技巧liable and well-documented Python library with a fast implementation of an algorithm that finds maximum flows and minimum cuts in directed graphs?
Say I have an array in NumPy containing evaluations of a continuous differentiable function, and I want to find the local minima. There is no noise, so every point whose value is lower than the values
In 3D Max Studios, I recalled there is a function (I couldn\'t recall the name of the function开发者_开发问答, sorry) to cut a 3D model into two. For instance, you create a sphere, then you cut it in
I working on a combinatorial optimization problem that I suspect is NP-hard, and a genetic algorithm has been working well with our dataset.We\'re a research group and plan to publish our results in o
I need to find the most optimal combination of coins that makes up a certain dollar amount.So essentially, I want to use the least amount of coins to get there.
I\'m performing an operation, lets call it CalculateSomeData.CalculateSomeData operates in successive \"generations\", numbered 1..x.The number of generations in the entire run is fixed by the input p