Omgili - forum search, search forums  
  

Discussions about minimum number

Displaying 1 - 10 out of 108,702 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
If you're in doubt the more general question of the minimum number of comparisons required to select the t th largest of n), the lower bound for....
In this case, the actual minimum number of required comparisons is also six .
What is the minimum number of times the while loop is executed? Is it zero? Not talking about DO
Started by on , 6 posts by 6 people.  
While) { // code } then minimum....
If do{}while() ;, then the minimum number of times is 1 If not talking about the DO , then it's 0.
If while(){} , then yes, the minimum number of times is 0.
Depends on how you write it.
Let's say I have an Array of numbers: [2,3,3,4,2,2,5,6,7,2] What is the best way to find the minimum or maximum value in that Array? Right now, to get the maximum, I am looping through the Array, and resetting a variable to the value if it is greater ...
Started by on , 11 posts by 11 people.  
And if you are going search) and minimum and maximum....
You should initialize it with the minimum possible value for integer.
You don't want at the end.
There isn't any reliable way to get the minimum/maximum without testing every value.
Ask your Facebook Friends
Given an unsorted integer array, and without making any assumptions on the numbers in the array, Is it possible to find two numbers whose difference is minimum in O(n) time. Edit: Difference between two numbers a, b is defined as abs(a-b) I don't know...
Started by on , 9 posts by 9 people.  
If....
The minimum distance is 0 because the list contains a repeated number head is to sort them (which is O(n * log n)) and find the minimum difference of adjacent pairs smallest-largest will be minimum.
That is your answer.
Excluding the check digit, what is the minimum length number the luhn algorithm will work on? My thoughts are that it would work on any number greater than 2 digits (again, excluding the check digit). The reason I ask is this: if i iterates over all digits...
Started by on , 3 posts by 3 people.  
You can see for yourself ....
Heck, it would theoretically work with one digit, but that's not very useful .
It will warn if a single digit is wrong and some (but not all) of the cases where digits are transposed .
Luhn's algorithm would work on two digits.
I have got an undirected weighted connected graph. If I select one vertex I automatically select all the vertices connected directly with it. What will be the algorithm so that I am able to select all the vertices of the graph using minimum number of ...
Started by on , 3 posts by 3 people.  
One of the algorithms that Wikipedia suggests is: "One algorithmic technique that works here is called bounded search tree algorithm, and its idea is to repeatedly choose some vertex... .
It's NP Complete.
This seems equivalent to the vertex cover problem.
I am trying to use boost::unordered_map to cache some values. I try to specify minimum number of buckets in the constructor: #include <boost/unordered_map.hpp> typedef boost::unordered_map<float, float> Mycache; Mycache cache((std::size_t)...
Started by on , 3 posts by 3 people.  
Note that while MSDN defines this to be the max buckets... .
You appear to have exceeded this limit with your constructor parameter .
Boost::unordered_map::max_bucket_count() returns the implementation-dependent limit on the bucket count of an unordered map .
I need an algorithm which calculates something similar to the Levenshtein distance. It should calculate the minimal possible number of transformations to get from one sequence to another. The allowed transformations are deletion, insertion and move: Deletion...
Started by on , 6 posts by 6 people.  
Using you want to minimize....
Of the deleted and inserted numbers and in the end calculate the number of moves by inspecting these two sets empty) sequences where each number from 1 to n is contained in exactly one (inner) sequence.
Int i = 0; int min = x[i]; while ( i < n ){ if ( x[i] < min ){ min = x[i]; } i++; } return min; I've written the iterative form to find the min number of an array. But I'd like to write a function that with recursion. Please help!
Started by on , 8 posts by 8 people.  
The minimum number of an array with sizeBecause this....
The minimum number of a single-element array is the one element in the array.
Element, or the minimum number in the rest of the array, whichever is smaller.
In a program I wrote, 20% of the time is being spent on finding out the minimum of 3 numbers in an inner loop, in this routine: static inline unsigned int min(unsigned int a, unsigned int b, unsigned int c) { unsigned int m = a; if (m > b) m = b; if...
Started by on , 11 posts by 11 people.  
I also.
Each element of the result is the minimum of the corresponding elements in the two inputs.
The compiler isn't.
The number one thing to check is that the routine is actually getting inlined.
Page: 1   2   3   4   5   6   7   8   9   10  
Related Searches
how to find the maximum negative and minimum positive number in excel   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost